### Learning Objectives

In this section, you will:

- Graph variations of $y=\text{sin}\left(x\right)$ and $y=\text{cos}\left(x\right)$ .
- Use phase shifts of sine and cosine curves.

White light, such as the light from the sun, is not actually white at all. Instead, it is a composition of all the colors of the rainbow in the form of waves. The individual colors can be seen only when white light passes through an optical prism that separates the waves according to their wavelengths to form a rainbow.

Light waves can be represented graphically by the sine function. In the chapter on Trigonometric Functions, we examined trigonometric functions such as the sine function. In this section, we will interpret and create graphs of sine and cosine functions.

### Graphing Sine and Cosine Functions

Recall that the sine and cosine functions relate real number values to the *x*- and *y*-coordinates of a point on the unit circle. So what do they look like on a graph on a coordinate plane? Let’s start with the sine function. We can create a table of values and use them to sketch a graph. Table 1 lists some of the values for the sine function on a unit circle.

$x$ |
$0$ | $\frac{\pi}{6}$ | $\frac{\pi}{4}$ | $\frac{\pi}{3}$ | $\frac{\pi}{2}$ | $\frac{2\pi}{3}$ | $\frac{3\pi}{4}$ | $\frac{5\pi}{6}$ | $\pi $ |

$\mathrm{sin}\left(x\right)$ |
$0$ | $\frac{1}{2}$ | $$\frac{\sqrt{2}}{2}$$ | $$\frac{\sqrt{3}}{2}$$ | $1$ | $$\frac{\sqrt{3}}{2}$$ | $$\frac{\sqrt{2}}{2}$$ | $\frac{1}{2}$ | $0$ |

Plotting the points from the table and continuing along the *x*-axis gives the shape of the sine function. See Figure 2.

Notice how the sine values are positive between 0 and $\pi ,$ which correspond to the values of the sine function in quadrants I and II on the unit circle, and the sine values are negative between $\pi $ and $2\pi ,$ which correspond to the values of the sine function in quadrants III and IV on the unit circle. See Figure 3.

Now let’s take a similar look at the cosine function. Again, we can create a table of values and use them to sketch a graph. Table 2 lists some of the values for the cosine function on a unit circle.

$\mathbf{x}$ | $0$ | $\frac{\pi}{6}$ | $\frac{\pi}{4}$ | $\frac{\pi}{3}$ | $\frac{\pi}{2}$ | $\frac{2\pi}{3}$ | $\frac{3\pi}{4}$ | $\frac{5\pi}{6}$ | $\pi $ |

$\mathbf{cos}\left(\mathbf{x}\right)$ | $1$ | $$\frac{\sqrt{3}}{2}$$ | $$\frac{\sqrt{2}}{2}$$ | $\frac{1}{2}$ | $$0$$ | $$-\frac{1}{2}$$ | $$-\frac{\sqrt{2}}{2}$$ | $$-\frac{\sqrt{3}}{2}$$ | $-1$ |

As with the sine function, we can plots points to create a graph of the cosine function as in Figure 4.

Because we can evaluate the sine and cosine of any real number, both of these functions are defined for all real numbers. By thinking of the sine and cosine values as coordinates of points on a unit circle, it becomes clear that the range of both functions must be the interval $\left[-1,1\right].$

In both graphs, the shape of the graph repeats after $2\pi ,$ which means the functions are periodic with a period of $2\pi .$ A periodic function is a function for which a specific horizontal shift, *P*, results in a function equal to the original function: $f\left(x+P\right)=f\left(x\right)$ for all values of $x$ in the domain of $f.$ When this occurs, we call the smallest such horizontal shift with $P>0$ the period of the function. Figure 5 shows several periods of the sine and cosine functions.

Looking again at the sine and cosine functions on a domain centered at the *y*-axis helps reveal symmetries. As we can see in Figure 6, the sine function is symmetric about the origin. Recall from The Other Trigonometric Functions that we determined from the unit circle that the sine function is an odd function because $\mathrm{sin}(-x)=-\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x.$
Now we can clearly see this property from the graph.

Figure 7 shows that the cosine function is symmetric about the *y*-axis. Again, we determined that the cosine function is an even function. Now we can see from the graph that $\mathrm{cos}(-x)=\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x.$

### Characteristics of Sine and Cosine Functions

The sine and cosine functions have several distinct characteristics:

