Learning Objectives
In this section, you will:
- Graph variations of y=sin( x ) and y=cos( x ).
- Use phase shifts of sine and cosine curves.

Figure 1. Light can be separated into colors because of its wavelike properties. (credit: “wonderferret”/ Flickr)
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. (Figure) lists some of the values for the sine function on a unit circle.
xx | 00 | π6π6 | π4π4 | π3π3 | π2π2 | 2π32π3 | 3π43π4 | 5π65π6 | ππ |
sin(x)sin(x) | 00 | 1212 | √22√22 | √32√32 | 11 | √32√32 | √22√22 | 1212 | 00 |
Plotting the points from the table and continuing along the x-axis gives the shape of the sine function. See (Figure).

Figure 2. The sine function
Notice how the sine values are positive between 0 andπ,π,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ππand2π,2π,which correspond to the values of the sine function in quadrants III and IV on the unit circle. See (Figure).

Figure 3. Plotting values of the sine function
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. (Figure) lists some of the values for the cosine function on a unit circle.
xx | 00 | π6π6 | π4π4 | π3π3 | π2π2 | 2π32π3 | 3π43π4 | 5π65π6 | ππ |
cos(x)cos(x) | 11 | √32√32 | √22√22 | 1212 | 00 | −12−12 | −√22−√22 | −√32−√32 | −1−1 |
As with the sine function, we can plots points to create a graph of the cosine function as in (Figure).

Figure 4. The cosine function
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[−1,1].[−1,1].
In both graphs, the shape of the graph repeats after2π,2π,which means the functions are periodic with a period of2π.2π.A periodic function is a function for which a specific horizontal shift, P, results in a function equal to the original function:f(x+P)=f(x)f(x+P)=f(x)for all values ofxxin the domain off.f.When this occurs, we call the smallest such horizontal shift withP>0P>0the period of the function. (Figure) shows several periods of the sine and cosine functions.

Figure 5.
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), 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 becausesin(−x)=−sinx.sin(−x)=−sinx.
Now we can clearly see this property from the graph.

Figure 6. Odd symmetry of the sine function
(Figure) 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 cos(−x)=cos x.cos(−x)=cos x.

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 of2π.
- The domain of each function is(−∞,∞)and the range is[−1,1].
- The graph ofy=sin xis symmetric about the origin, because it is an odd function.
- The graph ofy=cos xis symmetric about they-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,Bis related to the period byP=2π|B|.If|B|>1,then the period is less than2πand the function undergoes a horizontal compression, whereas if|B|<1,then the period is greater than2πand the function undergoes a horizontal stretch. For example,f(x)=sin(x),B=1,so the period is2π,which we knew. Iff(x)=sin(2x),thenB=2,so the period isπand the graph is compressed. Iff(x)=sin(x2),thenB=12,so the period is4πand the graph is stretched. Notice in (Figure) how the period is indirectly related to|B|.

Figure 8.
Period of Sinusoidal Functions
If we letC=0andD=0in the general form equations of the sine and cosine functions, we obtain the forms
The period is2π|B|.
Identifying the Period of a Sine or Cosine Function
Determine the period of the functionf(x)=sin(π6x).
Try It
Determine the period of the functiong(x)=cos(x3).
Determining Amplitude
Returning to the general formula for a sinusoidal function, we have analyzed how the variableBrelates to the period. Now let’s turn to the variableAso we can analyze how it is related to the amplitude, or greatest distance from rest.Arepresents the vertical stretch factor, and its absolute value|A|is the amplitude. The local maxima will be a distance|A|above the horizontal midline of the graph, which is the liney=D;becauseD=0in this case, the midline is the x-axis. The local minima will be the same distance below the midline. If|A|>1,the function is stretched. For example, the amplitude off(x)=4sinxis twice the amplitude off(x)=2sinx.If|A|<1,the function is compressed. (Figure) compares several sine functions with different amplitudes.

Figure 9.
Amplitude of Sinusoidal Functions
If we letC=0andD=0in the general form equations of the sine and cosine functions, we obtain the forms
The amplitude isA,and the vertical height from the midline is|A|.In addition, notice in the example that
Identifying the Amplitude of a Sine or Cosine Function
What is the amplitude of the sinusoidal functionf(x)=−4sin(x)?Is the function stretched or compressed vertically?
Analysis
The negative value ofAresults in a reflection across the x-axis of the sine function, as shown in (Figure).

Figure 10.
Try It
What is the amplitude of the sinusoidal functionf(x)=12sin(x)?Is the function stretched or compressed vertically?
12compressed
Analyzing Graphs of Variations of y = sin x and y = cos x
Now that we understand howAandBrelate to the general form equation for the sine and cosine functions, we will explore the variablesCandD.Recall the general form:
The valueCBfor a sinusoidal function is called the phase shift, or the horizontal displacement of the basic sine or cosine function. IfC>0,the graph shifts to the right. IfC<0,the graph shifts to the left. The greater the value of|C|,the more the graph is shifted. (Figure) shows that the graph off(x)=sin(x−π)shifts to the right byπunits, which is more than we see in the graph off(x)=sin(x−π4),which shifts to the right byπ4units.

Figure 11.
WhileCrelates to the horizontal shift,Dindicates the vertical shift from the midline in the general formula for a sinusoidal function. See (Figure). The functiony=cos(x)+Dhas its midline aty=D.

Figure 12.
Any value ofDother than zero shifts the graph up or down. (Figure) comparesf(x)=sinxwithf(x)=sinx+2,which is shifted 2 units up on a graph.

Figure 13.
Variations of Sine and Cosine Functions
Given an equation in the formf(x)=Asin(Bx−C)+Dorf(x)=Acos(Bx−C)+D,CBis the phase shift andDis the vertical shift.
Identifying the Phase Shift of a Function
Determine the direction and magnitude of the phase shift forf(x)=sin(x+π6)−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 beforeC.Thereforef(x)=sin(x+π6)−2can be rewritten asf(x)=sin(x−(−π6))−2.If the value ofCis negative, the shift is to the left.
Try It
Determine the direction and magnitude of the phase shift forf(x)=3cos(x−π2).
Identifying the Vertical Shift of a Function
Determine the direction and magnitude of the vertical shift forf(x)=cos(x)−3.
Try It
Determine the direction and magnitude of the vertical shift forf(x)=3sin(x)+2.
Given a sinusoidal function in the formf(x)=Asin(Bx−C)+D,identify the midline, amplitude, period, and phase shift.
- Determine the amplitude as|A|.
- Determine the period asP=2π|B|.
- Determine the phase shift asCB.
- Determine the midline asy=D.
Identifying the Variations of a Sinusoidal Function from an Equation
Determine the midline, amplitude, period, and phase shift of the functiony=3sin(2x)+1.
Analysis
Inspecting the graph, we can determine that the period isπ,the midline isy=1,and the amplitude is 3. See (Figure).

