How do the three standard transformations (vertical translation, horizontal translation, and vertical scaling) affect the midline, amplitude, range, and period of sine and cosine curves?

What algebraic transformation results in horizontal stretching or scaling of a function?

How can we determine a formula involving sine or cosine that models any circular periodic function for which the midline, amplitude, period, and an anchor point are known?

Recall our work in Section 1.8, where we studied how the graph of the function \(g\) defined by \(g(x) = af(x-b) + c\) is related to the graph of \(f\text{,}\) where \(a\text{,}\)\(b\text{,}\) and \(c\) are real numbers with \(a \ne 0\text{.}\) Because such transformations can shift and stretch a function, we are interested in understanding how we can use transformations of the sine and cosine functions to fit formulas to circular functions.

Preview Activity2.4.1.

Let \(f(t) = \cos(t)\text{.}\) First, answer all of the questions below without using Desmos; then use Desmos to confirm your conjectures. For each prompt, describe the graphs of \(g\) and \(h\) as transformations of \(f\) and, in addition, state the amplitude, midline, and period of both \(g\) and \(h\text{.}\)

\(g(t) = 3\cos(t)\) and \(h(t) = -\frac{1}{4}\cos(t)\)

\(g(t) = \cos(t-\pi)\) and \(h(t) = \cos\left(t+ \frac{\pi}{2}\right)\)

\(g(t) = \cos(t)+4\) and \(h(t) = \cos\left(t\right)-2\)

\(g(t) = 3\cos(t-\pi)+4\) and \(h(t) = -\frac{1}{4}\cos\left(t+ \frac{\pi}{2}\right)-2\)

Subsection2.4.1Shifts and vertical stretches of the sine and cosine functions

We know that the standard functions \(f(t) = \sin(t)\) and \(g(t) = \cos(t)\) are circular functions that each have midline \(y = 0\text{,}\) amplitude \(a = 1\text{,}\) period \(p = 2\pi\text{,}\) and range \([-1,1]\text{.}\) Our work in Preview Activity 2.4.1 suggests the following general principles.

Transformations of sine and cosine.

Given real numbers \(a\text{,}\)\(b\text{,}\) and \(c\) with \(a \ne 0\text{,}\) the functions

\begin{equation*}
k(t) = a\cos(t-b)+c \ \text{ and } \ h(t) = a\sin(t-b) + c
\end{equation*}

each represent a horizontal shift by \(b\) units to the right, followed by a vertical stretch by \(|a|\) units (if \(a \lt 0\text{,}\) there is also a reflection across the \(x\)-axis), followed by a vertical shift of \(c\) units, applied to the parent function (\(\cos(t)\) or \(\sin(t)\text{,}\) respectively). The resulting circular functions have midline \(y = c\text{,}\) amplitude \(|a|\text{,}\) range \([c-|a|,c+|a|]\text{,}\) and period \(p = 2\pi\text{.}\) In addition, the point \((b,a+c)\) lies on the graph of \(k\) and the point \((b,c)\) lies on the graph of \(h\text{.}\)

In Figure 2.4.1, we see how the overall transformation \(k(t) = a\cos(t-b)+c\) comes from executing a sequence of simpler ones. The original parent function \(y = \cos(t)\) (in dark gray) is first shifted \(b\) units right to generate the light red graph of \(y = \cos(t - b)\text{.}\) In turn, that graph is then scaled vertically by \(a\) to generate the purple graph of \(y = a\cos(t-b)\text{.}\) Finally, the purple graph is shifted \(c\) units vertically to result in the final graph of \(y = a\cos(t-b) + c\) in blue.

It is often useful to follow one particular point through a sequence of transformations. In Figure 2.4.1, we see the red point that is located at \((0,1)\) on the original function \(y = \cos(t)\text{,}\) as well as the point \((b, a+c)\) that is the corresponding point on \(k(t) = a\cos(t-b) + c\) under the overall transformation. Note that the point \((b,a+c)\) results from the input, \(t = b\text{,}\) that makes the argument of the cosine function zero: \(k(b) = a\cos(b-b) + c = a\cos(0) + c\text{.}\)