- They are periodic functions with a period of $2\pi .$
- The domain of each function is $\left(-\infty ,\infty \right)$ and the range is $\left[-1,1\right].$
- The graph of $y=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ is symmetric about the origin, because it is an odd function.
- The graph of $y=\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x$ is symmetric about the $y$-axis, because it is an even function.

### Investigating Sinusoidal Functions

As we can see, sine and cosine functions have a regular period and range. If we watch ocean waves or ripples on a pond, we will see that they resemble the sine or cosine functions. However, they are not necessarily identical. Some are taller or longer than others. A function that has the same general shape as a sine or cosine function is known as a sinusoidal function. The general forms of sinusoidal functions are

#### Determining the Period of Sinusoidal Functions

Looking at the forms of sinusoidal functions, we can see that they are transformations of the sine and cosine functions. We can use what we know about transformations to determine the period.

In the general formula, $B$ is related to the period by $P=\frac{2\pi}{\left|B\right|}.$ If $\left|B\right|>1,$ then the period is less than $2\pi $ and the function undergoes a horizontal compression, whereas if $\left|B\right|<1,$ then the period is greater than $2\pi $ and the function undergoes a horizontal stretch. For example, $f(x)=\mathrm{sin}(x),$ $B=\mathrm{1,}$ so the period is $2\pi ,\text{}$ which we knew. If $f(x)=\mathrm{sin}\left(2x\right),$ then $B=\mathrm{2,}$ so the period is $\pi $ and the graph is compressed. If $f(x)=\mathrm{sin}\left(\frac{x}{2}\right),$ then $B=\frac{1}{2},$ so the period is $4\pi $ and the graph is stretched. Notice in Figure 8 how the period is indirectly related to $\left|B\right|.$

### Period of Sinusoidal Functions

If we let $C=0$ and $D=0$ in the general form equations of the sine and cosine functions, we obtain the forms

The period is $\frac{2\pi}{\left|B\right|}.$

### Example 1

#### Identifying the Period of a Sine or Cosine Function

Determine the period of the function $f\left(x\right)=\mathrm{sin}\left(\frac{\pi}{6}x\right).$

### Try It #1

Determine the period of the function $g(x)=\mathrm{cos}\left(\frac{x}{3}\right).$

#### Determining Amplitude

Returning to the general formula for a sinusoidal function, we have analyzed how the variable $B$ relates to the period. Now let’s turn to the variable $A$ so we can analyze how it is related to the **amplitude**, or greatest distance from rest. $A$ represents the vertical stretch factor, and its absolute value $\left|A\right|$ is the amplitude. The local maxima will be a distance $\left|A\right|$ above the horizontal **midline** of the graph, which is the line $y=D;$ because $D=0$ in this case, the midline is the *x*-axis. The local minima will be the same distance below the midline. If $\left|A\right|>1,$ the function is stretched. For example, the amplitude of $f(x)=4\phantom{\rule{0.3em}{0ex}}\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ is twice the amplitude of $$f(x)=2\phantom{\rule{0.3em}{0ex}}\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x.$$ If $\left|A\right|<1,$ the function is compressed. Figure 9 compares several sine functions with different amplitudes.

### Amplitude of Sinusoidal Functions

If we let $C=0$ and $D=0$ in the general form equations of the sine and cosine functions, we obtain the forms

The amplitude is $|A\text{|},$ which is the vertical height from the midline $.$ In addition, notice in the example that

### Example 2

#### Identifying the Amplitude of a Sine or Cosine Function

What is the amplitude of the sinusoidal function $f(x)=\mathrm{-4}\mathrm{sin}(x)?$ Is the function stretched or compressed vertically?

#### Analysis

The negative value of $A$ results in a reflection across the *x*-axis of the sine function, as shown in Figure 10.

### Try It #2

What is the amplitude of the sinusoidal function $f(x)=\frac{1}{2}\mathrm{sin}(x)?$ Is the function stretched or compressed vertically?

### Analyzing Graphs of Variations of *y* = sin* x* and *y* = cos *x*

Now that we understand how $A$ and $B$ relate to the general form equation for the sine and cosine functions, we will explore the variables $C$ and $D.$ Recall the general form:

