Worked Example · Equations, Inequalities and Graphs · Paper 1 · 4 marks

Sketching the Graph of a Modulus Function

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · Updated 19 August 2026

To sketch y=2x4y = |2x - 4|, first picture the line inside the modulus, then reflect anything below the xx-axis upward. The result is a V-shape with its vertex where the inside equals zero.

Sketch the graph of y=2x4y = |2x - 4|, showing the coordinates of the vertex and the axis intercepts, and state the range. [4]

The working

Step 1, find the vertex where the inside is zero: 2x4=0    x=2,so the vertex is (2,0).(M1)2x - 4 = 0 \implies x = 2, \quad \text{so the vertex is } (2, 0). \quad \text{(M1)}

Step 2, find the intercepts:

  • yy-intercept (x=0x = 0):  y=4=4\ y = |{-4}| = 4, giving (0,4)(0, 4).
  • xx-intercept: the vertex itself, (2,0)(2, 0). (A1)

Step 3, describe the two arms: y={2x4,x2 (gradient +2)42x,x<2 (gradient 2)y = \begin{cases} 2x - 4, & x \ge 2 \ (\text{gradient } +2)\\ 4 - 2x, & x < 2 \ (\text{gradient } -2)\end{cases} so the graph is a symmetric V opening upward. (B1)

Step 4, state the range: since 0|{\cdots}| \ge 0, y0.(B1)y \ge 0. \quad \text{(B1)}

Where the marks are won and lost

  • The vertex sits on the xx-axis at x=2x = 2, because the modulus can’t be negative. Marks are lost when the V is drawn dipping below the axis.
  • Label the yy-intercept (0,4)(0,4): substitute x=0x=0 into the modulus, giving 4=4|-4| = 4.
  • The two arms are mirror images, with gradients +2+2 and 2-2.

Common mistakes

  • Leaving the graph below the xx-axis (drawing the plain line y=2x4y = 2x - 4).
  • Putting the vertex at (0,4)(0,4) instead of (2,0)(2,0).
  • Stating the range as “all real yy” rather than y0y \ge 0.

Topic home: Equations, Inequalities & Graphs pillar. More: Worked examples.

Common questions

How do you sketch a modulus graph like y = |2x − 4|?
Sketch the line inside the modulus, then reflect any part below the x-axis up above it. The graph of y = 2x − 4 is a straight line crossing the x-axis at x = 2; the modulus flips the negative part upward, producing a V-shape with its vertex on the x-axis at that crossing point. The vertex sits where the inside equals zero, and the two arms have gradients that are negatives of each other. Getting the vertex position and the y-intercept right is what makes the sketch score full marks.

Keep going

See the teaching work on your own child. Then decide.

Every student starts with a 1-hour trial class taught by the vetted tutor your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. One hour at your tutor's rate (RM80–90/hr), no package and no deposit, and you decide afterwards whether to book a weekly slot. Online anywhere in Malaysia.