Figure 14.
Try It
Determine the midline, amplitude, period, and phase shift of the functiony=12cos(x3−π3).
Identifying the Equation for a Sinusoidal Function from a Graph
Determine the formula for the cosine function in (Figure).
![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).](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143157/CNX_Precalc_Figure_06_01_015.jpg)
Figure 15.
Try It
Determine the formula for the sine function in (Figure).
![A graph of sin(x)+2. Period of 2pi, amplitude of 1, and range of [1, 3].](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143201/CNX_Precalc_Figure_06_01_016.jpg)
Figure 16.
Identifying the Equation for a Sinusoidal Function from a Graph
Determine the equation for the sinusoidal function in (Figure).
![A graph of 3cos(pi/3x-pi/3)-2. Graph has amplitude of 3, period of 6, range of [-5,1].](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143204/CNX_Precalc_Figure_06_01_017.jpg)
Figure 17.
Try It
Write a formula for the function graphed in (Figure).
![A graph of 4sin((pi/5)x-pi/5)+4. Graph has period of 10, amplitude of 4, range of [0,8].](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143209/CNX_Precalc_Figure_06_01_018n.jpg)
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 letC=0andD=0and work with a simplified form of the equations in the following examples.
Given the functiony=Asin(Bx),sketch its graph.
- Identify the amplitude,|A|.
- Identify the period,P=2π|B|.
- Start at the origin, with the function increasing to the right ifAis positive or decreasing ifAis negative.
- Atx=π2|B|there is a local maximum forA>0or a minimum forA<0,withy=A.
- The curve returns to the x-axis atx=π|B|.
- There is a local minimum forA>0(maximum forA<0) atx=3π2|B|withy=–A.
- The curve returns again to the x-axis atx=2π|B|.
Graphing a Function and Identifying the Amplitude and Period
Sketch a graph off(x)=−2sin(πx2).
Try It
Sketch a graph ofg(x)=−0.8cos(2x).Determine the midline, amplitude, period, and phase shift.
Given a sinusoidal function with a phase shift and a vertical shift, sketch its graph.
- Express the function in the general formy=Asin(Bx−C)+D or y=Acos(Bx−C)+D.
- Identify the amplitude,|A|.
- Identify the period,P=2π|B|.
- Identify the phase shift,CB.
- Draw the graph off(x)=Asin(Bx) shifted to the right or left byCBand up or down byD.
Graphing a Transformed Sinusoid
Sketch a graph off(x)=3sin(π4x−π4).
Try It
Draw a graph ofg(x)=−2cos(π3x+π6).Determine the midline, amplitude, period, and phase shift.
Identifying the Properties of a Sinusoidal Function
Giveny=−2cos(π2x+π)+3,determine the amplitude, period, phase shift, and horizontal 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.
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 still2π;as we travel around the circle, we return to the point(3,0)forx=2π,4π,6π,....Because the outputs of the graph will now oscillate between–3and3,the amplitude of the sine wave is3.
Try It
What is the amplitude of the functionf(x)=7cos(x)?Sketch a graph of this function.
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). Sketch a graph of the height above the ground of the pointPas the circle is rotated; then find a function that gives the height in terms of the angle of rotation.

Figure 23.
Try It
A weight is attached to a spring that is then hung from a board, as shown in (Figure). As the spring oscillates up and down, the positionyof the weight relative to the board ranges from–1in. (at timex=0)to–7in. (at timex=π)below the board. Assume the position ofyis given as a sinusoidal function ofx.Sketch a graph of the function, and then find a cosine function that gives the positionyin terms ofx.