While the sine and cosine functions extend infinitely in either direction, it’s natural to think of the point \((0,1)\) as the “starting point” of the cosine function, and similarly the point \((0,0)\) as the starting point of the sine function. We will refer to the corresponding point \((b,a+c)\) on \(k(t) = a\cos(t-b) + c\text{,}\) and \((b,c)\) on \(h(t) = a\sin(t-b) + c\text{,}\) respectively, as the anchor point. The anchor point, along with other information about a circular function’s amplitude, midline, and period help us to determine a formula for a function that fits a given situation.

For example, in Figure 2.4.1, the anchor point \((b,a+c)\) on \(y = a\cos(t-b)+c\) corresponds to the “starting point” \((0,1)\) on \(y = \cos(t)\text{.}\)

Activity2.4.2.

Consider a spring-mass system where a weight is resting on a frictionless table. We let \(d(t)\) denote the distance from the wall (where the spring is attached) to the weight at time \(t\) in seconds and know that the weight oscillates periodically with a minimum value of \(d(t) = 2\) feet and a maximum value of \(d(t) = 7\) feet with a period of \(2 \pi\text{.}\) We also know that \(d(0) = 4.5\) and \(d\left(\frac{\pi}{2}\right) = 2\text{.}\)

Determine a formula for \(d(t)\) in the form \(d(t) = a\cos(t-b)+c\) or \(d(t) = a\sin(t-b)+c\text{.}\) Is it possible to find two different formulas that work? For any formula you find, identify the anchor point.

Subsection2.4.2Horizontal scaling

There is one more very important transformation of a function that we’ve not yet explored. Given a function \(y = f(x)\text{,}\) we want to understand the related function \(g(x) = f(kx)\text{,}\) where \(k\) is a positive real number. The sine and cosine functions are ideal functions with which to explore these effects; moreover, this transformation is crucial for being able to use the sine and cosine functions to model phenomena that oscillate at different frequencies.

In the interactive Figure 2.4.2, we can explore the effect of the transformation \(g(t) = f(kt)\text{,}\) where \(f(t) = \sin(t)\text{.}\)

By experimenting with the slider, we gain an intuitive sense for how the value of \(k\) affects the graph of \(h(t) = f(kt)\) in comparision to the graph of \(f(t)\text{.}\) When \(k = 2\text{,}\) we see that the graph of \(h\) is oscillating twice as fast as the graph of \(f\) since \(h(t) = f(2t)\) completes two full cycles over an interval in which \(f\) completes one full cycle. In contrast, when \(k = \frac{1}{2}\text{,}\) the graph of \(h\) oscillates half as fast as the graph of \(f\text{,}\) as \(h(t) = f(\frac{1}{2}t)\) completes only half of one cycle over an interval where \(f(t)\) completes a full one.

We can also understand this from the perspective of function composition. To evaluate \(h(t) = f(2t)\text{,}\) at a given value of \(t\text{,}\) we first multiply the input \(t\) by a factor of \(2\text{,}\) and then evaluate the function \(f\) at the result. An important observation is that

This tells us that the point \((\frac{1}{2}t, f(t))\) lies on the graph of \(h\) since an input of \(\frac{1}{2}t\) in \(h\) results in the value \(f(t)\text{.}\) At the same time, the point \((t,f(t))\) lies on the graph of \(f\text{.}\) Thus we see that the correlation between points on the graphs of \(f\) and \(h\) (where \(h(t) = f(2t)\)) is

We can therefore think of the transformation \(h(t) = f(2t)\) as achieving the output values of \(f\) twice as fast as the original function \(f(t)\) does. Analogously, the transformation \(h(t) = f(\frac{1}{2}t)\) will achieve the output values of \(f\) only half as quickly as the original function.

Horizontal scaling.

