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)?
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.
Transforming y = x²
- $y = x^2 + 4$: up 4. Vertex (0, 4).
- $y = (x - 3)^2$: right 3. Vertex (3, 0).
- $y = (x + 1)^2 - 5$: left 1 and down 5. Vertex (−1, −5).
- This is why vertex form $y = (x - h)^2 + k$ shows the vertex $(h, k)$.
A point on a general graph
- The point (2, 7) lies on $y = f(x)$.
- On $y = f(x) + 3$ it becomes (2, 10).
- On $y = f(x - 4)$ it becomes (6, 7).
- 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)?
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.
Reflecting y = x² + 2
- $y = -(x^2 + 2) = -x^2 - 2$: the parabola is turned upside down, with vertex (0, −2) as a maximum.
- $y = (-x)^2 + 2 = x^2 + 2$: unchanged, because this graph is already symmetrical about the $y$-axis.
A point
- (3, −4) lies on $y = f(x)$.
- On $y = -f(x)$ it becomes (3, 4).
- 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)?
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.
A point
- (4, 3) lies on $y = f(x)$.
- On $y = 2f(x)$ it becomes (4, 6).
- On $y = f(2x)$ it becomes (2, 3).
- On $y = f\left(\frac{1}{2}x\right)$ it becomes (8, 3).
Waves
- $y = \sin x$ has amplitude 1 and period 360°.
- $y = 3\sin x$: vertical stretch factor 3. Amplitude 3, period unchanged.
- $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)?
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.
Describe y = −2(x + 1)² + 4 as transformations of y = x²
- Vertical stretch, scale factor 2: $y = 2x^2$.
- Reflection in the $x$-axis: $y = -2x^2$.
- Translation 1 left and 4 up: $y = -2(x + 1)^2 + 4$.
- Result: an upside-down parabola, narrower than the parent, with vertex (−1, 4) as a maximum.
Tracking a point through y = 3f(x − 2) + 1
- (1, 5) lies on $y = f(x)$.
- Right 2: (3, 5).
- Vertical stretch factor 3: (3, 15).
- Up 1: (3, 16).
Why order matters
- Start with $y = x^2$. Translate up 3, then stretch vertically by 2: $y = 2(x^2 + 3) = 2x^2 + 6$.
- Stretch vertically by 2, then translate up 3: $y = 2x^2 + 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?
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