2.5 y = |f(x)| and y = f(|x|)
A-level Maths Year 2 · Edexcel 9MA0 · Chapter 2: Functions and Graphs
A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: sketching the two modulus transformations of a curve and using them to solve equations. 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
- Sketch y = |f(x)| by reflecting the parts of y = f(x) below the x-axis
- Sketch y = f(|x|) by reflecting the part of y = f(x) for x ≥ 0 in the y-axis
- Find the images of given points under each transformation
- Use sketches to solve equations such as |f(x)| = k and count solutions
Key words
- Reflection: Flipping part of a graph in a line, such as the x-axis or the y-axis.
- Cusp: A sharp corner on a graph, such as where y = |f(x)| touches the x-axis at a root that y = f(x) crosses.
- Symmetrical: A graph is symmetrical about the y-axis if the left half is a mirror image of the right half.
- Key points: Roots, intercepts and turning points: the points you label on a sketch.
The graph of y = |f(x)|
|f(x)| is never negative. Any part of y = f(x) below the x-axis is reflected in the x-axis. Parts on or above the x-axis stay the same.
Worked example: sketching y = |f(x)|
f(x) = x² − 2x − 3. Sketch y = |f(x)|, labelling key points.
f(x) = (x − 3)(x + 1), so the roots are −1 and 3. The y-intercept of f is −3.
f(x) = (x − 1)² − 4, so f has a minimum at (1, −4).
Reflect the part between the roots in the x-axis.
Answer: roots (−1, 0), (3, 0); y-intercept (0, 3); local maximum (1, 4)
The graph of y = f(|x|)
For x ≥ 0, |x| = x, so f(|x|) = f(x). For negative x, f(|x|) = f(−x), which matches the value at the positive mirror point. So keep the part of y = f(x) where x ≥ 0, throw away the left-hand part, and reflect the right-hand part in the y-axis.
Worked example: sketching y = f(|x|)
f(x) = x² − 4x. Sketch y = f(|x|).
For x ≥ 0: f(x) = x(x − 4) has roots 0 and 4 and minimum (2, −4).
Reflect in the y-axis: roots at −4, minimum at (−2, −4).
Answer: W shape: roots −4, 0, 4; minimum points (± 2, −4)
Key fact: y = |f(x)|: reflect what is below the x-axis upwards. y = f(|x|): copy what is right of the y-axis onto the left.
Images of points
Under y = |f(x)|, the point (a, b) goes to (a, |b|). Under y = f(|x|), a point (a, b) with a > 0 gives two points (a, b) and (−a, b), and points with a < 0 are lost.
Worked example: tracking key points
y = f(x) has a maximum at (−2, 5), a minimum at (3, −4) and meets the y-axis at (0, −1).
y = |f(x)|: (−2, 5), (3, 4), (0, 1)
y = f(|x|): (3, −4), (−3, −4), (0, −1). The point (−2, 5) is lost.
Answer: as listed: a minimum below the axis becomes a maximum under |f(x)|
Solving equations
To solve |f(x)| = k (with k > 0), solve both f(x) = k and f(x) = −k. A sketch shows how many solutions to expect.
Worked example: four solutions
Solve |x² − 4| = 3
x² − 4 = 3 gives x² = 7, x = ±√7
x² − 4 = −3 gives x² = 1, x = ± 1
Answer: x = −√7, −1, 1, √7
Common mistakes
- Mixing up the two: |f(x)| changes y-values, f(|x|) changes x-values.
- For y = f(|x|), reflecting the left-hand part instead of the right-hand part.
- Drawing y = |f(x)| with rounded bottoms at the roots. Where f crosses the axis, |f| has a sharp cusp.
- Solving only f(x) = k and forgetting f(x) = −k.
Revision questions
Try these, then check your answers below each one.
Question 1. (3, −5) lies on y = f(x). Which point lies on y = |f(x)|? (Choose from: (3, 5); (−3, −5); (−3, 5); (3, −5).)
Answer: (3, 5)
Working: |f(3)| = |−5| = 5, so the point is (3, 5).
Question 2. (4, −1) lies on y = f(x). Which points must lie on y = f(|x|)? (Choose from: (4, −1) and (−4, −1); (4, 1) only; (−4, 1) only; (4, 1) and (−4, 1).)
Answer: (4, −1) and (−4, −1)
Working: f(|4|) = f(4) = −1 and f(|−4|) = f(4) = −1.
Question 3. f(x) = x² − 4x − 5. The graph of y = |f(x)| has a local maximum. What is its y-coordinate?
Answer: 9
Working: f(x) = (x − 2)² − 9 has minimum (2, −9). On y = |f(x)| this becomes a local maximum at (2, 9).
Related lessons
- Previous lesson: 2.4 Inverse Functions
- Next lesson: 2.6 Combining Transformations
- In this chapter: 2.1 The Modulus Function
- In this chapter: 2.2 Functions and Mappings
- In this chapter: 2.3 Composite Functions
Continue in the full course
This lesson is section 2.5 of our free 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. Go to the full A-level Maths Year 2 course.