3.4 Graphs of the Sine and Cosine Functions

Learning Objectives

In this section, you will:

  • Graph [latex]f\left(t\right)=\text{sin}\left(t\right)[/latex]  and [latex]f\left(t\right)=\text{cos}\left(t\right)[/latex] .
  • Use your knowledge of shifts to transform sine and cosine curves.
Two boats at a dock during low tide.

Figure 1. The tide rises and falls at regular, predictable intervals. (credit: Andrea Schaffer, Flickr)

Life is dense with phenomena that repeat in regular intervals. Each day, for example, the tides rise and fall in response to the gravitational pull of the moon. Similarly, the progression from day to night occurs as a result of Earth’s rotation, and the pattern of the seasons repeats in response to Earth’s revolution around the sun. Outside of nature, many stocks that mirror a company’s profits are influenced by changes in the economic business cycle.

In mathematics, a function that repeats its values in regular intervals is known as a periodic function. The graphs of such functions show a general shape reflective of a pattern that keeps repeating. This means the graph of the function has the same output at exactly the same place in every cycle. And this translates to all the cycles of the function having exactly the same length. So, if we know all the details of one full cycle of a true periodic function, then we know the state of the function’s outputs at all times, future and past. In this chapter, we will investigate various examples of periodic functions.

Graphing Sine and Cosine Functions

Recall that the cosine and sine functions relate real number values to the [latex]x[/latex]– and [latex]y[/latex]-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.

Table 1

[latex]t[/latex] [latex]0[/latex] [latex]\frac{\pi }{6}[/latex] [latex]\frac{\pi }{4}[/latex] [latex]\frac{\pi }{3}[/latex] [latex]\frac{\pi }{2}[/latex] [latex]\frac{2\pi }{3}[/latex] [latex]\frac{3\pi }{4}[/latex] [latex]\frac{5\pi }{6}[/latex] [latex]\pi[/latex]
[latex]\mathrm{sin}\left(t\right)[/latex] [latex]0[/latex] [latex]\frac{1}{2}[/latex] [latex]\frac{\sqrt[\leftroot{1}\uproot{2} ]{2}}{2}[/latex] [latex]\frac{\sqrt[\leftroot{1}\uproot{2} ]{3}}{2}[/latex] [latex]1[/latex] [latex]\frac{\sqrt[\leftroot{1}\uproot{2} ]{3}}{2}[/latex] [latex]\frac{\sqrt[\leftroot{1}\uproot{2} ]{2}}{2}[/latex] [latex]\frac{1}{2}[/latex] [latex]0[/latex]

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

Figure 2:  A graph of sin(t).

Notice how the sine values are positive between 0 and [latex]\pi ,[/latex] 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 [latex]\pi[/latex] and [latex]2\pi ,[/latex] which correspond to the values of the sine function in quadrants III and IV on the unit circle. See Figure 3.

A side by side picture of the unit circle and the sine graph that relates points on the circle to points on the graph.

Figure 3:  Plotting values of the sine function and relating them to the unit circle.

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.

Table 2

[latex]t[/latex] [latex]0[/latex] [latex]\frac{\pi }{6}[/latex] [latex]\frac{\pi }{4}[/latex] [latex]\frac{\pi }{3}[/latex] [latex]\frac{\pi }{2}[/latex] [latex]\frac{2\pi }{3}[/latex] [latex]\frac{3\pi }{4}[/latex] [latex]\frac{5\pi }{6}[/latex] [latex]\pi[/latex]
[latex]\mathrm{cos}\left(t\right)[/latex] [latex]1[/latex] [latex]\frac{\sqrt[\leftroot{1}\uproot{2} ]{3}}{2}[/latex] [latex]\frac{\sqrt[\leftroot{1}\uproot{2} ]{2}}{2}[/latex] [latex]\frac{1}{2}[/latex] [latex]0[/latex] [latex]-\frac{1}{2}[/latex] [latex]-\frac{\sqrt[\leftroot{1}\uproot{2} ]{2}}{2}[/latex] [latex]-\frac{\sqrt[\leftroot{1}\uproot{2} ]{3}}{2}[/latex] [latex]-1[/latex]

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

Figure 4: A graph of cos(t).

Domain and Range

