5G

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

TransformationReplaceFunction 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.

Example 1: vertical stretch and vertical shift●●

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$.

(a) $y = 2x^2 + 3$, vertex $(0, 3)$
Stretch: y = 2x². Then add 3.
(b) $y = 2(x^2 + 3) = 2x^2 + 6$, vertex $(0, 6)$
Shift: y = x² + 3. Then the stretch doubles everything, including the 3.
Different graphs, so the order matters.
Stretch then shift, or shift then stretch?

Both start from y = x². It starts on Example 1.

Try this
  • 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.
Example 2: horizontal stretch and horizontal shift●●

Start with $y = 2^x$. (a) Shift right $1$, then dilate horizontally by factor $2$. (b) Do it the other way round.

(a) $y = 2^{x - 1} \to y = 2^{\frac x2 - 1}$
Shift: replace x by x − 1. Dilate: replace every x by x/2.
(b) $y = 2^{\frac x2} \to y = 2^{\frac{x - 1}{2}}$
Dilate first, then shift: replace x by x − 1 inside x/2.
Different again.
At x = 0: (a) gives 2⁻¹ = 0.5, (b) gives 2^(−0.5) ≈ 0.71.

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.

Example 3●●

Describe $y = 3\sqrt{x + 2} - 1$ as transformations of $y = \sqrt x$, and find the new endpoint.

Shift left $2$.
x has been replaced by x + 2.
Dilate vertically by factor $3$, then shift down $1$.
The √ is multiplied by 3 before the 1 is subtracted, so stretch first.
Endpoint $(-2, -1)$. Domain $x \ge -2$, range $y \ge -1$.
Follow (0, 0): left 2 gives (−2, 0), stretching keeps y = 0, down 1 gives (−2, −1).

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$.

Practice
  1. $y = 2x^2 + 3$ is obtained from $y = x^2$ by:

  2. $(3, 4)$ lies on $y = f(x)$. Find the image point on $y = 2f(x - 1) + 3$. Enter it as $x, y$.

  3. $y = x^2$ is dilated vertically by factor $2$, then shifted up $3$. Find the $y$-intercept.

  4. $y = x^2$ is shifted up $3$, then dilated vertically by factor $2$. Find the $y$-intercept.

  5. Which pair of transformations can always be done in either order?

  6. Find the endpoint of $y = 3\sqrt{x + 2} - 1$. Enter it as $x, y$.

  7. $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$.

  8. $y = -(x + 1)^3$ is obtained from $y = x^3$ by:

  9. Exam style: $y = x^2$ is shifted right $2$, dilated vertically by factor $2$, then shifted down $8$. Find the larger $x$-intercept.

  10. Exam style: $y = 2^x$ is shifted right $1$, then dilated horizontally by factor $2$. Find the $y$-intercept of the result.

Formula sheet