James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Functions › Transformations of graphs

Transformations of graphs

Translations, stretches and reflections move and reshape a graph in predictable ways. Knowing how y=af(b(x−c))+d relates to y=f(x) lets you fit a model to data by adjusting a few parameters, describe a sequence of transformations precisely, and find where any point ends up.

AHL 2.8HL onlyPaper 1Paper 2GDC allowed≈ 45 min to work through
Before you start: graphing functions with technology (Functions & graphing with technology).

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)+d and y=f(x−c)AHL 2.8
  • Stretch graphs: y=af(x) (vertical) and y=f(bx) (horizontal)AHL 2.8
  • Reflect graphs: y=−f(x) in the x-axis and y=f(−x) in the y-axisAHL 2.8
  • Apply a sequence of transformations, in the right order, and find images of pointsAHL 2.8
  • Describe transformations fully, using correct vocabularyAHL 2.8

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

Changes outside the brackets act on the output, so they move the graph vertically and do exactly what they say. Changes inside the brackets act on the input, so they move the graph horizontally and do the opposite of what you might expect: f(x−3) moves right, and f(2x) squashes the graph by a factor 12.

2.1 The four basic transformations

New graphTransformation of y=f(x)Point (x,y) goes to
y=f(x)+dtranslation by (0d)(x,y+d)
y=f(x−c)translation by (c0)(x+c,y)
y=af(x)vertical stretch, scale factor a(x,ay)
y=f(bx)horizontal stretch, scale factor 1b(xb,y)
y=−f(x)reflection in the x-axis(x,−y)
y=f(−x)reflection in the y-axis(−x,y)
Worked example 1Paper 1
Describe the transformation that maps y=f(x) onto (a) y=f(x+2) (b) y=3f(x) (c) y=f(x2).
(a) translation by (−20) (2 units left)
Inside the brackets: opposite sign.
(b) vertical stretch, scale factor 3
(c) horizontal stretch, scale factor 2
f(bx) with b=12 gives scale factor 1b=2.

2.2 Combining transformations

For y=af(b(x−c))+d, a safe order is: horizontal stretch by 1b, then horizontal translation by c; vertical stretch by a, then vertical translation by d. Vertical and horizontal changes do not affect each other, but within each direction the stretch must come before the translation for this form.

Worked example 2Paper 1
The point (4,5) lies on y=f(x). Find its image on y=2f(x+1)−3.
Horizontal: x+1 inside means move 1 left: x=4→3.
Vertical: multiply by 2 then subtract 3: y=5→10→7.
Stretch first, then translate.
Image (3,7)
Worked example 3Paper 1
The graph of y=x2 is stretched vertically by scale factor 0.5 and then translated by (4−2). Find the equation of the new graph, its vertex and its x-intercepts.
Stretch: y=0.5x2. Translate: y=0.5(x−4)2−2.
Vertex (4,−2)
0.5(x−4)2=2⇒x−4=±2⇒x=2 or x=6
Worked example 4Paper 1
Explain why stretching y=f(x) vertically by scale factor 2 and then translating up 3 gives a different graph from translating up 3 and then stretching.
Stretch then translate: y=2f(x)+3.
Translate then stretch: y=2(f(x)+3)=2f(x)+6.
The order changes the final vertical translation.

2.3 Transformations in modelling

Many models are a standard graph after transformations. For example T(t)=8sin(π12(t−9))+15 is y=sint stretched horizontally (period 24 hours), translated 9 hours right, stretched vertically by 8 and translated up 15. Each parameter has a meaning in context.

Worked example 5Paper 2
The temperature, in °C, t hours after midnight is modelled by T(t)=8sin(π12(t−9))+15. Describe the transformations from y=sint, and state the maximum temperature and the temperature at 14:00.
Horizontal stretch, scale factor 12π; then translation 9 right; vertical stretch, scale factor 8; then translation 15 up.
Period =2π÷π12=24 hours.
Maximum 15+8=23 °C
T(14)=8sin(5π12)+15=22.7 °C
Worked example 6 (faded)Paper 1
The point (6,4) lies on y=f(x). Find its image on y=f(2x).
Horizontal stretch, scale factor 12: x→ 3, y stays 4: image (3,4).  ← you work this out
On your TI-Nspire Calculator tricks →

