The modulus function

The modulus function

Spec B7 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The modulus ∣a∣|a| is the distance from zero, so it is never negative; the range of y=∣ax+b∣y=|ax+b| is y≥0y\ge0.
  • The graph of y=∣ax+b∣y=|ax+b| is a V: reflect the part of y=ax+by=ax+b below the xx-axis.
  • The vertex is (−ba,0)\left(-\frac ba,0\right) and the yy-intercept is ∣b∣|b|.
  • To solve ∣ax+b∣=f(x)|ax+b|=f(x), solve each branch and check each answer lies in its interval.
  • The line y=ky=k meets y=∣ax+b∣y=|ax+b| twice if k>0k>0, once if k=0k=0, never if k<0k<0.

What the modulus does

The modulus of a number is its distance from zero, so it is never negative. Negative inputs are made positive.

∣a∣=a|a|=a if a≥0a\ge0 and ∣a∣=−a|a|=-a if a<0a<0. For example ∣5∣=5|5|=5 and ∣−5∣=5>0|-5|=5>0.

For y=∣ax+b∣y=|ax+b|, y=ax+by=ax+b when ax+b≥0ax+b\ge0 and y=−(ax+b)y=-(ax+b) when ax+b<0ax+b<0. The output is always ≥0\ge0, so the range is y≥0y\ge0.

−4−3−2−11234−11234xy(0, 0)y = |x|y = x
y = |x| is y = x (dashed) with the negative part reflected.

What is the value of ∣3−8∣|3-8|?

Sketching a modulus graph

Sketch the line, keep the part on or above the xx-axis, and reflect the part below it in the xx-axis.

The result is a V-shape whose lowest point, the vertex, lies on the xx-axis at (−ba,0)\left(-\frac ba,0\right). The two branches have gradients aa and −a-a.

Mark where the line y=ax+by=ax+b crosses both axes before reflecting.

−6−4−22462468xyy = |ax + b|
Change a and b: the vertex always stays on the x-axis.

Where is the vertex of y=∣3x−12∣y=|3x-12|?

Key features

The vertex, yy-intercept, line of symmetry and piecewise form describe a modulus graph completely.

The vertex is where ax+b=0ax+b=0. The yy-intercept is ∣b∣|b| (put x=0x=0). The line of symmetry is the vertical line x=−bax=-\frac ba. One branch is y=ax+by=ax+b, the other y=−(ax+b)y=-(ax+b), joined at the vertex.

y=∣2x−6∣y=|2x-6| has vertex (3,0)(3,0), yy-intercept 66, symmetry line x=3x=3, and equals 2x−62x-6 for x≥3x\ge3, 6−2x6-2x for x<3x<3.

−2−112345678246810xyx = 3(3, 0)(0, 6)y = |2x − 6|
y = |2x − 6| with its vertex, y-intercept and line of symmetry x = 3.

What is the yy-intercept of y=∣x+7∣y=|x+7|?

A curve and a line

Solve each branch separately, and check each solution lies in the interval for its branch.

The curve y=∣2x−5∣y=|2x-5| has vertex (52,0)\left(\frac52,0\right) and yy-intercept (0,5)(0,5). To find where it meets y=x+1y=x+1, solve each branch, then check each solution.

−2−1123456782468xy(5/2, 0)(4/3, 7/3)(6, 7)y = |2x − 5|y = x + 1
y = |2x − 5| and y = x + 1 meet at (4/3, 7/3) and (6, 7).

Worked example

Solve ∣2x−5∣=x+1|2x-5|=x+1.

Solve ∣x−2∣=4|x-2|=4.

Counting intersections

The horizontal line y=ky=k meets the V twice if k>0k>0, once if k=0k=0 and never if k<0k<0.

For a sloping line y=mx+cy=mx+c with ∣m∣<∣a∣|m|<|a|, the line meets the V twice when it passes above the vertex, once through the vertex and never below. Substituting the vertex into the line gives the boundary value.

For y=x+ky=x+k against y=∣2x−5∣y=|2x-5|, the line passes through the vertex when 0=52+k0=\frac52+k, so k=−52k=-\frac52.

−2−11234567−22468xyy = |2x − 5|y = k
Move the line y = k up and down and count the intersections with y = |2x − 5|.

How many solutions does ∣3x+1∣=−2|3x+1|=-2 have?

Try an exam question

Solve ∣3x−1∣=x+5|3x-1|=x+5.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

State the coordinates of the vertex of the graph.

1 mark, marked against the mark scheme

Revision notes