impera Open Impera

IB MYP Extended Mathematics · Algebra

Transformations of functions

1Function notation and the parent graphs

A function gives exactly one output for each input. $f(x)$ is read "f of x": $f(x) = x^2 + 1$ means $f(3) = 10$.

A transformation changes a graph in a predictable way. If you know a basic parent graph, you can sketch a whole family of related graphs without plotting points.

Parent graphs to know:

  • $y = x$: a straight line through the origin.
  • $y = x^2$: a parabola with vertex at the origin.
  • $y = x^3$: a curve rising through the origin, flat at the middle.
  • $y = \dfrac{1}{x}$: two branches with the axes as asymptotes.
  • $y = \sqrt{x}$: half a sideways parabola, starting at the origin.
  • $y = 2^x$: an exponential curve through (0, 1).
  • $y = \sin x$ and $y = \cos x$: waves between −1 and 1.
  • $y = |x|$: a V shape.

Every transformation acts on points. Tracking one or two key points, such as a vertex or an intercept, is the safest way to work.

The golden rule: changes outside the function, to $f(x)$, affect $y$ and behave as you expect. Changes inside, to $x$, affect $x$ and do the opposite of what you expect.

Check yourself

If f(x) = x² + 1, what is f(−2)?

  • 5

  • −5

  • 3

  • −3

Show the answer

5

(−2)² + 1 = 4 + 1.

2Translations

A translation slides the graph without changing its shape.

  • $y = f(x) + k$: moves the graph up by $k$ (down if $k$ is negative).
  • $y = f(x - h)$: moves the graph right by $h$ (left if $h$ is negative).

The horizontal one is the surprise: $f(x - 3)$ moves right 3, and $f(x + 3)$ moves left 3. Reason: to get the same output as before, $x$ must now be 3 larger.

Worked example

Transforming y = x²

  1. $y = x^2 + 4$: up 4. Vertex (0, 4).
  2. $y = (x - 3)^2$: right 3. Vertex (3, 0).
  3. $y = (x + 1)^2 - 5$: left 1 and down 5. Vertex (−1, −5).
  4. This is why vertex form $y = (x - h)^2 + k$ shows the vertex $(h, k)$.
Worked example

A point on a general graph

  1. The point (2, 7) lies on $y = f(x)$.
  2. On $y = f(x) + 3$ it becomes (2, 10).
  3. On $y = f(x - 4)$ it becomes (6, 7).
  4. On $y = f(x + 1) - 2$ it becomes (1, 5).

A translation can be written as a vector: $y = f(x - 4) + 3$ is a translation of 4 right and 3 up.

Check yourself

How does the graph of y = f(x + 5) compare with y = f(x)?

  • It is moved 5 units to the right

  • It is moved 5 units down

  • It is moved 5 units to the left

  • It is moved 5 units up

Show the answer

It is moved 5 units to the left

Changes inside the bracket act on x in the opposite direction.

3Reflections

  • $y = -f(x)$: reflection in the x-axis. Every $y$-value changes sign.
  • $y = f(-x)$: reflection in the y-axis. Every $x$-value changes sign.
Worked example

Reflecting y = x² + 2

  1. $y = -(x^2 + 2) = -x^2 - 2$: the parabola is turned upside down, with vertex (0, −2) as a maximum.
  2. $y = (-x)^2 + 2 = x^2 + 2$: unchanged, because this graph is already symmetrical about the $y$-axis.
Worked example

A point

  1. (3, −4) lies on $y = f(x)$.
  2. On $y = -f(x)$ it becomes (3, 4).
  3. On $y = f(-x)$ it becomes (−3, −4).

Symmetry gives two special kinds of function.

  • An even function is unchanged by $f(-x)$: $f(-x) = f(x)$. Its graph is symmetrical about the $y$-axis. Examples: $x^2$, $\cos x$, $|x|$.
  • An odd function satisfies $f(-x) = -f(x)$. Its graph has rotational symmetry of order 2 about the origin. Examples: $x^3$, $\sin x$, $\frac{1}{x}$.
Check yourself

What transformation maps y = f(x) onto y = −f(x)?

  • Translation down

  • Reflection in the x-axis

  • Rotation of 90°

  • Reflection in the y-axis

Show the answer

Reflection in the x-axis

The sign of every y-value changes.

4Stretches

A stretch pulls the graph away from an axis, or squashes it towards it.

  • $y = af(x)$: vertical stretch, scale factor $a$. Every $y$-value is multiplied by $a$. Points on the $x$-axis stay where they are.
  • $y = f(bx)$: horizontal stretch, scale factor $\dfrac{1}{b}$. Every $x$-value is divided by $b$. Points on the $y$-axis stay where they are.

Again the inside change does the opposite: $f(2x)$ squashes the graph to half its width.

Worked example

A point

  1. (4, 3) lies on $y = f(x)$.
  2. On $y = 2f(x)$ it becomes (4, 6).
  3. On $y = f(2x)$ it becomes (2, 3).
  4. On $y = f\left(\frac{1}{2}x\right)$ it becomes (8, 3).
Worked example

Waves

  1. $y = \sin x$ has amplitude 1 and period 360°.
  2. $y = 3\sin x$: vertical stretch factor 3. Amplitude 3, period unchanged.
  3. $y = \sin 2x$: horizontal stretch factor ½. Period 180°, amplitude unchanged.

For a parabola, $y = 3x^2$ is narrower than $y = x^2$, and $y = \frac{1}{2}x^2$ is wider.

Check yourself

The point (6, 2) lies on y = f(x). Where is it on y = f(3x)?

  • (6, 6)

  • (6, 2/3)

  • (18, 2)

  • (2, 2)

Show the answer

(2, 2)

x-values are divided by 3; y-values do not change.

5Combining transformations

When several transformations are applied, order can matter. A reliable order for $y = af(x - h) + k$ is: stretch or reflect first, then translate.

Worked example

Describe y = −2(x + 1)² + 4 as transformations of y = x²

  1. Vertical stretch, scale factor 2: $y = 2x^2$.
  2. Reflection in the $x$-axis: $y = -2x^2$.
  3. Translation 1 left and 4 up: $y = -2(x + 1)^2 + 4$.
  4. Result: an upside-down parabola, narrower than the parent, with vertex (−1, 4) as a maximum.
Worked example

Tracking a point through y = 3f(x − 2) + 1

  1. (1, 5) lies on $y = f(x)$.
  2. Right 2: (3, 5).
  3. Vertical stretch factor 3: (3, 15).
  4. Up 1: (3, 16).
Worked example

Why order matters

  1. Start with $y = x^2$. Translate up 3, then stretch vertically by 2: $y = 2(x^2 + 3) = 2x^2 + 6$.
  2. Stretch vertically by 2, then translate up 3: $y = 2x^2 + 3$.
  3. The results are different.

To describe a transformation fully, use the correct words: "translation by the vector …", "reflection in the x-axis", "vertical stretch with scale factor 2". "Moved" and "made thinner" are not enough.

Asymptotes transform too. If $y = f(x)$ has asymptote $y = 0$, then $y = f(x) + 3$ has asymptote $y = 3$.

Check yourself

What is the vertex of y = 2(x − 5)² − 3?

  • (5, −3)

  • (5, 3)

  • (10, −3)

  • (−5, −3)

Show the answer

(5, −3)

The translation is 5 right and 3 down; the stretch does not move the vertex's x-value.

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