The transformation rules about horizontal stretching and shrinking directly apply to sine and cosine graphs. If a sine graph is horizontally stretched by a factor of \begin{align*}\frac{1}{2}\end{align*} that is the same as a horizontal compression by a factor of 2.

How does the equation change when a sine or cosine graph is stretched by a factor of 3?

### Period and Frequency of Sinusoidal Functions

The general equation for a sinusoidal function is:

\begin{align*}f(x)=\pm a \cdot \sin (b(x+c))+d\end{align*}

The \begin{align*}\pm\end{align*} controls the reflection across the \begin{align*}x\end{align*}-axis. The coefficient \begin{align*}a\end{align*} controls the amplitude. The constant \begin{align*}d\end{align*} controls the vertical shift. Here you will see that the coefficient \begin{align*}b\end{align*} controls the horizontal stretch.

#### Period

Horizontal stretch is measured for sinusoidal functions as their periods. This is why this function family is also called the periodic function family. The **period** of a sinusoid is the length of a complete cycle. For basic sine and cosine functions, the period is \begin{align*}2 \pi\end{align*}. This length can be measured in multiple ways. In word problems and in other tricky circumstances, it may be most useful to measure from peak to peak.

The following three waves have different periods. To rank each wave by period from shortest to longest, look at he distance between each peak.

The red wave has the shortest period.

The green and black waves have equal periods. A common mistake is to see that the green wave has greater amplitude and confuse that with greater periods.

The blue wave has the longest period.

The ability to measure the period of a function in multiple ways allows different equations to model an identical graph. In the image above, the top red line would represent a regular cosine wave. The center red line would represent a regular sine wave with a horizontal shift. The bottom red line would represent a negative cosine wave with a horizontal shift. This flexibility in perspective means that many of the examples, guided practice and practice problems may have multiple solutions. For now, try to always choose the function that has a period starting at \begin{align*}x=0\end{align*}.

#### Frequency

Frequency is a different way of measuring horizontal stretch. For sound, frequency is known as pitch. With sinusoidal functions, **frequency** is the number of cycles that occur in \begin{align*}2 \pi\end{align*}. A shorter period means more cycles can fit in \begin{align*}2 \pi\end{align*} and thus a higher frequency. Period and frequency are inversely related by the equation:

\begin{align*}\text{period}=\frac{2 \pi}{\text{frequency}}\end{align*}

The equation of a basic sine function is \begin{align*}f(x)=\sin x\end{align*}. In this case \begin{align*}b\end{align*}, the frequency, is equal to 1 which means one cycle occurs in \begin{align*}2 \pi\end{align*}. This relationship is a common mistake in graphing sinusoidal functions. Students find \begin{align*}b=\frac{1}{2}\end{align*} and then mistakenly conclude that the period is \begin{align*}\frac{1}{2}\end{align*} when it is in fact stretched to \begin{align*}4 \pi\end{align*}.

### Examples

#### Example 1

Earlier, you were asked how an equation changes when a sine or cosine graph is stretched by a factor of 3. If a sine graph is horizontally stretched by a factor of 3 then the general equation has \begin{align*}b=\frac{1}{3}\end{align*}. This is because \begin{align*}b\end{align*} is the frequency and counts the number (or fraction) of a period that fits in a normal period of \begin{align*}2 \pi\end{align*}. Graphically, the sine wave will make a complete cycle in \begin{align*}6 \pi\end{align*}. Similarly, a cosine graph will have \begin{align*}b=\frac{1}{3}\end{align*} and will have a period of \begin{align*}6 \pi\end{align*}.

#### Example 2

Identify the amplitude, vertical shift, period and frequency of the following function. Then graph the function.

\begin{align*}f(x)=2 \sin \left(\frac{x}{3}\right)+1\end{align*}

\begin{align*}a=2, b=\frac{1}{3}, d=1\end{align*}. Since \begin{align*}b=\frac{1}{3}\end{align*} (frequency), then the period must be \begin{align*}6 \pi\end{align*}.

