James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 2: 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.

SL 2.11SL + HL extensionPaper 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.

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

HL questions combine several transformations, often inside the bracket, and ask for exact sequences, images of points and new asymptotes. The key skill is handling y=af(bx+c)+d without getting the order wrong.

Order matters inside the bracket

y=f(2x+4) and y=f(2(x+4)) are different. Factorising helps: f(2x+4)=f(2(x+2)) is a horizontal stretch by factor 12 and a translation 2 to the left, in that order. Alternatively: translate 4 to the left, then stretch by 12. Both orders work if you describe them correctly.

The safest check is to track one point: (p,q) on y=f(x) maps to the x that solves bx+c=p, with height aq+d.

Worked example H1Paper 1
Describe a sequence of transformations that maps y=x2 onto y=1−2(3x−6)2, and find the image of the vertex.
1−2(3x−6)2=1−2(3(x−2))2
Horizontal stretch factor 13; translation 2 right; vertical stretch factor 2; reflection in the x-axis; translation 1 up.
Vertex: 3x−6=0⇒x=2, y=1. Image (2,1).
Tracking the vertex checks the horizontal steps.
Worked example H2Paper 1
The point (4,−2) lies on y=f(x). Find its image on y=3−2f(12x+1).
12x+1=4⇒x=6
y=3−2(−2)=7
Image (6,7)

Asymptotes move too

Vertical asymptotes move with horizontal transformations; horizontal asymptotes move with vertical ones. For example y=ln(2x−6)=ln(2(x−3)) has asymptote x=3, and y=2x+3−5 has asymptote y=−5.

Worked example H3Paper 1
Show that y=2x+3−5 can be obtained from y=2x by a vertical stretch followed by a vertical translation.
2x+3=23×2x=8×2x
So y=8·2x−5: vertical stretch factor 8, then translation 5 down.
Horizontal asymptote y=−5

HL exam-style questions

Question 1Paper 1[5 marks]

The graph of y=f(x) passes through P(4,−2) and has a horizontal asymptote y=1. The graph of y=g(x) is obtained by the transformation g(x)=3−2f(12x+1).

  • (a)Find the coordinates of the image of P.[3]
  • (b)Find the equation of the horizontal asymptote of the graph of g.[2]
(a)
12x+1=4M1
x=6A1
y=7A1
(b)
3−2(1)M1
y=1A1
Question 2Paper 1[6 marks]

Let f(x)=x2 and g(x)=1−2(3x−6)2.

  • (a)Describe a sequence of transformations that maps the graph of f onto the graph of g.[4]
  • (b)Write down the coordinates of the vertex of the graph of g.[2]
(a)
horizontal stretch, scale factor 13A1
translation 2 units right (after the stretch)A1
vertical stretch scale factor 2 and reflection in the x-axisA1
translation 1 unit upA1
(b)
(2,1)A1A1

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 2Q4Find parameters of a cosine model; rewrite in sine form★☆☆
May 2023 · TZ1 · Paper 1Q5Express a parameter and sketch a transformed sine graph★★☆
May 2022 · TZ1 · Paper 1Q5Describe transformations and find a minimum y-intercept value★★☆
May 2024 · TZ1 · Paper 1Q9Sketch f(mod x) and mod of f(mod x) from a given graph★★★
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