Sub topic 13
Equations Involving Modulus
Assume you can expand brackets, solve linear and quadratic equations, use square roots, and work with inequalities on a number line. These skills are needed because modulus equations often split into cases and may produce candidates that must be checked.
What modulus means
The modulus, or absolute value, of a number is its distance from zero. It is written with vertical bars:
- \(|5|=5\)
- \(|-5|=5\)
- \(|0|=0\)
Therefore, \(|x|=k\) means that \(x\) is \(k\) units from zero. If \(k>0\), there are two solutions:
x=k \quad \text{or} \quad x=-kIf \(k=0\), there is only one solution, \(x=0\). If \(k<0\), there is no real solution because a distance cannot be negative.
The basic case method
For an equation such as
|2x-3|=7the expression inside the modulus can equal \(7\) or \(-7\):
2x-3=7 \quad \text{or} \quad 2x-3=-7Solving gives:
x=5 \quad \text{or} \quad x=-2The general rule is:
|f(x)|=kbecomes
f(x)=k \quad \text{or} \quad f(x)=-kprovided \(k\geq 0\).
Modulus on both sides
If both sides are modulus expressions, use:
|f(x)|=|g(x)|This is equivalent to either
f(x)=g(x)or
f(x)=-g(x)For example:
|x-1|=|2x+3|Case 1:
x-1=2x+3 \implies x=-4Case 2:
x-1=-(2x+3) \implies 3x=-2 \implies x=-\frac23Both values satisfy the original equation.
Modulus with a variable on the other side
Consider:
|x-2|=x^2The right side is always non-negative, so the equation can be split safely:
x-2=x^2or
x-2=-x^2The first case gives:
x^2-x+2=0Its discriminant is \(1-8=-7\), so it has no real roots.
The second case gives:
x^2+x-2=0Thus:
(x+2)(x-1)=0so \(x=-2\) or \(x=1\). Substitution confirms that both work.
Common errors and CAT checks
| Error | Correct approach |
|---|---|
| Writing only \(f(x)=k\) | Also solve \(f(x)=-k\) |
| Accepting a negative right side | Reject it immediately if it represents a modulus |
| Squaring without checking | Substitute every candidate into the original equation |
| Losing signs while expanding | Keep each case on a separate line |
For a multiple-choice question, substitute answer options directly into the original modulus equation. This is often faster than solving both cases, especially when the options are simple.
def modulus_solutions_linear(a, b, k):
"""Return real solutions of |a*x + b| = k."""
if k < 0:
return []
if a == 0:
return [] if abs(b) != k else ["all real x"]
candidates = [(k - b) / a, (-k - b) / a]
return sorted(set(candidates))
print(modulus_solutions_linear(2, -3, 7)) # [-2.0, 5.0]Exercise
Solve |3x + 1| = 10.
Show answer
3x + 1 = 10 or 3x + 1 = -10, so x = 3 or x = -11/3.