IB Diploma Mathematics AI · Functions
Transformations of graphs (HL)
1Translations
A translation slides a graph without changing its shape.
- $y = f(x) + d$ moves the graph up by $d$ (down if $d$ is negative).
- $y = f(x - c)$ moves the graph right by $c$ (left if $c$ is negative).
The horizontal shift goes the "opposite way" to the sign: $f(x - 3)$ moves right 3, because the same output now happens 3 units later.
A translation can be written as a vector: $\begin{pmatrix}c\\d\end{pmatrix}$ means $c$ across and $d$ up.
Translating a parabola
- Start with $y = x^2$, vertex $(0, 0)$.
- $y = (x - 3)^2 + 1$ is a translation by $\begin{pmatrix}3\\1\end{pmatrix}$.
- The new vertex is $(3, 1)$.
Check yourself
Which equation moves y = f(x) 4 units to the left?
Show the answer
y = f(x + 4)
f(x + 4) = f(x − (−4)), a shift of −4 across.
2Stretches
- $y = a f(x)$ is a vertical stretch with scale factor $a$: every $y$-value is multiplied by $a$. Points on the $x$-axis stay put.
- $y = f(qx)$ is a horizontal stretch with scale factor $\frac{1}{q}$: every $x$-value is divided by $q$. Points on the $y$-axis stay put.
$y = \sin(2x)$ is $y = \sin x$ squashed horizontally by a factor of $\frac{1}{2}$, so the period halves from 360° to 180°. $y = 3\sin x$ is stretched vertically by 3, so the amplitude becomes 3.
Check yourself
Which transformation turns y = f(x) into y = f(3x)?
Show the answer
A horizontal stretch with scale factor 1/3
x-values are divided by 3.
3Reflections
- $y = -f(x)$ is a reflection in the $x$-axis: every $y$-value changes sign.
- $y = f(-x)$ is a reflection in the $y$-axis: every $x$-value changes sign.
$y = 2^{-x}$ is $y = 2^x$ reflected in the $y$-axis. It shows decay instead of growth.
Check yourself
What does y = −f(x) do to the point (2, 5) on y = f(x)?
Show the answer
Moves it to (2, −5)
Reflection in the x-axis changes the sign of y.
4Combining transformations
When several transformations are combined, the order can matter. A reliable approach:
- Horizontal changes (inside the bracket): the stretch happens first, then the translation. In $f(q(x - c))$, stretch by $\frac{1}{q}$, then move right $c$.
- Vertical changes (outside): stretch or reflect first, then translate. In $a f(x) + d$, multiply by $a$, then add $d$.
y = x² and y = 2(x − 3)² + 1: a translation and a vertical stretch
Following a point
- $(2, 4)$ lies on $y = f(x)$. Where does it go on $y = 3f(x - 1) - 2$?
- Horizontal: $x - 1 = 2$, so the new $x$ is 3.
- Vertical: $3 \times 4 - 2 = 10$.
- The image is $(3, 10)$.
Describing a combination
- $y = 2(x - 3)^2 + 1$ from $y = x^2$.
- Translate right 3, stretch vertically by factor 2, translate up 1.
- Vertex at $(3, 1)$, and the parabola is twice as steep.
Check yourself
(1, 6) is on y = f(x). Where is its image on y = 0.5f(x) + 3?
Show the answer
(1, 6)
0.5 × 6 + 3 = 6, and x is unchanged.
5Transformations and models
Transformations explain the parameters of the models you already know:
- In $f(x) = a\sin(b(x - c)) + d$, $a$ stretches vertically, $b$ stretches horizontally, $c$ translates horizontally and $d$ translates vertically.
- In $f(x) = ka^x + c$, $c$ moves the asymptote to $y = c$.
Knowing this lets you adjust a model to fit data: for example, if temperatures are all 2 °C higher than a model predicts, add 2 (a vertical translation).
Check yourself
In the model y = 4 sin(x) + 10, what does the 10 do to the graph of y = 4 sin x?
Show the answer
Translates it up 10 units
Adding outside the function is a vertical translation.
6Writing the equation after transformations
$y = x^2$ is stretched vertically by factor 3, then translated by $\begin{pmatrix} 2 \\ -5 \end{pmatrix}$
- Vertical stretch: $y = 3x^2$.
- Translation 2 right and 5 down: $y = 3(x - 2)^2 - 5$.
- Vertex: $(2, -5)$.
Check yourself
What is $y = x^2$ after a translation of 4 to the left?
Show the answer
$y = (x + 4)^2$
Left means $x + 4$.
7Transformations in data models
Transformations help adjust a model to fit data.
Adjusting a temperature model
- Model for one city: $T = 8\sin(30t) + 15$.
- A second city is 3 °C warmer all year: $T = 8\sin(30t) + 18$, a vertical translation.
- A third city has seasons 2 months later: $T = 8\sin(30(t - 2)) + 15$, a horizontal translation.
Check yourself
Which transformation makes a model 3 units higher everywhere?
Show the answer
A vertical translation by 3
Add 3.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera