2.1 The Modulus Function
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: the modulus of a number, graphs of y = |ax + b| and solving modulus equations. 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
- Understand and use the notation |x| for the modulus of x
- Sketch graphs of the form y = |ax + b|, giving the coordinates of the vertex and y-intercept
- Solve equations of the form |ax + b| = cx + d using a sketch and algebra
- Solve equations of the form |ax + b| = |cx + d|
- Check solutions and reject any that do not work in the original equation
Key words
- Modulus: The size of a number, ignoring its sign. |−6| = 6 and |6| = 6. Also called the absolute value.
- Vertex: The corner point of the V-shaped graph y = |ax + b|. It lies on the x-axis where ax + b = 0.
- Reflect: To flip a graph in a line. For y = |ax+b|, the part below the x-axis is reflected in the x-axis.
- Reject: To throw out a value that comes from the algebra but does not satisfy the original equation.
The modulus of a number
The modulus of a real number x, written |x|, is its distance from 0 on the number line. Distances are never negative, so |x| ≥ 0 for every x.
Key fact: |x| = x when x ≥ 0 |x| = −x when x < 0
The second line looks odd at first, but if x is negative then −x is positive. For example, |−5| = −(−5) = 5. Always work out what is inside the modulus bars first.
Worked example: evaluating a modulus function
f(x) = |3x − 8|. Find f(1), f(4) and f(−2).
f(1) = |3 − 8| = |−5| = 5
f(4) = |12 − 8| = |4| = 4
f(−2) = |−6 − 8| = |−14| = 14
Answer: f(1) = 5, f(4) = 4, f(−2) = 14
Graphs of y = |ax + b|
To sketch y = |ax + b|, first sketch the straight line y = ax + b. Any part of the line (drawn in the printable lesson notes) the x-axis has negative y-values, so the modulus reflects that part in the x-axis. The result is a V shape with its vertex on the x-axis.
Key facts: For y = |ax + b|: • the vertex is at (−b/a, 0) • the y-intercept is (0, |b|) • the two arms have gradients a and −a
Worked example: sketching
Sketch y = |3x + 6|, giving the coordinates of the points where it meets the axes.
Vertex: 3x + 6 = 0 gives x = −2, so the vertex is (−2, 0).
y-intercept: x = 0 gives y = |6| = 6.
The graph is a V with arms of gradient 3 (right) and −3 (left).
Answer: meets the x-axis at (−2, 0) and the y-axis at (0, 6)
Solving |ax + b| = cx + d
A sketch tells you how many solutions to expect. Then solve two linear equations: one where the inside of the modulus is positive, ax + b = cx + d, and one where it is negative, −(ax + b) = cx + d.
Worked example: two solutions
Solve |2x − 5| = x + 1
Positive case: 2x − 5 = x + 1, so x = 6
Negative case: −(2x − 5) = x + 1, so −2x + 5 = x + 1, 3x = 4, x = 4/3
Check: |7| = 7 and |−7/3| = 7/3, so both work.
Answer: x = 4/3 or x = 6
The right-hand side cx + d must not be negative, because a modulus can never equal a negative number. Always check each answer in the original equation.
Worked example: one value rejected
Solve |x + 3| = 2x
Positive case: x + 3 = 2x, so x = 3. Check: |6| = 6 = 2 × 3.
Negative case: −(x + 3) = 2x, so x = −1. Check: |2| = 2 but 2x = −2.
So x = −1 is rejected. The sketch agrees: there is only one intersection.
Answer: x = 3 only
Solving |ax + b| = |cx + d|
If two numbers have the same modulus, they are either equal or one is the negative of the other. So solve ax + b = cx + d and ax + b = −(cx + d). Both sides are now non-negative, so no answers need rejecting, but checking is still good practice.
Worked example: modulus on both sides
Solve |x − 4| = |2x + 1|
Equal: x − 4 = 2x + 1, so x = −5
Opposite: x − 4 = −(2x + 1), so 3x = 3, x = 1
Check: |−9| = |−9| and |−3| = |3|.
Answer: x = −5 or x = 1
You can also square both sides: (x − 4)² = (2x + 1)² gives 3x² + 12x − 15 = 0, which is 3(x + 5)(x − 1) = 0. Squaring is safe here because both sides are non-negative.
Common mistakes
- Writing |−a| = −a. The modulus is never negative: |−7| = 7.
- Putting the vertex of y = |ax + b| at x = b instead of x = −b/a.
- Forgetting to check answers to |ax + b| = cx + d. A value that makes cx + d negative must be rejected.
- Thinking |a + b| = |a| + |b|. Try a = 3, b = −5: |−2| = 2 but |3| + |−5| = 8.
Revision questions
Try these, then check your answers below each one.
Question 1. Evaluate |3 − 11| − |−4|.
Answer: 4
Working: |3 − 11| = |−8| = 8 and |−4| = 4, so the answer is 8 − 4 = 4.
Question 2. What are the coordinates of the vertex of the graph of y = |4x − 10|? (Choose from: (2.5, 0); (−2.5, 0); (10, 0); (0, 10).)
Answer: (2.5, 0)
Working: 4x − 10 = 0 gives x = 2.5, so the vertex is (2.5, 0).
Question 3. f(x) = |2x − 9|. Find f(−3).
Answer: 15
Working: f(−3) = |−6 − 9| = |−15| = 15.
Related lessons
- Previous lesson: 1.5 Algebraic Division
- Next lesson: 2.2 Functions and Mappings
- In this chapter: 2.3 Composite Functions
- In this chapter: 2.4 Inverse Functions
- In this chapter: 2.5 y = |f(x)| and y = f(|x|)
Continue in the full course
This lesson is section 2.1 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.