James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
A level Maths › Pure · Algebra & functions › Transformations of graphs

Transformations of graphs

Translations, stretches and reflections of graphs, what each one does to a point, and how to combine them in the right order.

Pure 2.9Years 1 & 2≈ 45 min to work through
Before you start: function notation. See Functions, composite & inverse.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Translate graphs: y=f(x)+b and y=f(x−a)Y1/Y2
  • Reflect graphs: y=−f(x) and y=f(−x)Y1/Y2
  • Stretch graphs: y=pf(x) and y=f(qx)Y1/Y2
  • Find the image of a point under a transformationY1/Y2
  • Describe and apply a combination of transformations in the correct orderY1/Y2

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

If you know the graph of y=f(x), you can draw many related graphs without plotting points. Adding, multiplying or replacing x moves, stretches or reflects the original graph in a predictable way.

2.1 The six transformations

GraphTransformationPoint (x,y) becomes
y=f(x)+btranslation (0b)(x, y+b)
y=f(x−a)translation (a0)(x+a, y)
y=pf(x)vertical stretch, scale factor p(x, py)
y=f(qx)horizontal stretch, scale factor 1q(xq, y)
y=−f(x)reflection in the x-axis(x, −y)
y=f(−x)reflection in the y-axis(−x, y)

Changes outside the function act on y and do what you expect. Changes inside the bracket act on x and do the opposite: f(x−3) moves the graph right by 3, and f(2x) halves the x-coordinates.

Why do changes inside the bracket go the "wrong" way?

Compare y=f(x) and y=f(x−3). For the new graph to reach the same height as f does at x=0, you need x−3=0, so x=3. Everything happens 3 units later, so the graph moves 3 to the right. Similarly, f(2x) reaches each height when x is only half as big, so the graph is squashed by a factor of 12.

A good habit is to track one or two key points, such as a vertex or intercept, through each transformation. If you know where they go, you can sketch the rest of the shape around them.

Worked example 1No calculator
The point (1,5) lies on y=f(x). Find its image on y=f(x−3)+2.
f(x−3): add 3 to x. +2: add 2 to y.
(1+3, 5+2)=(4,7)
Worked example 2No calculator
The point (6,2) lies on y=f(x). Find its image on y=f(3x).
Horizontal stretch with scale factor 13: divide x by 3.
(2,2)

2.2 Combining transformations

For y=pf(x)+b, apply the stretch first, then the translation: a point (x,y) goes to (x, py+b). In general, follow the order in which you would evaluate the expression.

Order matters. Stretching by 2 and then adding 3 gives 2y+3; adding 3 and then stretching gives 2(y+3)=2y+6. Think of how you would calculate the new y-value from the old one: in pf(x)+b you multiply by p first, then add b.

Exam questions use precise wording, and you need it to get the marks. Say "translation by the vector (−10)", "vertical stretch with scale factor 3", "horizontal stretch with scale factor 12", or "reflection in the x-axis". Words such as "move" or "shift" do not earn full marks.

Worked example 3No calculator
Describe the transformations that map y=x2 onto y=−(x+1)2+4.
(x+1)2: translation 1 unit to the left, (−10).
Minus sign: reflection in the x-axis.
+4: translation 4 units up, (04). The vertex moves from (0,0) to (−1,4).
Worked example 4 (faded)No calculator
The point (2,−1) lies on y=f(x). Find its image on y=f(−x)+3.
Reflect in the y-axis: (−2, −1)  ← you work this out
Then translate up 3: (−2, 2)  ← you work this out
On your Casio ClassWiz Calculator tricks →

In the Table app you can enter two functions, f(x) and g(x). Put the original in f(x) and the transformed function in g(x), then compare the two columns to check where key points have moved.

3Explore it

Choose a base graph (light), then build y=pf(q(x−h))+k. Notice which changes move the graph the way you expect, and which do the opposite.

4Common mistakes & exam tips

Common mistakes

  • Moving f(x−3) to the left: it moves right.
  • Giving the scale factor of f(2x) as 2: it is 12.
  • Confusing −f(x) (reflect in the x-axis) with f(−x) (reflect in the y-axis).
  • Applying 2f(x)−1 in the wrong order: stretch first, then translate.

Exam tips

  • Describe each transformation fully: type, direction and amount (e.g. "vertical stretch, scale factor 2").
  • Translations can be written as a vector (ab).
  • Track one or two key points (a vertex or an intercept) through each step.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
(2,3) lies on y=f(x). Find its image on y=f(x)+4.
(2,7)
FluencyP2
Find the image of (2,3) on y=f(x+1).
(1,3)
FluencyP3
Find the image of (2,3) on y=−f(x).
(2,−3)
FluencyP4
Find the image of (2,3) on y=f(2x).
(1,3)
Problem solvingP5
g(x)=3f(x+2)−1. The point (0,4) lies on y=f(x). Find its image on y=g(x).
x: 0−2=−2. y: 3(4)−1=11. So (−2,11).
Problem solvingP6
Describe the transformations that map y=x onto y=2x−1+3.
Translation 1 right, vertical stretch with scale factor 2, then translation 3 up.

6Exam-style questions

Original exam-style questions with full markschemes. Edexcel papers allow a calculator throughout, but questions labelled “No calculator” practise exact working. Allow about 1.2 minutes per mark.

Question 1No calculator[5 marks]

f(x)=x2 and g(x)=2(x−3)2−5.

  • (a)Describe a sequence of transformations that maps the graph of f onto the graph of g.[3]
  • (b)Write down the coordinates of the vertex of the graph of g.[2]
(a)
Translation 3 units rightA1
Vertical stretch, scale factor 2A1
Translation 5 units down (after the stretch)A1
(b)
(3,−5)A2
Question 2No calculator[4 marks]

The point A(4,−2) lies on the graph of y=f(x). Find the image of A on each graph.

  • (a)y=f(x)−3[1]
  • (b)y=f(2x)[1]
  • (c)y=−2f(x+1)[2]
(a)
(4,−5)A1
(b)
(2,−2)A1
(c)
x=3A1
y=4: (3,4)A1
Question 3Calculator[5 marks]

f(x)=ex. The graph of g is obtained by reflecting the graph of f in the y-axis and then translating it 2 units up.

  • (a)Write down g(x).[2]
  • (b)Write down the equation of the horizontal asymptote of the graph of g.[1]
  • (c)Solve f(x)=g(x).[2]
(a)
g(x)=e−x+2A2
(b)
y=2A1
(c)
ex=e−x+2 (calculator or quadratic in ex)M1
x=0.881A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real Edexcel A level questions. Past papers and markschemes are on the Pearson website.

PaperQuestionFocusDifficulty
June 2024 · Paper 2Q3Image of a point under three transformations★☆☆
June 2022 · Paper 1Q1Sketch y = f(x) + 2, y = |f(x)| and y = 3f(x − 2) + 2★☆☆
Specimen · Paper 1Q15Turning points after y = f(2x) and y = 3 − 2f(x)★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake