Combining transformations
Apply several transformations in order, write the resulting equation, and know which pairs of transformations commute and which do not.
Real questions rarely use one transformation at a time. $y = 3\sqrt{x + 2} - 1$ is $y = \sqrt x$ shifted, stretched and shifted again. This section pulls 5A, 5B and 5D together and sorts out when the order matters.
Every transformation in one table
| Transformation | Replace | Function form |
|---|---|---|
| Shift right $a$ | $x$ by $x - a$ | $y = f(x - a)$ |
| Shift up $b$ | $y$ by $y - b$ | $y = f(x) + b$ |
| Horizontal dilation, factor $a$ | $x$ by $\tfrac xa$ | $y = f\left(\tfrac xa\right)$ |
| Vertical dilation, factor $b$ | $y$ by $\tfrac yb$ | $y = b\,f(x)$ |
| Reflect in $y$-axis | $x$ by $-x$ | $y = f(-x)$ |
| Reflect in $x$-axis | $y$ by $-y$ | $y = -f(x)$ |
Notice the reflections are just dilations with factor $-1$. So there are really only two kinds: translations and dilations, each horizontal or vertical.
Does the order matter?
A horizontal change only touches $x$ and a vertical change only touches $y$, so a horizontal and a vertical transformation can always be done in either order. Two translations commute, and so do two dilations. The trouble comes when two transformations act in the same direction and one is a dilation and the other a translation.
Start with $y = x^2$. (a) Dilate vertically by factor $2$, then shift up $3$. (b) Shift up $3$, then dilate vertically by factor $2$.
Both start from y = x². It starts on Example 1.
- Move $h$. Do the two graphs ever separate because of $h$? Explain why a horizontal shift doesn't care about the order.
- Find every value of $b$ that makes the two graphs the same, whatever $k$ is.
Start with $y = 2^x$. (a) Shift right $1$, then dilate horizontally by factor $2$. (b) Do it the other way round.
Reading an equation as transformations
To describe $y = b\,f(x - a) + c$, work from the inside out on $x$ and from the outside in on $y$: shift right $a$; dilate vertically by $b$; then shift up $c$. Tracking a key point is the fastest check.
Describe $y = 3\sqrt{x + 2} - 1$ as transformations of $y = \sqrt x$, and find the new endpoint.
Your turn
$y = x^2$ is shifted left $1$, dilated vertically by factor $3$, then shifted down $12$. Find the equation and its $x$-intercepts.
Show the working
Left $1$: $y = (x + 1)^2$. Dilate: $y = 3(x + 1)^2$. Down $12$: $y = 3(x + 1)^2 - 12$. For the intercepts, $(x + 1)^2 = 4$, so $x + 1 = \pm 2$, giving $x = 1$ or $x = -3$.
$y = 2x^2 + 3$ is obtained from $y = x^2$ by:
Stretching first gives $2x^2$, then adding $3$ gives $2x^2 + 3$. The other order gives $2x^2 + 6$.
$(3, 4)$ lies on $y = f(x)$. Find the image point on $y = 2f(x - 1) + 3$. Enter it as $x, y$.
Right $1$: $x = 4$. Then $y = 2 \times 4 + 3 = 11$.
$y = x^2$ is dilated vertically by factor $2$, then shifted up $3$. Find the $y$-intercept.
$y = 2x^2 + 3$, so the $y$-intercept is $3$.
$y = x^2$ is shifted up $3$, then dilated vertically by factor $2$. Find the $y$-intercept.
$y = 2(x^2 + 3) = 2x^2 + 6$, so the $y$-intercept is $6$.
Which pair of transformations can always be done in either order?
One changes only $x$ and the other only $y$, so they don't interfere.
Find the endpoint of $y = 3\sqrt{x + 2} - 1$. Enter it as $x, y$.
The root starts where $x + 2 = 0$, so $x = -2$, and then $y = 0 - 1 = -1$.
$y = \sqrt x$ is reflected in the $y$-axis and then shifted right $4$. The domain of the result is $x \le k$. Find $k$.
Reflect: $y = \sqrt{-x}$. Shift right $4$: $y = \sqrt{-(x - 4)} = \sqrt{4 - x}$. Need $4 - x \ge 0$, so $x \le 4$.
$y = -(x + 1)^3$ is obtained from $y = x^3$ by:
$x$ replaced by $x + 1$ is a shift left $1$. The minus in front of everything is a reflection in the $x$-axis. These two commute.
Exam style: $y = x^2$ is shifted right $2$, dilated vertically by factor $2$, then shifted down $8$. Find the larger $x$-intercept.
$y = 2(x - 2)^2 - 8$. Setting $y = 0$: $(x - 2)^2 = 4$, so $x - 2 = \pm 2$ and $x = 4$ or $x = 0$.
Exam style: $y = 2^x$ is shifted right $1$, then dilated horizontally by factor $2$. Find the $y$-intercept of the result.
Shift: $y = 2^{x - 1}$. Dilate: replace $x$ by $\tfrac x2$, giving $y = 2^{\frac x2 - 1}$. At $x = 0$: $2^{-1} = 0.5$.
Coaching Centre