Sub topic 13
Equations Involving Modulus
This chapter assumes you can solve linear equations, solve quadratics by factorisation or the formula, and reject extraneous roots (the previous chapter). Here you apply those skills to equations with absolute value, a frequent source of CAT questions where one missed case loses the mark.
What the modulus means
The modulus (absolute value) of a number x, written |x|, is its distance from 0 on the number line. It is never negative.
- |x| = x when x ≥ 0
- |x| = -x when x < 0
So |5| = 5 and |-5| = 5. Note that |x - a| is the distance between x and a. This distance reading often solves a problem faster than algebra.
Two facts that cause many errors:
- |x| = -x is not "x is negative". For x < 0, -x is positive. The expression -x only means "flip the sign of x".
- √(x²) = |x|, not x. For example √((-3)²) = 3.
The basic equation |f(x)| = k
Three cases decide the solution.
| Equation | Solutions | Column | Column |
|---|---|---|---|
| \ | f(x)\ | = k, with k > 0 | f(x) = k or f(x) = -k |
| \ | f(x)\ | = 0 | f(x) = 0 |
| \ | f(x)\ | = k, with k < 0 | none, since a modulus cannot be negative |
Example: solve |2x - 3| = 7.
- 2x - 3 = 7 gives x = 5.
- 2x - 3 = -7 gives x = -2.
Check x = -2: |2(-2) - 3| = |-7| = 7. Both roots work.
Example: |3x + 1| = -4 has no solution. Spotting this saves time, because no algebra is needed.
Two moduli equal: |f(x)| = |g(x)|
Two numbers have equal absolute value exactly when they are equal or negatives of each other. So
f(x) = g(x) or f(x) = -g(x).
Example: solve |x - 2| = |2x + 1|.
- x - 2 = 2x + 1 gives x = -3.
- x - 2 = -(2x + 1) gives 3x = 1, so x = 1/3.
Both roots are valid here, and no checking is needed. Squaring both sides gives the same pair of roots, because (x - 2)² = (2x + 1)² factors into the two cases above.
The general method: split into regions
When the modulus equals an expression containing x, such as |x - 3| = 2x - 1, you cannot just write ±k, because the right side may be negative. Use the critical point method:
- Find each critical point, where an expression inside a modulus equals zero.
- Mark the critical points on the number line. They divide it into regions.
- In each region, decide the sign of each expression inside a modulus and remove the bars accordingly.
- Solve the resulting linear (or quadratic) equation in that region.
- Keep only the solutions that lie in that region.
Example: solve |x - 3| = 2x - 1.
The critical point is x = 3.
- Region x ≥ 3: |x - 3| = x - 3. Then x - 3 = 2x - 1 gives x = -2. This is not in x ≥ 3, so reject it.
- Region x < 3: |x - 3| = 3 - x. Then 3 - x = 2x - 1 gives x = 4/3. This is in x < 3, so accept it.
Answer: x = 4/3. Check: |4/3 - 3| = 5/3 and 2(4/3) - 1 = 5/3. ✓.
Step 5 is where the work is. A root found in the wrong region is a false root, which is the modulus version of an extraneous root.
Several moduli
With more than one modulus, each critical point adds a boundary.
Example: solve |x - 1| + |x - 4| = 7.
Critical points are 1 and 4, giving three regions.
| Region | Equation without bars | Solution | In region? |
|---|---|---|---|
| x < 1 | (1 - x) + (4 - x) = 7 | x = -1 | Yes |
| 1 ≤ x < 4 | (x - 1) + (4 - x) = 7 | 3 = 7 | No solution |
| x ≥ 4 | (x - 1) + (x - 4) = 7 | x = 6 | Yes |
Answer: x = -1 or x = 6.
The middle row shows a useful pattern. For |x - a| + |x - b| with a < b, the sum is the constant b - a between a and b. Here that constant is 3. The sum can never be less than 3, so |x - 1| + |x - 4| = 2 has no solution, and = 3 is satisfied by every x from 1 to 4.
Distance interpretation
Read |x - a| as "the distance from x to a". Then:
- |x - 5| = 2 means x is 2 units from 5, so x = 3 or 7.
- |x - 1| + |x - 4| = 7 means the distances to 1 and 4 add to 7. Since 1 and 4 are 3 apart, x must lie 2 beyond one end: x = -1 or x = 6.
This reading is fast and lets you check answers mentally.
Quadratics inside a modulus
When the equation involves |x| and x², use the identity x² = |x|². Put t = |x| with t ≥ 0, solve the quadratic in t, and reject negative t.
Example: solve x² - 5|x| + 6 = 0.
Let t = |x|. Then t² - 5t + 6 = 0, so t = 2 or t = 3. Both are non-negative.
- |x| = 2 gives x = ±2.
- |x| = 3 gives x = ±3.
There are four solutions: -3, -2, 2, 3.
Example: solve x² + |x| - 6 = 0. Then t² + t - 6 = 0 gives t = 2 or t = -3. Since t = |x| cannot be -3, reject it. Then |x| = 2 and x = ±2.
The sign check on t is the extraneous root idea from the previous chapter, applied to the substitution.
Checking with code
This function solves a one-modulus linear equation by the region method and returns only valid roots. It handles |ax + b| = cx + d by testing both sign cases and verifying each candidate in the original equation.
def solve_abs_linear(a, b, c, d):
"""Solve |a*x + b| = c*x + d. Returns sorted list of real roots."""
candidates = set()
# Case 1: a*x + b = c*x + d
if a != c:
candidates.add((d - b) / (a - c))
# Case 2: a*x + b = -(c*x + d)
if a + c != 0:
candidates.add((-d - b) / (a + c))
# Keep only roots that satisfy the original equation
valid = [x for x in candidates
if abs(abs(a * x + b) - (c * x + d)) < 1e-9]
return sorted(valid)
# |x - 3| = 2x - 1 -> only x = 4/3
print(solve_abs_linear(1, -3, 2, -1))
# |2x - 3| = 7 -> x = -2 and x = 5
print(solve_abs_linear(2, -3, 0, 7))The verification line plays the role of step 5 in the region method. The root x = -2 from the first example is generated by case 1 and then removed by the check.
Common errors
- Writing |f(x)| = g(x) as f(x) = ±g(x) without checking g(x) ≥ 0 at each root.
- Forgetting that a modulus equal to a negative number has no solution.
- Dropping a region, usually the one at an end of the number line.
- Treating |a + b| as |a| + |b|. These are equal only when a and b have the same sign (or one is zero). In general |a + b| ≤ |a| + |b|.
- Writing the solution of |x| = k as x = k only.
Summary table of methods
| Situation | Fast method | Column | Column | Column | Column |
|---|---|---|---|---|---|
| \ | f\ | = k | f = ±k, if k ≥ 0 | ||
| \ | f\ | = \ | g\ | f = g or f = -g | |
| \ | f\ | = g(x) | Regions, or ± and check g ≥ 0 | ||
| Sum of moduli | Critical points and regions, or distances | ||||
| x² and \ | x\ | together | Put t = \ | x\ | , reject t < 0 |
Exercise
Solve |x - 2| + |x + 3| = 9 and state how many solutions there are.
Show answer
The critical points are -3 and 2. For x < -3: (2 - x) + (-x - 3) = 9 gives -2x - 1 = 9, so x = -5, which is in the region. For -3 ≤ x < 2: (2 - x) + (x + 3) = 5, which is never 9, so no solution. For x ≥ 2: (x - 2) + (x + 3) = 9 gives 2x + 1 = 9, so x = 4, which is in the region. There are two solutions: x = -5 and x = 4.
Exercise
Solve x² - 4|x| - 12 = 0.
Show answer
Let t = |x| ≥ 0. Then t² - 4t - 12 = 0, which factors as (t - 6)(t + 2) = 0, so t = 6 or t = -2. Reject t = -2. Then |x| = 6, so x = 6 or x = -6.
Exercise
For how many real values of x does |x - 5| = 3x + 1 hold? Give the values.
Show answer
Case x ≥ 5: x - 5 = 3x + 1 gives x = -3, not in the region. Case x < 5: 5 - x = 3x + 1 gives x = 1, which is in the region. Check: |1 - 5| = 4 and 3(1) + 1 = 4. There is exactly one solution, x = 1.