We have created the graphs of the sine and cosine functions by following a point from the positive x axis one complete rotation counterclockwise around the unit circle.  This rotation generates  input values between 0 and [latex]2\pi.[/latex] We know that we can continue to travel counterclockwise around the unit circle over and over again, and generate larger and larger positive input values.  That means that we can continue to generate sine and cosine values for any positive input value.  Likewise, we can start at the positive x axis, and travel clockwise around the circle.  One revolution in the clockwise direction generates inputs starting at 0 and decreasing to [latex]-2\pi.[/latex]  Again, since we can continue to travel around the circle over and over again in the clockwise direction, we can generate sine and cosine values for any negative input value.  Because we can evaluate the sine and cosine of any real number, both of these functions have a domain of all real numbers.

What are the ranges of the sine and cosine functions?  By thinking of the sine and cosine values as coordinates of points on a unit circle, it becomes clear that since the x and y coordinates of points on the circle must each be in the interval [latex]\left[-1,1\right][/latex], the range of both functions must be the interval [latex]\left[-1,1\right].[/latex]

Period

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

Sine and cosine graphs with one period highlighted.

Figure 5a: Sine graph demonstrating a period.

The cosine graph with one period highlighted.

Figure 5b: Cosine graph demonstrating a period.

Symmetries

Looking again at the sine and cosine functions on a domain centered at the vertical axis helps reveal symmetries. As we can see in Figure 6, the sine function is symmetric about the origin. Recall that in Section 3.3, we determined from the unit circle that the sine function is an odd function because [latex]\mathrm{sin}\left(-t\right)=-\mathrm{sin}\left(t\right).[/latex] Now we can clearly see this property from the graph.

Graph of sin(t) showing the odd symmetry.

Figure 6:  Odd symmetry of the sine function.

Figure 7 shows that the cosine function is symmetric about the y-axis. Again, we determined from the unit circle that the cosine function is an even function. Now we can see from the graph that [latex]\mathrm{cos}\left(-t\right)=\mathrm{cos}\left(t\right).[/latex]

A graph of the cosine function showing symmetry of an even function across the vertical axis.

Figure 7:  Even symmetry of the cosine function.

Characteristics of Sine and Cosine Functions

The sine and cosine functions have several distinct characteristics:

  • They are periodic functions with a period of [latex]2\pi .[/latex]
  • The domain of each function is [latex]\left(-\infty ,\infty \right)[/latex] and the range is [latex]\left[-1,1\right].[/latex]
  • The graph of [latex]f\left(t\right)=\mathrm{sin}\left(t\right)[/latex] is symmetric about the origin, because it is an odd function.
  • The graph of [latex]f\left(t\right)=\mathrm{cos}\left(t\right)[/latex] is symmetric about the vertical axis, because it is an even function.

Investigating Sinusoidal Functions

Recall when we first defined sine and cosine, we referenced an acute angle [latex]t[/latex] in standard position as the input and associated each function with either the [latex]x[/latex] or [latex]y[/latex] coordinate of a point on the unit circle.  In the material that follows, we switch back to typical function notation in the coordinate plane where [latex]y=f\left(x\right)[/latex] and [latex]x[/latex] will represent the angle and not the coordinate.

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:

[latex]\text{}y=A\mathrm{sin}\left(B\left(x-h\right)\right)+k[/latex] and [latex]y=A\mathrm{cos}\left(B\left(x-h\right)\right)+k.[/latex]
[latex]\\[/latex]

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, [latex]B[/latex] is related to the period by [latex]P=\frac{2\pi }{|B|}.[/latex]  If [latex]|B|>1,[/latex] then the period is less than [latex]2\pi[/latex] and the function undergoes a horizontal compression, whereas if [latex]|B|<1,[/latex] then the period is greater than [latex]2\pi[/latex] and the function undergoes a horizontal stretch. For example,  [latex]f\left(x\right)=\mathrm{sin}\left(x\right),[/latex] [latex]B=1,[/latex] so the period is [latex]2\pi,[/latex] which we knew. If [latex]f\left(x\right)=\mathrm{sin}\left(2x\right),[/latex] then [latex]B=2,[/latex] so the period is [latex]\pi[/latex] since the graph is compressed horizontally by a factor of 1/2. If [latex]f\left(x\right)=\mathrm{sin}\left(\frac{x}{2}\right),[/latex] then [latex]B=\frac{1}{2},[/latex] so the period is [latex]4\pi[/latex] since the graph is stretched horizontally by a factor of 2. Notice in Figure 8 how the period is indirectly related to [latex]|B|.[/latex]