On a TI-Nspire Graphs page, define f1(x) and then enter f2(x)=2f1(x+1)−3 to see the transformed graph next to the original. To explore, use sliders: menu → Actions → Insert Slider, name it a, and enter f2(x)=a·f1(x). Use Trace or a point on the graph to check where a point moves.

3Explore it

The navy curve is y = f(x); the red curve is y = a·f(b(x − c)) + d. Change one parameter at a time and predict what will happen before you move the slider.

4Common mistakes & exam tips

Common mistakes

  • Moving y=f(x−3) to the left. Inside the brackets, −3 moves the graph 3 to the right.
  • Describing f(2x) as a stretch with scale factor 2. It is scale factor 12.
  • Applying the vertical translation before the stretch for y=af(x)+d.
  • Writing "moved" or "shifted" instead of the full description: "translation by (cd)", "vertical stretch, scale factor a".
  • In f(b(x−c)), translating by bc instead of c.

Exam tips

  • A full description names the transformation, gives the direction and the size: "horizontal stretch, scale factor 2".
  • Track one or two key points (such as a vertex) through the transformations, then sketch.
  • For f(bx+k), factorise first: f(b(x+kb)).
  • In context, interpret each parameter: amplitude, period, phase shift, principal axis.

5Practice

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

FluencyP1
Describe the transformation from y=f(x) to y=f(x)−5.
Translation by (0−5)
FluencyP2
Describe the transformation from y=f(x) to y=f(−x).
Reflection in the y-axis
FluencyP3
The point (2,8) lies on y=f(x). Find its image on y=12f(x)+1.
(2,5)
FluencyP4
The point (−3,1) lies on y=f(x). Find its image on y=f(3x).
(−1,1)
Problem solvingP5
The graph of y=ex is translated 2 units right and then reflected in the x-axis. Write the equation of the new graph.
y=−ex−2
Problem solvingP6
Describe a sequence of transformations that maps y=lnx to y=4ln(2x−6).
4ln(2(x−3)): horizontal stretch scale factor 12, translation 3 right, vertical stretch scale factor 4.

6Exam-style questions

Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

The points A(2,6) and B(−1,4) lie on the graph of y=f(x). The graph of y=g(x), where g(x)=3f(x2)+1, is obtained from y=f(x) by a sequence of transformations.

  • (a)Describe fully the sequence of transformations.[3]
  • (b)Find the images of A and B on the graph of y=g(x).[3]
(a)
horizontal stretch, scale factor 2A1
vertical stretch, scale factor 3A1
translation by (01) (after the vertical stretch)A1
(b)
x doubles, y→3y+1(M1)
A′(4,19)A1
B′(−2,13)A1
Question 2Paper 1[6 marks]

The graph of y=x2 is stretched vertically by scale factor 0.5 and then translated by (4−2) to give y=h(x).

  • (a)Write down h(x) in the form a(x−p)2+q.[2]
  • (b)Find the y-intercept of the graph of h.[1]
  • (c)Find the x-intercepts of the graph of h.[3]
(a)
h(x)=0.5(x−4)2−2A2
A1 for 0.5, A1 for the translation.
(b)
6A1
(c)
0.5(x−4)2−2=0(M1)
x−4=±2(A1)
x=2, x=6A1
Question 3Paper 2[8 marks]

The temperature, T °C, in a city t hours after midnight is modelled by T(t)=asin(b(t−c))+d, where a,b,c,d>0 and the angle is in radians. The model has a period of 24 hours, a maximum of 23 °C at 15:00 and a minimum of 7 °C.

  • (a)Find the values of a, b and d.[3]
  • (b)Find the smallest value of c.[2]
  • (c)Describe fully the transformations that map y=sint to y=T(t).[3]
(a)
a=23−72=8A1
b=2π24=π12A1
d=15A1
(b)
maximum when π12(15−c)=π2(M1)
c=9A1
(c)
horizontal stretch, scale factor 12π, then translation 9 units rightA1
vertical stretch, scale factor 8A1
then translation 15 units upA1

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 are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2021 · TZ1 · Paper 1Q17Translating y = ln x to pass through given points★★☆
Nov 2024 · Paper 1Q10Sequence of transformations from y = ln x★★☆
May 2025 · TZ3 · Paper 1Q16Translating and stretching a cosine 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