Skip to main content
Mathematics LibreTexts

19.2.2: Graphing the Sine and Cosine Functions

  • Page ID
    70764
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Learning Objectives
    • Determine the coordinates of points on the unit circle.
    • Graph the sine function.
    • Graph the cosine function.
    • Compare the graphs of the sine and cosine functions.

    Introduction

    You know how to graph many types of functions. Graphs are useful because they can take complicated information and display it in a simple, easy-to-read manner. You’ll now learn how to graph the sine and cosine functions, and see that the graphs of the sine function and cosine function are very similar.

    Values of the Sine and Cosine Functions

    We have seen a point (\(x,y\)) on a graph of a function. The first coordinate is the input or value of the variable, and the second coordinate is the output or value of the function.

    Each point on the graph of the sine function will have the form (\(\theta , \sin \theta\)), and each point on the graph of the cosine function will have the form (\(\theta , \cos \theta\)). It is customary to use the Greek letter theta, \(\theta\), as the symbol for the angle. Graphing points in the form (\(\theta , \sin \theta\)) is just like graphing points in the form (\(x,y\)). Along the \(x\)-axis, we will be plotting \(\theta\), and along the \(y\)-axis, we will be plotting the value of \(\sin \theta\). The graphs that we’ll draw will use values of \(\theta\) in radians. Before drawing the graphs, it will be useful to find some values of \(\sin \theta\) and \(\cos \theta\), and then gather them together in a table.

    Let’s review the general definitions of these functions. Given any angle \(\theta\), draw it in standard position together with a unit circle. The terminal side will intersect the circle at some point (\(x,y\)), as shown below.

    Screen Shot 2021-06-24 at 9.44.24 PM.png

    The value of \(\cos \theta\) has been defined to be the \(x\)-coordinate of this point, and the value of \(\sin \theta\) has been defined to be the \(y\)-coordinate of this point.

    Example

    Problem: Find the values of \(\sin \theta\) and \(\cos \theta\) for \(\theta=\frac{\pi}{6}, \frac{5 \pi}{6}, \frac{7 \pi}{6}\), and \(\frac{11\pi}{6}\).

    Answer

    You might find it useful to convert these angles to degrees. All four angles have a reference angle of \(30^{\circ}\) or \(\frac{\pi}{6}\) radians.

    \(\begin{aligned}
    \frac{\pi}{6} &=30^{\circ} \\
    \frac{5 \pi}{6} &=150^{\circ} \\
    \frac{7 \pi}{6} &=210^{\circ} \\
    \frac{11 \pi}{6} &=330^{\circ}
    \end{aligned}\)

    Use the right triangle definition to find the \(\sin \theta\) and \(\cos \theta\) for \(\theta=\frac{\pi}{6}\).

    \(\begin{array}{c}
    \frac{\cos \pi}{6}=\cos 30^{\circ}=\frac{\sqrt{3}}{2} \\
    \frac{\sin \pi}{6}=\sin 30^{\circ}=\frac{1}{2}
    \end{array}\)

    Graph the four angles in standard position. The coordinates of the point in the first quadrant were found above. The \(x\)-coordinate is the value of \(\cos \theta\), and the \(y\)-coordinate is the value of \(\sin \theta\). The other points are reflections of the first point over the \(x\)-axis, the \(y\)-axis, or both.

    Screen Shot 2021-06-24 at 9.48.50 PM.png

    \(\begin{array}{l}
    \cos \left(\frac{\pi}{6}\right)=\cos \left(\frac{11 \pi}{6}\right)=\frac{\sqrt{3}}{2} \\
    \cos \left(\frac{5 \pi}{6}\right)=\cos \left(\frac{7 \pi}{6}\right)=-\frac{\sqrt{3}}{2} \\
    \sin \left(\frac{\pi}{6}\right)=\sin \left(\frac{5 \pi}{6}\right)=\frac{1}{2}, \sin \left(\frac{7 \pi}{6}\right)=\sin \left(\frac{11 \pi}{6}\right)=-\frac{1}{2}
    \end{array}\)

    You can go through a similar procedure to find the values of \(\cos \theta\) and \(\sin \theta\) for \(\theta=\frac{\pi}{4}, \frac{3 \pi}{4}, \frac{5 \pi}{4}, \text { and } \frac{7 \pi}{4}\). All four angles have a reference angle of \(\frac{\pi}{4}\) radians or \(45^{\circ}\).

    Screen Shot 2021-06-24 at 9.50.45 PM.png

    Using the fact that \(\cos \left(\frac{\pi}{4}\right)=\frac{\sqrt{2}}{2}=\sin \left(\frac{\pi}{4}\right)\) gives you the coordinates of the point in the first quadrant. Since the other points are reflections of this one, the coordinates have the same or the opposite values.

    The diagram below can be used to find the values of \(cos \theta\) and \(sin \theta\) for \(\theta=0, \frac{\pi}{2}, \pi, \frac{3 \pi}{2}, \text { and } 2 \pi\). Note that because \(2 \pi=360^{\circ}\), when you draw the angle \(2\pi\) in standard position, you end up back at the \(x\)-axis. \(2\pi\) radians or \(360^{\circ}\) corresponds to the same point as 0 radians does, namely (1,0).

    Screen Shot 2021-06-24 at 9.53.08 PM.png

    Using the coordinates of the four points gives you:

    \(\begin{array}{cc}
    \cos 0=\cos 2 \pi=1 & \sin \left(\frac{\pi}{2}\right)=1 \\
    \cos \left(\frac{\pi}{2}\right)=\cos \left(\frac{3 \pi}{2}\right)=0 & \sin 0=\sin \pi=\sin 2 \pi=0 \\
    \cos \pi=-1 & \sin \left(\frac{3 \pi}{2}\right)=-1
    \end{array}\)

    Supplemental Interactive Activity

    To become more familiar with the coordinates of points on the unit circle, try the following interactive exercise.

    *Insert Interactive Activity Module

    The Graph of the Sine Function

    Our goal right now is to graph the function \(y = \sin \theta\). Each point on this function’s graph will have the form (\(\theta, \sin \theta\)) with the values of \(\theta\) in radians. The first step is to gather together in a table all the values of \(\sin \theta\) that you know. To start, we will use values of \(\theta\) between \(0^{\circ}\) and \(180^{\circ}\) (or \(0 \leq \theta \leq \pi\)).

    \(\theta\) (in degrees) \(\theta\) (in radians) \(\sin \theta\) (\(\theta, \sin \theta\))
    \(0^{\circ}\) 0 0 (0,0)
    \(30^{\circ}\) \(\frac{\pi}{6}\) \(\frac{1}{2}\) (\(\frac{\pi}{6}\),\(\frac{1}{2}\))
    \(45^{\circ}\) \(\frac{\pi}{4}\) \(\frac{\sqrt{2}}{2}\) (\(\frac{\pi}{4}\), \(\frac{\sqrt{2}}{2}\))
    \(60^{\circ}\) \(\frac{\pi}{3}\) \(\frac{\sqrt{3}}{2}\) (\(\frac{\pi}{3}\), \(\frac{\sqrt{3}}{2}\))
    \(90^{\circ}\) \(\frac{\pi}{2}\) 1 (\(\frac{\pi}{2}\), 1)
    \(120^{\circ}\) \(\frac{2\pi}{3}\) \(\frac{\sqrt{3}}{2}\) (\(\frac{2\pi}{3}\), \(\frac{\sqrt{3}}{2}\))
    \(135^{\circ}\) \(\frac{3\pi}{4}\) \(\frac{\sqrt{2}}{2}\) (\(\frac{3\pi}{4}\), \(\frac{\sqrt{2}}{2}\))
    \(150^{\circ}\) \(\frac{5\pi}{6}\) \(\frac{1}{2}\) (\(\frac{5\pi}{6}\), \(\frac{1}{2}\))
    \(180^{\circ}\) \(\pi\) 0 (\(\pi\), 0)

    When we graph functions, we often say to graph the function on an interval. We use interval notation to describe the interval. Interval notation has the form [\(a,b\)], which means the interval begins at \(a\) and ends at \(b\). In the example, the notation [\(0, \pi\)] has the same meaning as \(0 \leq \theta \leq \pi\).

    Example

    Problem: Graph the sine function on the interval [\(0, \pi\)]. Describe the values of the function as \(\theta\) goes from 0 to \(\pi\).

    Answer

    Plot all the points from the last column of the table above. Note that \(\frac{\sqrt{2}}{2} \approx 0.7\) and that \(\frac{\sqrt{3}}{2} \approx 0.9\). Connect the points with a smooth curve.

    Screen Shot 2021-06-24 at 10.19.11 PM.png

    The values increase from 0 to 1 and then decrease from 1 to 0.

    Note that our input is \(\theta\), the measure of the angle in radians, and that the horizontal axis is labeled \(\theta\), not \(x\). Next we will gather together all the values of \(\sin \theta\) that you know for \(\pi \leq \theta \leq 2\pi\) in one table.

    \(\theta\) (in degrees) \(\theta\) (in radians) \(\sin \theta\) (\(\theta, \sin \theta\))
    \(180^{\circ}\) \(\pi\) 0 (\(\pi\),0)
    \(210^{\circ}\) \(\frac{7\pi}{6}\) \(-\frac{1}{2}\) (\(\frac{7\pi}{6}\),\(-\frac{1}{2}\))
    \(225^{\circ}\) \(\frac{5\pi}{4}\) \(-\frac{\sqrt{2}}{2}\) (\(\frac{5\pi}{4}\), \(-\frac{\sqrt{2}}{2}\))
    \(240^{\circ}\) \(\frac{4\pi}{3}\) \(-\frac{\sqrt{3}}{2}\) (\(\frac{4\pi}{3}\), \(-\frac{\sqrt{3}}{2}\))
    \(270^{\circ}\) \(\frac{3\pi}{2}\) -1 (\(3\frac{\pi}{2}\), -1)
    \(300^{\circ}\) \(\frac{5\pi}{3}\) \(-\frac{\sqrt{3}}{2}\) (\(\frac{5\pi}{3}\), \(-\frac{\sqrt{3}}{2}\))
    \(315^{\circ}\) \(\frac{7\pi}{4}\) \(-\frac{\sqrt{2}}{2}\) (\(\frac{7\pi}{4}\), \(-\frac{\sqrt{2}}{2}\))
    \(330^{\circ}\) \(\frac{11\pi}{6}\) \(-\frac{1}{2}\) (\(\frac{11\pi}{6}\), \(-\frac{1}{2}\))
    \(360^{\circ}\) \(2\pi\) 0 (\(2\pi\), 0)

    You could simply plot all the points from the last column and continue the graph in the last example. But notice the following: the values in the third column (or \(y\)-coordinates of the points) have the opposite values of the points that we just graphed. This means that instead of plotting points above the \(\theta\)-axis, you will be plotting points below the \(\theta\)-axis. Also, the inputs and outputs are spaced out in the same fashion for this part of the graph as they were for the first part of the graph. So instead of having a “hill” that goes from 0 up to 1 and down to 0, you will have a “valley” that goes down from 0 to -1 and then up to 0.

    Screen Shot 2021-06-24 at 10.29.51 PM.png

    We have used values of \(\theta\) from 0 to \(2\pi\) to draw the graph of the sine function. What does the graph look like if we continue to the right of \(2\pi\) for \(2\pi \leq \theta \leq 4\pi\), which is one more time around the unit circle? In terms of degrees, these are angles between \(360^{\circ}\) and \(720^{\circ}\). Let’s go back and look at one of these angles in standard position with the unit circle. A \(400^{\circ}\) angle is shown below.

    Screen Shot 2021-06-24 at 10.31.34 PM.png

    Because \(400^{\circ}=360^{\circ}+40^{\circ}\), the angle travels a full rotation plus another \(40^{\circ}\), as shown by the curved arrow in the diagram. Imagine you are on (1,0) and you walk around the circle one complete time and then you walk a little more to end up at (\(x,y\)). This point where the terminal side intersects the unit circle is the same point that you would get for a \(40^{\circ}\) angle. All of the trigonometric functions for these two angles are computed using the coordinates of this point. This means that \(\sin 400^{\circ}=\sin 40^{\circ}\), \(\cos 400^{\circ}=\cos 40^{\circ}\), \(\tan 400^{\circ}=\tan 40^{\circ}\), and the same is true for the three reciprocal functions.

    There is nothing special about \(400^{\circ}\). You could draw other angles that are greater than \(360^{\circ}\) and find similar results. The results above for sine and cosine can be rewritten as \(\sin \left(40^{\circ}+360^{\circ}\right)=\sin 40^{\circ}\) and \(\cos \left(40^{\circ}+360^{\circ}\right)=\cos 40^{\circ}\). In general, it is true that \(\sin \left(\theta^{\circ}+360^{\circ}\right)=\sin \theta^{\circ}\) and \(\cos \left(\theta^{\circ}+360^{\circ}\right)=\cos \theta^{\circ}\), or, using radians:

    \(\sin (\theta+2 \pi)=\sin \theta \quad \text { and } \quad \cos (\theta+2 \pi)=\cos \theta\)

    These two equations tell us that when we go around the circle a second time, we are going to get the same values for \(\sin (\theta+2 \pi)\) as we did for \(\sin \theta\) and the same values for \(\cos (\theta+2 \pi)\) as we did for \(\cos \theta\). In other words, as we go around the same circle a second time, at the same locations on the circle we will get the same values for the \(y\)-coordinate and the \(x\)-coordinate that we did the first time around the circle.

    Example

    Problem: Sketch the graph of the sine function on the interval [\(0, 4\pi\)] and find the range.

    Answer

    Because the values of the sine function between \(2\pi\) and \(4\pi\) are the same as the values between 0 and \(2\pi\), the shape of the graph between \(2\pi\) and \(4\pi\) is the same as the shape of the graph between 0 and \(2\pi\).

    The range is the set of all \(y\)-values that the function can have, so the range of \(y = \sin \theta\) is \(-1 \leq y \leq 1\).

    Screen Shot 2021-06-24 at 10.38.57 PM.png

    The range of \(y = \sin \theta\) is \(-1 \leq y \leq 1\).

    The same reasoning that we used above works for negative angles. For example, the angles \(-225^{\circ}\) and \(135^{\circ}\) are drawn in standard position with the unit circle below.

    Screen Shot 2021-06-24 at 10.40.04 PM.png

    Because they are coterminal angles, they intersect the unit circle at the same point and therefore have the same coordinates. Therefore, \(\sin \left(-225^{\circ}\right)=\sin 135^{\circ}\), \(\cos \left(-225^{\circ}\right)=\cos 135^{\circ}\), and so on for the other trigonometric functions. Notice that we could rewrite the first equation as \(\sin \left(-225^{\circ}\right)=\sin \left(-225^{\circ}+360^{\circ}\right)\). Likewise, \(\sin \theta=\sin \left(\theta+360^{\circ}\right)\), or \(\sin \theta=\sin (\theta+2 \pi)\), is true for any angle \(\theta\) including negative angles. The equation \(\sin \theta=\sin (\theta+2 \pi)\) tells us that each time we go one additional full revolution around the circle, we get the same values for the sine and the cosine as we did the first time around the circle.

    Example

    Problem: Sketch the graph of the sine function on the interval [\(-2\pi, 2\pi\)].

    Answer

    Because \(\sin \theta=\sin (\theta+2 \pi)\) is true for negative angles as well as positive angles, the values of the sine function between \(-2\pi\) and 0 are the same as the values of the sine function between 0 and \(2\pi\).

    Therefore, the shape of the graph between \(-2\pi\) and 0 is the same as the shape of the graph between 0 and \(2\pi\).

    Screen Shot 2021-06-24 at 10.47.21 PM.png

    Since the equation \(\sin (\theta+2 \pi)=\sin \theta\) is true for any angle, it is an identity. We can use this identity to continue the graph of the sine function in either direction. This “hill and valley” pattern over an interval of length \(2\pi\) will continue in both directions forever.

    Each time we add \(2\pi\) to an angle, say \(\frac{\pi}{6}\) or \(30^{\circ}\), we will get the same function value.

    \(\sin \left(\frac{\pi}{6}\right)=\sin \left(\frac{\pi}{6}+2 \pi\right)=\sin \left(\frac{\pi}{6}+4 \pi\right)=\sin \left(\frac{\pi}{6}+6 \pi\right)=\ldots=\frac{1}{2}\)

    You can also use the identity above to simplify calculations of the sine function by repeatedly subtracting \(2\pi\) from the angle. For example:

    \(\sin \left(\frac{17 \pi}{4}\right)=\sin \left(4 \pi+\frac{\pi}{4}\right)=\sin \left(2 \pi+\frac{\pi}{4}\right)=\sin \left(\frac{\pi}{4}\right)=\frac{\sqrt{2}}{2}\)

    Exercise

    What is the value of \(\sin \left(\frac{25 \pi}{6}\right)\)?

    1. \(\frac{1}{2}\)
    2. \(-\frac{1}{2}\)
    3. \(\frac{\sqrt{3}}{2}\)
    4. \(-\frac{\sqrt{3}}{2}\)
    Answer
    1. \(\frac{1}{2}\). Correct. Rewrite \(\frac{25 \pi}{6}\) as \(4 \pi+\frac{\pi}{6}\). The \(4\pi\) represents having gone around the circle twice. Using the identity \(\sin (\theta+2 \pi)=\sin \theta\) to remove one revolution at a time, we get \(\sin \left(4 \pi+\frac{\pi}{6}\right)=\sin \left(2 \pi+\frac{\pi}{6}\right)=\sin \left(\frac{\pi}{6}\right)=\sin 30^{\circ}=\frac{1}{2}\).
    2. \(-\frac{1}{2}\). Incorrect. Perhaps you simplified incorrectly and thought this was equal to \(\sin \left(\frac{7 \pi}{6}\right)\). Use the identity \(\sin (\theta+2 \pi)=\sin \theta\) to simplify \(\sin \left(4 \pi+\frac{\pi}{6}\right)\). The correct answer is \(\frac{1}{2}\).
    3. \(\frac{\sqrt{3}}{2}\). Incorrect. You may have incorrectly converted from degrees to radians or confused sine and cosine. Use the identity \(\sin (\theta+2 \pi)=\sin \theta\) to simplify \(\sin \left(4 \pi+\frac{\pi}{6}\right)\). Remember that \(\frac{\pi}{6} \text { radians }=30^{\circ}\). The correct answer is \(\frac{1}{2}\).
    4. \(-\frac{\sqrt{3}}{2}\). Incorrect. You may have simplified incorrectly and thought this was equal to \(\sin \left(\frac{4 \pi}{3}\right)\). Use the identity \(\sin (\theta+2 \pi)=\sin \theta\) to simplify \(\sin \left(4 \pi+\frac{\pi}{6}\right)\). The correct answer is \(\frac{1}{2}\).

    The Graph of the Cosine Function

    Now our goal is to graph \(y = \cos \theta\). We will go through the same procedure as we did for the sine function, and the result will be similar.

    Each point on the function’s graph will have the form (\(\theta, \cos \theta\)) with the values of \(\theta\) in radians. The first step is to gather together in a table all the values of \(\cos \theta\) that you know. To start, we will use values of \(\theta\) between \(0^{\circ}\) and \(180^{\circ}\) (or \(0 \leq \theta \leq \pi\)).

    \(\theta\) (in degrees) \(\theta\) (in radians) \(\sin \theta\) (\(\theta, \sin \theta\))
    \(0^{\circ}\) 0 1 (0,1)
    \(30^{\circ}\) \(\frac{\pi}{6}\) \(\frac{\sqrt{3}}{2}\) (\(\frac{\pi}{6}\),\(\frac{\sqrt{3}}{2}\))
    \(45^{\circ}\) \(\frac{\pi}{4}\) \(\frac{\sqrt{2}}{2}\) (\(\frac{\pi}{4}\), \(\frac{\sqrt{2}}{2}\))
    \(60^{\circ}\) \(\frac{\pi}{3}\) \(\frac{1}{2}\) (\(\frac{\pi}{3}\), \(\frac{1}{2}\))
    \(90^{\circ}\) \(\frac{\pi}{2}\) 0 (\(\frac{\pi}{2}\), 0)
    \(120^{\circ}\) \(\frac{2\pi}{3}\) \(-\frac{1}{2}\) (\(\frac{2\pi}{3}\), \(-\frac{1}{2}\))
    \(135^{\circ}\) \(\frac{3\pi}{4}\) \(-\frac{\sqrt{2}}{2}\) (\(\frac{3\pi}{4}\), \(-\frac{\sqrt{2}}{2}\))
    \(150^{\circ}\) \(\frac{5\pi}{6}\) \(-\frac{\sqrt{3}}{2}\) (\(\frac{5\pi}{6}\), \(-\frac{\sqrt{3}}{2}\))
    \(180^{\circ}\) \(\pi\) -1 (\(\pi\), -1)
    Example

    Problem: Graph the cosine function on the interval [\(0, \pi\)]. Describe the values of the function as \(\theta\) goes from 0 to \(\pi\).

    Answer

    Plot all the points from the last column of the table above. Note that \(\frac{\sqrt{2}}{2} \approx 0.7\) and that \(\frac{\sqrt{3}}{2} \approx 0.9\). Connect them with a smooth curve.

    Screen Shot 2021-06-24 at 11.06.22 PM.png

    The values decrease from 1 to 0 and also continue to decrease from 0 to -1.

    Once again, our input is \(\theta\), the measure of the angle in radians, and the horizontal axis is labeled \(\theta\), not \(x\). Next, we will gather together all the values of \(\cos \theta\) that you know for \(\pi \leq \theta \leq 2 \pi\) in one table.

    \(\theta\) (in degrees) \(\theta\) (in radians) \(\sin \theta\) (\(\theta, \sin \theta\))
    \(180^{\circ}\) \(\pi\) -1 (0,-1)
    \(210^{\circ}\) \(\frac{7\pi}{6}\) \(-\frac{\sqrt{3}}{2}\) (\(\frac{\pi}{6}\),\(-\frac{\sqrt{3}}{2}\))
    \(225^{\circ}\) \(\frac{5\pi}{4}\) \(-\frac{\sqrt{2}}{2}\) (\(\frac{\pi}{4}\), \(-\frac{\sqrt{2}}{2}\))
    \(240^{\circ}\) \(\frac{4\pi}{3}\) \(-\frac{1}{2}\) (\(\frac{\pi}{3}\), \(-\frac{1}{2}\))
    \(270^{\circ}\) \(\frac{3\pi}{2}\) 0 (\(\frac{\pi}{2}\), 0)
    \(300^{\circ}\) \(\frac{5\pi}{3}\) \(\frac{1}{2}\) (\(\frac{2\pi}{3}\), \(\frac{1}{2}\))
    \(315^{\circ}\) \(\frac{7\pi}{4}\) \(\frac{\sqrt{2}}{2}\) (\(\frac{3\pi}{4}\), \(\frac{\sqrt{2}}{2}\))
    \(330^{\circ}\) \(\frac{11\pi}{6}\) \(\frac{\sqrt{3}}{2}\) (\(\frac{5\pi}{6}\), \(\frac{\sqrt{3}}{2}\))
    \(360^{\circ}\) \(2\pi\) 1 (\(\pi\), 1)

    Again, you could simply plot all the points from the last column and continue the graph. Instead, compare the values in the third columns of the two tables: they are the same numbers, but in the reverse order. These are the \(y\)1-coordinates of the points. This means that while the first part that we graphed decreased from 1 down to -1, this second part that we are graphing will increase from -1 to 1 and have the “same shape” (turned around the other way). Here it is:

    Screen Shot 2021-06-24 at 11.15.19 PM.png

    The next step is to continue the graph for input values \(2\pi \leq \theta \leq 4 \pi\). When we were in the process of graphing the sine function, we established the following identity:

    \(\cos (\theta+2 \pi)=\cos \theta\)

    This equation tells us that when we go around the circle a second time, we are going to get the same values for \(\cos (\theta+2 \pi)\) as we did for \(\cos \theta\).

    In other words, as we go around the same circle a second time, at the same locations on the circle we will get the same values for the \(x\)-coordinate that we did the first time around the circle.

    Example

    Problem: Sketch the graph of the cosine function on the interval [\(0, 4\pi\)].

    Answer

    Because the outputs between \(2\pi\) and \(4\pi\) are the same as the outputs between 0 and \(2\pi\), the shape of the graph between \(2\pi\) and \(4\pi\) is the same as the shape of the graph between 0 and \(2\pi\).

    Screen Shot 2021-06-24 at 11.18.48 PM.png

    Just as the identity \(\sin \theta=\sin (\theta+2 \pi)\) is true for negative angles, the identity \(\cos (\theta+2 \pi)=\cos \theta\) is also true for any negative angle \(\theta\).

    Example

    Problem: Sketch the graph of the cosine function on the interval [\(-2\pi, 2\pi\)].

    Answer

    Because \(\cos \theta=\cos (\theta+2 \pi)\) is true for negative angles as well as positive angles, the values of the cosine function between \(-2\pi\) and 0 are the same as the values of the cosine function between 0 and \(2\pi\).

    Therefore, the shape of the graph between \(-2\pi\) and 0 is the same as the shape of the graph between 0 and \(2\pi\).

    Screen Shot 2021-06-24 at 11.21.46 PM.png

    The identity \(\cos (\theta+2 \pi)=\cos \theta\) was used above to extend the graph of the cosine function to the right and to the left. You can use this to continue to extend the graph in both directions. You will get another “hill and valley” pattern that repeats after intervals of length \(2\pi\) in both directions.

    Another important feature of the graph of \(y = \cos \theta\) is that the left and right halves are mirror images of each other over the \(y\)-axis. The graph of \(y = x^2\) has this same property. Another way to describe this is to say that if you substitute a number and its opposite into the function, you will get the same value as the previous equation. For example, \(\cos \left(-\frac{\pi}{4}\right)=\cos \left(\frac{\pi}{4}\right)\), \(\cos (-\pi)=\cos \pi\), or in general, \(\cos (-\theta)=\cos \theta\). We say that the graph is symmetric about the y-axis. The diagram below shows two points taken from a symmetric graph.

    Screen Shot 2021-06-24 at 11.23.52 PM.png

    The height of the points at opposite inputs is the same. The height is the value of the function. A function whose graph is symmetric about the \(y\)-axis has \(f(-x)=f(x)\).

    Exercise

    What is the range of the cosine function?

    1. all values in the interval [0,1]
    2. all values in the interval [-1,1]
    3. all values in the interval [0, \(2\pi\)]
    4. all real numbers
    Answer
    1. all values in the interval [0,1]. Incorrect. You were probably looking at the \(y\)-values, which is the correct thing to do. However, you chose only part of the range. The range is the set of all \(y\)-values that the function can have; in this case that would be \(-1 \leq y \leq 1\). The correct answer is B.
    2. all values in the interval [-1,1]. Correct. The graph of the function extends forever in both directions, so its domain is all real numbers. It consists of a repeating hill and valley pattern. The valley goes down to a \(y\)-value of -1, and the hill goes up to a \(y\)-value of 1. All \(y\)-values between these two \(y\)-values are also outputs of the function. So the set of outputs, or range, is all numbers from -1 to 1.
    3. all values in the interval [0, \(2\pi\)]. Incorrect. This interval, as a set of inputs, will give you one complete pattern. It is the set of outputs that you are looking for. The correct answer is B.
    4. all real numbers. Incorrect. Perhaps you were thinking of the domain of the function, which is all real numbers. The range is the set of all outputs or \(y\)-values. The correct answer is B.

    A Comparison of the Graphs of Sine and Cosine

    The graphs of sine and cosine both have hills and valleys in a repeating pattern.

    Since this repeating pattern can be extended indefinitely to the left and right, the domain for both functions is the real numbers. The range for both of them is the interval [-1,1].

    Screen Shot 2021-06-24 at 11.29.34 PM.png

    Let’s now compare these graphs in some other ways.

    First, we want to see what happens to the graph of a function when you change the input by adding a constant to it. Compare \(y = \sin \theta\) and \(y=\sin \left(\theta+\frac{\pi}{2}\right)\). Here is a table with some values for these two functions.

    \(\theta\) (in radians) \(\sin \theta\) \(\theta + \frac{\pi}{2}\) (in radians) \(\sin \left(\theta+\frac{\pi}{2}\right)\)
    0 0 \(\frac{\pi}{2}\) 1
    \(\frac{\pi}{6}\) \(\frac{1}{2}\) \(\frac{2\pi}{3}\) \(\frac{\sqrt{3}}{2}\)
    \(\frac{\pi}{4}\) \(\frac{\sqrt{2}}{2}\) \(\frac{3\pi}{4}\) \(\frac{\sqrt{2}}{2}\)
    \(\frac{\pi}{3}\) \(\frac{\sqrt{3}}{2}\) \(\frac{5\pi}{6}\) \(\frac{1}{2}\)
    \(\frac{\pi}{2}\) 1 \(\pi\) 0
    \(\frac{2\pi}{3}\) \(\frac{\sqrt{3}}{2}\) \(\frac{7\pi}{6}\) \(-\frac{1}{2}\)
    \(\frac{3\pi}{4}\) \(\frac{\sqrt{2}}{2}\) \(\frac{5\pi}{4}\) \(-\frac{\sqrt{2}}{2}\)
    \(\frac{5\pi}{6}\) \(\frac{1}{2}\) \(\frac{4\pi}{3}\) \(-\frac{\sqrt{3}}{2}\)
    \(\pi\) 0 \(\frac{3\pi}{2}\) -1

    Now we’ll graph these two functions. As a reminder, the input is \(\theta\) for both of these functions. To graph \(y = \sin \theta\), you use the numbers in the first and second columns. To graph \(y=\sin \left(\theta+\frac{\pi}{2}\right)\), you use the numbers in the first and fourth columns. (The third column was just written as a convenient intermediate step. You do not use that for the graph.)

    Screen Shot 2021-06-24 at 11.46.11 PM.png

    First observe, as shown by the pieces in red, that the effect of adding \(\frac{\pi}{2}\) to the input is to shift the graph to the left by \(\frac{\pi}{2}\) units. You may recall seeing this effect when you graphed radical functions such as \(y = \sqrt{x}\) and \(y = \sqrt{x+1}\) (adding the 1 to the input shifted the graph of \(y = \sqrt{x}\) to the left 1 unit). In general, if you add a positive constant \(c\) to the input of a function, that will have the effect of shifting the original graph to the left by \(c\) units. If you subtract a positive constant from the input of a function, that will have the effect of shifting the original graph to the right by \(c\) units.

    Next, observe that the graph on the right is already familiar to you. It is the graph of \(y=\cos \theta\)! So you can say that the graph of \(y=\sin \left(\theta+\frac{\pi}{2}\right)\) is the same as the graph of \(y=\cos \theta\), or you can say that the graph of \(y=\sin \theta\) shifted to the left by \(\frac{\pi}{2}\) units is the graph of \(y=\cos \theta\).

    The next example looks at a shift in the other direction.

    Example

    Problem: Sketch the graph of \(y=\cos \left(\theta-\frac{\pi}{2}\right)\) on the interval [\(-2\pi, 2\pi\)]. How does the graph compare to the graph of \(y=\sin \theta\)?

    Answer

    The graph of \(y=\cos \left(\theta-\frac{\pi}{2}\right)\) is the same as the graph of \(y=\cos \theta\) shifted \(\frac{\pi}{2}\) units to the right.

    Screen Shot 2021-06-24 at 11.51.27 PM.png

    The graph of \(y=\cos \left(\theta-\frac{\pi}{2}\right)\) is the same as the graph of \(y=\sin \theta\).

    Because the patterns repeat, you could start with the graph of either sine or cosine and shift it by different amounts to the right or left to get the graph of the other function.

    Exercise

    Which comparison of the graphs of \(y=\sin \theta\) and \(y=\cos \theta\) is true?

    1. They are the same.
    2. The graph of \(y=\sin \theta\) shifted \(\frac{\pi}{2}\) units to the right is the graph of \(y=\cos \theta\).
    3. The graph of \(y=\sin \theta\) shifted \(\pi\) units to the right is the graph of \(y=\cos \theta\).
    4. The graph of \(y=\sin \theta\) shifted \(\frac{\pi}{2}\) units to the left is the graph of \(y=\cos \theta\).
    Answer
    1. They are the same. Incorrect. The two graphs have the same repeating pattern or the same general shape, but they are not identical. The correct answer is D.
    2. The graph of \(y=\sin \theta\) shifted \(\frac{\pi}{2}\) units to the right is the graph of \(y=\cos \theta\). Incorrect. If you switch sine and cosine in this option you get a correct statement. The two graphs described in this option have the same shape, but the hills and valleys do not match up. The correct answer is D.
    3. The graph of \(y=\sin \theta\) shifted \(\pi\) units to the right is the graph of \(y=\cos \theta\). Incorrect. If you shift the graph of the sine function by \(\pi\) units to the right, you get a graph that “begins” (at \(\theta = 0\)) with a valley. This is not the graph of the cosine function. The correct answer is D.
    4. The graph of \(y=\sin \theta\) shifted \(\frac{\pi}{2}\) units to the left is the graph of \(y=\cos \theta\). Correct. If you shift the graph of \(y=\sin \theta\) by \(\frac{\pi}{2}\) units to the left, you will get a graph that “begins” (at \(\theta = 0\)) at the top of a hill. This is the graph of \(y=\cos \theta\).

    Supplemental Interactive Activity

    For practice graphing sine and cosine, try the following interactive exercise.

    *Insert Interactive Activity Module

    Summary

    The graphs of sine and cosine have the same shape: a repeating “hill and valley” pattern over an interval on the horizontal axis that has a length of \(2\pi\). The sine and cosine functions have the same domain, the real numbers, and the same range, the interval of values [-1,1].

    The graphs of the two functions, though similar, are not identical. One way to describe their relationship is to say that the graph of \(y=\cos \theta\) is identical to the graph of \(y=\sin \theta\) shifted \(\frac{\pi}{2}\) units to the left. Another way to describe their relationship is to say that the graph of \(y=\sin \theta\) is identical to the graph of \(y=\cos \theta\) shifted \(\frac{\pi}{2}\) units to the right.


    This page titled 19.2.2: Graphing the Sine and Cosine Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.