A graph with three items. The x-axis ranges from 0 to 2pi. The y-axis ranges from -1 to 1. The first item is the graph of sin(x) for one full period. The second is the graph of sin(2x) over two periods. The third is the graph of sin(x/2) for one half of a period.

Figure 8:  Three sine functions with different periods.

If we let [latex]h=0[/latex] and [latex]k=0[/latex] in the general form equations of the sine and cosine functions, we obtain the forms

[latex]y=A\mathrm{sin}\left(Bx\right)[/latex]
[latex]y=A\mathrm{cos}\left(Bx\right)[/latex][latex]\\[/latex]

The period is [latex]\frac{2\pi }{|B|}.[/latex]

Example 1:  Identifying the Period of a Sine or Cosine Function

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

Try it #1

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

Determining Amplitude

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

A graph with four items. The x-axis ranges from -6pi to 6pi. The y-axis ranges from -4 to 4. The first item is the graph of sin(x), which has an amplitude of 1. The second is a graph of 2sin(x), which has amplitude of 2. The third is a graph of 3sin(x), which has an amplitude of 3. The fourth is a graph of 4 sin(x) with an amplitude of 4.

Figure 9:  Four sine graphs with different amplitudes.

If we let [latex]h=0[/latex] and [latex]k=0[/latex] in the general form equations of the sine and cosine functions, we obtain the forms:

[latex]y=A\mathrm{sin}\left(Bx\right)[/latex] and [latex]y=A\mathrm{cos}\left(Bx\right).[/latex][latex]\\[/latex]

The amplitude is [latex]A,[/latex] and the vertical height from the midline is [latex]|A|.[/latex] In addition, notice in the example that:

[latex]|A|\text{ = amplitude = }\frac{1}{2}|\text{maximum }-\text{ minimum}|.[/latex][latex]\\[/latex]

Example 2:  Identifying the Amplitude of a Sine or Cosine Function

What is the amplitude of the sinusoidal function [latex]f\left(x\right)=-4\mathrm{sin}\left(x\right)?[/latex] Is the function stretched or compressed vertically?

 

Try it #2

What is the amplitude of the sinusoidal function [latex]f\left(x\right)=\frac{1}{2}\mathrm{sin}\left(x\right)?[/latex] Is the function stretched or compressed vertically?

Analyzing Shifts of Sinusoidal Functions

Now that we understand how [latex]A[/latex] and [latex]B[/latex] relate to the general form equation for the sine and cosine functions, we will explore the variables [latex]h[/latex] and [latex]k.[/latex] Recall the general form:

[latex]\text{}y=A\mathrm{sin}\left(B\left(x-h\right)\right)+k[/latex] and [latex]y=A\mathrm{cos}\left(B\left(x-h\right)\right)+k\text{}[/latex][latex]\\[/latex]

The value [latex]k[/latex] is the vertical shift of the function and for sinusoidal functions [latex]k[/latex] shifts the midline up or down [latex]k[/latex] units. The function [latex]y=A\mathrm{sin}\left(x\right)+k[/latex] has a midline of [latex]y=k[/latex]. See  Figure 11.

Figure 11: A graph of y=Asin(x)+k with the midline highlighted

Figure 11: A graph of [latex]y=A\mathrm{sin}\left(x\right)+k.[/latex]

In the equation [latex]y=A\mathrm{sin}\left(B\left(x-h\right)\right)+k,[/latex] any value of [latex]k[/latex] other than zero shifts the graph of [latex]y=A\mathrm{sin}\left(B\left(x-h\right)\right)[/latex] up or down. Figure 12 compares [latex]f\left(x\right)=\mathrm{sin}\left(x\right)[/latex] with [latex]f\left(x\right)=\mathrm{sin}\left(x\right)+2,[/latex] which is shifted 2 units up on a graph.

Figure 12: Vertically shifted sine function.

