The Modulus Function

A LevelAQAEdexcelOCR

The Modulus Function

The modulus of a number is the size of the number, whether it is negative or positive, for example the modulus of 66 is 66 and the modulus of 6-6 is 66.

A LevelAQAEdexcelOCR

Modulus Notation

The following notation is relevant to the modulus:

  • The modulus of a number, e.g. xx is written as x|x|.
  • Generally, x=x|x| = x for x0x geq 0, and x=x|x| = -x for x<0x <0
  • Functions also have a modulus: e.g. if f(x)=2f(x) = -2, then f(x)=2|f(x)| = 2
  • f(x)=f(x)|f(x)| = f(x) when f(x)0f(x) geq 0 and f(x)=f(x)|f(x)| = -f(x) when f(x)<0f(x)<0
  • If the modulus is inside the function, e.g. f(x)f(|x|), then you apply the modulus to the xx-value before applying the function, i.e. f(4)=f(4)f(|-4|) = f(4)
A LevelAQAEdexcelOCR

Graphs of Modulus Functions – Straight Lines

There are 33 types of modulus graphs that you may be asked to draw:

  1. y=f(x)y = |f(x)| – all negative values of f(x)f(x) are made positive, by reflecting the negative section of the graph of f(x)f(x) in the xx-axis. This restricts the range to f(x)0|f(x)| geq 0 (or a subset within f(x)0|f(x)| geq 0, e.g. f(x)2|f(x)| geq 2.
  2. y=f(x)y = f(|x|) – the negative xx-values give the same result as the corresponding positive xx-values, so the graph of f(x)f(x) for x0x geq 0 is reflected in the yy-axis, for negative xx-values.
  3. y=f(x)y = |f(-x)| – the xx-values swap sign (i.e. from positive to negative of from negative to positive), so the graph of f(x)f(x) is reflected in the yy-axis. Then, all negative values of f(x)f(x) are made positive by reflecting the negative section of the graph of f(x)f(x) in the xx-axis. The range is restricted, as with y=f(x)y = |f(x)|.

The best and easiest way to draw these graphs is to plot the graph of y=f(x)y = f(x) first, and then reflect it in the appropriate axis or axes.

Example: For f(x)=2x1f(x) = 2x-1, sketch the graphs of

y=f(x)y=f(x)y=f(x)begin{aligned} y &= |f(x)| y &= f(|x|) y &= f|(-x)| end{aligned}

A LevelAQAEdexcelOCR
A LevelEdexcel

Graphs of Modulus Functions – Quadratics and Cubics etc.

For modulus graphs where the function is a quadratic or cubic etc. the same rules apply as for straight lines – however, sketching them will be a little bit harder.

Example: For f(x)=x22xf(x) = x^2-2x, sketch the graphs of

y=f(x)y=f(x)y=f(x)begin{aligned} y &= |f(x)| y &= f(|x|) y &= |f(-x)| end{aligned}

A LevelEdexcel

Solving Modulus Equations Graphically

To solve modulus equations of the form f(x)=n|f(x)| = n or f(x)=g(x)|f(x)| = |g(x)|, you can solve them graphically, using the following method:

Step 1: Sketch the graphs of y=f(x)y = |f(x)| and y=ny = n, on the same pair of axes.

Step 2: Work out the ranges of xx for which f(x)0f(x) geq 0 and f(x)<0f(x) < 0 from the graph.

e.g. f(x)0f(x) geq 0  for xax leq textcolor{red}{a} or xbx geq textcolor{blue}{b}   and   f(x)<0f(x) < 0  for a<x<btextcolor{red}{a} < x < textcolor{blue}{b}

Step 3: Use step 2 to write 22 new equations, one that holds for each range of xx:

f(x)=nf(x) = n   for xax leq textcolor{red}{a} or xbx geq textcolor{blue}{b}

f(x)=n– f(x) = n   for a<x<btextcolor{red}{a} < x < textcolor{blue}{b}

Step 4: Solve each equation in turn and check that the solutions are valid, and remove any that are outside the range of xx for that equation.

Step 5: Check that the solutions look correct, by looking at the graph.

Note: Use the same method for f(x)=g(x)|f(x)| = |g(x)|, by replacing nn with g(x)g(x).

A LevelAQAEdexcelOCR

Solving Modulus Equations Algebraically

For equations of the form f(x)=n|f(x)| = n and f(x)=g(x)|f(x)| = g(x) you can solve them algebraically instead of graphically – if you feel that you understand the topic well enough.

Example: Solve 2x+2=x+4|2x+2| = x+4

Step 1: Solve for positive values:

2x+2=x+4x=2begin{aligned} 2x + 2 &= x+4 textcolor{red}{x} &= textcolor{red}{2} end{aligned}

Step 2: Solve for negative values:

(2x+2)=x+43x=6x=2begin{aligned} -(2x + 2) &= x+4 3x &= -6 textcolor{red}{x} &= textcolor{red}{-2} end{aligned}

Step 3: Combine the solutions:

The solutions are x=2textcolor{red}{x = 2}  and  x=2textcolor{red}{x = -2}

 

For equations of the form f(x)=g(x)|f(x)| = |g(x)|, it is easier to do solve them algebraically, using the following rule:

“If a=b|a| = |b|, then a2=b2a^2 = b^2

So if f(x)=g(x)|f(x)| = |g(x)|, then [f(x)]2=[g(x)]2[f(x)]^2 = [g(x)]^2

 

Example: Solve x1=2x+3|x-1| = |2x+3|

Step 1: Square both sides:

x1=2x+3(x1)2=(2x+3)2begin{aligned} |x-1| &= |2x+3| (x-1)^2 &= (2x+3)^2 end{aligned}

Step 2: Expand and simplify:

x22x+1=4x2+12x+93x2+14x+8=0(3x+2)(x+4)=0begin{aligned} x^2 – 2x + 1 &= 4x^2 + 12x + 9 3x^2 + 14x + 8 &= 0 (3x+2)(x+4) &= 0 end{aligned}

Step 3: So, the solutions are:

x=23textcolor{red}{x = – dfrac{2}{3}}  and  x=4textcolor{red}{x = -4}

A LevelAQAEdexcelOCR

Note:

You can also solve modulus inequalities using these methods. The graphical method of solving inequalities will be helpful, since there will often be a quadratic involved. Another rule that will be helpful is:

xa<b    ab<x<a+b|x-a| < b , iff , a – b < x < a+b

A LevelAQAEdexcelOCR

Example 1: Solving Modulus Equations Graphically – Straight Lines

Solve 2x+3=x+2|2x+3| = x+2

[3 marks]

Step 1: Sketch the graphs of y=2x+3y = |2x+3| and y=x+2y = x+2 on the same pair of axes.

Step 2: Work out the ranges of xx for which f(x)0f(x) geq 0 and f(x)<0f(x) < 0 from the graph:

2x+302x+3 geq 0  for x32x geq – dfrac{3}{2}   and   2x+3<02x+3 < 0  for x<32x < – dfrac{3}{2}

Step 3: Use step 2 to write 22 new equations, one that holds for each range of xx:

(1)   2x+3=x+22x+3 = x+2   for x32x geq – dfrac{3}{2}

(2)   (2x+3)=x+2– (2x+3) = x+2   for x<32x < – dfrac{3}{2}

Step 4: Solve each equation in turn and check that the solution are valid, and remove any that are outside the range of xx for that equation.

Solving (1):  x=1x=-1  (this is valid since 132-1 geq – dfrac{3}{2})

Solving (2):  3x=5x=533x = -5 Rightarrow x = – dfrac{5}{3}  (this is valid since 53<32– dfrac{5}{3} < – dfrac{3}{2})

Step 5: Check that the solutions look correct, by looking at the graph. The two solutions appear to be correct.

A LevelAQAEdexcelOCR
A LevelEdexcel

Example 2: Solving Modulus Equations Graphically – Quadratics and Cubics etc.

Solve x24=3|x^2 – 4| = 3

[4 marks]

Step 1: Sketch the graphs of y=x24y = |x^2-4| and y=3y = 3 on the same pair of axes.

Step 2: Work out the ranges of xx for which f(x)0f(x) geq 0 and f(x)<0f(x) < 0 from the graph:

x240x^2 – 4 geq 0  for x2x leq -2  or  x2x geq 2

and   x24<0x^2 – 4 < 0  for 2<x<2-2 < x < 2

Step 3: Use step 2 to write 22 new equations, one that holds for each range of xx:

(1)   x24=3x^2 – 4 = 3   for x2x leq -2  or  x2x geq 2

(2)   (x24)=3– (x^2 – 4) = 3   for 2<x<2-2 < x < 2

Step 4: Solve each equation in turn and check that the solution are valid, and remove any that are outside the range of xx for that equation.

Solving (1):  x2=7x=7x^2 = 7 Rightarrow x = sqrt{7}  and  x=7x = – sqrt{7}  (this is valid since 72– sqrt{7} leq – 2  and  72sqrt{7} geq 2)

Solving (2):  x21=0x= 1x^2 – 1 = 0 Rightarrow x =  1  and  x=1x = -1  (this is valid since 11 and 1-1 both lie within 2<x<2-2 < x < 2)

Step 5: Check that the solutions look correct, by looking at the graph. The four solutions appear to be correct.

A LevelEdexcel

The Modulus Function Example Questions

Question 1: For the function f(x)=3x2+4x9f(x) = 3x^2 + 4x – 9, find the following:

a) f(2)f(-2)

