Understanding the linear equation solver — concept and principle
A linear equation in one unknown can always be written as ax + b = c, where x appears only to the first power. Solving it means finding the single value of x that makes both sides equal. Linear equations are the first step of algebra and appear everywhere in daily life: how many hours of work cover a bill, how many items fit a budget after a fixed fee, or what temperature in Celsius matches a Fahrenheit reading.
How it is calculated
x = (c − b) ÷ a
- a is the coefficient of x (the rate or slope).
- b is the constant on the left (a fixed amount added to ax).
- c is the right-hand side (the target value).
Special cases:
- a = 0 and b = c: every x works ("any x"), because the equation reduces to b = b.
- a = 0 and b ≠ c: no solution, because the equation reduces to a false statement such as 5 = 20.
The principle
An equation is a balance: if you do the same thing to both sides, it stays balanced. Subtracting b from both sides leaves ax = c − b, and dividing both sides by a (allowed only when a ≠ 0) leaves x alone. Graphically, y = ax + b is a straight line and the solution is the x-coordinate where that line meets the horizontal line y = c. A non-zero slope guarantees exactly one crossing; a zero slope gives either no crossing (parallel lines) or infinitely many (the same line).
Worked example
- Inputs: a = 3, b = 5, c = 20, so the equation is 3x + 5 = 20.
- Subtract 5 from both sides: 3x = 15.
- Divide both sides by 3: x = 15 ÷ 3.
- Result: x = 5.
- Check: 3 × 5 + 5 = 15 + 5 = 20.
| a | x |
|---|---|
| 0.75 | 20 |
| 1.5 | 10 |
| 2.25 | 6.666666667 |
| 3 | 5 |
| 3.75 | 4 |
| 4.5 | 3.333333333 |
| 6 | 2.5 |
How to read the result
Always substitute the answer back into the original equation; if both sides match, the solution is correct. In a word problem, interpret x in its unit: if a is a price per item and b a delivery fee, x = 5 means five items reach the total of 20. A non-integer x may need rounding up or down depending on the situation (you cannot buy 4.6 tickets).
Common mistakes
- Moving b to the other side without changing its sign.
- Dividing only part of the expression by a.
- Not rearranging first: an equation such as 2(x − 1) = 4x + 3 must be expanded and collected into ax + b = c form before using the calculator.
- Ignoring the case a = 0.
Frequently asked questions
How do I solve an equation with x on both sides?
Collect the x terms on one side and constants on the other. For 5x + 2 = 3x + 10, subtract 3x: 2x + 2 = 10, so a = 2, b = 2, c = 10 and x = 4.
What if the equation has fractions?
Multiply both sides by the common denominator first, or enter decimal coefficients directly.
Can a linear equation have two solutions?
No. It has exactly one solution, none, or infinitely many.
Sources: I. M. Gelfand and A. Shen, Algebra, Birkhäuser · OpenStax, Elementary Algebra 2e, Chapter 2: Solving Linear Equations and Inequalities