James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA SL › Topic 2: Functions › Transformations

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.

SL 2.11Paper 1Paper 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)SL 2.11
  • Reflect graphs: y=−f(x) and y=f(−x)SL 2.11
  • Stretch graphs: y=pf(x) and y=f(qx)SL 2.11
  • Find the image of a point under a transformationSL 2.11
  • Describe and apply a combination of transformations in the correct orderSL 2.11

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 1Paper 1
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 2Paper 1
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 3Paper 1
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)Paper 1
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 TI-Nspire Calculator tricks →

Check a transformation: on a Graphs page enter f1(x), then enter, for example, f2(x)=f1(x-3)+2. The TI-Nspire draws the transformed graph so you can compare.

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 questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[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 2Paper 1[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 3Paper 2[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 (GDC 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 IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
Nov 2025 · TZ1 · Paper 1Q1Match four transformed functions to their given transformed graphs★☆☆
Nov 2025 · TZ3 · Paper 1Q5Find A and B from two points; describe transformations from y=1/x★★☆
May 2022 · TZ1 · Paper 1Q6Describe two transformations of 4sin x + 2.5; smallest y-intercept with g(x) ≥ 7★★☆
May 2024 · TZ1 · Paper 2Q7Exponential function: derive inverse, distance PQ, reflect/translate, solve equation★★★
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