The value [latex]h[/latex] for a sinusoidal function is called the the horizontal displacement of the basic sine or cosine function. If [latex]h>0,[/latex] the graph shifts to the right. If [latex]h<0,[/latex] the graph shifts to the left. The greater the value of [latex]|h|,[/latex] the more the graph is shifted. Figure 13 shows that the graph of [latex]g\left(x\right)=\mathrm{sin}\left(x-\pi \right)[/latex] shifts [latex]f\left(x\right)=\mathrm{sin}\left(x\right)[/latex] to the right by [latex]\pi[/latex] units, which is more than we see in the graph of [latex]p\left(x\right)=\mathrm{sin}\left(x-\frac{\pi }{4}\right),[/latex] which shifts [latex]f\left(x\right)=\mathrm{sin}\left(x\right)[/latex] to the right by [latex]\frac{\pi }{4}[/latex] units.

Figure 13: Horizontally shifted sine functions.

Important Note:  Some books and videos use the form [latex]\text{}y=A\mathrm{cos}\left(Bx-C\right)+D\text{}[/latex] and then factor out B leaving the form  [latex]\text{}y=A\mathrm{cos}\left(B\left(x-\frac{C}{B}\right)\right)+D\text{}[/latex] .  In this case, the value of [latex]\frac{C}{B}[/latex] represents what  is shown previously as h (the horizontal shift). We also see the D replaces what we have previously referred to as k.  It is simply a matter of getting familiar with the form that is being used in a particular problem.  For the most part, we will prefer the form that uses h and k.  The same pattern can be used with the sine function.

Example 3:  Identifying the Vertical Shift of a Function

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

Try it #3

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

Example 4:  Identifying the Horizontal Shift of a Function

Determine the direction and magnitude of the horizontal shift for [latex]f\left(x\right)=\mathrm{sin}\left(x+\frac{\pi }{6}\right)-2.[/latex]

Try it #4

Determine the direction and magnitude of the horizontal shift for [latex]f\left(x\right)=3\mathrm{cos}\left(x-\frac{\pi }{2}\right).[/latex]

Sine and Cosine are Co-Functions

You should recall that in Section 3.1, we described sine and cosine as co-functions.  This was in relationship to the acute angles in a right triangle.  We can also see this relationship when we consider the functions as functions of real numbers now that we understand how to horizontally shift these functions.  See Figure 14 below.

We know that [latex]\mathrm{sin}\left(x+\frac{\pi}{2}\right)[/latex] shifts the sine function [latex]\frac{\pi}{2}[/latex] units to the left.  Notice that this shift makes the graph of the sine curve (dotted curve) overlap the graph of the cosine curve (solid curve).

Figure 14: Shifted Sine function yields the Cosine function

Likewise, we know that [latex]\mathrm{cos}\left(x-\frac{\pi}{2}\right)[/latex] shifts the cosine function [latex]\frac{\pi}{2}[/latex] units to the right.  Looking at the diagram above, you can see that this shift would make the cosine curve (solid  curve) align with the sine curve. (dotted curve)

Putting It All Together

Given a sinusoidal function in the form [latex]f\left(x\right)=A\mathrm{sin}\left(B\left(x-h\right)\right)+k,[/latex] we can identify the midline, the amplitude, the period, and the horizontal shift. Recall, the amplitude is [latex]|A|,[/latex] the midline is [latex]y=k,[/latex] and the horizontal shift is [latex]h.[/latex]  The period is related to the horizontal stretch or compression and must be calculated using the formula [latex]P=\frac{2\pi }{|B|}.[/latex]

Example 5:  Identifying the Variations of a Sinusoidal Function from an Equation

Determine the midline, amplitude, period, and horizontal shift of the function [latex]y=3\mathrm{sin}\left(2x\right)+1.[/latex]

Try it #5

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

Example 6:  Identifying the Equation for a Sinusoidal Function from a Graph

Determine the formula for the cosine function in Figure 16.

A graph of -0.5cos(x)+0.5. The graph has an amplitude of 0.5. The graph has a period of 2pi. The graph has a range of [0, 1]. The graph is also reflected about the x-axis from the parent function cos(x).

Figure 16:  A graph of -0.5cos(x)+0.5.

Try it #6

Determine the formula for the sine function in Figure 17.

A graph of sin(x)+2. Period of 2pi, amplitude of 1, and range of [1, 3].

Figure 17: Determine the function for this graph.

