2.11 · SLPaper 1Paper 2

Transformations of graphs

In a minute

A moves, mirrors or stretches a graph you already know. A change outside the function acts on yy as it looks, but a change inside the bracket acts on xx the opposite way, so f(x−3)f(x - 3) moves the graph right. With these rules you can sketch, describe and write the equation of a new graph without plotting points.

You'll be able to

  • Translate a graph with y=f(x)+by = f(x) + b and y=f(x−a)y = f(x - a), and find where its points and asymptotes go.
  • Reflect a graph in the xx-axis with y=−f(x)y = -f(x) and in the yy-axis with y=f(−x)y = f(-x).
  • Stretch a graph vertically with y=pf(x)y = pf(x) and horizontally with y=f(qx)y = f(qx), whose scale factor is 1q\frac{1}{q}.
  • Combine transformations in the right order, and describe a sequence that maps one graph onto another.
  • Know the SL limit: at most one change inside the bracket, so forms such as f(2x−6)f(2x - 6) are left to HL.
Before you start2 quick questions on what this builds on
Check yourself
Find the yy-intercept of the graph of y=(x−4)2−7y = (x - 4)^{2} - 7.
Check yourself
Given f(x)=x2f(x) = x^{2} and g(x)=x−3g(x) = x - 3, find (f∘g)(x)(f \circ g)(x).

Revise first: 2.3 Graphs of functions and 2.5 Composite and inverse functions

Translations

Start with y=x2y = x^{2} and add 22 to every output: y=x2+2y = x^{2} + 2. Each point rises 22 units, so the vertex goes from (0,0)(0, 0) to (0,2)(0, 2).

Now replace xx by x−3x - 3: y=(x−3)2y = (x - 3)^{2}. The vertex is where the bracket is zero, at x=3x = 3. So this curve has moved 33 units to the right, not to the left.

Why right? The new graph reaches each height 33 units later than y=x2y = x^{2} does. At x=3x = 3 it does what y=x2y = x^{2} did at x=0x = 0.

Dashed parabola y equals x squared with vertex at the origin. Adding 2 moves it up to vertex (0, 2). Replacing x by x minus 3 moves it right to vertex (3, 0). x y y = x² y = x² + 2 y = (x − 3)² (0, 2) (0, 0) (3, 0)
Adding 22 outside moves the graph up 22. Writing x−3x - 3 inside moves it right 33.

Each of these is a : a slide with no turning or resizing.

Learn this
y=f(x)+b  :  translation b units upy=f(x−a)  :  translation a units righty = f(x) + b \;:\; \text{translation } b \text{ units up} \qquad y = f(x - a) \;:\; \text{translation } a \text{ units right}

A negative bb moves the graph down. A negative aa moves it left: y=f(x+3)y = f(x + 3) is y=f(x−(−3))y = f(x - (-3)), a translation 33 units left.

You can also write a translation aa across and bb up as the column vector (ab)\begin{pmatrix} a \\ b \end{pmatrix}. In words, give the direction and the distance.

y=f(x−3)y = f(x - 3) is a (2.5): first x↦x−3x \mapsto x - 3, then ff.

Worked exampleTranslate the graph of y=x3y = x^{3} left by 22 units. Write down the equation of the new graph.

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

  1. A move left is a horizontal translation, so it changes xx inside the function. Left 22 means a=−2a = -2.
Worked exampleTranslate the graph of y=exy = \mathrm{e}^{x} right by 22 units and up by 55 units, and call the image y=g(x)y = g(x). Write down g(x)g(x) and the equation of the horizontal asymptote of its graph. Find the exact yy-intercept.

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

  1. Right 22: replace xx by x−2x - 2. Up 55: add 55 outside. So g(x)=ex−2+5g(x) = \mathrm{e}^{x - 2} + 5.
Check yourself
The point (5,−2)(5, -2) lies on the graph of y=f(x)y = f(x). Which point must lie on the graph of y=f(x+3)y = f(x + 3)?
Check yourself
Translate the graph of y=1xy = \frac{1}{x} left by 33 units and up by 11 unit. Find the equation of the vertical asymptote of the new graph.

