Sub topic 7
Solving Rational Equations and Checking for Extraneous Solutions
This chapter assumes you can factor polynomials, solve linear and quadratic equations, and find a least common denominator (LCD) for rational expressions. A rational equation is an equation that contains at least one rational expression with a variable in a denominator. Solving one is a two-part job: transform it into a polynomial equation, then check the answers against the original denominators.
The working model
You cannot divide by zero, so every denominator in the original equation restricts the variable. Those restrictions are the excluded values. They stay in force for the whole problem, even after the denominators disappear from your algebra.
The standard method has five steps:
- Factor every denominator and write down the excluded values.
- Find the LCD of all the fractions in the equation.
- Multiply both sides by the LCD, which clears every denominator.
- Solve the resulting polynomial equation.
- Discard any candidate that is an excluded value. The ones left are the solutions.
Why extraneous solutions appear
An extraneous solution is a value that satisfies a transformed equation but not the original one. Multiplying both sides by the LCD is only reversible when the LCD is not zero. If the LCD is zero at some value, the new equation reads 0 = 0 there, which is true whether or not the original equation made sense.
Take this equation:
x²/(x − 2) = 4/(x − 2)
The excluded value is x = 2. Multiply both sides by x − 2 to get x² = 4. The candidates are x = −2 and x = 2. Check each against the original denominator:
- x = −2: both sides equal 4/(−4) = −1, so it is a solution.
- x = 2: the denominator is zero, so it is extraneous.
The solution set is {−2}.
You can automate the check with SymPy.
from sympy import symbols, Eq, solve
x = symbols('x')
# Solve x**2/(x - 2) = 4/(x - 2) by clearing the denominator
candidates = solve(Eq(x**2, 4), x) # [-2, 2]
valid = [c for c in candidates if (x - 2).subs(x, c) != 0]
print(valid) # [-2]The filter keeps a candidate only if the original denominator is nonzero there. For an equation with several denominators, test each one.
A full worked example
Solve:
1/(x − 1) + 1/(x + 1) = 2/(x² − 1)
Step 1. Factor x² − 1 as (x − 1)(x + 1). The excluded values are x = 1 and x = −1.
Step 2. The LCD is (x − 1)(x + 1).
Step 3. Multiply every term by the LCD:
(x + 1) + (x − 1) = 2
Step 4. Simplify: 2x = 2, so x = 1.
Step 5. The only candidate is x = 1, which is excluded. The equation has no solution.
This outcome is normal. A rational equation can have no solutions at all. The step of combining the left side shows why. SymPy's together puts the sum over one denominator:
from sympy import symbols, together
x = symbols('x')
expr = 1/(x - 1) + 1/(x + 1)
print(together(expr)) # equivalent to 2*x/((x - 1)*(x + 1))The left side is 2x/((x − 1)(x + 1)), so the equation becomes 2x = 2 over the same denominator. That forces x = 1, which makes the denominator zero.
Two ways to clear denominators
You have two options, and they give the same answer.
| Method | How it works | Best when |
|---|---|---|
| Multiply by the LCD | Multiply every term on both sides by the LCD, then cancel | Several fractions with different denominators |
| Cross-multiply | For a/b = c/d, write a·d = c·b | Exactly one fraction on each side |
Cross-multiplying is a shortcut for multiplying by b·d. It carries the same risk of extraneous solutions, because b·d can be zero. It also may not use the smallest denominator, so the polynomial you get can have a higher degree than necessary.
Equations that become quadratic
Many rational equations reduce to a quadratic. Solve:
x/(x − 3) = 18/(x² − 9) + 2
Factor x² − 9 = (x − 3)(x + 3). The excluded values are x = 3 and x = −3. The LCD is (x − 3)(x + 3). Multiply every term, including the standalone 2:
x(x + 3) = 18 + 2(x − 3)(x + 3)
Expand: x² + 3x = 18 + 2x² − 18, which gives x² + 3x = 2x². Rearrange to x² − 3x = 0, so x(x − 3) = 0. The candidates are x = 0 and x = 3.
- x = 3 is excluded, so it is extraneous.
- x = 0 gives 0/(−3) = 0 on the left, and 18/(−9) + 2 = 0 on the right. It is a solution.
The solution set is {0}.
Common errors
- Forgetting to multiply every term. A term with no fraction, like the 2 above, must also be multiplied by the LCD.
- Checking against the wrong equation. Test candidates against the original denominators, not the cleared polynomial. The polynomial has no denominators to fail.
- Cancelling terms instead of factors. In (x + 3)/(x − 2), you cannot cancel the x. Only factors that multiply the whole numerator and the whole denominator cancel.
- Dropping an excluded value early. If you cancel (x − 3) from both sides, you lose the record that x = 3 was forbidden. Write the excluded values first.
- Assuming a solution exists. If every candidate is excluded, the answer is "no solution."
Connection to rational functions
Solving f(x) = k for a rational function f is the same procedure, and the excluded values are the points outside the domain of f. Setting f(x) = 0 only requires the numerator to be zero, but the zero must also keep the denominator nonzero. The next chapters use this idea to find zeros, holes and asymptotes.
Exercises
Exercise
Solve 3/(x − 4) = 12/(x² − 16). State the excluded values, find the candidate or candidates, and say which are extraneous.
Show answer
Factor x² − 16 = (x − 4)(x + 4). The excluded values are x = 4 and x = −4. The LCD is (x − 4)(x + 4). Multiplying both sides by it gives 3(x + 4) = 12, so 3x + 12 = 12 and x = 0. Since 0 is not excluded, it is a solution. Check: 3/(−4) = −3/4, and 12/(0 − 16) = −3/4. The solution set is {0}, and there are no extraneous solutions.
Exercise
Solve x/(x − 5) = 5/(x − 5) + 3. Identify any extraneous solution.
Show answer
The excluded value is x = 5. Multiply every term by x − 5: x = 5 + 3(x − 5). This gives x = 5 + 3x − 15, so x = 3x − 10, so −2x = −10 and x = 5. This candidate is the excluded value, so it is extraneous. The equation has no solution.
Exercise
Solve 1/(x − 2) = x/(x − 2) − 2/(x + 1)... then explain in one sentence why cross-multiplying is risky for equations like this one.
Show answer
Multiply every term by the LCD (x − 2)(x + 1), with excluded values x = 2 and x = −1: (x + 1) = x(x + 1) − 2(x − 2). Expand the right side: x² + x − 2x + 4 = x² − x + 4. So x + 1 = x² − x + 4, which gives x² − 2x + 3 = 0. The discriminant is 4 − 12 = −8, which is negative, so there are no real solutions. Cross-multiplying is risky here because it multiplies by a product of denominators that can be zero, which can add extraneous candidates, and it does not work directly when there are more than two fractions.