2.7 Solving Modulus Problems
A-level Maths Year 2 · Edexcel 9MA0 · Chapter 2: Functions and Graphs
A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: modulus inequalities, sketches of a|x − p| + q, and counting solutions. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Solve inequalities such as |ax + b| < c and |ax + b| > c
- Solve inequalities such as |ax + b| > cx + d using a sketch
- Solve |f(x)| ≤ |g(x)| by squaring both sides
- Write solution sets using "and", "or" and set notation
- Use the graph of y = a|x − p| + q to count solutions of an equation
Key words
- Inequality: A statement using <, >, ≤ or ≥. Its solution is usually an interval or two intervals.
- Set notation: For example {x: −2 < x < 5}, read "the set of x such that −2 < x < 5".
- Union: ∪ joins two sets: {x: x < 1} ∪ {x: x > 4} means x < 1 or x > 4.
- Critical values: The values where the two sides are equal. They mark the ends of the solution intervals.
Simple modulus inequalities
|x − a| is the distance from x to a. So |x − a| < b means x is within b of a, and |x − a| > b means x is more than b away from a.
Key fact: For b > 0: |X| < b ⟺ −b < X < b (one interval, "and") |X| > b ⟺ X < −b or X > b (two intervals, "or")
Worked example: an "and" inequality
Solve |2x − 3| < 7, giving your answer in set notation.
−7 < 2x − 3 < 7. Add 3: −4 < 2x < 10. Divide by 2: −2 < x < 5
Answer: {x: −2 < x < 5}
Worked example: an "or" inequality
Solve |4 − x| ≥ 3.
4 − x ≥ 3 gives x ≤ 1. 4 − x ≤ −3 gives x ≥ 7.
Answer: x ≤ 1 or x ≥ 7, that is {x: x ≤ 1} ∪ {x: x ≥ 7}
Inequalities with a line
For |ax + b| > cx + d, first solve the equation |ax + b| = cx + d (rejecting invalid values). Then use a sketch to see which side of each critical value the V is above the line.
Worked example: using a sketch
Solve |x − 2| > 2x − 1.
x − 2 = 2x − 1 gives x = −1, but then 2x − 1 = −3 < 0: reject.
−(x − 2) = 2x − 1 gives 3x = 3, x = 1. Check: |−1| = 1 = 2 − 1.
The sketch shows the V is above the line for x < 1. Test x = 0: 2 > −1 ✓.
Answer: x < 1
Modulus on both sides
Both sides of |f(x)| ≤ |g(x)| are non-negative, so you can square both sides without changing the inequality. This gives a quadratic inequality.
Worked example: squaring
Solve |x + 1| ≥ |2x − 4|.
(x + 1)² ≥ (2x − 4)², so x² + 2x + 1 ≥ 4x² − 16x + 16
0 ≥ 3x² − 18x + 15, so x² − 6x + 5 ≤ 0, (x − 1)(x − 5) ≤ 0
A positive quadratic is ≤ 0 between its roots.
Answer: 1 ≤ x ≤ 5
Counting solutions
The graph of y = a|x − p| + q is a V with vertex (p, q). If a < 0 it is upside down. The number of solutions of a|x − p| + q = k is the number of times the horizontal line y = k meets the graph.
Worked example: how many solutions?
f(x) = 4 − 2|x + 1|. Find the values of k for which f(x) = k has exactly two solutions, and solve f(x) = 1.5.
The maximum point is (−1, 4). A line y = k meets the graph twice when k < 4.
|x + 1| = (4 − 1.5)/2 = 1.25, so x = 0.25 or x = −2.25
Answer: k < 4; x = −2.25 or x = 0.25
Common mistakes
- Writing an "or" solution as one inequality, such as 7 < x < 1. This is impossible: write x < 1 or x > 7.
- Solving |ax + b| > cx + d without checking which critical values are valid.
- Squaring both sides when one side could be negative, such as in |x + 1| > x − 4.
- Forgetting to reverse the inequality when multiplying or dividing by a negative number.
Revision questions
Try these, then check your answers below each one.
Question 1. Solve |x − 3| < 5. (Choose from: −2 < x < 8; x < −2 or x > 8; −8 < x < 2; x < 8.)
Answer: −2 < x < 8
Working: −5 < x − 3 < 5, so −2 < x < 8.
Question 2. Solve |2x + 4| ≥ 6. (Choose from: {x: x ≤ −5} ∪ {x: x ≥ 1}; {x: −5 ≤ x ≤ 1}; {x: x ≤ −1} ∪ {x: x ≥ 5}; {x: x ≥ 1}.)
Answer: {x: x ≤ −5} ∪ {x: x ≥ 1}
Working: 2x + 4 ≥ 6 gives x ≥ 1. 2x + 4 ≤ −6 gives x ≤ −5.
Question 3. Hence, what is the solution of |x + 2| < 2x − 1? (Choose from: x > 3; x < 3; −1/3 < x < 3; x < −1/3 or x > 3.)
Answer: x > 3
Working: The line y = 2x − 1 is steeper than the V and crosses it once at x = 3. Test x = 4: 6 < 7 ✓. Test x = 0: 2 < −1 ✗. So x > 3.
Related lessons
- Previous lesson: 2.6 Combining Transformations
- Next lesson: 3.1 Arithmetic Sequences
- In this chapter: 2.1 The Modulus Function
- In this chapter: 2.2 Functions and Mappings
- In this chapter: 2.3 Composite Functions
Continue in the full course
This lesson is section 2.7 of our free A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 2 course.