Combining transformations
Apply several transformations in order, write the resulting equation, and know which pairs of transformations commute and which do not.
Every transformation in one table
| Transformation | Replace | New function |
|---|---|---|
| Shift right $h$ | $x$ by $x - h$ | $y = f(x - h)$ |
| Shift up $k$ | $y$ by $y - k$ | $y = f(x) + k$ |
| Reflect in the $y$-axis | $x$ by $-x$ | $y = f(-x)$ |
| Reflect in the $x$-axis | $y$ by $-y$ | $y = -f(x)$ |
| Stretch horizontally, factor $a$ | $x$ by $\dfrac{x}{a}$ | $y = f\!\left(\dfrac{x}{a}\right)$ |
| Stretch vertically, factor $b$ | $y$ by $\dfrac{y}{b}$ | $y = b\,f(x)$ |
Does the order matter?
Two transformations commute if doing them in either order gives the same graph. A horizontal change and a vertical change always commute. Two changes in the same direction may not.
Start with $y = x^2$. (a) Shift up $1$, then stretch vertically by $3$. (b) Stretch vertically by $3$, then shift up $1$.
The right shift commutes with everything vertical, but the up shift and the vertical stretch do not.
- When are the two graphs the same? (Try $k = 0$, and try $b = 1$.)
$y = \sqrt{x}$ is reflected in the $y$-axis, then shifted right $2$. Find the equation and domain.
$y = x^2$ is stretched vertically by $2$, then shifted down $5$. The result is:
Stretch: $2x^2$. Then subtract 5.
$y = x^2$ is shifted down $5$, then stretched vertically by $2$. The result is:
$2(x^2 - 5) = 2x^2 - 10$.
Which pair always commutes?
Horizontal and vertical changes act on different coordinates.
$(1, 2)$ is on $y = f(x)$. It is mapped onto $y = 3f(x) + 1$. Find the new $y$-coordinate.
$3 \times 2 + 1 = 7$.
$y = 2^x$ is reflected in the $x$-axis, then shifted up $3$. The new asymptote is:
$y = -2^x + 3$. The asymptote $y = 0$ stays at $0$ under the reflection, then moves up to $3$.
$y = -|x + 1| + 4$ is $y = |x|$:
$x \to x + 1$ is a shift left, the minus reflects, and $+4$ shifts up.
$y = \dfrac{1}{x}$ is shifted right $3$, then stretched vertically by $2$. Where is the vertical asymptote?
$y = \dfrac{2}{x - 3}$. A vertical stretch does not move a vertical asymptote.
Find the $y$-intercept of $y = x^2$ shifted left $1$ and then stretched vertically by $9$.
$y = 9(x + 1)^2$, so at $x = 0$, $y = 9$.
Coaching Centre