Graphs of Modulus Functions
Sketch y = |f(x)| for straight lines, quadratics, cubics and trig curves by reflecting the part below the x-axis, and label every intercept.
In the exam for IGCSE Additional Maths 0606 · 6 real past-paper questions below
اقرأ هذا الدرس مشروحاً بالعربي ←
What the modulus does
A taxi charges you for distance, not direction. Drive 5 km north or 5 km south, and you pay for 5 km. The modulus does the same to a number: it keeps the size and drops the sign.
Rule
is read “mod x”. It is the size of x, so it is never negative: , and .
Formula
— any number. If it is already positive or zero, it stays. If it is negative, the minus sign in makes it positive: .
Now do this to a whole function. For each x, work out f(x) first. Then take its size.
Worked example
- 1
Let . Find at , and .
- 2
— The line is below the x-axis here. The modulus turns −6 into 6.
- 3
— On the x-axis, nothing changes.
- 4
— Above the x-axis, nothing changes either.
Rule
To draw : keep every part of that is on or above the x-axis. Reflect every part below the x-axis up, using the x-axis as a mirror.
Key idea
The two straight bars for modulus were introduced by the German mathematician Karl Weierstrass in 1841. Mathematicians still use his notation today.
Key idea
The graph of never goes below the x-axis. Every point on it has .
Modulus of a straight line
Start with the simplest case, a straight line. The part of the line below the x-axis flips up, so the graph becomes a V.
Steps
- 1
Find where the line crosses the x-axis: solve . This is the corner of the V.
Find the y-intercept: put , then take the modulus. It is .
Draw the line above the axis. Reflect the part below the axis. Label both intercepts on the sketch.
Worked example
- 1
Sketch .
- 2
— The corner of the V sits on the x-axis at this point.
- 3
— The y-intercept. The line was at −5, so the modulus makes it 5.
- 4
— One more point on the right arm, to check the direction.
- 5
— Draw the V through these points and write both coordinates on the sketch.
The right arm has gradient 2. The left arm is its mirror image, so it has gradient −2. The two arms are equally steep.
Common mistake
Drawing a rounded bottom. The modulus of a straight line has a sharp corner on the x-axis, not a curve.
Common mistake
Labelling the y-intercept as . The modulus makes every y-value positive, so it is .
Key idea
For : the corner is at the root of the line, and the y-intercept is .
Modulus of a quadratic
When the term is positive, the curve is a U and only the part between the roots is below the x-axis. That part flips up, so the bottom of the U becomes a hump.
Worked example
- 1
Sketch and label the intercepts.
- 2
— Factorise to find the roots.
- 3
— The graph meets the x-axis here. These points stay where they are.
- 4
— The y-intercept. The curve was at −8, so after the flip it is at 8.
- 5
— Complete the square: the lowest point of the U is (1, −9).
- 6
— The modulus reflects the lowest point up. It becomes the top of the hump.
Rule
At each root, the graph has a sharp point on the x-axis, called a cusp. Mark schemes look for these sharp points and for the labelled intercepts.
The sketch also tells you how many solutions has. Draw the flat line and count where it meets the graph. For :
: 2 solutions, at the two cusps.
: 4 solutions. The line cuts both outer arms and both sides of the hump.
: 3 solutions. The line just touches the top of the hump.
: 2 solutions, on the outer arms only.
Common mistake
Drawing smooth, round bottoms at the roots. The graph changes direction suddenly there, so draw sharp points.
Common mistake
Leaving the y-intercept at −8. It was below the axis, so it flips to 8.
Key idea
For : the roots become cusps and the lowest point of the U becomes a hump. If the term is negative, the two outer arms are below the axis and they flip up instead.
Modulus of a cubic
Cubics are given as a product of three brackets. Sketch the cubic first. Then reflect every part below the x-axis.
Steps
- 1
Set each bracket to 0 to find the three roots.
Put to find the y-intercept.
Find the sign of the term. Positive: the curve starts bottom left and ends top right. Negative: it starts top left and ends bottom right.
Reflect the parts below the x-axis. Label all four intercepts.
Worked example
- 1
Sketch .
- 2
— The three roots. They become cusps on the x-axis.
- 3
— The y-intercept is 6. It is already positive, so it stays.
- 4
— The x terms of the brackets multiply to plus x cubed, so the cubic starts bottom left.
- 5
— Here the cubic is below the x-axis, so these two parts are reflected.
- 6
— Label all four intercepts. The left arm now comes down from the top left to the cusp at −2, and between 1 and 3 there is a new hump.
Common mistake
Stopping the reflected left arm at the axis. It keeps going up to the top left of the sketch, because grows large as x goes far left.
Common mistake
Missing a minus inside a bracket. In the x term is , which changes the sign of . Count the minus signs before you decide where the curve starts.
Key idea
Cubic first, modulus second. Both ends of point upwards.
Modulus of a trig graph
Trig curves work the same way. Here f(x) will look like , or .
First find the highest and lowest values of the curve before the modulus. For , sin goes from −1 to 1, so the curve goes from up to .
Worked example
- 1
Sketch for .
- 2
— The lowest value is negative, so part of the curve is below the x-axis.
- 3
— The y-intercept. It is above the axis, so it stays.
- 4
— Where the curve crosses the x-axis. These become cusps.
- 5
— The lowest point flips up. Between the cusps there is now a small hump of height 1.
- 6
— The big peak was above the axis, so it is unchanged.
Rule
If the lowest value is 0 or more, the curve never goes below the axis and the modulus changes nothing. For example, is the same graph as .
For , the parts below the axis flip up as usual. The vertical asymptotes stay exactly where they were.
Common mistake
Reflecting the whole curve, or shifting it up. Only the parts below the x-axis move, and they are reflected.
Key idea
Find the top and bottom of the curve first. If the bottom is negative, that part flips up into a new hump.
Which sketch? Read the question
Every modulus sketch uses one idea. The question tells you which curve to draw first.
| You see | You do |
| Sketch | V shape. Corner at the root, y-intercept |
| Sketch | Roots become cusps, the lowest point flips into a hump |
| Sketch | Cubic shape from the sign of , then reflect |
| Sketch | Find and , then reflect what is below |
| “State the intercepts” | Write the coordinates of every axis crossing on the sketch |
| How many solutions of ? | Draw and count the crossings |
Common mistake
Forgetting to label the intercepts. A correct shape with no values written on it loses marks.
Key idea
Draw lightly first. Then keep the top, flip the bottom, and press hard on the final graph.
Practise graphs of modulus functions now
Interactive visual aids, then real past-paper questions marked on your working like the exam. Free to start.
Practise free on LemmaraReal past-paper questions on graphs of modulus functions
Each with a full worked solution.
Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.