2.16 · AHL · HL onlyPaper 1Paper 2

Modulus and related graph transformations

In a minute

The ∣f(x)∣\lvert f(x)\rvert keeps the size of f(x)f(x) and drops its sign. From the graph of ff you can sketch y=∣f(x)∣y = \lvert f(x)\rvert, y=f(∣x∣)y = f(\lvert x\rvert), y=1f(x)y = \frac{1}{f(x)}, y=[f(x)]2y = [f(x)]^{2} and y=f(ax+b)y = f(ax + b), using a few rules that move points. You then solve modulus equations and inequalities by splitting into cases, by squaring, or with your GDC.

You'll be able to

  • Sketch y=∣f(x)∣y = \lvert f(x)\rvert and y=f(∣x∣)y = f(\lvert x\rvert) from the graph of ff, with cusps, intercepts and asymptotes, and check them with graphing software.
  • Sketch y=1f(x)y = \frac{1}{f(x)} and y=[f(x)]2y = [f(x)]^{2} from the graph of ff, showing how asymptotes and turning points move.
  • Map the graph of y=f(x)y = f(x) onto y=f(ax+b)y = f(ax + b), in either order of transformations, and explore it with a dynamic graph.
  • Solve modulus equations and inequalities by cases, by squaring, or with a GDC, rejecting any false roots.
Before you start2 quick questions on what this builds on
Check yourself
The point (6,5)(6, 5) lies on the graph of y=f(x)y = f(x). Which point must lie on the graph of y=f(3x)y = f(3x)?
Check yourself
Solve x2<2x+8x^{2} < 2x + 8.

Revise first: 2.11 Transformations of graphs and 2.15 Function inequalities

Modulus graphs

The of a number is its size, without its sign. You write it with two vertical bars: ∣−5∣=5\lvert -5\rvert = 5 and ∣5∣=5\lvert 5\rvert = 5. On a number line, ∣x∣\lvert x\rvert is the distance from xx to 00.

So ∣x∣\lvert x\rvert is never negative. The graph of y=∣x∣y = \lvert x\rvert is a V shape with its corner at the origin.

Now put a function inside. In y=∣f(x)∣y = \lvert f(x)\rvert the modulus acts on the output. Where f(x)≥0f(x) \ge 0 nothing changes. Where f(x)<0f(x) < 0 the yy-coordinate changes sign, so that part of the graph is reflected in the xx-axis.

1. The xx-intercepts are . Where the graph crossed the axis with a non-zero gradient (the usual case), it now bounces off it at a sharp point, a . Where the graph only touched the axis, or crossed it with zero gradient as y=x3y = x^{3} does at the origin, it stays smooth.

2. on a reflected part are reflected too. A horizontal asymptote y=−2y = -2 becomes y=2y = 2 on that side. An y=mx+cy = mx + c becomes y=−mx−cy = -mx - c. Vertical asymptotes stay where they are.

3. No part of the graph is below the xx-axis, so the has no negative values.

In y=f(∣x∣)y = f(\lvert x\rvert) the modulus acts on the input instead. For x≥0x \ge 0, ∣x∣=x\lvert x\rvert = x, so the graph is the same as y=f(x)y = f(x). For x<0x < 0, f(∣x∣)=f(−x)f(\lvert x\rvert) = f(-x), which is the right-hand half mirrored.

The yy-intercept is invariant, and there is often a cusp on the yy-axis. Anything only to the left of the yy-axis disappears, including the xx-intercepts and vertical asymptotes there.

Two panels. Both show the dashed parabola y equals f of x, where f of x equals x squared minus 2x minus 3, with x-intercepts minus 1 and 3 and lowest point 1, minus 4. Left panel: y equals the modulus of f of x. The part between minus 1 and 3 is reflected above the x-axis, giving a hump with top 1, 4 and sharp corners at minus 1 and 3. Right panel: y equals f of the modulus of x. The right half of the parabola is kept and mirrored in the y-axis, giving a W shape with lowest points minus 1, minus 4 and 1, minus 4, a sharp corner at 0, minus 3 and x-intercepts minus 3 and 3. x y x y (1, 4) −1 3 y = |f(x)| (0, −3) −3 3 y = f(|x|)
Left: y=∣f(x)∣y = \lvert f(x)\rvert reflects the dip below the axis. Right: y=f(∣x∣)y = f(\lvert x\rvert) mirrors the right-hand half. Here f(x)=x2−2x−3f(x) = x^{2} - 2x - 3.
Worked exampleLet f(x)=x2−2x−3f(x) = x^{2} - 2x - 3. Sketch the graph of y=∣f(x)∣y = \lvert f(x)\rvert and write down the coordinates of its local maximum.