b) f(2)|f(-2)|

c) f(2)f(|-2|)

d) f(2)-|f(2)|

[4 marks]

A Level AQAEdexcelOCR

a) f(2)=3(2)2+4(2)9=5f(-2) = 3(-2)^2 + 4(-2) – 9 = -5

 

b) f(2)=5=5|f(-2)| = |-5| = 5

 

c) f(2)=f(2)=3(2)2+4(2)9=11f(|-2|) = f(2) = 3(2)^2 + 4(2) – 9 = 11

 

d) f(2)=11=11– |f(2)| = – |11| = – 11

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 2:

a) For the function f(x)=3x3f(x) = 3x-3, xRx in mathbb{R}, sketch the graphs of:

i) y=f(x)y = |f(x)|

ii) y=f(x)y = f(|x|)

iii) y=f(x)y = |f(-x)|

b) Hence, or otherwise, solve the equation 3x3=32|3x – 3| = dfrac{3}{2}

[7 marks]

A Level AQAEdexcelOCR

a)i) The negative section needs to be reflected in the xx-axis:

ii) For the negative xx-values, reflect the line in the yy-axis:

iii) Reflect f(x)f(x) in the yy-axis, and then reflect the negative section in the xx-axis:

 

b)

Firstly, sketch the graphs of y=3x3y = |3x – 3| (using part a)i)) and y=32y = dfrac{3}{2} on the same pair of axes:

 

