impera Open Impera

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.

Worked example

Translating a parabola

  1. Start with $y = x^2$, vertex $(0, 0)$.
  2. $y = (x - 3)^2 + 1$ is a translation by $\begin{pmatrix}3\\1\end{pmatrix}$.
  3. The new vertex is $(3, 1)$.
Check yourself

Which equation moves y = f(x) 4 units to the left?

  • y = f(x) + 4

  • y = f(x − 4)

  • y = f(x) − 4

  • y = f(x + 4)

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.
Example

$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)?

  • A vertical stretch with scale factor 3

  • A horizontal stretch with scale factor 1/3

  • A horizontal stretch with scale factor 3

  • A translation 3 units right

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.
Example

$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)?

  • Moves it to (2, −5)

  • Moves it to (−2, 5)

  • Moves it to (−2, −5)

  • Leaves it unchanged

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

Worked example

Following a point

  1. $(2, 4)$ lies on $y = f(x)$. Where does it go on $y = 3f(x - 1) - 2$?
  2. Horizontal: $x - 1 = 2$, so the new $x$ is 3.
  3. Vertical: $3 \times 4 - 2 = 10$.
  4. The image is $(3, 10)$.
Worked example

Describing a combination

  1. $y = 2(x - 3)^2 + 1$ from $y = x^2$.
  2. Translate right 3, stretch vertically by factor 2, translate up 1.
  3. 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?

  • (0.5, 6)

  • (1, 9)

  • (1, 4.5)

  • (1, 6)

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?

  • Translates it up 10 units

  • Stretches it by 10

  • Moves it 10 units right

  • Reflects it

Show the answer

Translates it up 10 units

Adding outside the function is a vertical translation.

6Writing the equation after transformations

Worked example

$y = x^2$ is stretched vertically by factor 3, then translated by $\begin{pmatrix} 2 \\ -5 \end{pmatrix}$

  1. Vertical stretch: $y = 3x^2$.
  2. Translation 2 right and 5 down: $y = 3(x - 2)^2 - 5$.
  3. Vertex: $(2, -5)$.
Check yourself

What is $y = x^2$ after a translation of 4 to the left?

  • $y = x^2 + 4$

  • $y = x^2 - 4$

  • $y = (x + 4)^2$

  • $y = (x - 4)^2$

Show the answer

$y = (x + 4)^2$

Left means $x + 4$.

7Transformations in data models

Transformations help adjust a model to fit data.

Worked example

Adjusting a temperature model

  1. Model for one city: $T = 8\sin(30t) + 15$.
  2. A second city is 3 °C warmer all year: $T = 8\sin(30t) + 18$, a vertical translation.
  3. 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?

  • A horizontal stretch

  • A reflection in the x-axis

  • A vertical stretch by 3

  • A vertical translation by 3

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