The value $\frac{C}{B}$ for a sinusoidal function is called the **phase shift**, or the horizontal displacement of the basic sine or cosine function. If $C>0,$ the graph shifts to the right. If $C<0,$ the graph shifts to the left. The greater the value of $\left|C\right|,$ the more the graph is shifted. Figure 11 shows that the graph of $f(x)=\mathrm{sin}\left(x-\pi \right)$ shifts to the right by $\pi $ units, which is more than we see in the graph of $f(x)=\mathrm{sin}\left(x-\frac{\pi}{4}\right),$ which shifts to the right by $\frac{\pi}{4}$ units.

While $C$ relates to the horizontal shift, $D$ indicates the vertical shift from the midline in the general formula for a sinusoidal function. See Figure 12. The function $y=\mathrm{cos}\left(x\right)+D$ has its midline at $y=D.$

Any value of $D$ other than zero shifts the graph up or down. Figure 13 compares $f(x)=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}\left(x\right)$ with $f(x)=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}\left(x\right)+2,$ which is shifted 2 units up on a graph.

### Variations of Sine and Cosine Functions

Given an equation in the form $f\left(x\right)=A\mathrm{sin}\left(Bx-C\right)+D$ or $f\left(x\right)=A\mathrm{cos}\left(Bx-C\right)+D,$ $\frac{C}{B}$ is the phase shift and $D$ is the vertical shift.

### Example 3

#### Identifying the Phase Shift of a Function

Determine the direction and magnitude of the phase shift for $f(x)=\mathrm{sin}\left(x+\frac{\pi}{6}\right)-2.$

#### Analysis

We must pay attention to the sign in the equation for the general form of a sinusoidal function. The equation shows a minus sign before $C.$ Therefore $f(x)=\mathrm{sin}\left(x+\frac{\pi}{6}\right)-2$ can be rewritten as $f(x)=\mathrm{sin}\left(x-\left(-\frac{\pi}{6}\right)\right)-2.$ If the value of $C$ is negative, the shift is to the left.

Determine the direction and magnitude of the phase shift for $f(x)=3\mathrm{cos}\left(x-\frac{\pi}{2}\right).$

### Example 4

#### Identifying the Vertical Shift of a Function

Determine the direction and magnitude of the vertical shift for $f(x)=\mathrm{cos}\left(x\right)-3.$

Determine the direction and magnitude of the vertical shift for $f(x)=3\mathrm{sin}\left(x\right)+2.$

### How To

**Given a sinusoidal function in the form** $f\left(x\right)=A\mathrm{sin}\left(Bx-C\right)+D,$ **identify the midline, amplitude, period, and phase shift.**

- Determine the amplitude as $\left|A\right|.$
- Determine the period as $P=\frac{2\pi}{\left|B\right|}.$
- Determine the phase shift as $\frac{C}{B}.$
- Determine the midline as $y=D.$

### Example 5

#### Identifying the Variations of a Sinusoidal Function from an Equation

Determine the midline, amplitude, period, and phase shift of the function $y=3\mathrm{sin}(2x)+1.$

#### Analysis

Inspecting the graph, we can determine that the period is $\pi ,$ the midline is $y=1,$ and the amplitude is 3. See Figure 14.

Determine the midline, amplitude, period, and phase shift of the function $y=\frac{1}{2}\mathrm{cos}\left(\frac{x}{3}-\frac{\pi}{3}\right).$

### Example 6

#### Identifying the Equation for a Sinusoidal Function from a Graph

Determine the formula for the cosine function in Figure 15.

Determine the formula for the sine function in Figure 16.

### Example 7

#### Identifying the Equation for a Sinusoidal Function from a Graph

Determine the equation for the sinusoidal function in Figure 17.

Write a formula for the function graphed in Figure 18.

### Graphing Variations of *y* = sin *x* and *y* = cos *x*

Throughout this section, we have learned about types of variations of sine and cosine functions and used that information to write equations from graphs. Now we can use the same information to create graphs from equations.

Instead of focusing on the general form equations

we will let $C=0$ and $D=0$ and work with a simplified form of the equations in the following examples.

### How To

**Given the function $y=A\mathrm{sin}\left(Bx\right),$ sketch its graph.**