Given a function \(y = f(t)\) and a real number \(k \gt 0\text{,}\) the transformed function \(y = h(t) = f(kt)\) is a horizontal stretch of the graph of \(f\text{.}\) Every point \((t,f(t))\) on the graph of \(f\) gets stretched horizontally to the corresponding point \((\frac{1}{k}t,f(t))\) on the graph of \(h\text{.}\) If \(0 \lt k \lt 1\text{,}\) the graph of \(h\) is a stretch of \(f\) away from the \(y\)-axis by a factor of \(\frac{1}{k}\text{;}\) if \(k \gt 1\text{,}\) the graph of \(h\) is a compression of \(f\) toward the \(y\)-axis by a factor of \(\frac{1}{k}\text{.}\) The only point on the graph of \(f\) that is unchanged by the transformation is \((0,f(0))\text{.}\)

While we will soon focus on horizontal stretches of the sine and cosine functions for the remainder of this section, it’s important to note that horizontal scaling follows the same principles for any function we choose.

On the same axes as the plot of \(y = f(t)\text{,}\) sketch the following graphs: \(y = h(t) = f(\frac{1}{3}t)\) and \(y = j(t) = f(4t)\text{.}\) Be sure to label several points on each of \(f\text{,}\)\(h\text{,}\) and \(j\) with arrows to indicate their correspondence. In addition, write one sentence to explain the overall transformations that have resulted in \(h\) and \(j\) from \(f\text{.}\)

On the same axes as the plot of \(y = g(t)\text{,}\) sketch the following graphs: \(y = k(t) = g(2t)\) and \(y = m(t) = g(\frac{1}{2}t)\text{.}\) Be sure to label several points on each of \(g\text{,}\)\(k\text{,}\) and \(m\) with arrows to indicate their correspondence. In addition, write one sentence to explain the overall transformations that have resulted in \(k\) and \(m\) from \(g\text{.}\)

On the additional copies of the two figures below, sketch the graphs of the following transformed functions: \(y = r(t) = 2f(\frac{1}{2}t)\) (at left) and \(y = s(t) = \frac{1}{2}g(2t)\text{.}\) As above, be sure to label several points on each graph and indicate their correspondence to points on the original parent function.

Describe in words how the function \(y = r(t) = 2f(\frac{1}{2}t)\) is the result of two elementary transformations of \(y = f(t)\text{.}\) Does the order in which these transformations occur matter? Why or why not?

Subsection2.4.3Circular functions with different periods

Because the circumference of the unit circle is \(2\pi\text{,}\) the sine and cosine functions each have period \(2\pi\text{.}\) Of course, as we think about using transformations of the sine and cosine functions to model different phenomena, it is apparent that we will need to generate functions with different periods than \(2\pi\text{.}\) For instance, if a ferris wheel makes one revolution every \(5\) minutes, we’d want the period of the function that models the height of one car as a function of time to be \(P = 5\text{.}\) Horizontal scaling of functions enables us to generate circular functions with any period we desire.

We begin by considering two basic examples. First, let \(f(t) = \sin(t)\) and \(g(t) = f(2t) = \sin(2t)\text{.}\) We know from our most recent work that this transformation results in a horizontal compression of the graph of \(\sin(t)\) by a factor of \(\frac{1}{2}\) toward the \(y\)-axis. If we plot the two functions on the same axes as seen in Figure 2.4.5, it becomes apparent how this transformation affects the period of \(f\text{.}\)

From the graph, we see that \(g(t) = \sin(2t)\) oscillates twice as frequently as \(f(t) = \sin(t)\text{,}\) and that \(g\) completes a full cycle on the interval \([0,\pi]\text{,}\) which is half the length of the period of \(f\text{.}\) Thus, the “\(2\)” in \(f(2t)\) causes the period of \(f\) to be \(\frac{1}{2}\) as long; specifially, the period of \(g\) is \(P = \frac{1}{2} (2\pi) = \pi\text{.}\)

On the other hand, if we let \(h(t) = f(\frac{1}{2}t) = \sin(\frac{1}{2}t)\text{,}\) the transformed graph \(h\) is stretched away from the \(y\)-axis by a factor of \(2\text{.}\) This has the effect of doubling the period of \(f\text{,}\) so that the period of \(h\) is \(P = 2 \cdot 2\pi = 4\pi\text{,}\) as seen in Figure 2.4.6.