Often the most challenging part of graphing periodic functions is labeling the axes. Since the period is \begin{align*}6 \pi\end{align*}, start by drawing the sinusoidal axis shifted appropriately. Then divide the \begin{align*}6 \pi\end{align*} into four parts so that the 5 guiding points of the sine graph can be plotted with the amplitude and reflection in mind. The very last thing to do is to draw and extend the curve. Many students try to draw the curve too early and end up having to redo their work.

#### Example 3

A measuring stick on a dock measures high tide to be 18 feet and low tide to be 6 feet. It takes about 6 hours for the tide to switch between low and high tides. Determine a graphical and algebraic model for the tides knowing that at \begin{align*}t=0\end{align*} there is a high tide.

Usually the best course of action for word problems is to identify information, plot points, sketch and then finally come up with an equation.

From the given information you can deduce the following points. Notice how the sinusoidal axis can be assumed to be the average of the high and low tides.

Time (hours) |
Water level (feet) |

0 | 18 |

6 | 6 |

12 | 18 |

3 |
\begin{align*}\frac{18+6}{2}=12\end{align*} |

9 | 12 |

By plotting those points and filling in the sinusoidal axis you can observe a cosine graph.

The amplitude is 6 so \begin{align*}a=6\end{align*}. There is no vertical reflection. Since the period is 12 you can determine the frequency \begin{align*}b\end{align*}:

\begin{align*}12=\frac{2 \pi}{b} \rightarrow b=\frac{\pi}{6}\end{align*}

The vertical shift is 12 so \begin{align*}d=12\end{align*}. Thus you have all the pieces to make an algebraic model:

\begin{align*}f(x)=+6 \cdot \cos \left(\frac{\pi}{6}x\right)+12\end{align*}

#### Example 4

Graph the following function: \begin{align*}g(x)=-\cos (8x)+2\end{align*}.

The labeling is the most important and challenging part of this problem. The amplitude is 1. The shape is a negative cosine. The vertical shift is 2. The period is \begin{align*}\frac{2 \pi}{8}=\frac{\pi}{4}\end{align*}. Working with this small period may be challenging at first, but remember that halving fractions is as simple as doubling the denominator.

#### Example 5

Given the following graph, identify the amplitude, period, and frequency and create an algebraic model.

The amplitude is 3. The shape is a negative cosine. The period is \begin{align*}\frac{5 \pi}{2}\end{align*} which implies that \begin{align*}b=\frac{4}{5}\end{align*}. The vertical shift is 1. \begin{align*}f(x)=-3 \cdot \cos \left(\frac{4}{5}x\right)+1\end{align*}.

### Review

Find the frequency and period of each function below.

1. \begin{align*}f(x)=\sin (4x)+1\end{align*}

2. \begin{align*}g(x)=-3 \cos (2x)\end{align*}

3. \begin{align*}h(x)=\cos \left(\frac{1}{2}x\right)+2\end{align*}

4. \begin{align*}k(x)=-2 \sin \left(\frac{3}{4}x\right)+1\end{align*}

5. \begin{align*}j(x)=4 \cos (3x)-1\end{align*}

Graph each of the following functions.

6. \begin{align*}f(x)=3 \sin (2x)+1\end{align*}

7. \begin{align*}g(x)=2.5 \cos (\pi x)-4\end{align*}

8. \begin{align*}h(x)=-\sin (4x)-3\end{align*}

9. \begin{align*}k(x)=\frac{1}{2} \cos (2x)\end{align*}

10. \begin{align*}j(x)=-2 \sin \left(\frac{3}{4}x \right)-1\end{align*}

Create an algebraic model for each of the following graphs.

11.

12.

13.

14. At time 0 it is high tide and the water at a certain location is 10 feet high. At low tide 6 hours later, the water is 2 feet high. Given that tides can be modeled by sinusoidal functions, find a graph that models this scenario.

15. Find the equation that models the scenario in the previous problem.

### Review (Answers)

To see the Review answers, open this PDF file and look for section 5.5.