- Identify the amplitude, $\left|A\right|.$
- Identify the period, $P=\frac{2\pi}{\left|B\right|}.$
- Start at the origin, with the function increasing to the right if $A$ is positive or decreasing if $A$ is negative.
- At $x=\frac{\pi}{2\left|B\right|}$ there is a local maximum for $A>0$ or a minimum for $A<0,$ with $y=A.$
- The curve returns to the
*x*-axis at $x=\frac{\pi}{\left|B\right|}.$ - There is a local minimum for $A>0$ (maximum for $A<0$ ) at $x=\frac{3\pi}{2\left|B\right|}$ with $y=\u2013A.$
- The curve returns again to the
*x*-axis at $x=\frac{2\pi}{\left|B\right|}.$

### Example 8

#### Graphing a Function and Identifying the Amplitude and Period

Sketch a graph of $f\left(x\right)=-2\mathrm{sin}\left(\frac{\pi x}{2}\right).$

Sketch a graph of $g\left(x\right)=-0.8\mathrm{cos}\left(2x\right).$ Determine the midline, amplitude, period, and phase shift.

### How To

**Given a sinusoidal function with a phase shift and a vertical shift, sketch its graph.**

- Express the function in the general form $y=A\mathrm{sin}(Bx-C)+D\text{or}y=A\mathrm{cos}(Bx-C)+D.$
- Identify the amplitude, $\left|A\right|.$
- Identify the period, $P=\frac{2\pi}{\left|B\right|}.$
- Identify the phase shift, $\frac{C}{B}.$
- Draw the graph of $f\left(x\right)=A\mathrm{sin}\left(Bx\right)$ shifted to the right or left by $\frac{C}{B}$ and up or down by $D.$

### Example 9

#### Graphing a Transformed Sinusoid

Sketch a graph of $f\left(x\right)=3\mathrm{sin}\left(\frac{\pi}{4}x-\frac{\pi}{4}\right).$

Draw a graph of $g(x)=-2\mathrm{cos}\left(\frac{\pi}{3}x+\frac{\pi}{6}\right).$ Determine the midline, amplitude, period, and phase shift.

### Example 10

#### Identifying the Properties of a Sinusoidal Function

Given $y=-2\mathrm{cos}\left(\frac{\pi}{2}x+\pi \right)+3,$ determine the amplitude, period, phase shift, and vertical shift. Then graph the function.

### Using Transformations of Sine and Cosine Functions

We can use the transformations of sine and cosine functions in numerous applications. As mentioned at the beginning of the chapter, circular motion can be modeled using either the sine or cosine function.

### Example 11

#### Finding the Vertical Component of Circular Motion

A point rotates around a circle of radius 3 centered at the origin. Sketch a graph of the *y*-coordinate of the point as a function of the angle of rotation.

#### Analysis

Notice that the period of the function is still $2\pi ;$ as we travel around the circle, we return to the point $\left(3,0\right)$ for $x=2\pi ,4\pi ,6\pi ,\mathrm{...}$ Because the outputs of the graph will now oscillate between $\u20133$ and $3,$ the amplitude of the sine wave is $3.$

What is the amplitude of the function $f(x)=7\mathrm{cos}(x)?$ Sketch a graph of this function.

### Example 12

#### Finding the Vertical Component of Circular Motion

A circle with radius 3 ft is mounted with its center 4 ft off the ground. The point closest to the ground is labeled *P*, as shown in Figure 23. Sketch a graph of the height above the ground of the point $P$ as the circle is rotated; then find a function that gives the height in terms of the angle of rotation.

A weight is attached to a spring that is then hung from a board, as shown in Figure 25. As the spring oscillates up and down, the position $y$ of the weight relative to the board ranges from $\mathrm{\u20131}$ in. (at time $x=0)$ to $\mathrm{\u20137}$ in. (at time $x=\pi )$ below the board. Assume the position of $y$ is given as a sinusoidal function of $x.$ Sketch a graph of the function, and then find a cosine function that gives the position $y$ in terms of $x.$

### Example 13

#### Determining a Rider’s Height on a Ferris Wheel

The London Eye is a huge Ferris wheel with a diameter of 135 meters (443 feet). It completes one rotation every 30 minutes. Riders board from a platform 2 meters above the ground. Express a rider’s height above ground as a function of time in minutes.

### Media

Access these online resources for additional instruction and practice with graphs of sine and cosine functions.

### 6.1 Section Exercises

#### Verbal

How does the graph of $y=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ compare with the graph of $y=\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x?$ Explain how you could horizontally translate the graph of $y=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ to obtain $y=\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x.$