Example 7:  Identifying the Equation for a Sinusoidal Function from a Graph

Determine the equation for the sinusoidal function in Figure 18.

A graph of 3cos(pi/3x-pi/3)-2. Graph has amplitude of 3, period of 6, range of [-5,1].

Figure 18: Determine the function for this graph.

Try it #7

Write a formula for the function graphed in Figure 19.

A graph of 4sin((pi/5)x-pi/5)+4. Graph has period of 10, amplitude of 4, range of [0,8].

Figure 19:  Determine the function for this graph.

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

[latex]y=A\mathrm{sin}\left(B\left(x-h\right)\right)+k[/latex]  and [latex]y=A\mathrm{cos}\left(B\left(x-h\right)\right)+k,[/latex]

we will let [latex]h=0[/latex] and [latex]k=0[/latex] and work with a simplified form of the equations in the following examples.

How To

Given the function [latex]y=A\mathrm{sin}\left(Bx\right),[/latex] sketch its graph.  Note that [latex]h=k=0.[/latex]

  1. Identify the amplitude, [latex]|A|.[/latex]
  2. Identify the period, [latex]P=\frac{2\pi }{|B|}.[/latex]
  3. Start at the origin, with the function increasing to the right if [latex]A[/latex] is positive or decreasing if [latex]A[/latex] is negative.
  4. At [latex]x=\frac{\pi }{2|B|}[/latex] there is a local maximum for [latex]A>0[/latex] or a minimum for [latex]A<0,[/latex] with [latex]y=A.[/latex]
  5. The curve returns to the x-axis at [latex]x=\frac{\pi }{|B|}.[/latex]
  6. There is a local minimum for [latex]A>0[/latex] (maximum for [latex]A<0[/latex]) at [latex]x=\frac{3\pi }{2|B|}[/latex] with [latex]y=–A.[/latex]
  7. The curve returns again to the x-axis at [latex]x=\frac{2\pi }{|B|}.[/latex]

Example 8:  Graphing a Function and Identifying the Amplitude and Period

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

Try it #8

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

How To

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

  1.  Express the function in the general form [latex]\begin{align*}y&=A\mathrm{sin}\left(B\left(x-h\right)\right)+k\text{ or} \\ y&=A\mathrm{cos}\left(B\left(x-h\right)\right)+k\hfill \end{align*}[/latex]
  2.  Identify the amplitude, [latex]|A|.[/latex]
  3.  Identify the period, [latex]P=\frac{2\pi }{|B|}.[/latex]
  4.  Identify the horizontal shift, [latex]h,[/latex] and the vertical shift, [latex]k.[/latex]
  5.  Draw the graph of [latex]f\left(x\right)=A\mathrm{sin}\left(Bx\right)[/latex] or [latex]f\left(x\right)=A\mathrm{cos}\left(Bx\right)[/latex] shifted to the right or left by [latex]h[/latex] and up or down by [latex]k.[/latex]

Example 9:  Graphing a Transformed Sinusoid

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

Try it #9

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

Example 10:  Identifying the Properties of a Sinusoidal Function

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

Using Five Key Points to Graph Sinusoidal Functions

One method of graphing sinusoidal functions is to find five key points. These points will correspond to intervals of equal length representing [latex]\frac{1}{4}[/latex] of the period. The key points will indicate the location of maximum and minimum values. If there is no vertical shift, they will also indicate x-intercepts. For example, suppose we want to graph the function [latex]y=\mathrm{cos}\text{ }\theta .[/latex] We know that the period is [latex]2\pi ,[/latex] so we find the interval between key points as follows.

[latex]\frac{2\pi }{4}=\frac{\pi }{2}[/latex][latex]\\[/latex]

Starting with [latex]\theta =0,[/latex] we calculate the first y-value, add the length of the interval [latex]\frac{\pi }{2}[/latex] to 0, and calculate the second y-value. We then add [latex]\frac{\pi }{2}[/latex] repeatedly until the five key points are determined. The last value should equal the first value, as the calculations cover one full period. Making a table similar to Table 3, we can see these key points clearly on the graph shown in  Figure 25.