Reflections in the axes

Put a minus sign in front: y=−f(x)y = -f(x). Every output changes sign, so (x,y)(x, y) moves to (x,−y)(x, -y). The graph flips over the xx-axis.

Put the minus sign on the input instead: y=f(−x)y = f(-x). The new graph does at xx what the old one did at −x-x. So (x,y)(x, y) moves to (−x,y)(-x, y), and the graph flips over the yy-axis.

Dashed curve y equals root x through (4, 2). Its reflection in the x-axis, y equals minus root x, passes through (4, minus 2). Its reflection in the y-axis, y equals root of minus x, passes through (minus 4, 2). The origin lies on all three. x y (4, 2) (4, −2) (−4, 2) y = √x y = −√x y = √(−x)
y=−xy = -\sqrt{x} flips y=xy = \sqrt{x} over the xx-axis. y=−xy = \sqrt{-x} flips it over the yy-axis.

Each flip is a in an axis.

Learn this
y=−f(x)  :  reflection in the x-axisy=f(−x)  :  reflection in the y-axisy = -f(x) \;:\; \text{reflection in the } x\text{-axis} \qquad y = f(-x) \;:\; \text{reflection in the } y\text{-axis}

Points on the mirror line stay where they are. They are . So y=−f(x)y = -f(x) keeps every xx-intercept, and y=f(−x)y = f(-x) keeps the yy-intercept.

Worked exampleLet f(x)=x2−8x+12f(x) = x^{2} - 8x + 12. The graph of y=g(x)y = g(x) is the reflection of the graph of y=f(x)y = f(x) in the yy-axis. Find g(x)g(x) in expanded form.

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

  1. A reflection in the yy-axis is g(x)=f(−x)g(x) = f(-x). Replace every xx by (−x)(-x), keeping the brackets.
Worked exampleThe graph of y=f(x)y = f(x) has a local maximum point at (3,7)(3, 7) and crosses the yy-axis at (0,−2)(0, -2). Write down the coordinates of the turning point on the graph of y=−f(x)y = -f(x), and state whether it is a maximum or a minimum.

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

  1. y=−f(x)y = -f(x) is a reflection in the xx-axis: (x,y)(x, y) moves to (x,−y)(x, -y).
Check yourself
Which is the equation of the reflection of y=exy = \mathrm{e}^{x} in the xx-axis?
Check yourself
Given f(x)=4x3+x2−7f(x) = 4x^{3} + x^{2} - 7, find f(−x)f(-x).

Stretches

Multiply the whole function by 33: y=3f(x)y = 3f(x). Every yy-coordinate is tripled, and every xx-coordinate stays. The graph is pulled away from the xx-axis, while points on the xx-axis don't move.

This is a .

A scale factor between 00 and 11 squashes the graph towards the xx-axis, but it is still called a stretch.

Now multiply the input instead: y=f(2x)y = f(2x). At x=1x = 1 the new graph takes the value f(2)f(2), the old graph's height at x=2x = 2. So every point ends up at half its old distance from the yy-axis.

This is a , and its scale factor is the reciprocal of the number inside.

Dashed parabola y equals f of x, where f of x is 4 minus x squared, with x-intercepts at minus 2 and 2 and y-intercept 4. The vertical stretch y equals 2 f of x keeps the x-intercepts and doubles the height to (0, 8). The horizontal stretch y equals f of 2x keeps the height 4 and moves the x-intercepts in to minus 1 and 1. x y (0, 8) (0, 4) (−2, 0) (2, 0) (−1, 0) (1, 0) y = f(x) y = 2f(x) y = f(2x)
With f(x)=4−x2f(x) = 4 - x^{2}: y=2f(x)y = 2f(x) doubles every height, and y=f(2x)y = f(2x) halves every xx-coordinate.
Learn this
y=pf(x)  :  vertical stretch, scale factor py=f(qx)  :  horizontal stretch, scale factor 1qy = pf(x) \;:\; \text{vertical stretch, scale factor } p \qquad y = f(qx) \;:\; \text{horizontal stretch, scale factor } \tfrac{1}{q}

