impera Open Impera

IB Diploma Mathematics AA · Functions

Transformations of graphs

1Translations

A transformation changes the position or shape of a graph. Starting from $y = f(x)$:

  • $y = f(x) + b$ moves the graph up by $b$.
  • $y = f(x - a)$ moves the graph right by $a$.

The second one is easy to get wrong. A change inside the brackets acts on $x$ and works the opposite way to what you might expect: $f(x - 3)$ moves the graph 3 to the right, and $f(x + 3)$ moves it 3 to the left.

A translation can be written as a vector: $\begin{pmatrix} a \\ b \end{pmatrix}$ means $a$ right and $b$ up.

Translating a parabola 3 right and 2 up

Worked example

Translating a parabola

  1. Start with $y = x^2$, which has its vertex at $(0, 0)$.
  2. $y = (x - 3)^2 + 2$ is a translation of 3 right and 2 up.
  3. The new vertex is $(3, 2)$.
Check yourself

What does y = f(x + 4) do to the graph of y = f(x)?

  • Moves it 4 units up

  • Moves it 4 units to the right

  • Stretches it by a factor of 4

  • Moves it 4 units to the left

Show the answer

Moves it 4 units to the left

A change inside the brackets works the opposite way.

2Reflections

  • $y = -f(x)$ reflects the graph in the $x$-axis. Every $y$-value changes sign.
  • $y = f(-x)$ reflects the graph in the $y$-axis. Every $x$-value changes sign.
Example

$y = -x^2$ is the parabola $y = x^2$ turned upside down. The graph of $y = e^{-x}$ is the graph of $y = e^x$ reflected in the $y$-axis, turning growth into decay.

Check yourself

What does y = −f(x) do to the graph of y = f(x)?

  • Reflects it in the y-axis

  • Moves it down

  • Reflects it in the x-axis

  • Leaves it unchanged

Show the answer

Reflects it in the x-axis

Every y-value changes sign.

3Stretches

  • $y = pf(x)$ is a vertical stretch, scale factor $p$. Every $y$-value is multiplied by $p$.
  • $y = f(qx)$ is a horizontal stretch, scale factor $\dfrac{1}{q}$. Again, a change inside the brackets works the opposite way: $f(2x)$ squashes the graph to half its width.
Worked example

Stretching a sine curve

  1. $y = 3\sin x$ is three times as tall: its amplitude is 3.
  2. $y = \sin 2x$ is squashed to half the width: it repeats twice as often.
Check yourself

What does y = f(2x) do to the graph of y = f(x)?

  • Stretches it vertically by 2

  • Moves it 2 to the right

  • Stretches it horizontally to twice its width

  • Squashes it horizontally to half its width

Show the answer

Squashes it horizontally to half its width

The horizontal scale factor is 1/2.

4Combining transformations

When several transformations are combined, the order can matter.

For $y = af(b(x - c)) + d$, apply in this order:

  • horizontal stretch by scale factor $\dfrac{1}{b}$;
  • horizontal translation by $c$;
  • vertical stretch by scale factor $a$;
  • vertical translation by $d$.

A rule that is easy to remember: transformations outside the function affect $y$ and behave as expected. Transformations inside affect $x$ and behave in the opposite way.

Worked example

Transforming a point

  1. The point $(2, 5)$ is on $y = f(x)$. Where does it go on $y = 2f(x - 1) + 3$?
  2. Right 1: $x = 3$.
  3. Vertical stretch by 2: $y = 10$. Then up 3: $y = 13$.
  4. The new point is $(3, 13)$.
Check yourself

The point (1, 4) lies on y = f(x). Where is it on y = f(x) + 5?

  • (1, −1)

  • (1, 9)

  • (6, 9)

  • (6, 4)

Show the answer

(1, 9)

The graph moves up by 5.

5Order of transformations

When several transformations are combined, order can matter.

  • For $y = af(bx + c) + d$, a safe approach for horizontal changes is to write $f(b(x + \frac{c}{b}))$: stretch by factor $\frac{1}{b}$, then translate by $-\frac{c}{b}$.
  • Vertical changes: stretch by $a$, then translate by $d$.
Worked example

