HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Modulus Equations, Inequalities and Cubic Graphs
  1. 1Equations with a modulus
  2. 2Inequalities with a modulus
  3. 3Substitution, cubic graphs and cubic inequalities
  1. Mathematics
  2. /Modulus Equations, Inequalities and Cubic Graphs
  3. /Equations with a modulus

Course 21.2·Lesson 1 of 3

Equations with a modulus

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
Modulus Equations, Inequalities and Cubic Graphs
  1. 1Equations with a modulus
  2. 2Inequalities with a modulus
  3. 3Substitution, cubic graphs and cubic inequalities

Try the code and the simulations beside the lesson.

Distance from zero

The modulus ∣a∣|a|∣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∣|x - 3|∣x−3∣ is the distance of xxx from 333. So ∣x−3∣=5|x - 3| = 5∣x−3∣=5 means "xxx is 555 away from 333", and that happens at x=8x = 8x=8 and at x=−2x = -2x=−2.

The type ∣ax+b∣=c|ax + b| = c∣ax+b∣=c

For c≥0c \ge 0c≥0, the expression inside has two ways to reach a distance of ccc.

∣ax+b∣=cmeansax+b=c  or  ax+b=−c.\displaystyle |ax + b| = c \quad\text{means}\quad ax + b = c \ \text{ or } \ ax + b = -c.∣ax+b∣=cmeansax+b=c  or  ax+b=−c.

For ∣2x−3∣=7|2x - 3| = 7∣2x−3∣=7: 2x−3=72x - 3 = 72x−3=7 gives x=5x = 5x=5, and 2x−3=−72x - 3 = -72x−3=−7 gives x=−2x = -2x=−2. If c<0c < 0c<0 there is no solution, because a modulus is never negative. If c=0c = 0c=0 there is one solution.

The type ∣ax+b∣=cx+d|ax + b| = cx + d∣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|x + 1| = 2x - 4∣x+1∣=2x−4:

  1. Case 1: x+1=2x−4x + 1 = 2x - 4x+1=2x−4, so x=5x = 5x=5. The right side is 2×5−4=62 \times 5 - 4 = 62×5−4=6, which is allowed.
  2. Case 2: x+1=−(2x−4)x + 1 = -(2x - 4)x+1=−(2x−4), so 3x=33x = 33x=3 and x=1x = 1x=1. The right side is 2×1−4=−22 \times 1 - 4 = -22×1−4=−2, which is not allowed. We reject x=1x = 1x=1.

The only solution is x=5x = 5x=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∣|ax + b| = |cx + d|∣ax+b∣=∣cx+d∣

Two distances are equal when the insides are equal or opposite. For ∣2x−1∣=∣x+5∣|2x - 1| = |x + 5|∣2x−1∣=∣x+5∣:

  1. 2x−1=x+52x - 1 = x + 52x−1=x+5, so x=6x = 6x=6.
  2. 2x−1=−(x+5)2x - 1 = -(x + 5)2x−1=−(x+5), so 3x=−43x = -43x=−4 and x=−43x = -\dfrac{4}{3}x=−34​.

Both are solutions. There is no check to make, because both sides are moduli.

The type ∣ax2+bx+c∣=d|ax^2 + bx + c| = d∣ax2+bx+c∣=d

Again there are two equations, ax2+bx+c=dax^2 + bx + c = dax2+bx+c=d and ax2+bx+c=−dax^2 + bx + c = -dax2+bx+c=−d. Each is a quadratic, so solve each and keep only the real roots.

For ∣x2−2x−3∣=5|x^2 - 2x - 3| = 5∣x2−2x−3∣=5:

  1. x2−2x−3=5x^2 - 2x - 3 = 5x2−2x−3=5 gives x2−2x−8=0x^2 - 2x - 8 = 0x2−2x−8=0, so x=4x = 4x=4 or x=−2x = -2x=−2.
  2. x2−2x−3=−5x^2 - 2x - 3 = -5x2−2x−3=−5 gives x2−2x+2=0x^2 - 2x + 2 = 0x2−2x+2=0. Here b2−4ac=4−8<0b^2 - 4ac = 4 - 8 < 0b2−4ac=4−8<0, so there are no real roots.

The equation has two solutions, x=4x = 4x=4 and x=−2x = -2x=−2.

Solving by graph

Draw both sides as graphs. Each meeting point gives a solution, and its xxx-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|2x - 3| = x + 4∣2x−3∣=x+4 by cases, keeps only the answers that work, and checks them by trying many numbers.

Read it first. Then run it. How many solutions are there?

1. Change right to return x - 2, and the candidates to [Fraction(1), Fraction(5, 3)]. Do they still work?

2. Why does the scan find the same numbers as the two cases?

Common mistakes

  • Forgetting the second case. A modulus equation usually has two cases.
  • Not checking cx+d≥0cx + d \ge 0cx+d≥0. The type ∣ax+b∣=cx+d|ax + b| = cx + d∣ax+b∣=cx+d can give an extra candidate that fails.
  • Solving ∣x∣=−3|x| = -3∣x∣=−3. A modulus is never negative, so there is no solution.
  • Splitting a sum. ∣a+b∣|a + b|∣a+b∣ is not ∣a∣+∣b∣|a| + |b|∣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|ax + b| = c∣ax+b∣=c with c≥0c \ge 0c≥0: solve ax+b=cax + b = cax+b=c and ax+b=−cax + b = -cax+b=−c.
  • ∣ax+b∣=cx+d|ax + b| = cx + d∣ax+b∣=cx+d: solve both cases, then reject any answer with cx+d<0cx + d < 0cx+d<0.
  • ∣ax+b∣=∣cx+d∣|ax + b| = |cx + d|∣ax+b∣=∣cx+d∣: solve ax+b=cx+dax + b = cx + dax+b=cx+d and ax+b=−(cx+d)ax + b = -(cx + d)ax+b=−(cx+d).
  • ∣f(x)∣=d|f(x)| = d∣f(x)∣=d: solve f(x)=df(x) = df(x)=d and f(x)=−df(x) = -df(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.

  1. Solve ∣x+2∣=9|x + 2| = 9∣x+2∣=9.
  1. How many real solutions has ∣x−1∣=−4|x - 1| = -4∣x−1∣=−4?
  1. Solve ∣2x−1∣=x+4|2x - 1| = x + 4∣2x−1∣=x+4. Check both candidates.
  1. Solve ∣x+1∣=∣2x−7∣|x + 1| = |2x - 7|∣x+1∣=∣2x−7∣.
  1. Solve ∣x2−4x∣=5|x^2 - 4x| = 5∣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.
No payment. You can leave at any time.

Problems (3)

A technician says that a rescaled reading is exactly nine units away from its target, and writes…Easy · High School (9–10) · by StemPy Lab
Two pupils solve the equation below. One keeps both candidates, and the other tests each candidate…Medium · High School (9–10) · by StemPy Lab
A pupil draws the graph of the modulus of a quadratic together with a horizontal line, and wants…Hard · High School (9–10) · by StemPy Lab
Next: lesson 2Inequalities with a modulus
← Modulus Equations, Inequalities and Cubic Graphs
← PreviousInequalities with a modulus →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

Modulus equations by casesPython Lab · by StemPy Lab