3x303x – 3 geq 0 when x1x geq 1  and  3x3<03x – 3 < 0 when x<1x < 1

 

So, we can form two equations:

 

(1)  3x3=323x – 3 = dfrac{3}{2}  for x1x geq 1

 

(2)  (3x3)=32-(3x-3) = dfrac{3}{2}  for x<1x < 1

 

Then, we can solve these:

 

Solving (1):  3x=92x=323x = dfrac{9}{2} Rightarrow x = dfrac{3}{2}  for x1x geq 1  (this is valid since 321dfrac{3}{2} geq 1)

 

Solving (2):  3x=32x=123x = dfrac{3}{2} Rightarrow x = dfrac{1}{2}  for x<1x < 1  (this is valid since 12<1dfrac{1}{2} < 1)

 

From looking at the graph, both solutions seem to be correct.

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 3: Solve the equation 2x3=x+42|-x-3| = x+4

[3 marks]

A Level AQAEdexcelOCR

2x3=x42|-x-3| = x-4

 

Therefore 2(x3)=x+42(-x-3) = x+4  or  2(x3)=x+4-2(-x-3) = x+4

 

Then, solve these:

2(x3)=x+42x6=x+43x=10x=103begin{aligned} 2(-x-3) &= x + 4 -2x – 6 &= x + 4 3x &= – 10 x &= – dfrac{10}{3} end{aligned}

 

2(x3)=x+42x+6=x+4x=2begin{aligned}-2(-x-3) &= x + 4 2x + 6 &= x + 4 x &= – 2 end{aligned}

So, x=103x = – dfrac{10}{3}  or  x=2x = – 2

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 4: Solve the equation 2x+4=2x+1|2x+4| = -2|x+1|

[3 marks]

A Level AQAEdexcelOCR

Actually, we need not do any calculation at all. On the left side of the equation, we have 2x+4|2x + 4|, which is defined to be always positive.

However, the right side of the equation is always negative (as we have 2-2 multiplied by an always-positive term).

We can conclude, then, that there could only be a solution if both graphs meet at the xx-axis.

However, this is not the case as the first graph touches the xx-axis at x=2x=-2 while the second graph touches the xx-axis at x=1x=-1.

Hence, there are no solutions.

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Question 5: Solve the equation 2x+2=x2|2x+2| = |x-2|

[4 marks]

A Level AQAEdexcelOCR

2x+2=x2(2x+2)2=(x2)24x2+8x+4=x24x+43x2+12x=0x2+4x=0x(x+4)=0begin{aligned} |2x+2| &= |x-2| (2x+2)^2 &= (x-2)^2 4x^2 + 8x + 4 &= x^2 – 4x + 4 3x^2 + 12x &= 0 x^2 + 4x &= 0 x(x+4) &= 0 end{aligned}

 

Hence, x=0x = 0  or  x=4x = -4

MME Premium Laptop

Save your answers with

MME Premium

Gold Standard Education

Additional Resources

Site Logo

Exam Tips Cheat Sheet

A Level
Site Logo

Formula Booklet

A Level

Specification Points Covered

B7 – Understand and use graphs of functions; sketch curves defined by simple equations including polynomials], the modulus of a linear function.
y=axy=dfrac{a}{x} and y=ax2y=dfrac{a}{x^2} (including their vertical and horizontal asymptotes);
interpret algebraic solution of equations graphically; use intersection points of graphs to solve equations
Understand and use proportional relationships and their graphs

The Modulus Function Worksheet and Example Questions