Figure 25.
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 | f(x)=Asin(Bx−C)+Df(x)=Acos(Bx−C)+D |
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 of2π.
- The function sinxis odd, so its graph is symmetric about the origin. The function cosxis 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 isP=2π|B|.See (Figure).
- In the general formula for a sinusoidal function,|A|represents amplitude. If|A|>1,the function is stretched, whereas if|A|<1,the function is compressed. See (Figure).
- The valueCBin the general formula for a sinusoidal function indicates the phase shift. See (Figure).
- The valueDin the general formula for a sinusoidal function indicates the vertical shift from the midline. See (Figure).
- Combinations of variations of sinusoidal functions can be detected from an equation. See (Figure).
- The equation for a sinusoidal function can be determined from a graph. See (Figure) and (Figure).
- A function can be graphed by identifying its amplitude and period. See (Figure) and (Figure).
- A function can also be graphed by identifying its amplitude, period, phase shift, and horizontal shift. See (Figure).
- Sinusoidal functions can be used to solve real-world problems. See (Figure), (Figure), and (Figure).
Section Exercises
Verbal
Why are the sine and cosine functions called periodic functions?
How does the graph ofy=sinx
compare with the graph ofy=cosx?
Explain how you could horizontally translate the graph ofy=sinx
to obtainy=cosx.
For the equationAcos(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 equationy=Asin(Bx+C)+D?
How can the unit circle be used to construct the graph off(t)=sint?
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 forx>0.Round answers to two decimal places if necessary.
f(x)=2sinx
f(x)=23cosx
f(x)=−3sinx
f(x)=4sinx
f(x)=2cosx
f(x)=cos(2x)
f(x)=2sin(12x)
f(x)=4cos(πx)
f(x)=3cos(65x)
y=3sin(8(x+4))+5
y=2sin(3x−21)+4
y=5sin(5x+20)−2
For the following exercises, graph one full period of each function, starting atx=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 forx>0.State the phase shift and vertical translation, if applicable. Round answers to two decimal places if necessary.
f(t)=2sin(t−5π6)
f(t)=−cos(t+π3)+1
f(t)=4cos(2(t+π4))−3
f(t)=−sin(12t+5π3)
f(x)=4sin(π2(x−3))+7
Determine the amplitude, midline, period, and an equation involving the sine function for the graph shown in (Figure).
![A sinusoidal graph with amplitude of 2, range of [-5, -1], period of 4, and midline at y=-3.](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143443/CNX_Precalc_Figure_06_01_218.jpg)
Figure 26.
Determine the amplitude, period, midline, and an equation involving cosine for the graph shown in (Figure).
![A graph with a cosine parent function, with amplitude of 3, period of pi, midline at y=-1, and range of [-4,2]](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143449/CNX_Precalc_Figure_06_01_219.jpg)
Figure 27.
Determine the amplitude, period, midline, and an equation involving cosine for the graph shown in (Figure).
![A graph with a cosine parent function with an amplitude of 2, period of 5, midline at y=3, and a range of [1,5].](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143502/CNX_Precalc_Figure_06_01_220.jpg)
Figure 28.
Determine the amplitude, period, midline, and an equation involving sine for the graph shown in (Figure).
![A sinusoidal graph with amplitude of 4, period of 10, midline at y=0, and range [-4,4].](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143505/CNX_Precalc_Figure_06_01_221.jpg)
Figure 29.
Determine the amplitude, period, midline, and an equation involving cosine for the graph shown in (Figure).
![A graph with cosine parent function, range of function is [-4,4], amplitude of 4, period of 2.](https://s3-us-west-2.amazonaws.com/courses-images/wp-content/uploads/sites/3252/2018/07/19143516/CNX_Precalc_Figure_06_01_222.jpg)
Figure 30.
Determine the amplitude, period, midline, and an equation involving sine for the graph shown in (Figure).

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

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

Figure 33.
Algebraic
For the following exercises, letf(x)=sinx.
On[0,2π),solvef(x)=0.
On[0,2π),solvef(x)=12.
Evaluatef(π2).
On[0,2π),f(x)=√22.Find all values ofx.
On[0,2π),the maximum value(s) of the function occur(s) at what x-value(s)?
On[0,2π),the minimum value(s) of the function occur(s) at what x-value(s)?
Show thatf(−x)=−f(x).This means thatf(x)=sinxis an odd function and possesses symmetry with respect to ________________.
For the following exercises, letf(x)=cosx.
On[0,2π),solve the equationf(x)=cosx=0.
On[0,2π),solvef(x)=12.
On[0,2π),find the x-intercepts off(x)=cosx.
On[0,2π),find the x-values at which the function has a maximum or minimum value.
On[0,2π),solve the equationf(x)=√32.
Technology
Graphh(x)=x+sinxon[0,2π].Explain why the graph appears as it does.
Graphh(x)=x+sinxon[−100,100].Did the graph appear as predicted in the previous exercise?
Graphf(x)=xsinxon[0,2π]and verbalize how the graph varies from the graph off(x)=sinx.
Graphf(x)=xsinxon the window[−10,10]and explain what the graph shows.
Graphf(x)=sinxxon the window[−5π,5π]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 functionh(t)gives a person’s height in meters above the ground t minutes after the wheel begins to turn.
- Find the amplitude, midline, and period ofh(t).
- Find a formula for the height functionh(t).
- How high off the ground is a person after 5 minutes?
Glossary
- amplitude
- the vertical height of a function; the constantAappearing in the definition of a sinusoidal function
- midline
- the horizontal liney=D,whereDappears in the general form of a sinusoidal function
- periodic function
- a functionf(x)that satisfiesf(x+P)=f(x)for a specific constantPand any value ofx
- phase shift
- the horizontal displacement of the basic sine or cosine function; the constantCB
- sinusoidal function
- any function that can be expressed in the formf(x)=Asin(Bx−C)+Dorf(x)=Acos(Bx−C)+D
Candela Citations
- Algebra and Trigonometry. Authored by: Jay Abramson, et. al. Provided by: OpenStax CNX. Located at: http://cnx.org/contents/13ac107a-f15f-49d2-97e8-60ab2e3b519c@11.1. License: CC BY: Attribution. License Terms: Download for free at http://cnx.org/contents/13ac107a-f15f-49d2-97e8-60ab2e3b519c@11.1