The modulus of a number is its distance from zero. You solve modulus equations of four types, by algebra and by graph, and you check each answer.
about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Distance from zero
The modulus∣a∣ of a number is its distance from zero on the number line, so it is never negative. We met it for a function in the first course. Here we use it in equations.
The expression ∣x−3∣ is the distance of x from 3. So ∣x−3∣=5 means "x is 5 away from 3", and that happens at x=8 and at x=−2.
The type ∣ax+b∣=c
For c≥0, the expression inside has two ways to reach a distance of c.
∣ax+b∣=cmeansax+b=c or ax+b=−c.
For ∣2x−3∣=7: 2x−3=7 gives x=5, and 2x−3=−7 gives x=−2. If c<0 there is no solution, because a modulus is never negative. If c=0 there is one solution.
The type ∣ax+b∣=cx+d
The right side must be zero or more, because it equals a modulus. Solve the two cases, and then check each answer in the original equation.
For ∣x+1∣=2x−4:
Case 1: x+1=2x−4, so x=5. The right side is 2×5−4=6, which is allowed.
Case 2: x+1=−(2x−4), so 3x=3 and x=1. The right side is 2×1−4=−2, which is not allowed. We reject x=1.
The only solution is x=5. In the picture, the two graphs meet once.
A graph of the V-shaped curve y equals the modulus of x plus 1, in blue, and the straight red line y equals 2x minus 4. They meet at one point, (5, 6), marked in green. An open amber circle at x equals 1 on the red line, at y equals minus 2, shows a rejected candidate: there the red line is below the x-axis, so it cannot equal a modulus.
Another way is to square both sides. That gives the same two candidates, and you still need the check.
The type ∣ax+b∣=∣cx+d∣
Two distances are equal when the insides are equal or opposite. For ∣2x−1∣=∣x+5∣:
2x−1=x+5, so x=6.
2x−1=−(x+5), so 3x=−4 and x=−34.
Both are solutions. There is no check to make, because both sides are moduli.
The type ∣ax2+bx+c∣=d
Again there are two equations, ax2+bx+c=d and ax2+bx+c=−d. Each is a quadratic, so solve each and keep only the real roots.
For ∣x2−2x−3∣=5:
x2−2x−3=5 gives x2−2x−8=0, so x=4 or x=−2.
x2−2x−3=−5 gives x2−2x+2=0. Here b2−4ac=4−8<0, so there are no real roots.
The equation has two solutions, x=4 and x=−2.
Solving by graph
Draw both sides as graphs. Each meeting point gives a solution, and its x-coordinate is the answer. An accurate graph is expected. The graph also shows when a candidate fails, because the two curves do not meet there.
Practise with new numbers
Try it in Python
The program solves ∣2x−3∣=x+4 by cases, keeps only the answers that work, and checks them by trying many numbers.
Common mistakes
Forgetting the second case. A modulus equation usually has two cases.
Not checking cx+d≥0. The type ∣ax+b∣=cx+d can give an extra candidate that fails.
Solving ∣x∣=−3. A modulus is never negative, so there is no solution.
Splitting a sum.∣a+b∣ is not ∣a∣+∣b∣ in general.
Giving up when one quadratic has no real roots. The other quadratic may still have some.
Remember these
∣ax+b∣=c with c≥0: solve ax+b=c and ax+b=−c.
∣ax+b∣=cx+d: solve both cases, then reject any answer with cx+d<0.
∣ax+b∣=∣cx+d∣: solve ax+b=cx+d and ax+b=−(cx+d).
∣f(x)∣=d: solve f(x)=d and f(x)=−d, and keep the real roots.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Solve ∣x+2∣=9.
How many real solutions has ∣x−1∣=−4?
Solve ∣2x−1∣=x+4. Check both candidates.
Solve ∣x+1∣=∣2x−7∣.
Solve ∣x2−4x∣=5. How many real solutions are there?
References
Cambridge International, IGCSE Additional Mathematics 0606 syllabus (2025, 2026 and 2027), unit 4 Equations, inequalities and graphs.
OpenStax, Algebra and Trigonometry 2e, chapter 2 Equations and Inequalities, the section on absolute value equations.
Enroll free in Modulus Equations, Inequalities and Cubic Graphs
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.