Try it first, then reveal one step at a time.

  1. Factorise: f(x)=(x+1)(x−3)f(x) = (x + 1)(x - 3). The xx-intercepts are −1-1 and 33, and the yy-intercept is −3-3.
Worked exampleFor the same ff, sketch y=f(∣x∣)y = f(\lvert x\rvert) and solve f(∣x∣)=0f(\lvert x\rvert) = 0.

Try it first, then reveal one step at a time.

  1. For x≥0x \ge 0 keep y=f(x)y = f(x): it starts at (0,−3)(0, -3), falls to (1,−4)(1, -4), then rises through (3,0)(3, 0).
Check yourself
Let f(x)=1−3xx+2f(x) = \frac{1 - 3x}{x + 2}. Which line is a horizontal asymptote of y=∣f(x)∣y = \lvert f(x)\rvert?

A rational function needs more care, because a vertical asymptote splits its graph into branches.

Worked exampleLet f(x)=3x−6x+2f(x) = \frac{3x - 6}{x + 2}, x≠−2x \ne -2. Sketch y=f(∣x∣)y = f(\lvert x\rvert) and find its range.

Try it first, then reveal one step at a time.

  1. Features of y=f(x)y = f(x): vertical asymptote x=−2x = -2, horizontal asymptote y=3y = 3, xx-intercept 22 and yy-intercept f(0)=−3f(0) = -3.
Check yourself
Let f(x)=(x−1)(x+2)(x−4)f(x) = (x - 1)(x + 2)(x - 4). How many solutions does the equation f(∣x∣)=0f(\lvert x\rvert) = 0 have?