For the equation $A\phantom{\rule{0.3em}{0ex}}\mathrm{cos}(Bx+C)+D,$ what constants affect the range of the function and how do they affect the range?

How does the range of a translated sine function relate to the equation $y=A\phantom{\rule{0.3em}{0ex}}\mathrm{sin}(Bx+C)+D?$

How can the unit circle be used to construct the graph of $f(t)=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}t?$

#### Graphical

For the following exercises, graph two full periods of each function and state the amplitude, period, and midline. State the maximum and minimum *y*-values and their corresponding *x*-values on one period for $x>0.$ Round answers to two decimal places if necessary.

$f(x)=2\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$

$f(x)=-3\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$

$f(x)=2\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x$

$f(x)=2\phantom{\rule{0.3em}{0ex}}\mathrm{sin}\left(\frac{1}{2}x\right)$

$f(x)=3\phantom{\rule{0.3em}{0ex}}\mathrm{cos}\left(\frac{6}{5}x\right)$

$y=2\phantom{\rule{0.3em}{0ex}}\mathrm{sin}(3x-21)+4$

For the following exercises, graph one full period of each function, starting at $x=0.$ For each function, state the amplitude, period, and midline. State the maximum and minimum *y*-values and their corresponding *x*-values on one period for $x>0.$ State the phase shift and vertical translation, if applicable. Round answers to two decimal places if necessary.

$f\left(t\right)=2\mathrm{sin}\left(t-\frac{5\pi}{6}\right)$

$f\left(t\right)=4\mathrm{cos}\left(2\left(t+\frac{\pi}{4}\right)\right)-3$

$f\left(x\right)=4\mathrm{sin}\left(\frac{\pi}{2}\left(x-3\right)\right)+7$

Determine the amplitude, period, midline, and an equation involving cosine for the graph shown in Figure 27.

Determine the amplitude, period, midline, and an equation involving sine for the graph shown in Figure 29.

Determine the amplitude, period, midline, and an equation involving sine for the graph shown in Figure 31.

Determine the amplitude, period, midline, and an equation involving sine for the graph shown in Figure 33.

#### Algebraic

For the following exercises, let $f(x)=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x.$

On $[0,2\pi ),$ solve $f\left(x\right)=\frac{1}{2}.$

On $[0,2\pi ),f(x)=\frac{\sqrt{2}}{2}.$ Find all values of $x.$

On $[0,2\pi ),$ the minimum value(s) of the function occur(s) at what *x*-value(s)?

Show that $f(-x)=-f(x).$ This means that $f(x)=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ is an odd function and possesses symmetry with respect to ________________.

For the following exercises, let $f(x)=\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x.$

On $[0,2\pi ),$ solve the equation $f(x)=\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x=0.$

On $[0,2\pi ),$ find the *x*-intercepts of $f(x)=\mathrm{cos}\phantom{\rule{0.3em}{0ex}}x.$

On $[0,2\pi ),$ solve the equation $f(x)=\frac{\sqrt{3}}{2}.$

#### Technology

Graph $h(x)=x+\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ on $\left[0,2\pi \right].$ Explain why the graph appears as it does.

Graph $h(x)=x+\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ on $\left[-100,100\right].$ Did the graph appear as predicted in the previous exercise?

Graph $f(x)=x\phantom{\rule{0.3em}{0ex}}\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ on $\left[0,2\pi \right]$ and verbalize how the graph varies from the graph of $f(x)=\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x.$

Graph $f(x)=x\phantom{\rule{0.3em}{0ex}}\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x$ on the window $\left[\mathrm{-10},10\right]$ and explain what the graph shows.

Graph $f(x)=\frac{\mathrm{sin}\phantom{\rule{0.3em}{0ex}}x}{x}$ on the window $\left[\mathrm{-5}\pi ,5\pi \right]$ and explain what the graph shows.

#### Real-World Applications

A Ferris wheel is 25 meters in diameter and boarded from a platform that is 1 meter above the ground. The six o’clock position on the Ferris wheel is level with the loading platform. The wheel completes 1 full revolution in 10 minutes. The function $h\left(t\right)$ gives a person’s height in meters above the ground *t* minutes after the wheel begins to turn.

- ⓐ Find the amplitude, midline, and period of $h\left(t\right).$
- ⓑ Find a formula for the height function $h\left(t\right).$
- ⓒ How high off the ground is a person after 5 minutes?