Skip to content

Transformations of graphs: translations, reflections and stretches of y = f(x)

TutorAura guide · Updated

Once you know the shape of one graph, graph transformations let you sketch a whole family of related graphs without plotting points. Change y=f(x)y = f(x) to y=f(x)+3y = f(x) + 3 and the graph moves up 3; change it to y=f(x+3)y = f(x + 3) and it moves left 3, which is the part everyone gets wrong at first. This guide gives the full table of rules, explains why the inside-the-bracket ones go the "wrong" way, and shows how to track a point such as a turning point through each transformation.

Key takeaways

  • Outside the bracket changes y: f(x) + a moves up a, af(x) stretches vertically by a.
  • Inside the bracket changes x, backwards: f(x + a) moves left a, f(ax) squashes horizontally by a.
  • −f(x) reflects in the x-axis; f(−x) reflects in the y-axis.
  • To find where a point goes, apply the rule to its coordinates.

The rules in one table

New graphWhat happens to y=f(x)y = f(x)Point (x,y)(x, y) goes to
y=f(x)+ay = f(x) + aTranslate up by aa(x,y+a)(x, y + a)
y=f(x+a)y = f(x + a)Translate left by aa(x−a,y)(x - a, y)
y=−f(x)y = -f(x)Reflect in the x-axis(x,−y)(x, -y)
y=f(−x)y = f(-x)Reflect in the y-axis(−x,y)(-x, y)
y=af(x)y = af(x)Stretch vertically, scale factor aa(x,ay)(x, ay)
y=f(ax)y = f(ax)Stretch horizontally, scale factor 1a\tfrac{1}{a}(xa,y)(\tfrac{x}{a}, y)

A translation is often written as a vector: f(x)+af(x) + a is (0a)\begin{pmatrix} 0 \\ a \end{pmatrix} and f(x+a)f(x + a) is (−a0)\begin{pmatrix} -a \\ 0 \end{pmatrix}.

Why f(x + 3) moves left, not right

Take y=f(x+3)y = f(x + 3). To get the output that ff used to give at x=5x = 5, you now need x+3=5x + 3 = 5, so x=2x = 2. Every point arrives 3 earlier along the x-axis: the whole graph shifts left.

The same logic explains f(2x)f(2x): to get the old output at x=6x = 6 you now need 2x=62x = 6, so x=3x = 3. The graph is squashed towards the y-axis, halving every x-coordinate.

Rule of thumb: inside the bracket, do the opposite of what you see.

Worked example: tracking a turning point

The graph of y=f(x)y = f(x) has a maximum at (2,5)(2, 5). Find the maximum of each transformed graph.

GraphMaximum
y=f(x)−4y = f(x) - 4(2,1)(2, 1)
y=f(x−1)y = f(x - 1)(3,5)(3, 5)
y=−f(x)y = -f(x)(2,−5)(2, -5), now a minimum
y=f(−x)y = f(-x)(−2,5)(-2, 5)
y=3f(x)y = 3f(x)(2,15)(2, 15)
y=f(2x)y = f(2x)(1,5)(1, 5)

Points on the x-axis don't move under a vertical stretch (their y-coordinate is 0), and points on the y-axis don't move under a horizontal one.

Quadratics in completed square form

This is where the rules meet completing the square. Starting from y=x2y = x^2, which has its vertex at the origin:

  • y=(x−3)2y = (x - 3)^2 is x2x^2 moved right 3: vertex (3,0)(3, 0).
  • y=(x−3)2+4y = (x - 3)^2 + 4 then moves up 4: vertex (3,4)(3, 4).
  • y=−(x−3)2+4y = -(x - 3)^2 + 4 flips it: a maximum at (3,4)(3, 4).

So y=(x+p)2+qy = (x + p)^2 + q always has its turning point at (−p,q)(-p, q), and you can sketch it straight away.

Trigonometric graphs

The same rules transform sin⁡\sin, cos⁡\cos and tan⁡\tan graphs. Starting from y=sin⁡xy = \sin x:

  • y=2sin⁡xy = 2\sin x has amplitude 2 (peaks at 2 and −2).
  • y=sin⁡2xy = \sin 2x completes a cycle in 180° instead of 360°.
  • y=sin⁡(x−30°)y = \sin(x - 30°) is shifted 30° to the right.
  • y=sin⁡x+1y = \sin x + 1 oscillates between 0 and 2.

Knowing that cos⁡x=sin⁡(x+90°)\cos x = \sin(x + 90°) is itself a translation of the sine graph 90° to the left.

Combining transformations

When two transformations are combined, the order matters for some pairs. For y=2f(x)+1y = 2f(x) + 1, stretch first then translate (the +1 is outside the ×2). For y=f(2x+6)y = f(2x + 6), write it as f(2(x+3))f(2(x + 3)): translate left 3, then squash by factor 12\tfrac{1}{2}, or equivalently squash first and then translate left 3 (not 6). Writing the inside as a(x+b)a(x + b) removes the ambiguity.

Practice questions

The graph of y=f(x)y = f(x) passes through (4,−2)(4, -2).

  1. Where does the point go on y=f(x)+7y = f(x) + 7?
  2. On y=f(x+4)y = f(x + 4)?
  3. On y=−f(x)y = -f(x)?
  4. On y=f(12x)y = f(\tfrac{1}{2}x)?
  5. Sketch y=(x+1)2−3y = (x + 1)^2 - 3 and state its turning point.

Answers: 1. (4,5)(4, 5). 2. (0,−2)(0, -2). 3. (4,2)(4, 2). 4. (8,−2)(8, -2). 5. A U-shaped parabola with minimum at (−1,−3)(-1, -3), crossing the y-axis at (0,−2)(0, -2).

Frequently asked questions

Does f(x + 2) move the graph left or right?

Left, by 2. Transformations inside the bracket change the x-values in the opposite direction to the sign.

What is the difference between 2f(x) and f(2x)?

2f(x) doubles every y-value (a vertical stretch). f(2x) halves every x-value (a horizontal squash). Points on the x-axis are fixed by the first; points on the y-axis by the second.

How do I find the turning point of a transformed quadratic?

Write it as y = a(x + p)² + q; the turning point is (−p, q). If a is negative it's a maximum, otherwise a minimum.

Sources

  1. GCSE mathematics: subject content and assessment objectives. Department for Education.
  2. Cambridge International AS & A Level Mathematics 9709. Cambridge International.