Graphing software or your GDC checks a sketch like this quickly. Enter abs( around f(x)f(x), then around xx, and compare each graph with y=f(x)y = f(x).

Reciprocal and squared graphs

Both y=1f(x)y = \frac{1}{f(x)} and y=[f(x)]2y = [f(x)]^{2} change each yy-coordinate on its own, and the xx-coordinates never move. So you build each graph one height at a time.

Start with the reciprocal, which you met for y=1xy = \frac{1}{x} in 2.8. If f(x)=4f(x) = 4 then 1f(x)=14\frac{1}{f(x)} = \frac{1}{4}, and if f(x)=110f(x) = \frac{1}{10} then 1f(x)=10\frac{1}{f(x)} = 10. Large heights become small, and small heights become large.

1. The sign stays the same: y=1f(x)y = \frac{1}{f(x)} is above the xx-axis exactly where y=f(x)y = f(x) is.

2. Points with y=1y = 1 or y=−1y = -1 are .

3. Each root of ff gives a vertical of y=1f(x)y = \frac{1}{f(x)}.

4. Where f(x)→±∞f(x) \to \pm\infty, 1f(x)→0\frac{1}{f(x)} \to 0. At a vertical asymptote of ff, the new graph reaches the xx-axis, drawn with an open circle because ff has no value there. If f(x)→±∞f(x) \to \pm\infty as x→±∞x \to \pm\infty, the xx-axis becomes a horizontal asymptote.

5. A horizontal asymptote y=ky = k with k≠0k \ne 0 becomes y=1ky = \frac{1}{k}.

The dashed parabola y equals 2 x squared minus 8x plus 6 crosses the x-axis at 1 and 3 and has its lowest point at 2, minus 2. Its reciprocal y equals 1 over f of x is drawn solid in three branches, split by dashed vertical asymptotes x equals 1 and x equals 3. The outer branches lie above the x-axis, rise steeply next to the asymptotes and flatten towards the x-axis further out. The middle branch lies below the x-axis, falls steeply next to both asymptotes and has its highest point at 2, minus one half, directly above the parabola's lowest point. (2, −2) (2, −½) 1 3 x = 1 x = 3 x y y = f(x) y = 1/f(x)
f(x)=2x2−8x+6f(x) = 2x^{2} - 8x + 6 (dashed) and y=1f(x)y = \frac{1}{f(x)}. The roots 11 and 33 become asymptotes, and the minimum (2,−2)(2, -2) becomes the maximum (2,−12)\left(2, -\frac{1}{2}\right).
Worked exampleLet f(x)=2x2−8x+6f(x) = 2x^{2} - 8x + 6. Sketch y=1f(x)y = \frac{1}{f(x)} and write down the coordinates of its local maximum.

Try it first, then reveal one step at a time.

  1. Factorise: f(x)=2(x−1)(x−3)f(x) = 2(x - 1)(x - 3). Rule 3: the roots give the vertical asymptotes x=1x = 1 and x=3x = 3.
Worked exampleLet f(x)=4x−2x−3f(x) = \frac{4x - 2}{x - 3}, x≠3x \ne 3. Sketch y=1f(x)y = \frac{1}{f(x)} and find the equations of its asymptotes.

Try it first, then reveal one step at a time.

  1. Features of y=f(x)y = f(x): vertical asymptote x=3x = 3, horizontal asymptote y=4y = 4, root x=12x = \frac{1}{2} and yy-intercept 23\frac{2}{3}.
Check yourself
Let f(x)=x2−6x+13f(x) = x^{2} - 6x + 13. The graph of y=1f(x)y = \frac{1}{f(x)} has a local maximum. Where is it?

Now the square. Squaring keeps 00 and 11, turns −1-1 into 11, and makes every height positive or zero. Heights further than 11 from the axis move further away, and heights closer than 11 move closer.

1. The graph of y=[f(x)]2y = [f(x)]^{2} is never below the xx-axis.

2. Each root of ff stays a root, and the graph touches the axis there smoothly: a local minimum, not a .

3. A turning point (a,b)(a, b) of ff stays a turning point, at (a,b2)(a, b^{2}). If b<0b < 0, a minimum becomes a maximum and a maximum becomes a minimum. By the chain rule, ddx[f(x)]2=2f(x)f′(x)\frac{\mathrm{d}}{\mathrm{d}x}[f(x)]^{2} = 2f(x)f'(x), which is zero where f(x)=0f(x) = 0 or f′(x)=0f'(x) = 0.

4. Vertical asymptotes stay, with both sides going to +∞+\infty. A horizontal asymptote y=ky = k becomes y=k2y = k^{2}.

Compare y=∣f(x)∣y = \lvert f(x)\rvert. Neither graph goes below the axis, but ∣f(x)∣\lvert f(x)\rvert usually has a cusp where ff crosses the axis, while [f(x)]2[f(x)]^{2} is smooth there.

Worked exampleLet f(x)=x2−4f(x) = x^{2} - 4. Sketch y=[f(x)]2y = [f(x)]^{2} and write down the coordinates of its local maximum.

Try it first, then reveal one step at a time.

  1. f(x)=(x−2)(x+2)f(x) = (x - 2)(x + 2) has roots ±2\pm 2 and a local minimum at (0,−4)(0, -4).
Check yourself
Let f(x)=x3−3xf(x) = x^{3} - 3x. How many turning points does the graph of y=[f(x)]2y = [f(x)]^{2} have?

Two horizontal changes in one bracket

In 2.11 each bracket held one change, such as f(x+3)f(x + 3) or f(2x)f(2x). Now one bracket holds two, as in f(2x+3)f(2x + 3). Both are horizontal changes, so their order matters.

Ask which xx gives the old input. A point (p,q)(p, q) on y=f(x)y = f(x) moves to where ax+b=pax + b = p, which is x=p−bax = \frac{p - b}{a}. The yy-coordinate stays qq.

Learn this
(p,q) on y=f(x)  ⟼  (p−ba, q) on y=f(ax+b)(p, q) \text{ on } y = f(x) \;\longmapsto\; \left(\frac{p - b}{a},\, q\right) \text{ on } y = f(ax + b)

Subtract bb, then divide by aa. As transformations, that is a followed by a . You can also do the stretch first, as long as the translation changes to match.

If a<0a < 0, use the scale factor 1∣a∣\frac{1}{\lvert a\rvert} and add a in the yy-axis. The point rule x=p−bax = \frac{p - b}{a} still works.

Worked exampleThe point (4,7)(4, 7) is a local maximum of y=f(x)y = f(x). Where is the matching local maximum of y=f(2x−6)y = f(2x - 6)?

Try it first, then reveal one step at a time.

  1. The new graph takes the old input 44 where 2x−6=42x - 6 = 4.
Worked exampleThe curve y=f(x)y = f(x) has a vertical asymptote x=4x = 4 and a local minimum (−2,−3)(-2, -3). Let g(x)=f(12x+1)g(x) = f\left(\frac{1}{2}x + 1\right). Describe a sequence of transformations that maps the graph of ff onto the graph of gg, and find the local minimum of y=g(x)y = g(x).

Try it first, then reveal one step at a time.

  1. Here a=12a = \frac{1}{2} and b=1b = 1. Translate by (−10)\begin{pmatrix}-1\\0\end{pmatrix}, then stretch horizontally with scale factor 1a=2\frac{1}{a} = 2.

A dynamic graphing tool lets you watch this happen. Below, choose base x2x^{2}, then set the slider b to 22 and the slider c to −1.5-1.5. The widget writes y=(2(x+1.5))2y = (2(x + 1.5))^{2}, which is y=(2x+3)2y = (2x + 3)^{2}, and the point (1,1)(1, 1) lands on (−1,1)(-1, 1), as 1−32=−1\frac{1 - 3}{2} = -1 predicts.

Transform a graphDrag the sliders
−6−5−4−3−2−1123456−5−4−3−2−112345dashed: y = x²solid: image

y = x²

1
1
0
0

(1, 1) maps to (1.00, 1.00)

Dashed is the base curve, solid is the image. The open dot on the base lands on the filled dot.
Check yourself
Which sequence maps the graph of y=f(x)y = f(x) onto the graph of y=f(3x−6)y = f(3x - 6)?
Check yourself
The only xx-intercept of y=f(x)y = f(x) is at x=10x = 10. Find the xx-intercept of y=f(4x+2)y = f(4x + 2).

Solving modulus equations and inequalities

∣A∣=k\lvert A\rvert = k asks for the numbers at distance kk from 00. When k>0k > 0 there are two, kk and −k-k. That gives the first method.

Learn this
∣f(x)∣=k  ⟺  f(x)=k or f(x)=−k(k≥0)\lvert f(x)\rvert = k \iff f(x) = k \text{ or } f(x) = -k \qquad (k \ge 0)
Worked exampleSolve ∣2x−5∣=7\lvert 2x - 5\rvert = 7.

Try it first, then reveal one step at a time.

  1. Split into two cases: 2x−5=72x - 5 = 7 or 2x−5=−72x - 5 = -7.
Check yourself
Solve ∣3x+2∣=8\lvert 3x + 2\rvert = 8.

When the other side holds xx too, as in ∣f(x)∣=g(x)\lvert f(x)\rvert = g(x), split into the same two cases. A is never negative, so a solution must also make g(x)≥0g(x) \ge 0. Check every answer in the original equation.

Worked exampleSolve ∣x+1∣=2x−4\lvert x + 1\rvert = 2x - 4.

Try it first, then reveal one step at a time.

  1. Case 1: x+1=2x−4x + 1 = 2x - 4, so x=5x = 5.
The V-shaped graph y equals the modulus of x plus 1, with its corner at minus 1, 0, and the line y equals 2x minus 4. They meet once, at 5, 6. A dashed line continues the left arm of the V, y equals minus x minus 1, below the x-axis. It meets the line at 1, minus 2, marked with an open circle, which is not on the V. (5, 6) (1, −2) not on the V x y y = |x + 1| y = 2x − 4
The line meets the V once, at (5,6)(5, 6). The rejected value x=1x = 1 is where the line meets the dashed continuation of the left arm, which is not part of y=∣x+1∣y = \lvert x + 1\rvert.

When both sides are moduli, square both sides. Both sides are never negative, so squaring keeps an equation true and keeps an inequality the same way round.

Learn this
∣f(x)∣<∣g(x)∣  ⟺  [f(x)]2<[g(x)]2\lvert f(x)\rvert < \lvert g(x)\rvert \iff [f(x)]^{2} < [g(x)]^{2}

For a modulus compared with a positive number kk, the distance idea is quicker. Numbers less than kk from 00 lie between −k-k and kk, and numbers more than kk from 00 lie outside.

Learn this
∣f(x)∣<k  ⟺  −k<f(x)<k∣f(x)∣>k  ⟺  f(x)<−k or f(x)>k\lvert f(x)\rvert < k \iff -k < f(x) < k \qquad \lvert f(x)\rvert > k \iff f(x) < -k \text{ or } f(x) > k
Worked exampleSolve ∣x−3∣>∣2x+1∣\lvert x - 3\rvert > \lvert 2x + 1\rvert.

Try it first, then reveal one step at a time.

  1. Both sides are never negative, so square them: (x−3)2>(2x+1)2(x - 3)^{2} > (2x + 1)^{2}.
Check yourself
Solve ∣2x−1∣≤5\lvert 2x - 1\rvert \le 5.

On Paper 2, use your GDC when algebra can't find the . Graph both sides, with the modulus, and find where they meet. This is the method of 2.15, with part of one graph reflected.

Worked exampleUse your calculator to solve ∣ex−4∣<x+1\lvert \mathrm{e}^{x} - 4\rvert < x + 1. Give the end points to 3 s.f.

Try it first, then reveal one step at a time.

  1. Graph y=∣ex−4∣y = \lvert \mathrm{e}^{x} - 4\rvert and y=x+1y = x + 1. The first graph has a cusp where ex=4\mathrm{e}^{x} = 4, at x=ln⁡4=1.386…x = \ln 4 = 1.386\ldots.
Check yourself
The solution of ∣ln⁡x∣<3−x\lvert \ln x\rvert < 3 - x is a<x<ba < x < b. Use your calculator to find aa. Give your answer to 3 s.f.

Common mistakes

  • Rounding off the points where y=∣f(x)∣y = \lvert f(x)\rvert meets the xx-axis. Where ff crossed the axis with a non-zero gradient (the usual case), the reflection makes a sharp cusp, so draw a clear corner.
  • Reflecting part of a graph but not its asymptote. If that part of y=f(x)y = f(x) approaches y=2x−1y = 2x - 1 below the axis, then y=∣f(x)∣y = \lvert f(x)\rvert approaches y=−2x+1y = -2x + 1 there.
  • For y=f(∣x∣)y = f(\lvert x\rvert), mirroring the left half instead of the right, or keeping an asymptote that was left of the yy-axis. Keep the right half and copy it onto the left.
  • Putting a vertical asymptote on y=1f(x)y = \frac{1}{f(x)} where ff has one. There 1f(x)→0\frac{1}{f(x)} \to 0, so the graph reaches the xx-axis at an open circle.
  • Giving the scale factor of f(2x+3)f(2x + 3) as 22, or translating by 33 after stretching first. The scale factor is 12\frac{1}{2}, and after the stretch the translation is 32\frac{3}{2} units.
  • Dividing both sides of ∣f(x)∣≤[f(x)]2\lvert f(x)\rvert \le [f(x)]^{2} by ∣f(x)∣\lvert f(x)\rvert. You get ∣f(x)∣≥1\lvert f(x)\rvert \ge 1 and lose the roots of ff, where both sides are 00. Deal with f(x)=0f(x) = 0 separately before you divide.

Exam tips

  • “Sketch” a transformed graph: label the new intercepts, turning points and asymptote equations, mark any cusps clearly, and stop at the ends of a given domain.
  • For ∣f(x)∣=g(x)\lvert f(x)\rvert = g(x), show both cases, then check each value in the original. Reject any value that makes g(x)g(x) negative, and say why.
  • “Hence” after a sketch means read the answer from that sketch: count where a horizontal line meets the graph, or read where one graph is above the other.
  • On Paper 2, write down the functions you graph and the unrounded intersections. Give the end points to 3 s.f. only at the end.

Key takeaways

Learn this(p,q) on y=f(x)  ⟼  (p−ba, q) on y=f(ax+b)(p, q) \text{ on } y = f(x) \;\longmapsto\; \left(\frac{p - b}{a},\, q\right) \text{ on } y = f(ax + b)
Learn this∣f(x)∣=k  ⟺  f(x)=k or f(x)=−k(k≥0)\lvert f(x)\rvert = k \iff f(x) = k \text{ or } f(x) = -k \qquad (k \ge 0)
Learn this∣f(x)∣<∣g(x)∣  ⟺  [f(x)]2<[g(x)]2\lvert f(x)\rvert < \lvert g(x)\rvert \iff [f(x)]^{2} < [g(x)]^{2}
Learn this∣f(x)∣<k  ⟺  −k<f(x)<k∣f(x)∣>k  ⟺  f(x)<−k or f(x)>k\lvert f(x)\rvert < k \iff -k < f(x) < k \qquad \lvert f(x)\rvert > k \iff f(x) < -k \text{ or } f(x) > k
Learn thisy=∣f(x)∣y = \lvert f(x)\rvert: reflect the parts below the xx-axis in the xx-axis. Where ff crossed the axis there is usually a cusp.
Learn thisy=f(∣x∣)y = f(\lvert x\rvert): delete the left half, then reflect the right half in the yy-axis. The graph is even.
Learn thisy=1f(x)y = \frac{1}{f(x)}: roots become vertical asymptotes, points at height ±1\pm 1 stay, and (a,b)(a, b) moves to (a,1b)\left(a, \frac{1}{b}\right) with maximum and minimum swapped.
Learn thisy=[f(x)]2y = [f(x)]^{2}: never negative. Roots become smooth minima on the axis, and (a,b)(a, b) moves to (a,b2)(a, b^{2}).
Learn thisy=f(ax+b)y = f(ax + b), a>0a > 0: translate by (−b0)\begin{pmatrix}-b\\0\end{pmatrix}, then stretch horizontally with scale factor 1a\frac{1}{a}.
Learn thisModuli on both sides: square both sides. A modulus against xx: split into cases, then check each answer.

Practise this

6 past-paper questions on 2.16 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 2.16 →