What a linear equation is and why one shape covers them all
A linear equation in one unknown is any equation in which x appears only to the first power — never squared, never inside a root, never in a denominator with another x. Every such equation, no matter how it is dressed up, can be rearranged into ax + b = cx + d. That is why a single formula solves the whole family.
Look at how varied the disguises are. 5x = 20 is the case b = c = 0. 2x + 3 = 11 is the two-step case with c = 0. 4x − 7 = x + 8 has the variable on both sides. 3(x − 2) = 2(x + 4) becomes 3x − 6 = 2x + 8 once you expand. Even (x + 1)/3 = (x − 5)/2 becomes linear after you multiply through by 6. All four reduce to four numbers.
Geometrically, each side of the equation is a straight line. Solving asks where the two lines meet. Two straight lines in a plane either cross at exactly one point, run parallel and never meet, or lie exactly on top of each other. Those three geometric possibilities are precisely the three algebraic outcomes — one solution, none, infinitely many — and no fourth case exists. The chart on this page draws both lines so you can see which one you have.
The method: why moving terms across is legal
Solving a linear equation rests on one principle: whatever you do to one side you must do to the other, and only operations that are reversible are allowed. Adding, subtracting, and multiplying or dividing by a non-zero number all qualify. Each step produces an equation with exactly the same solution set as the one before, which is what "equivalent equation" means.
Applied to ax + b = cx + d, the standard route is three moves:
- Subtract cx from both sides to gather every x on the left: (a − c)x + b = d.
- Subtract b from both sides to gather every constant on the right: (a − c)x = d − b.
- Divide both sides by (a − c): x = (d − b) / (a − c).
Step 3 is the one with a condition attached, and it is the whole reason this calculator reports a solution type rather than always a number. Division by zero is not a permitted operation, so when a = c the method stops at step 2 with 0·x = d − b. If d = b that reads 0 = 0, true for every x. If d ≠ b it reads 0 = something non-zero, true for no x.
Two operations that look harmless are not reversible and must be avoided. Multiplying both sides by an expression that could be zero can introduce solutions that do not satisfy the original equation. Dividing both sides by an expression containing x can destroy a genuine solution. Neither arises in the four-number form on this page, but both are common when you clear denominators earlier in the working, which is why you check the answer by substitution.
Worked example: solving 3x + 5 = x + 13 by hand
Take the calculator's default equation, 3x + 5 = x + 13, so a = 3, b = 5, c = 1, d = 13.
- Move the x terms to one side. Subtract x from both sides: 3x − x + 5 = 13, which is 2x + 5 = 13.
- Move the constants to the other side. Subtract 5: 2x = 8.
- Divide by the coefficient. x = 8 ÷ 2 = 4.
- Check by substitution. Left side: 3(4) + 5 = 12 + 5 = 17. Right side: 4 + 13 = 17. They match, so x = 4 is correct.
Read the same working through the formula. a − c = 3 − 1 = 2 is the combined coefficient from step 1. d − b = 13 − 5 = 8 is the combined constant from step 2. Dividing gives 8/2 = 4. The formula is not a different technique; it is the three moves already carried out.
Now a case that does not come out whole. Solve 3x + 1 = 2. Here a − c = 3 and d − b = 1, so x = 1/3. The decimal 0.333333 is a rounded value; the exact answer is the fraction, and that is the form to give unless a question asks for decimals. Substituting confirms it: 3(1/3) + 1 = 1 + 1 = 2 ✓.
Finally, a trap. Solve 2x + 3 = 2x + 5. Subtract 2x from both sides and you are left with 3 = 5. Nothing has gone wrong with your algebra — that is the answer. The statement 3 = 5 is false regardless of x, so the equation has no solution. Change the 5 to a 3 and the same working leaves 3 = 3, which is true regardless of x, so every real number is a solution.
How to read the result
Start with the type of solution. "Unique solution" is the ordinary case and the number beside it is your answer. "No solution" means the two lines are parallel: same slope, different intercept. "Infinitely many solutions" means they are the same line, and the honest way to write the answer is "all real numbers", not "x = 0" and not "no solution". Confusing the last two is the single most common error on this topic, and the difference is easy to see: 0 = 0 is true, 3 = 5 is not.
Then compare the left side and right side outputs. On a unique solution they must be equal, and if they differ by more than a rounding wisp you have entered a coefficient wrongly. This substitution check is the only verification that catches a mistake made while rearranging the original problem into ax + b = cx + d, because the calculator can only see the four numbers you typed.
Prefer the exact value output when it shows a fraction. A rounded decimal is fine for a measurement but wrong for an exam answer, and it compounds if the result feeds another calculation. If you need the fraction in a different form, the fraction simplifier and the decimal to fraction converter handle the conversions.
One numerical caution. When a and c are very close, a − c is small and the quotient is large and sensitive: changing a from 1.0001 to 1.0002 moves the answer by thousands. The calculator flags that regime. It is not a failure of the method — it is the geometry, since two nearly parallel lines cross a long way from the origin and their crossing point moves quickly.
Reference: the three outcomes and how to recognise them
| Equation | a − c | d − b | Reduces to | Solution |
|---|---|---|---|---|
| 3x + 5 = x + 13 | 2 | 8 | 2x = 8 | x = 4 |
| 2x + 3 = 11 | 2 | 8 | 2x = 8 | x = 4 |
| −3x + 7 = 2x − 8 | −5 | −15 | −5x = −15 | x = 3 |
| 3x + 1 = 2 | 3 | 1 | 3x = 1 | x = 1/3 |
| x + 4 = 4 | 1 | 0 | x = 0 | x = 0 |
| 2x + 3 = 2x + 5 | 0 | 2 | 0 = 2 | No solution |
| 2x + 6 = 2x + 6 | 0 | 0 | 0 = 0 | All real numbers |
| 5 = 5 | 0 | 0 | 0 = 0 | All real numbers |
x = 0 and "no solution" are different answers: the first is a number that works, the second means no number works.
Getting a messy equation into ax + b = cx + d
Clear any brackets
Multiply out. 3(x − 2) = 2(x + 4) becomes 3x − 6 = 2x + 8, so a = 3, b = −6, c = 2, d = 8. Watch the sign on every term inside a bracket that follows a minus.
Clear any fractions
Multiply every term by the least common denominator. For (x + 1)/3 = (x − 5)/2, multiply by 6 to get 2(x + 1) = 3(x − 5), then expand to 2x + 2 = 3x − 15. The least common multiple calculator finds the denominator to use.
Collect like terms on each side
Combine repeated x terms and repeated constants before reading off the coefficients. 2x + 5 + 3x − 1 = 7 tidies to 5x + 4 = 7.
Read off the four numbers
Take signs with the terms they belong to. In 4x − 7 = x + 8, b is −7, not 7. A missing constant is 0; a bare x has coefficient 1.
Solve, then substitute into the original
Check against the equation you started with, not the tidied version. That is what catches an expansion or sign error made in step 1.
Mistakes that produce a wrong x
- Changing only one side. Subtracting 5 from the left and forgetting the right breaks the balance and every later step inherits the error.
- Dropping a sign when moving a term. Moving −7 across the equals sign makes it +7. Writing it as "subtract −7 from both sides" keeps you honest.
- Multiplying only some terms when clearing fractions. Every term gets multiplied, including whole numbers with no visible denominator.
- Reporting x = 0 for a contradiction. 0 = 2 has no solution; it does not have the solution 0. Check whether the surviving statement is true or false.
- Reporting "no solution" for an identity. If the x terms vanish and what remains is true, every number is a solution.
- Dividing by a coefficient that is zero. When a = c there is nothing to divide by, and the method has to stop and classify instead.
- Rounding a fraction too early. Writing 0.33 for 1/3 and substituting it back makes a correct answer look wrong.
Where linear equations sit among the alternatives
One equation with one unknown is the simplest solvable case. Two neighbouring problems come up constantly.
More than one unknown. A single equation such as 2x + 3y = 12 has infinitely many solutions; you need as many independent equations as unknowns to pin down a point. Two equations in two unknowns go to the 2×2 system solver, and three in three to the 3×3 system solver, both of which use determinants rather than substitution.
Higher powers. The moment an x² appears, the balance method no longer isolates x, and you need the quadratic formula instead. The tell is that a quadratic has up to two solutions while a linear equation has at most one.
Proportions are linear equations in disguise: a/b = c/x becomes ax = bc by cross-multiplication. The proportion solver does that step for you, and it is the right tool for scale drawings, unit pricing and recipe scaling.
Linear equations also underpin most everyday algebra without announcing themselves. Converting a temperature, finding a break-even point, working out how long a journey takes at a constant speed, or reversing a percentage are all one-unknown linear problems; the reverse percentage calculator is a linear solver with a percentage interface on top.
Key terms
- Coefficient
- The number multiplying the unknown. In 3x + 5 the coefficient is 3; in a bare x it is 1.
- Equivalent equations
- Equations with exactly the same solution set. Every legal step in solving produces an equivalent equation.
- Identity
- An equation true for every value of the unknown, such as 2x + 6 = 2x + 6. It reduces to a true statement with no x left.
- Contradiction
- An equation true for no value of the unknown, such as 2x + 3 = 2x + 5. It reduces to a false statement with no x left.
- Solution set
- The collection of all values that satisfy the equation: one number, the empty set, or all real numbers.
