Why Dividing Both Sides by a Variable Can Lose Solutions
See why dividing by x can erase an answer, how factoring or splitting into cases keeps it, and when the division is safe.
Key takeaways
- Division by an expression is valid only where that expression is not zero.
- The values that make the divisor zero must be tested separately, because they may be solutions.
- Moving everything to one side and factoring keeps every solution in view.
- Dividing is safe when the expression can never be zero in the number system you are using.
- Checking your answers cannot reveal a solution that has already been thrown away.
Dividing both sides of an equation by a variable, or by any expression containing one, quietly assumes that the expression is not zero. If some value that makes it zero was a solution, the division removes it, and nothing later in your work will bring it back.
Take x² = 5x. Dividing by x gives x = 5. That is correct as far as it goes, but x = 0 also works, since 0² and 5 · 0 are both zero. The safe route is to write x² − 5x = 0, factor it as x(x − 5) = 0, and read off both answers.
What the division property actually says
The rule for division reads: if a = b and c ≠ 0, then a/c = b/c. The condition is part of the rule. When c is a number such as 7, you can see at a glance that it is met. When c is x, whether it is met depends on the very thing you are trying to find.
So the step "divide both sides by x" really means "for the case where x is not zero, divide both sides by x." Say the whole sentence and the gap is obvious: you have not yet considered the case where x is zero.
Division by zero is excluded because it has no consistent value. Asking for 6 ÷ 0 means asking for a number that gives 6 when multiplied by 0, and there is none. Asking for 0 ÷ 0 is no better, since every number passes the test. The difference between these is discussed in zero on top or bottom of a fraction.
Two safe methods
The first method avoids division altogether. Bring all terms to one side, factor, and apply the zero product property: a product of real numbers is zero exactly when at least one factor is zero.
x² = 5x
x² − 5x = 0
x(x − 5) = 0
x = 0 or x = 5 The second method keeps the division but handles both cases openly.
Case 1: x = 0. Left side 0, right side 0. True, so 0 is a solution.
Case 2: x ≠ 0. Divide by x: x = 5.
Solutions: 0 and 5. A common factor in brackets
The hazard is easier to miss when the divisor is a whole bracket. Solve (x − 3)(x + 4) = 2(x − 3).
It looks natural to cross out x − 3 on both sides, leaving x + 4 = 2 and x = −2. But that crossing out is a division by x − 3, which assumes x ≠ 3.
(x − 3)(x + 4) − 2(x − 3) = 0
(x − 3)(x + 4 − 2) = 0 (factor out x − 3)
(x − 3)(x + 2) = 0
x = 3 or x = −2 Check both. At x = 3 each side is zero. At x = −2 the left side is (−5)(2) = −10 and the right side is 2(−5) = −10.
A squared bracket works the same way. In (x − 1)² = x − 1, dividing gives x − 1 = 1 and only x = 2. Factoring gives (x − 1)(x − 2) = 0, so 1 and 2 both belong.
When a linear equation seems to have no answer
You do not need squares to get into trouble. Solve 4x = 7x.
Dividing both sides by x gives 4 = 7, which is false, and a student may conclude that there is no solution. In fact x = 0 is a solution. Subtracting 4x instead gives 0 = 3x, so x = 0.
The false statement 4 = 7 was telling the truth about the case you had assumed: no nonzero number satisfies 4x = 7x. It said nothing about zero.
The same happens in 2(x + 5) = 3(x + 5). Dividing by x + 5 gives 2 = 3, yet x = −5 makes both sides zero. For the genuine cases of no solution, see equations with no solution.
Seeing the lost solution on a graph
Each side of an equation can be graphed as its own curve, and solutions are the places where the curves meet. For x² = 5x, plot y = x² and y = 5x. The parabola and the line cross twice: at the origin and at the point (5, 25).
Dividing by x replaces both graphs with new ones, y = x and y = 5. These meet only at x = 5. The meeting at the origin was a feature of the original pair, and the new pair simply does not have it. In fact the quotient graph y = x²/x has a hole at x = 0, where it is undefined.
This also explains which solutions are at risk. They are exactly the values where the divisor is zero. Every other solution survives the division, since for those values the step is perfectly legal. So when you realize after the fact that you divided by x − 3, you do not need to redo everything: go back to the original equation and test x = 3.
When the divisor is a factor of both whole sides, and the other factors are defined there, the test always succeeds, because both sides become zero. When the divisor is not such a factor, the test may fail. Dividing x² = x + 6 by x gives x = 1 + 6/x, and here x = 0 was never a solution, since 0 does not equal 6.
The famous false proof
Dropping the condition lets you "prove" nonsense. Start with two equal numbers, and let both be nonzero.
a = b
a² = ab (multiply both sides by a)
a² − b² = ab − b² (subtract b²)
(a + b)(a − b) = b(a − b) (factor each side)
a + b = b (divide by a − b) <- the flaw
2b = b (since a = b)
2 = 1 (divide by b) Every line before the flaw is true: each side of the factored line equals zero. Dividing by a − b means dividing by zero, because a = b. After that, anything can follow. The second division, by b, is legitimate, which is part of what makes the trick persuasive.
When you meet an argument that ends in an impossibility, look first for a division by an expression that the setup forces to be zero.
Letters as coefficients
With parameters, a lost case may concern the other letters. Solve ax = bx for x.
Dividing by x gives a = b, which does not even mention what x is. Rearranging gives x(a − b) = 0, so there are two possibilities. If a ≠ b, then x = 0 is the only solution. If a = b, every x is a solution.
The same care applies with two variables. The equation xy = 3y does not simply say x = 3. It says y(x − 3) = 0, so either y = 0, with x anything, or x = 3, with y anything. On a graph that is two whole lines, and dividing by y would erase one of them.
When dividing is perfectly safe
Some expressions are never zero, and dividing by them loses nothing. Over the real numbers, x² + 1 is at least 1.
(x² + 1)(x − 4) = 3(x² + 1)
x − 4 = 3 (divide by x² + 1, never zero for real x)
x = 7 Over the complex numbers the story changes: x² + 1 is zero at x = i and x = −i, and both solve the original equation. Always know which number system you are working in.
Exponential expressions such as 2ˣ are positive for every real x, so they are safe divisors too. So is a quantity the problem guarantees to be nonzero, such as the side length of an actual triangle. In that case, state the reason beside the step: "divide by s, since s > 0."
A habit that protects you
Before you divide or cancel, ask one question: can this be zero?
- If it cannot, divide and note why.
- If it can, either factor instead, or write down the zero case and test it.
- If the equation is a polynomial equation, count what you found. A degree-3 equation such as x³ = 4x may have up to three solutions. Factoring gives x(x − 2)(x + 2) = 0, so they are 0, 2 and −2. Dividing by x leaves only the last two.
Substituting your answers back is still worthwhile, but understand its limit. It confirms what you found and cannot report what you missed. A graph can help there: plot both sides and count the intersections. For the wider picture of which steps are risky in which direction, read reversible and irreversible steps.
Common questions
Why can I divide by 5 without any fuss?
Because 5 is not zero, whatever the unknown turns out to be. The condition in the division property is satisfied once and for all.
Is multiplying by a variable dangerous too?
Yes, in the opposite way. Multiplying by x can add the solution x = 0 that the original did not have. Starting from x = 5 and multiplying by x gives x² = 5x, with two solutions.
My textbook says "x ≠ 0, so divide." Is that fine?
It is, when the condition is given or follows from the problem. The division is then valid on every value you care about. Check that the condition was stated and not merely assumed for convenience.
What about dividing by x² or by |x|?
Both are zero when x is zero, so the same warning applies. Squaring the divisor or taking its absolute value does not remove the zero.
Practice
- 3x² = 12x
- (x + 6)(x − 1) = 5(x + 6)
- 9x = 2x
1. 3x(x − 4) = 0, so x = 0 or x = 4
2. (x + 6)(x − 6) = 0, so x = −6 or x = 6
3. 7x = 0, so x = 0