Sub topic 11
Extraneous solutions and how to check for them
This chapter assumes you can solve linear and quadratic equations, apply the logarithm rules from earlier chapters (product, quotient, power), and state the domain of a logarithm. You also need to be comfortable rewriting a logarithm in exponential form.
What an extraneous solution is
An extraneous solution is a number that comes out of correct algebra but does not satisfy the original equation. You did nothing wrong in the steps. The problem is that one of those steps produced an equation with more solutions than the one you started with.
Logarithm equations are a common place for this, because the logarithm is only defined for positive arguments. Many algebra moves quietly remove that restriction. The new equation then accepts numbers the original equation never allowed.
An extraneous solution is not a mistake to be fixed. It is a candidate that fails a test. Your job is to run that test on every candidate.
Why they appear
A step is reversible if you can undo it and get back exactly the previous equation. Reversible steps never add or remove solutions. A step that is not reversible can add solutions (extraneous ones) or remove them (lost ones).
Consider this equation.
log2(x) + log2(x - 2) = 3
It requires x > 0 and x - 2 > 0, so the domain is x > 2. Combining the logs with the product rule gives log2(x(x - 2)) = 3. Its domain is every x where the product x(x - 2) is positive. That includes x < 0, where both factors are negative and the product is positive. The new equation has a larger domain than the original, so it can have solutions the original cannot.
| Step | Effect on the solution set | Action |
|---|---|---|
| `log A + log B` into `log(AB)` | Can add solutions, because `A` and `B` may both be negative | Check every candidate |
| `log A - log B` into `log(A/B)` | Can add solutions, for the same reason | Check every candidate |
| `n log A` into `log(A^n)` with even `n` | Can add solutions, because `A^n` is positive even when `A` is negative | Check every candidate |
| `log(A^n)` into `n log A` with even `n` | Can lose solutions, because `log A` needs `A > 0` | Keep the absolute value, or solve in the unsplit form |
| `log_b(A) = c` into `A = b^c` | Adds none by itself, because `b^c` is always positive | Still check other logs in the equation |
| Substituting `u = e^x` | `u` must be positive, so negative roots in `u` have no `x` | Reject `u <= 0` |
A reliable procedure
Follow the same sequence on every equation.
- Before solving, write down the domain from the original equation. Each logarithm argument must be greater than 0.
- Solve with whatever method fits, and collect all candidates.
- Substitute each candidate into the original equation, not into a later form. A later form may already contain the extra solutions.
- Keep the candidates that satisfy the domain and make both sides equal. Reject the rest and say why.
Worked example 1: one root fails the domain
Solve log2(x) + log2(x - 2) = 3.
The domain is x > 2. Combine the logs and rewrite in exponential form.
log2(x(x - 2)) = 3, so x(x - 2) = 2^3 = 8.
Then x^2 - 2x - 8 = 0, which factors as (x - 4)(x + 2) = 0. The candidates are x = 4 and x = -2.
x = 4is greater than 2. In the original equation,log2(4) + log2(2) = 2 + 1 = 3. It is a solution.x = -2is not greater than 2. Substituting giveslog2(-2), which is undefined. It is extraneous.
The solution is x = 4.
Worked example 2: the product is positive but the logs are not
Solve ln(x + 3) + ln(x - 1) = ln(5).
The domain needs x + 3 > 0 and x - 1 > 0, so x > 1. Combine the logs and equate the arguments.
(x + 3)(x - 1) = 5, so x^2 + 2x - 8 = 0, so (x + 4)(x - 2) = 0.
The candidates are x = 2 and x = -4.
x = 2givesln(5) + ln(1) = ln(5) + 0, which equals the right side. It is a solution.x = -4givesx + 3 = -1andx - 1 = -5. Both arguments are negative. Their product is 5, which is why the combined equation accepts it. The original equation containsln(-1)andln(-5), so it is extraneous.
Checking numerically in Python
You can automate the substitution step. Python's math.log raises ValueError outside the domain, which turns a failed domain test into a rejection.
import math
def holds(x, lhs, rhs):
"""Return True if lhs(x) equals rhs within floating-point tolerance."""
try:
return math.isclose(lhs(x), rhs, abs_tol=1e-9)
except ValueError:
return False # a logarithm argument was not positive
# Example 1: log2(x) + log2(x - 2) = 3
lhs1 = lambda x: math.log2(x) + math.log2(x - 2)
for x in (4, -2):
print("ex1", x, holds(x, lhs1, 3))
# Example 2: ln(x + 3) + ln(x - 1) = ln(5)
lhs2 = lambda x: math.log(x + 3) + math.log(x - 1)
for x in (2, -4):
print("ex2", x, holds(x, lhs2, math.log(5)))The output is True for 4 and 2, and False for -2 and -4. Always pass the original left-hand side to the checker. If you pass the combined form log2(x * (x - 2)), then -2 would pass wrongly, because -2 * -4 = 8 is positive.
Extraneous roots without a domain problem
Domain restrictions are not the only source. Equations in quadratic form can produce candidates that fail for a different reason.
Solve e^(2x) + e^x - 6 = 0. Let u = e^x, so u^2 + u - 6 = 0 and (u + 3)(u - 2) = 0. The candidates are u = 2 and u = -3.
An exponential is always positive, so e^x = -3 has no real solution. Only u = 2 converts back, giving x = ln 2. The check is e^(2 ln 2) + e^(ln 2) - 6 = 4 + 2 - 6 = 0.
import math
for u in (2, -3):
try:
x = math.log(u)
residual = math.exp(2 * x) + math.exp(x) - 6
print(u, x, residual) # residual is approximately 0 for u = 2
except ValueError:
print(u, "no real x: e**x is never negative")The opposite problem: lost solutions
Extraneous solutions are the visible failure. Lost solutions are the silent one, because you never see the number you missed.
Solve log(x^2) = 4, where log is base 10. Rewriting gives x^2 = 10^4 = 10000, so x = 100 or x = -100. Both work. The original equation has x^2 > 0, so any nonzero x is allowed, and log(10000) = 4 for either root.
Now apply the power rule first: 2 log(x) = 4, so log(x) = 2 and x = 100. You lost -100. The expression log(x) only allows x > 0, so the power rule narrowed the domain.
Common errors
- Checking in the wrong equation. Substituting into the quadratic you derived always passes, because it was built from those roots.
- Rejecting a negative candidate automatically. A negative
xcan be valid. Forlog(x^2) = 4,x = -100is correct. Check the arguments, not the sign ofx. - Accepting a candidate because one argument is positive. Every logarithm in the equation must be defined.
- Rejecting a candidate that gives an argument of exactly 0. Zero is outside the domain, so
log(0)is undefined and the candidate fails. - Skipping the check when the algebra "looks clean". Extraneous roots often factor nicely, as in both examples above.
Exercise
Solve log(x + 1) + log(x - 2) = 1, where log is base 10. State which candidates are rejected and why.
Show answer
The domain is x > 2. Combining gives log((x + 1)(x - 2)) = 1, so (x + 1)(x - 2) = 10, so x^2 - x - 12 = 0, so (x - 4)(x + 3) = 0. The candidates are x = 4 and x = -3. For x = 4, log(5) + log(2) = log(10) = 1, so it is valid. For x = -3, x + 1 = -2 and x - 2 = -5, so the logarithms are undefined and it is extraneous. The solution is x = 4.
Exercise
Solve e^(2x) - 3e^x - 4 = 0. Give the exact answer and explain what happens to the other root.
Show answer
Let u = e^x. Then u^2 - 3u - 4 = 0, so (u - 4)(u + 1) = 0, giving u = 4 or u = -1. Since e^x is always positive, u = -1 has no real solution. For u = 4, x = ln 4 (equivalently 2 ln 2). Check: e^(2 ln 4) - 3e^(ln 4) - 4 = 16 - 12 - 4 = 0.
Exercise
A student solves log(x^2) = 6 by writing 2 log(x) = 6, so log(x) = 3 and x = 1000. What did the student miss, and what is the full solution set?
Show answer
The power rule step narrowed the domain to x > 0, which dropped the negative root. Rewriting directly gives x^2 = 10^6, so x = 1000 or x = -1000. Both satisfy the original equation, because (-1000)^2 = 10^6 and log(10^6) = 6. The solution set is {-1000, 1000}.