Each stretch has . A vertical stretch keeps the xx-intercepts, since p×0=0p \times 0 = 0. A horizontal stretch keeps the yy-intercept, since 0q=0\frac{0}{q} = 0.

Worked exampleLet f(x)=x2+2x−8f(x) = x^{2} + 2x - 8. The graph of y=f(x)y = f(x) is stretched vertically with scale factor 13\frac{1}{3} to give the graph of y=g(x)y = g(x). Find the coordinates of the vertex of the graph of gg.

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

  1. to find the vertex of ff: x2+2x−8=(x+1)2−9x^{2} + 2x - 8 = (x + 1)^{2} - 9. So the vertex of ff is (−1,−9)(-1, -9).
Worked exampleThe graph of y=f(x)y = f(x) crosses the xx-axis at x=3x = 3 and x=9x = 9, and has a minimum point at (6,−3)(6, -3). Find the coordinates of the minimum point of the graph of y=f(3x)y = f(3x).

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

  1. y=f(3x)y = f(3x) is y=f(qx)y = f(qx) with q=3q = 3: a horizontal stretch with scale factor 13\frac{1}{3}. Each xx-coordinate is divided by 33, and each yy-coordinate stays.
Check yourself
Which transformation maps the graph of y=f(x)y = f(x) onto the graph of y=f(x4)y = f\left(\frac{x}{4}\right)?
Check yourself
The graph of y=f(x)y = f(x) has a vertical asymptote x=12x = 12. The graph of y=f(4x)y = f(4x) has a vertical asymptote x=kx = k. Find kk.

Combining transformations

Take y=3x2+2y = 3x^{2} + 2. Start from y=x2y = x^{2} and with scale factor 33 to get y=3x2y = 3x^{2}. Then 22 units up. The vertex lands at (0,2)(0, 2).

Do it the other way round and you get a different graph. Up 22 first gives y=x2+2y = x^{2} + 2. The stretch then multiplies everything, the 22 included: y=3(x2+2)=3x2+6y = 3(x^{2} + 2) = 3x^{2} + 6, with vertex (0,6)(0, 6).

Try it below with base x2x^{2}. Set the vertical stretch to 33 and the shift up to 22, and the vertex sits at (0,2)(0, 2). Go by the slider names: their letters differ from ours.

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.

Horizontal and vertical changes don't interfere. One acts on xx inside the bracket, the other on yy outside it. So in y=pf(x−a)+by = pf(x - a) + b you can do the horizontal translation at any stage.

At SL the bracket holds at most one change: f(x−a)f(x - a), f(−x)f(-x) or f(qx)f(qx). A form such as f(2x−6)f(2x - 6) hides a stretch and a translation in one bracket, and is not required at SL.

Worked exampleThe graph of y=exy = \mathrm{e}^{x} is reflected in the xx-axis and then translated 44 units up. Find the equation of the new graph and its xx-intercept.

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

  1. Reflect in the xx-axis: y=−exy = -\mathrm{e}^{x}.
Worked exampleLet g(x)=5−2f(x+4)g(x) = 5 - 2f(x + 4). Describe a sequence of transformations that maps the graph of y=f(x)y = f(x) onto the graph of y=g(x)y = g(x). The point (1,3)(1, 3) lies on the graph of y=f(x)y = f(x). Find the coordinates of its image on the graph of y=g(x)y = g(x).

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

  1. Rewrite gg in the order pf(…)+bpf(\ldots) + b: g(x)=−2f(x+4)+5g(x) = -2f(x + 4) + 5.
