top of page

3.2 The Modulus Function

AQA A-level Maths Year 2 · 7357 · Chapter 3: Further Transformations of Graphs

What is in the full lesson (14 activities)

Every item below opens free in the course.

A free AQA A-level Maths Year 2 lesson for AQA A-level Mathematics (7357) from OBA School: the modulus of a number, graphs of y = |ax + b| and their transformations, and y = |f(x)| and y = f(|x|) (AQA 7357: B7). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Understand |x| as the size of x (its distance from 0) and evaluate expressions involving it
  • Sketch y = |ax + b|, giving the vertex and the intercepts
  • Sketch transformed graphs such as y = a|x − p| + q
  • Sketch y = |f(x)| and y = f(|x|) from the graph of y = f(x)
  • Write a modulus expression without modulus signs on different intervals

Key words

  • Modulus: |x| is the size of x, ignoring its sign: |x| = x if x ≥ 0 and |x| = −x if x < 0.
  • Vertex: The corner point of a V-shaped graph, where the expression inside the modulus is zero.
  • Piecewise: Defined by different rules on different intervals, as |x| is.
  • Reflect in the x-axis: Used for y = |f(x)|: any part of the graph (drawn in the printable lesson notes) the x-axis is flipped above it.
  • Reflect in the y-axis: Used for y = f(|x|): the part for x ≥ 0 is copied onto the left.

The modulus of a number

The modulus of a number is its distance from 0 on the number line, so it is never negative. |x − a| is the distance between x and a.

  • |x| ≥ 0 for all x; Example |−6| = 6, |0| = 0
  • |ab| = |a||b|; Example |(−3)(5)| = 15 = 3 × 5
  • |a + b| ≤ |a| + |b|; Example |4 + (−7)| = 3 but |4| + |−7| = 11
  • |x|² = x²; Example |−5|² = 25 = (−5)²

Worked example: evaluating

Evaluate (a) |2 − 9| + |−4| (b) |3 × (−2) + 1| (c) |−5| − |5|
(a) |−7| + |−4| = 7 + 4 = 11 (b) |−5| = 5 (c) 5 − 5 = 0

Answer: 11, 5 and 0. Work out the inside of each modulus first.

Graphs of y = |ax + b|

Draw y = ax + b, then reflect the part below the x-axis in the x-axis. The result is a V shape with its vertex on the x-axis where ax + b = 0, and arms of gradient a and −a.

Worked example: sketching y = |5 − 2x|

Vertex: 5 − 2x = 0 at x = 2.5, giving (2.5, 0).
y-intercept: |5| = 5, giving (0, 5).
For x > 2.5 the graph is y = 2x − 5; for x < 2.5 it is y = 5 − 2x.

Answer: A V shape with vertex (2.5, 0), through (0, 5), symmetrical about x = 2.5.

Transformations of y = |x|

y = a|x − p| + q is y = |x| translated p right, stretched vertically by |a| (and reflected if a < 0), then translated q up. Its vertex is (p, q).

Worked example: an upside-down V

Sketch y = 3 − 2|x + 1|, giving the coordinates of the vertex and the intercepts.
Vertex where x + 1 = 0: (−1, 3), a maximum because of the −2.
y-intercept: 3 − 2|1| = 1. x-intercepts: 2|x + 1| = 3, so x + 1 = ± 1.5, x = 0.5 or x = −2.5.

Answer: Maximum (−1, 3); intercepts (0, 1), (0.5, 0), (−2.5, 0).

The graphs of y = |f(x)| and y = f(|x|)

  • y = |f(x)|: keep the parts on or above the x-axis, and reflect any part below the x-axis in the x-axis.
  • y = f(|x|): keep the part for x ≥ 0, delete the part for x < 0, then reflect the kept part in the y-axis.

Worked example: a quadratic

f(x) = x² − 3x − 4 = (x + 1)(x − 4). Sketch y = |f(x)| and y = f(|x|).
f has roots −1 and 4, y-intercept −4, and minimum (1.5, −6.25) (complete the square).
|f(x)|: the part between −1 and 4 flips up; the minimum becomes a maximum at (1.5, 6.25) and the y-intercept becomes 4.
f(|x|): for x ≥ 0 the roots and turning point are 4 and (1.5, −6.25); reflecting gives roots ± 4 and minima (± 1.5, −6.25).

Answer: |f(x)| is never negative; f(|x|) is symmetrical about the y-axis.

Removing the modulus signs

Worked example: a sum of two moduli

Write y = |x − 1| + |x + 3| without modulus signs.
Critical values: x = 1 and x = −3.
x < −3: y = (1 − x) + (−x − 3) = −2x − 2. −3 ≤ x ≤ 1: y = (1 − x) + (x + 3) = 4. x > 1: y = 2x + 2.

Answer: The graph is flat (y = 4) between the critical values, with sloping arms either side.

Common mistakes

  • Thinking |a + b| = |a| + |b|. It is only true when a and b have the same sign (or one is 0).
  • Putting the vertex of y = |ax + b| at x = b/a instead of x = −b/a.
  • Mixing up |f(x)| (reflect below the x-axis) and f(|x|) (reflect the right half in the y-axis).
  • Forgetting that a minimum below the axis becomes a maximum on y = |f(x)|.

Revision questions

Try these, then check your answers below each one.

Question 1. Evaluate |3 − 11| − |−5|.

Answer: 3

Working: |−8| − |−5| = 8 − 5 = 3.

Question 2. How is the graph of y = |f(x)| obtained from the graph of y = f(x)? (Choose from: Any part below the x-axis is reflected in the x-axis; the rest is unchanged; The part to the left of the y-axis is reflected in the y-axis; The part for x < 0 is replaced by a reflection of the part for x > 0 in the y-axis; The whole graph is reflected in the x-axis.)

Answer: Any part below the x-axis is reflected in the x-axis; the rest is unchanged

Working: |f(x)| changes only negative outputs, flipping them above the axis. The third option describes y = f(|x|).

Question 3. True or false: |a − b| = |a| − |b| for all real numbers a and b.

Answer: False

Working: Counter example: a = 2, b = −3: |a − b| = 5 but |a| − |b| = −1.

Related lessons

Continue in the full course

This lesson is section 3.2 of our free AQA A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.

Continue lesson 3.2 in the free course →

 

 

 

 

 

 

 

bottom of page