Linear Equation Solver
Solve equations of the form ax + b = c.
About this topic
Standard Linear Equation (ax + b = c) Isolate the variable x in a straight-line equation.
A linear equation contains a variable whose highest power is 1. Solving it means performing the same operation on both sides until the variable is isolated. For example, in 2x + 5 = 15, subtract 5 from both sides to get 2x = 10, then divide by 2 to find x = 5. Linear equations are used to find unknown quantities in situations involving fixed rates, costs, distances, and simple budgets.
Key formulas & rules
- •Formula: x = (c - b) / a
- •Requires a ≠ 0
- •Straight-line solution
- •Unique solution if a ≠ 0
- •Handles fractions and decimals
Examples
| Input | Output | Note |
|---|---|---|
| 2x + 5 = 15 | x = 5 | Standard |
| 3x - 6 = 9 | x = 5 | Negative constant |
| 0.5x + 2 = 4 | x = 4 | Decimal coefficient |
| 10x = 100 | x = 10 | No constant term |
Real-world uses
Special Cases (Zero & Infinite Solutions) Understand edge cases where a = 0.
When the coefficient of the variable is zero, the variable disappears and the equation becomes a statement about constants. If both sides are equal, such as 0x + 5 = 5, every value of x satisfies the equation, so there are infinitely many solutions. If the constants are different, such as 0x + 5 = 10, no value of x can make the statement true, so there is no solution. Recognising these cases helps distinguish identities from contradictions.
Key formulas & rules
- •If a = 0 and b = c → Infinite Solutions
- •If a = 0 and b ≠ c → No Solution
- •Occurs when variable cancels out
- •Identity = always true
- •Contradiction = never true
Examples
| Input | Output | Note |
|---|---|---|
| 0x + 5 = 5 | Infinite | Identity |
| 0x + 5 = 10 | None | Contradiction |
| 0x = 0 | Infinite | Any x works |
| 0x = 5 | None | Impossible |
Real-world uses
Modes & formulas
Solve for x
If 'a' is 0, the equation is no longer linear (it's a constant). The tool handles edge cases where there are infinite solutions (0=0) or no solutions (0=5).