Worked exampleLet f(x)=x3−5x2+4x+6f(x) = x^{3} - 5x^{2} + 4x + 6 and g(x)=2f(x+3)−5g(x) = 2f(x + 3) - 5. Use your calculator to find the local maximum point of the graph of ff. Hence find the coordinates of the local maximum point of the graph of gg. Give your answers to 3 s.f.

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

  1. Graph y=x3−5x2+4x+6y = x^{3} - 5x^{2} + 4x + 6 and find its maximum: (0.464816…,6.87941…)(0.464816\ldots, 6.87941\ldots). To 3 s.f., the maximum of ff is at about (0.465,6.88)(0.465, 6.88). Keep the full values for the next part.
Check yourself
The graph of y=xy = \sqrt{x} is translated 33 units down and then stretched vertically with scale factor 22. Find the equation of the new graph.
Check yourself
The graph of y=f(x)y = f(x) has a minimum point at (−2,5)(-2, 5). Find the yy-coordinate of the corresponding point on the graph of y=3−2f(x−1)y = 3 - 2f(x - 1).

Common mistakes

  • Moving y=f(x−3)y = f(x - 3) left, or y=f(x+3)y = f(x + 3) right. Inside the bracket the sign works the other way: x−3x - 3 moves the graph 33 units right.
  • Giving qq as the scale factor of y=f(qx)y = f(qx). The scale factor is 1q\frac{1}{q}, so y=f(2x)y = f(2x) halves every xx-coordinate.
  • Translating before stretching. y=pf(x)+by = pf(x) + b means stretch by pp, then translate by bb; the other order gives pf(x)+pbpf(x) + pb.
  • Confusing −f(x)-f(x) with f(−x)f(-x), or either with the inverse. −f(x)-f(x) mirrors in the xx-axis, f(−x)f(-x) in the yy-axis, and f−1(x)f^{-1}(x) in the line y=xy = x.
  • Describing with loose words such as ‘move’ or ‘shrink’, or leaving out a detail. Name the transformation and give its direction, distance or scale factor.
  • Forgetting to move the asymptotes, or giving one as a bare number. Move each asymptote with the graph and write it as an equation, such as y=5y = 5.

Exam tips

  • ‘Describe’ needs the name and every detail: ‘translation 22 units left’, ‘reflection in the yy-axis’, ‘horizontal stretch, scale factor 13\frac{1}{3}’.
  • ‘Sketch’ means the right shape with key features labelled. Transform the intercepts, turning points and asymptotes first, then join them up.
  • When you describe two vertical changes, give them in the order you apply them. For pf(x)+bpf(x) + b the stretch comes before the translation.

Key takeaways

Learn thisy=f(x)+b  :  translation b units upy=f(x−a)  :  translation a units righty = f(x) + b \;:\; \text{translation } b \text{ units up} \qquad y = f(x - a) \;:\; \text{translation } a \text{ units right}
Learn thisy=−f(x)  :  reflection in the x-axisy=f(−x)  :  reflection in the y-axisy = -f(x) \;:\; \text{reflection in the } x\text{-axis} \qquad y = f(-x) \;:\; \text{reflection in the } y\text{-axis}
Learn thisy=pf(x)  :  vertical stretch, scale factor py=f(qx)  :  horizontal stretch, scale factor 1qy = pf(x) \;:\; \text{vertical stretch, scale factor } p \qquad y = f(qx) \;:\; \text{horizontal stretch, scale factor } \tfrac{1}{q}
Learn thisOutside the bracket acts on yy as it looks. Inside acts on xx the opposite way: x−ax - a moves right, and qxqx scales by 1q\frac{1}{q}.
Learn thisPoints: f(x−a)+bf(x - a) + b sends (x,y)(x, y) to (x+a,y+b)(x + a, y + b); pf(x)pf(x) to (x,py)(x, py); f(qx)f(qx) to (xq,y)\left(\frac{x}{q}, y\right).
Learn thisFor y=pf(x)+by = pf(x) + b: stretch (or reflect) first, then translate.
Learn thisAsymptotes, intercepts and turning points move with the graph. Transform them first, then sketch.

Practise this

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

Practise 2.11 →