The modulus function

The modulus function

Spec 2.7 · Edexcel A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The modulus ∣a∣|a| is the non-negative size of aa, so ∣f(x)∣|f(x)| is never negative.
  • The graph of y=∣ax+b∣y=|ax+b| is V-shaped, with its vertex on the xx-axis at x=−bax=-\dfrac ba.
  • To solve ∣ax+b∣=c|ax+b|=c use two cases: ax+b=cax+b=c and ax+b=−cax+b=-c.
  • Check answers in the original equation: a case answer is rejected if it makes the right-hand side negative.
  • ∣x−p∣<c|x-p|<c gives one interval; ∣x−p∣>c|x-p|>c gives two outer regions.

The modulus and its graph

Reflect the part of the line below the xx-axis upwards to get a V-shape with its vertex on the xx-axis.

The modulus keeps f(x)f(x) when f(x)≥0f(x)\ge0 and changes its sign when f(x)<0f(x)<0, so it is never negative. For example ∣−5∣=5|-5|=5.

Sketch y=ax+by=ax+b first, then reflect the negative part. The vertex is where ax+b=0ax+b=0, at x=−bax=-\dfrac ba, and the arms have gradients ±a\pm a.

−3−2−11234−11234567xy(½, 0)(0, 1)(−2, 5)y = |2x − 1|y = 2x − 1
y = |2x − 1| is y = 2x − 1 (dashed) with the negative part reflected up.

What is the vertex of y=∣3x+6∣y=|3x+6|?

Solving |ax + b| = c

For c>0c>0 there are two cases, ax+b=cax+b=c and ax+b=−cax+b=-c.

Solve each case separately. A horizontal line y=cy=c meets the V-shape twice when c>0c>0, once when c=0c=0 and never when c<0c<0, because a modulus is never negative.

−3−2−11234−11234567xy(−1, 3)(2, 3)y = |2x − 1|y = 3
The line y = 3 meets the V-shape twice, at x = −1 and x = 2.

Worked example

Solve ∣2x−1∣=3|2x-1|=3.

c > 0

  • Two solutions
  • ax + b = c or ax + b = −c

c = 0

  • One solution
  • ax + b = 0

c < 0

  • No solution
  • A modulus is never negative

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

Solving |ax + b| = cx + d

Solve both cases, then substitute each answer back, because a solution is invalid if it makes the right-hand side negative.

The two cases are ax+b=cx+dax+b=cx+d and ax+b=−(cx+d)ax+b=-(cx+d).

A sketch of both graphs shows how many solutions to expect. Each answer must be checked in the original equation, because a modulus can never equal a negative number. Rejected answers are called an extraneous solution.

−1−0.50.511.522.53−11234xy(⅓, ⅓)(1, 1)y = |2x − 1|y = x
|2x − 1| = x: the line y = x meets the V at x = ⅓ and x = 1.

Worked example

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

Worked example: a rejected answer

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

Why must you check answers when solving ∣x∣=2x−3|x|=2x-3?

Modulus inequalities

∣ax+b∣<c|ax+b|<c is a single interval; ∣ax+b∣>c|ax+b|>c is two outer regions joined by "or".

For c>0c>0: ∣ax+b∣<c|ax+b|<c means −c<ax+b<c-c<ax+b<c, and ∣ax+b∣>c|ax+b|>c means ax+b>cax+b>c or ax+b<−cax+b<-c.

To compare with a line, find the intersections and read the graph. For ∣3x−6∣<x+2|3x-6|<x+2 the intersections are x=1x=1 and x=4x=4 and the V is below the line between them, so 1<x<41<x<4. You can also square both sides, since both are non-negative.

−4−3.5−3−2.5−2−1.5−1−0.500.511.522.53-22/3

Worked example

Solve ∣3x+2∣<4|3x+2|<4.

Which describes the solution of ∣x−1∣<2|x-1|<2?

Counting solutions graphically

Compare the vertex (2,0)(2,0) with the line y=x+ky=x+k: below the line gives two solutions, on it one, above it none.

The line has gradient 11, smaller than the arms’ gradients ±3\pm3. So the line meets the V twice when the vertex is below it (k>−2k>-2), once when the vertex is on it (k=−2k=-2) and not at all when the vertex is above it (k<−2k<-2).

The case solutions are x=k+62x=\dfrac{k+6}{2} and x=6−k4x=\dfrac{6-k}{4}.

−3−2−112345678−224681012xy(2, 0)y = |3x − 6|y = x + k
Move k and count the intersections of y = |3x − 6| with y = x + k.

How many solutions does ∣3x−6∣=x−5|3x-6|=x-5 have?

Try an exam question

Solve ∣3x−6∣=x+2|3x-6|=x+2.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

What is the value of f(−2)f(-2)?

1 mark, marked against the mark scheme

Revision notes