$y = f(2x - 6)$

  1. Rewrite: $f(2(x - 3))$.
  2. Horizontal stretch by factor $\frac{1}{2}$, then translate 3 units right.
  3. A point $(4, 5)$ on $y = f(x)$ moves to $(2, 5)$ after the stretch, then to $(5, 5)$.
  4. Check: $2(5) - 6 = 4$, so $f(4) = 5$. Correct.
Check yourself

Under $y = f(2x - 6)$, where does the point $(4, 5)$ move?

  • $(5, 5)$

  • $(-1, 5)$

  • $(8, 5)$

  • $(2, 5)$

Show the answer

$(5, 5)$

Solve $2x - 6 = 4$.

6Transforming a point

To find where a point moves, apply the inverse of the inside change to $x$ and the outside change to $y$.

Worked example

$y = 3f(x + 1) - 2$, point $(2, 4)$ on $y = f(x)$

  1. Horizontal: $x + 1 = 2$, so new $x = 1$.
  2. Vertical: $y = 3(4) - 2 = 10$.
  3. New point: $(1, 10)$.
Check yourself

Under $y = -f(x)$, where does $(3, 7)$ move?

  • $(7, 3)$

  • $(-3, -7)$

  • $(-3, 7)$

  • $(3, -7)$

Show the answer

$(3, -7)$

Reflection in the x-axis.

7Going deeper: tracking a point, and why order matters

The safest method for any combined transformation is to track one known point through each step.

Worked example

$(4, 5)$ lies on $y = f(x)$. Find its image on each curve.

  1. $y = 2f(x - 3) + 1$: translate right 3, stretch vertically by 2, translate up 1. $(4, 5) \to (7, 5) \to (7, 10) \to (7, 11)$.
  2. $y = f(2x)$: horizontal stretch with factor $\frac{1}{2}$. $(4, 5) \to (2, 5)$.
  3. $y = -f(x)$: reflection in the $x$-axis. $(4, -5)$.
  4. $y = f(-x)$: reflection in the $y$-axis. $(-4, 5)$.

The rule: changes inside the bracket act on $x$ and do the opposite of what they appear to do. Changes outside act on $y$ and do what they say.

Worked example (order): describe the transformations from $y = f(x)$ to $y = f(2x - 6)$.

  1. Method 1: follow the algebra in order. Replace $x$ with $x - 6$ (translate right 6), then $x$ with $2x$ (stretch factor $\frac{1}{2}$). The point $(4, 5) \to (10, 5) \to (5, 5)$.
  2. Method 2: factorise first, $f(2(x - 3))$. Stretch with factor $\frac{1}{2}$, then translate right 3. $(4, 5) \to (2, 5) \to (5, 5)$.
  3. Both give $(5, 5)$. Check: $2(5) - 6 = 4$, the original input.
  4. The wrong answer comes from mixing the two: stretching and then translating by 6 gives $(8, 5)$.

Vertical order matters too: $y = 2f(x) + 3$ stretches and then translates. $y = 2(f(x) + 3)$ translates up 3 first, then stretches, which moves the graph up 6 in total.

Worked example

describe how $y = x^2$ becomes $y = 3(x + 2)^2 - 5$.

  1. Translate left 2.
  2. Vertical stretch with scale factor 3.
  3. Translate down 5.
  4. The vertex moves from $(0, 0)$ to $(-2, -5)$.

Language that earns the marks

  • "Translation by the vector $\begin{pmatrix} 3 \\ -1 \end{pmatrix}$", or "3 units right and 1 unit down".
  • "Vertical stretch with scale factor 2", and "horizontal stretch with scale factor $\frac{1}{2}$".
  • "Reflection in the $x$-axis".
  • Avoid "moves", "shifts sideways" or "gets thinner" on their own.

Asymptotes and intercepts transform too: if $y = f(x)$ has asymptote $y = 2$, then $y = 3f(x) - 1$ has asymptote $y = 5$.

Check yourself

The point (6, −2) lies on y = f(x). What is its image on y = f(3x) + 4?

  • (2, −6)

  • (6, 2)

  • (18, 2)

  • (2, 2)

Show the answer

(2, 2)

The horizontal stretch has factor 1/3, giving x = 2; the translation adds 4 to y.

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