Our observations generalize for any positive constant \(k \gt 0\text{.}\) In the case where \(k = 2\text{,}\) we saw that the period of \(g(t) = \sin(2t)\) is \(P = \frac{1}{2} \cdot 2\pi\text{,}\) whereas in the case where \(k = \frac{1}{2}\text{,}\) the period of \(h(t) = \sin(\frac{1}{2}t)\) is \(P = 2 \cdot 2\pi = \frac{1}{\frac{1}{2}} \cdot 2\pi\text{.}\) Identical reasoning holds if we are instead working with the cosine function. In general, we can say the following.

The period of a circular function.

For any constant \(k \gt 0\text{,}\) the period of the functions \(\sin(kt)\) and \(\cos(kt)\) is

\begin{equation*}
P = \frac{2\pi}{k}\text{.}
\end{equation*}

Thus, if we know the \(k\)-value from the given function, we can deduce the period. If instead we know the desired period, we can determine \(k\) by the rule \(k = \frac{2\pi}{P}\text{.}\)

Activity2.4.4.

Determine the exact period, amplitude, and midline of each of the following functions. In addition, state the range of each function, any horizontal shift that has been introduced to the graph, and identify an anchor point. Make your conclusions without consulting Desmos, and then use the program to check your work.

Consider a spring-mass system where the weight is hanging from the ceiling in such a way that the following is known: we let \(d(t)\) denote the distance from the ceiling to the weight at time \(t\) in seconds and know that the weight oscillates periodically with a minimum value of \(d(t) = 1.5\) and a maximum value of \(d(t) = 4\text{,}\) with a period of \(3\text{,}\) and you know \(d(0.5) = 2.75\) and \(d\left(1.25\right) = 4\text{.}\)

State the midline, amplitude, range, and an anchor point for the function, and hence determine a formula for \(d(t)\) in the form \(a\cos(k(t+b))+c\) or \(a\sin(k(t+b))+c\text{.}\) Show your work and thinking, and use Desmos appropriately to check that your formula generates the desired behavior.

Subsection2.4.4Summary

Given real numbers \(a\text{,}\)\(b\text{,}\) and \(c\) with \(a \ne 0\text{,}\) the functions

\begin{equation*}
k(t) = a\cos(t-b)+c \text{ and } h(t) = a\sin(t-b) + c
\end{equation*}

each represent a horizontal shift by \(b\) units to the right, followed by a vertical stretch by \(|a|\) units (with a reflection across the \(x\)-axis if \(a \lt 0\)), followed by a vertical shift of \(c\) units, applied to the parent function (\(\cos(t)\) or \(\sin(t)\text{,}\) respectively). The resulting circular functions have midline \(y = c\text{,}\) amplitude \(|a|\text{,}\) range \([c-|a|,c+|a|]\text{,}\) and period \(p = 2\pi\text{.}\) In addition, the anchor point \((b,a+c)\) lies on the graph of \(k\) and the anchor point \((b,c)\) lies on the graph of \(h\text{.}\)

Given a function \(f\) and a constant \(k \gt 0\text{,}\) the algebraic transformation \(h(t) = f(kt)\) results in horizontal scaling of \(f\) by a factor of \(\frac{1}{k}\text{.}\) In particular, when \(k \gt 1\text{,}\) the graph of \(f\) is compressed toward the \(y\)-axis by a factor of \(\frac{1}{k}\) to create the graph of \(h\text{,}\) while when \(0 \lt k \lt 1\text{,}\) the graph of \(f\) is stretched away from the \(y\)-axis by a factor of \(\frac{1}{k}\) to create the graph of \(h\text{.}\)

Given any circular periodic function for which the midline, amplitude, period, and an anchor point are known, we can find a corresponding formula for the function of the form

Each of these functions has midline \(y = c\text{,}\) amplitude \(|a|\text{,}\) and period \(P = \frac{2\pi}{k}\text{.}\) The point \((b,a+c)\) lies on \(k\) and the point \((b,c)\) lies on \(h\text{.}\)

