The modulus function

The modulus function

Spec 1.3 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • ∣x∣|x| is the distance from zero, so it is never negative: ∣x∣=x|x|=x for x⩾0x\geqslant0 and −x-x for x<0x<0.
  • y=∣ax+b∣y=|ax+b| is a V with its vertex on the xx-axis at x=−bax=-\frac ba.
  • y=∣f(x)∣y=|f(x)|: reflect the parts below the xx-axis in the xx-axis.
  • y=f(∣x∣)y=f(|x|): copy the x⩾0x\geqslant0 part and reflect it in the yy-axis.
  • Solve ∣f∣=g|f|=g with two cases, f=gf=g and f=−gf=-g, then check every answer.

The modulus function

The modulus is the distance from zero, so it is never negative.

The modulus (absolute value) of a number is its distance from zero.

The function y=∣ax+b∣y=|ax+b| gives a V-shaped graph. The vertex is where ax+b=0ax+b=0, at x=−bax=-\frac{b}{a}, with y=0y=0.

For y=∣2x−1∣y=|2x-1| the vertex is (12,0)\left(\frac12,0\right) and the yy-intercept is (0,1)(0,1). Each side of the vertex is a straight line with gradient ±a\pm a.

−3−2−112342468xy(½, 0)(0, 1)y = |2x − 1|
y = |2x − 1| is a V with its vertex on the x-axis at (½, 0).
  • ∣x∣|x|xx if x⩾0x\geqslant0, and −x-x if x<0x<0

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

|f(x)| and f(|x|)

For ∣f(x)∣|f(x)| flip the parts below the xx-axis; for f(∣x∣)f(|x|) copy the right-hand side onto the left.

For f(x)=x2−4x+3f(x)=x^2-4x+3 the minimum (2,−1)(2,-1) becomes a local maximum (2,1)(2,1) on y=∣f(x)∣y=|f(x)|.

For p(x)=x2−x−6p(x)=x^2-x-6, p(∣x∣)p(|x|) is symmetrical about the yy-axis with xx-intercepts ±3\pm3 and yy-intercept −6-6.

y = |f(x)|

  • Keep parts on or above the x-axis
  • Reflect parts below the x-axis in the x-axis
  • Changes y-values

y = f(|x|)

  • Keep the part for x ≥ 0
  • Discard the part for x < 0
  • Reflect the kept part in the y-axis
−112345−2−1123456xy(1, 0)(3, 0)(2, 1)(0, 3)y = |f(x)|y = f(x)
y = |x² − 4x + 3| (solid) keeps the parts above the x-axis and flips the part below it. The dashed curve is y = x² − 4x + 3.
−5−4−3−2−112345−8−6−4−2246810xy(3, 0)(−3, 0)(0, −6)y = p(|x|)
y = p(|x|) for p(x) = x² − x − 6 is symmetrical about the y-axis.

The graph of y=f(x)y=f(x) has a minimum at (3,−2)(3,-2). What happens to this point on y=∣f(x)∣y=|f(x)|?

Solving equations

Split into two cases, f(x)=g(x)f(x)=g(x) and f(x)=−g(x)f(x)=-g(x), then check each answer.

To solve ∣f(x)∣=g(x)|f(x)|=g(x) use the case method. Then check each answer, because g(x)g(x) must be non-negative.

Alternatively square both sides, but still check the roots in the original equation.

−4−2246824681012xy(6, 11)(−4/3, 11/3)y = |2x − 1|y = x + 5
y = |2x − 1| meets y = x + 5 at two points, so there are two solutions.

Worked example

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

Solve ∣x+1∣=3|x+1|=3.

Solving inequalities

Find the boundary values by solving the equation, then use a sketch or test value to pick the regions.

Solve the related equation to find the boundary values, then use a sketch or a test value to decide which regions satisfy the inequality.

For ∣2x−1∣>x+5|2x-1|>x+5 the boundaries are x=−43x=-\frac43 and x=6x=6. The V lies above the line outside them, so x<−43x<-\frac43 or x>6x>6.

For ∣3x−2∣<2x+1|3x-2|<2x+1 the boundaries are 15\frac15 and 33 and the V lies below the line between them, so 15<x<3\frac15<x<3.

Squaring is also valid for ∣a∣<∣b∣|a|<|b|, giving a2<b2a^2<b^2.

−4−3−2−1012345678-4/36

For ∣3x−2∣<2x+1|3x-2|<2x+1, is x=0x=0 a solution?

Counting solutions

Imagine the horizontal line y=ky=k crossing the graph of y=∣f(x)∣y=|f(x)| and count the intersections.

With p(x)=x2−x−6p(x)=x^2-x-6, the local maximum of ∣p(x)∣|p(x)| is 254\frac{25}{4}, so ∣p(x)∣=k|p(x)|=k has exactly four solutions when 0<k<2540<k<\frac{25}{4}.

Always give the coordinates of vertices and intercepts, and show both cases when solving.

−4−3−2−1123452468xy(−2, 0)(3, 0)(½, 25/4)y = |p(x)|y = 3
y = |x² − x − 6| with the line y = 3: four intersections. The local maximum is (½, 25/4).

How many solutions does ∣x2−x−6∣=7|x^2-x-6|=7 have?

Try an exam question

(a) Solve ∣3x−2∣=x+4|3x-2|=x+4. (b) Hence, or otherwise, solve ∣3x−2∣<x+4|3x-2|<x+4.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which gives all solutions of ∣2x−1∣=x+5|2x-1|=x+5?

1 mark, marked against the mark scheme

Revision notes