Sub topic 9
Solving Modulus Equations
This chapter assumes you know the definition of |x| as distance from zero and the basic modulus properties from the previous chapters, and that you can solve linear and quadratic equations.
The three standard forms
Almost every modulus equation in CAT reduces to one of three forms.
| Form | Rule | Watch out for | Column | Column | Column | Column |
|---|---|---|---|---|---|---|
| \ | f(x)\ | = k, with k a constant | k < 0 gives no solution; k = 0 gives f(x) = 0; k > 0 gives f(x) = k or f(x) = -k | Negative right-hand side | ||
| \ | f(x)\ | = g(x) | Solve f(x) = g(x) and f(x) = -g(x), then keep only roots with g(x) ≥ 0 | Extraneous roots | ||
| \ | f(x)\ | = \ | g(x)\ | f(x) = g(x) or f(x) = -g(x) | No check needed |
Distance reading
|x - a| = k means "x is at distance k from a". So |x - 2| = 5 gives x = 2 ± 5, that is x = -3 or x = 7. When you have two moduli, |x - a| + |x - b| = b - a holds for every x in [a, b], because any point between a and b has distances to them that add up to the gap. For example, |x - 1| + |x - 5| = 4 has infinitely many solutions, all of 1 ≤ x ≤ 5. If the right side were less than 4, there would be no solution.
Worked example: an extraneous root
Solve |x - 4| = 2x + 1.
- Case f = g: x - 4 = 2x + 1, so x = -5. Then g(-5) = -9 < 0, so we reject it.
- Case f = -g: x - 4 = -2x - 1, so x = 1. Then g(1) = 3 ≥ 0, so we keep it.
Check: |1 - 4| = 3 = 2(1) + 1. The only solution is x = 1.
Verifying with code
from fractions import Fraction as F
candidates = [F(-5), F(1)]
for x in candidates:
print(x, abs(x - 4) == 2 * x + 1)
# -5 False
# 1 TrueQuadratic inside a modulus
For |x² - 5x| = 6, split the equation into two quadratics:
- x² - 5x - 6 = 0 gives x = 6 or x = -1
- x² - 5x + 6 = 0 gives x = 2 or x = 3
The right side is a positive constant, so all four roots are valid. When a question asks for the sum of the roots, the answer is 10.
Exercise
Solve |x + 3| = |2x - 1|.
Show answer
Set x + 3 = 2x - 1, which gives x = 4. Set x + 3 = -(2x - 1), which gives 3x = -2, so x = -2/3. Both are valid because both sides are moduli and no sign check is needed.
Exercise
How many real solutions does |2x - 3| = x - 5 have?
Show answer
None. From 2x - 3 = x - 5 you get x = -2, and the right side is then -7 < 0, so reject it. From 2x - 3 = -(x - 5) you get x = 8/3, and the right side is then -7/3 < 0, so reject it too.