Exercises2.4.5Exercises

1.

Without a calculator, match each of the equations below to one of the graphs by placing the corresponding letter of the equation under the appropriate graph.

A. \(y = \sin{(t)} + 2\)

B. \(y = \sin{(t+ 2)}\)

C. \(y = \sin{(2 t)}\)

D. \(y = 2 \sin{(t)}\)

1.

2.

3.

4.

(click on an image to enlarge each individual graph)

2.

Find period, amplitude, and midline of the following function:

\begin{equation*}
y = -6 \cos{(7 \pi x + 2)} - 9
\end{equation*}

(a) The period of the graph is

(b) The midline of the graph is \(y =\)

(c) The amplitude of the graph is

3.

Estimate the amplitude, midline, and period of the sinusoidal function graphed below:

(Click on the graph to get a larger version.)

(a) The amplitude is .

(b) The midline is \(y =\) .

(c) The period is .

4.

Find a possible formula for the trigonometric function graphed below. Use \(x\) as the independent variable in your formula.

\(f(x) =\)

(Click on graph to enlarge)

5.

Find a formula for the trigonometric function graphed below. Use \(x\) as the independent variable in your formula.

\(f(x) =\)

(Click on graph to enlarge)

6.

A ferris wheel is 40 meters in diameter and boarded at ground level. The wheel makes one full rotation every 8 minutes, and at time \(t = 0\) you are at the 9 o’clock position and descending. Let \(f(t)\) denote your height (in meters) above ground at \(t\) minutes. Find a formula for \(f(t)\text{.}\)

\(f(t) =\)

7.

Find a possible formula for the circular function whose values are in the following table.

Table2.4.7.

\(x\)

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1.0

\(g(x)\)

2

2.6

3

3

2.6

2

1.4

1

1

1.4

2

Hint: Plot the points first; doing so in Desmos is ideal.

8.

In 2018, on the summer solstice, June 21, Grand Rapids, MI, experiences \(15\) hours, \(21\) minutes, and \(25\) seconds of daylight. Said differently, on the \(172\)nd day of the year, people on earth at the latitude of Grand Rapids experience \(15.3569\) hours of daylight. On the winter solstice, December 21, 2018, the same latitude has \(9\) hours, \(0\) minutes, and \(31\) seconds of daylight; equivalently, on day \(355\text{,}\) there are \(9.0086\) hours of daylight. This data is essentially identical every year as the patterns of the earth’s rotation repeat.

Let \(t\) be the day of the year starting with \(t = 0\) on December 31, 2017. In addition, let \(s(t)\) be the number of hours of daylight on day \(t\) in Grand Rapids, MI. Find a formula for a circular function \(s(t)\) that fits this data. What is the function’s midline, amplitude, and period? What are you using as an anchor point? Explain fully, and then graph your function to check your conclusions.

9.

We now understand the effects of the transformation \(h(t) = f(kt)\) where \(k \gt 0\) for a given function \(f\text{.}\) Our goal is to understand what happens when \(k \lt 0\text{.}\)

We first consider the special case where \(k = -1\text{.}\) Let \(f(t) = 2t - 1\text{,}\) and let \(g(t) = f(-1 \cdot t) = f(-t) = -2t - 1\text{.}\) Plot \(f\) and \(g\) on the same coordinate axes. How are their graphs related to one another?

Given any function \(p\text{,}\) how do you expect the graph of \(y = q(t) = p(-t)\) to be related to the graph of \(p\text{?}\)

How is the graph of \(y = \sin(-3t)\) related to the graph of \(y = \sin(t)\text{?}\)

How is the graph of \(y = \cos(-3t)\) related to the graph of \(y = \cos(t)\text{?}\)

Given any function \(p\) and a constant \(k \lt 0\text{,}\) how do you expect the graph of \(y = q(t) = p(kt)\) to be related to the graph of \(p\text{?}\)

How are \(\sin(-t)\) and \(\sin(t)\) related? How are \(\cos(t)\) and \(\cos(-t)\) related?