Prayoga

Exploring Graphs
of Functions

Transformations of functions

Krishnan V P
Research Associate
Department of Mathematics
Prayoga Institute of Education Research

A ride on the London Eye

Ravi is on a trip to London.

He takes a ride on the London Eye, a giant wheel by the river Thames.

Can you draw the graph of the height of Ravi's cabin from the ground against time?

The height of Ravi's cabin from the ground as the wheel turns

What is the function of this graph?

It is a wave, like the graph of $f(x) = \sin x$: a sinusoidal function. But it is not the graph of $\sin x$.

We will build this graph from $\sin x$, one transformation at a time.

Vertical translation of $f(x) = \sqrt{x}$

For $f(x) = \sqrt{x}$, the graph starts at $(0, 0)$. Where does it start for $g(x) = \sqrt{x} + 3$?

Vertical translation

Vertical translation of $f(x) = \sin x$

Vertical translation of some function

Horizontal translation of $f(x) = \sqrt{x}$

For $f(x) = \sqrt{x}$, the graph starts at $(0, 0)$. Where does it start for $g(x) = \sqrt{x - 3}$?

Horizontal translation

Horizontal translation of $f(x) = \sin x$

Horizontal translation of some function

Reflection in the $x$-axis

Reflection in the $x$-axis of some function

Reflection in the $y$-axis

Reflection in the $y$-axis of some function

Multiply $f(x)$ by $-1$

Multiply $x$ by $-1$ first, then apply $f$

Vertical stretch of some function

Vertical compression of some function

Vertical stretch of $f(x) = \sin x$

The amplitude is half the distance between the maximum and the minimum.

Vertical compression of $f(x) = \sin x$

Horizontal compression of some function

Horizontal stretch of some function

Horizontal compression of $f(x) = \sin x$

The period is the length of one cycle.

Horizontal stretch of $f(x) = \sin x$

Multiply first, then add

Multiply by 2, then add 3. Where does $(1, 1)$ end up?

Add first, then multiply

Add 3, then multiply by 2. Where does $(1, 1)$ end up?

Does the order matter?

$f(x) = x^2$ $h_1(x) = 2x^2 + 3$ $h_2(x) = 2(x^2 + 3)$

$h_1(x) = 2x^2 + 3$ means: a vertical stretch by a factor of 2 first, then a vertical translation 3 units up.

Factor $k$ out first

$g(x) = f(2x - 6)$$\ = f\big(2(x - 3)\big)$

Building $g(x) = -2f\big(\tfrac14(x + 1)\big) + 3$ step by step

1. $f(x)$

2. $f(\tfrac14 x)$: horizontal stretch by a factor of 4

3. $2f(\tfrac14 x)$: vertical stretch by a factor of 2

4. $-2f(\tfrac14 x)$: reflection in the $x$-axis

5. $-2f\big(\tfrac14(x + 1)\big)$: 1 unit left

6. $-2f\big(\tfrac14(x + 1)\big) + 3$: 3 units up

Building $g(x) = -2\sin\left[3\left(x - \frac{\pi}{4}\right)\right] + 1$ step by step

1. $f(x) = \sin x$

2. $\sin 3x$: period $\frac{2\pi}{3}$

3. $2\sin 3x$: amplitude 2

4. $-2\sin 3x$: reflection in the $x$-axis

5. $-2\sin\left[3\left(x - \frac{\pi}{4}\right)\right]$: phase shift $\frac{\pi}{4}$ right

6. $-2\sin\left[3\left(x - \frac{\pi}{4}\right)\right] + 1$: vertical translation 1 up

Back to the Ferris wheel

$h(t) = 60\sin\left[\frac{\pi}{15}(t - 7.5)\right] + 75$

Vertical translation 75 units up: the centre of the wheel is $15 + 60 = 75$ m above the ground

Amplitude 60: the radius of the wheel

Period 30 minutes: one full turn of the wheel, so $k = \dfrac{2\pi}{30} = \dfrac{\pi}{15}$

Phase shift 7.5 to the right: $f(x) = \sin x$ starts at $(0, 0)$ going up; this curve does so at $(7.5, 75)$

An application of horizontal translation

Find $\displaystyle\int_{-2}^{-1} (x + 2)^3\,dx$.

One way: expand $(x + 2)^3$, then integrate each term.

A better way is substitution: let $u = x + 2$, so $du = dx$.

When $x = -2$, $u = 0$. When $x = -1$, $u = 1$.

$\displaystyle\int_{-2}^{-1} (x + 2)^3\,dx$
$=$
$\displaystyle\int_{0}^{1} u^3\,du$
$=$
$\displaystyle\left[\frac{u^4}{4}\right]_0^1$
$=$
$\displaystyle\frac14$

$\displaystyle\int_{-2}^{-1} (x + 2)^3\,dx = \int_{0}^{1} u^3\,du = \frac14$, with $u = x + 2$

Area $= \displaystyle\int_{-2}^{-1} (x + 2)^3\,dx$

Area $= \displaystyle\int_{0}^{1} u^3\,du$

Area $= \displaystyle\int_{0}^{1} x^3\,dx$

Prayoga

Thank you