Table 3
[latex]\theta[/latex] [latex]0[/latex] [latex]\frac{\pi }{2}[/latex] [latex]\pi[/latex] [latex]\frac{3\pi }{2}[/latex] [latex]2\pi[/latex]
[latex]y=\mathrm{cos}\text{ }\theta[/latex] [latex]1[/latex] [latex]0[/latex] [latex]-1[/latex] [latex]0[/latex] [latex]1[/latex]
Graph of y=cos(x) from -pi/2 to 5pi/2.

Figure 25

Example 11:  Graphing Sinusoidal Functions Using Key Points

Graph the function [latex]y=-4\mathrm{cos}\left(\pi x\right)[/latex] using amplitude, period, and key points.

TRY IT #10

Graph the function [latex]y=3\mathrm{sin}\left(3x\right)[/latex] using the amplitude, period, and five key points.

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 12:  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.

Try it #11

What is the radius of the circle whose y-coordinate corresponds to the function [latex]f\left(x\right)=7\mathrm{cos}\left(x\right)?[/latex] Sketch a graph of this function.

Example 13:  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 27. Sketch a graph of the height above the ground of the point [latex]P[/latex] as the circle is rotated; then find a function that gives the height in terms of the angle of rotation.

An illustration of a circle lifted 4 feet off the ground. Circle has radius of 3 ft. There is a point P labeled on the circle's circumference.

Figure 27: An illustration of a circle lifted 4 feet off the ground.

Try It #12

A weight is attached to a spring that is then hung from a board, as shown in Figure 29. As the spring oscillates up and down, the position [latex]y[/latex] of the weight relative to the board ranges from [latex]–1[/latex] in. ( at time [latex]x=0[/latex] ) to [latex]–7[/latex] in. ( at time [latex]x=\pi[/latex] ) below the board. Assume the position of [latex]y[/latex] is given as a sinusoidal function of [latex]x.[/latex] Sketch a graph of the function, and then find a cosine function that gives the position [latex]y[/latex] in terms of [latex]x.[/latex]

 

An illustration of a spring with length y.

Figure 29: An illustration of a spring with length y.

Example 14: 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.

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

Key Equations

 
Sinusoidal functions [latex]\begin{array}{l}y=A\mathrm{sin}\left(B\left(x-h\right)\right)+k\text{ or }\hfill \\ y=A\mathrm{cos}\left(B\left(x-h\right)\right)+k\hfill \end{array}[/latex]

Key Concepts

  • Periodic functions repeat after a given value. The smallest such value is the period. The basic sine and cosine functions have a period of [latex]2\pi .[/latex]
  • The function [latex]\mathrm{sin}\text{ }x[/latex] is odd, so its graph is symmetric about the origin. The function [latex]\mathrm{cos}\text{ }x[/latex] is even, so its graph is symmetric about the y-axis.
  • The graph of a sinusoidal function has the same general shape as a sine or cosine function.
  • In the general formula for a sinusoidal function, the period is [latex]P=\frac{2\pi }{|B|}.[/latex]
  • In the general formula for a sinusoidal function, [latex]|A|[/latex] represents amplitude. If [latex]|A|>1,[/latex] the function is stretched, whereas if [latex]|A|<1,[/latex] the function is compressed.
  • The value [latex]h[/latex] in the general formula for a sinusoidal function indicates the horizontal shift.
  • The value [latex]k[/latex] in the general formula for a sinusoidal function indicates the vertical shift.
  • Combinations of variations of sinusoidal functions can be detected from an equation.
  • The equation for a sinusoidal function can be determined from a graph.
  • A function can also be graphed by identifying its amplitude, period, vertical shift, and horizontal shift.
  • Sinusoidal functions can be used to solve real-world problems.

Glossary

amplitude
the vertical height of a function; the constant [latex]A[/latex] appearing in the definition of a sinusoidal function
midline
the horizontal line [latex]y=k,[/latex] where [latex]k[/latex] appears in the general form of a sinusoidal function
periodic function
a function [latex]f\left(x\right)[/latex] that satisfies [latex]f\left(x+P\right)=f\left(x\right)[/latex] for a specific constant [latex]P[/latex] and any value of [latex]x[/latex]
sinusoidal function
any function that can be expressed in the form [latex]f\left(x\right)=A\mathrm{sin}\left(B\left(x-h\right)\right)+k[/latex] or [latex]f\left(x\right)=A\mathrm{cos}\left(B\left(x-h\right)\right)+k[/latex]