Skip to main content
Mathematics LibreTexts

9.2: Graphing Trigonometric Functions

  • Page ID
    41324
  • \( \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}}} \)

    We have seen how to determine the values of trigonometric functions for angles terminating in Quadrants II, III, and IV. This allows us to make a graph of the values of the sine function for any angle. In the chart below, I have listed the values for the sine function for angles between \(0^{\circ}\) and \(360^{\circ} .\)

    clipboard_ecbaa7c060e98136ab9ef4c8da796cc04.png

    clipboard_e7c485645d8405d9d3df38738686903fd.png

    Below we see a graph of these points plotted on the coordinate axes.

    clipboard_e00bd79757e5ffb83695fbd35b1600d87.png

    In graphing trigonometric functions, we typically use radian measure along the \(x\) -axis, so the graph would generally look like this:

    clipboard_e36027f6d35ebd83c380f794da68a9da5.png

    The graph of the standard sine function begins at the zero point, then rises to the maximum value of 1 between 0 and \(\frac{7}{3}\) radians. It then decreases back to 0 at
    \pi radians before crossing over into the negative values and hitting its minimum value at \(\frac{3 \pi}{2}\) radians. It then goes back up to 0 at \(2 \pi\) radians before starting all over again.
    clipboard_ef0282727bb1ab930c524eef2f2c39a11.png
    The standard cosine graph behaves in a similar but slightly different way. We saw earlier that \(\cos 0^{\circ}=1,\) so the cosine graph would start at the point \((0,1),\) then gradually decrease to zero. A picture of the standard cosine graph would look like the figure below:
    maximum
    clipboard_e77f435a00d220919700a979f860bcbf3.png

    The sine and cosine graphs are sometimes referred to as a "sine wave" or "sinusoid" and can be very useful in modeling phenomena that occur in waves. Examples of this are the rise and fall of the tides; sound waves and music; electricity; and the length of day throughout the year. The standard sine and cosine graphs must be modified to fit a particular application so that they will effectively model the situation. The ideas that we examine next will explain how to modify the sine and cosine graphs to fit a variety of different situations.

    There are four aspects to the sine and cosine functions to take into consideration when making a graph. These are:
    1) The Amplitude of the graph
    2) The Period of the graph
    3) The Vertical Shift of the graph
    4) The Phase Shift of the graph
    Amplitude
    The amplitude of a sine or cosine function refers to the maximum and minimum values of the function. In the standard sine and cosine graphs, the maximum value is 1 and the minimum value is \(-1 .\) The amplitude is one-half the difference between the maximum and minimum values. In the standard graphs the difference between the maximum and minimum is \(1-(-1)=2 ;\) one-half of this is 1 so the amplitude of the standard sine and cosine functions is \(1 .\)

    The value of the amplitude is also the absolute value of the coefficient of the sine or cosine expression. In the standard graph, \(y=\sin x,\) the coefficient of the sine function is \(1,\) so the amplitude is \(1 .\) In the function \(y=2 \sin x,\) all the \(y\) values will be multiplied by 2 and the amplitude of the function will be \(2 .\) The graph for \(y=2 \sin x\) is shown on the next page.

    clipboard_e10addc6d6e9fb4f730cea8eb2beb47da.png
    A negative value of the coefficient in front of a trigonometric function will not change the Amplitude of the function, but it will change the shape of the function. For example, the function:
    has an amplitude of \(1,\) but the graph will be different from the graph \(y=\sin x\) All of the \(y\) -values of the function \(y=-\sin x\) will have the opposite sign as the \(y\) -values of the function \(y=\sin x .\) The graph for \(y=-\sin x\) appears below:
    clipboard_e649a25a6314b95e2bb5ea5f252ee379a.png
    Notice that, because of the negation of the \(y\) -values, the graph begins at \(0,\) as does the standard sine function, but the graph of \(y=-\sin x\) first goes to a minimum value before crossing through 0 again up to the maximum value.

    Likewise, the graph of \(y=-\cos x\) begins at the minimum value before crossing through 0 and going to the maximum value, back through 0 and ending at the minimum value again.

    clipboard_eb2800d610ad544d5ea48a970891bd43a.png

    Period
    The period of the graph refers to how long it takes the graph to complete one full cycle of values. In the standard sine and cosine functions, the period is \(2 \pi\) radians. The function completes a single "wave" and returns to its starting place between 0 and \(2 \pi .\) A coefficient in front of the variable in a sine or cosine function will affect the period of the graph. In the general expression \(y=A \sin B x,\) the value of \(A\) affects the amplitude of the function and the value of \(B\) affects the period of the function.

    If we examine the table of values for the standard sine function, we can see how the coefficient of the \(x\) -variable will affect the period of the graph. Starting with the table from the standard sine function:

    clipboard_e6529e99371cc5c0ad4407afcb59ae469.png

    clipboard_ed9db336957eb1992d191ce40715e87cd.png

    If we create a similar table for the function \(y=\sin (2 x),\) then we can see how this will affect the graph:

    clipboard_ee42dab72e931f24237f8763d496e1961.png

    In the previous table we can see that the function \(y=\sin (2 x)\) completes one full cycle between 0 and \(\pi\) radians instead of the the standard 0 to \(2 \pi\) radians. The graph for these points is shown below. The coordinates for the \(x\) -values between
    \(\pi\) and \(2 \pi\) radians are shown as well.

    clipboard_e718e7dfec6f34d305284574e705e3ff5.png

    In this graph, you can see that there are two complete waves between 0 and \(2 \pi\) radians, or one complete wave between 0 and \(\pi\) radians. So, in a sine or cosine function of the form \(y=A \sin B x,\) the amplitude will be \(|A|\) and the period will be \(\frac{2 \pi}{b} .\) The standard graph for one complete cycle of the function \(y=\sin (2 x)\) is shown below:
    clipboard_e1acf6e221a60970c0ef974e75863c921.png
    Notice that, because the period has been cut in half, the \(x\) -coordinates that correspond to the maximum, minimum, and zero \(y\) -coondinates are cut in half as

    Example 1
    Graph one full period of the function \(y=-2 \sin 3 x\)
    The amplitude in this case is \(2,\) but since the coefficient is negative, this sine graph will begin by first going to the minimum value. The period of the graph will be \(\frac{2 \pi}{B},\) or in this case \(\frac{2 \pi}{3}\) instead of \(2 \pi .\) To determine the \(x\) -values for the maximum, minimum and zero \(y\) -values, we should examine how these are determined for the standard sine curve.

    The maximum, minimum and zero y-values for a standard sine curve occur at the quadrantal angles, that is to say, the angles that separate the four quadrants from each other. The quadrantal angles are 0 ' or 0 radians, \(90^{\circ}\) or \(\frac{\pi}{2}\) radians, \(180^{\circ}\) or \pi radians, \(270^{\circ}\) or \(\frac{3 \pi}{2}\) radians and \(360^{\circ}\) or \(2 \pi\) radians. These \(x\) -values produce the "critical" y-values of the zero, maximum and minimum.

    clipboard_eb1b0ec8e5ccf9fe176fd73368f4cae7b.png

    In the standard sine or cosine graph, the distance from each "critical value" of the

    graph to the next is always a "jump" of \(\frac{\pi}{2}\) along the \(x\) -axis. This is one-fourth of the period: \(\frac{2 \pi}{1} * \frac{1}{4}=\frac{\pi}{2} .\) So, to determine the labels for the critical values of the graph along the \(x\) -axis, we should take the new period and multiply by \(\frac{1}{4}\)

    The function we are working with is \(y=-2 \sin 3 x,\) so to find the new period we calculated \(\frac{2 \pi}{B},\) which was \(\frac{2 \pi}{3} .\) Then, in order to label the \(x\) -axis properly we should next take \(\frac{2 \pi}{3}\) and multiply by \(\frac{1}{4}\)
    \[ \frac{2 \pi}{3} * \frac{1}{4}=\frac{2 \pi}{12}=\frac{\pi}{6}
    \] So, the critical values along the \(x\) -axis will be:
    \[ \frac{1 \pi}{6}, \frac{2 \pi}{6}, \frac{3 \pi}{6}, \text { and } \frac{4 \pi}{6}
    \] We want to express these in lowest terms, so we would label them as \(\frac{\pi}{6}, \frac{\pi}{3}, \frac{\pi}{2},\) and \(\frac{2 \pi}{3} .\) The graph will start at zero, then (because the value of the coefficient \(A\) is negative) it will go down to a minimum value at \(\frac{\pi}{6},\) back to zero at \(\frac{\pi}{3},\) then up to the maximum at \(\frac{\pi}{2}\) and back down to zero at \(\frac{2 \pi}{3}\) to complete one full period of the graph. The graph for this function is pictured below. Notice that the minimum y-value is -2 and the maximum \(y\) -value is 2 because \(A=2\)
    clipboard_e67301b047c0b60305317f8095cae63a5.png
    Let's look at an example using the cosine graph.

    Example 2
    Graph one full period of the function \(y=5 \cos \frac{2}{3} x\)
    The amplitude of the function is 5 because \(A=5,\) so the maximum y-value will be 5 and the minimum \(y\) -value will be \(-5 .\) The period of the graph will be \(\frac{2 \pi}{B}\) which in this case is \(\frac{2 \pi}{7}=2 \pi * \frac{3}{2}=3 \pi .\) So the period is 3 \(\pi .\) The critical values along the \(x\) -axis will start at 0 and be separated by "jumps" of \(3 \pi * \frac{1}{4}=\frac{3 \pi}{4} .\) So the critical values along the \(x\) -axis will be:
    \[ 0, \frac{3 \pi}{4}, \frac{6 \pi}{4}, \frac{9 \pi}{4}, \text { and } \frac{12 \pi}{4}
    \] We want to express these in lowest terms so we would label them as \(\frac{3 \pi}{4}, \frac{3 \pi}{2}, \frac{9 \pi}{4}\) and \(3 \pi .\) The graph will start at the maximum \(y\) -value of 5 at \(x=0,\) then it will go to zero at \(x=\frac{3 \pi}{4},\) down to the minimum \(y\) -value of -5 at \(x=\frac{3 \pi}{2},\) back through 0 at \(x=\frac{9 \pi}{4},\) and then up to the maximum \(y\) -value of 5 at \(x=3 \pi\) to complete one full period of the graph. The graph of \(y=5 \cos \frac{2}{3} x\). is shown below.

    clipboard_e9162d65c3cd1ee96c71269b0d848fda1.png

    Determining an equation from a graph
    Sometimes, you will be given a graph and asked to determine an equation which satisfies the conditions visible in the graph. So far, we have only discussed two of the possible transformations of a trigonometric function - the amplitude and period. Remember that in an equation of the form \(y=A \sin B x\) or \(y=A \cos B x,\) the amplitude is \(|A|\) and the period is \(\frac{2 \pi}{B} .\) So, to write an equation for a trigonometric function, we need to determine the values of \(A\) and \(B\).
    Example 3

    Deterimine an equation that satisfies the given graph.
    clipboard_ee9c8a3fe37f39fe18fb601c1dc85f4c6.png
    First note that the maximum \(y\) -value for the graph is 3 and the minimum is -3 This means that the amplitude is \(3 .\) Next we see that there is one complete period of the function between 0 and \(\pi\), this means that the period is \(\pi\). From this information, we know that \(A=3\) and that the period for the graph is \(\pi\). Since the period \(P=\frac{2 \pi}{B},\) then we know that \(B=\frac{2 \pi}{P} .\) So, \(B=\frac{2 \pi}{\pi}=2\)

    Lastly, this graph starts with a \(y\) -value of \(5,\) which is the maximum \(y\) -value. It then goes to 0 and down to the minimum, back through 0 and then back to the maximum to form one complete wave. since this is the signature of the cosine function, the answer to this problem would be:
    \[ y=5 \cos \frac{8}{9} x
    \]

    Exercises 2.2
    Determine the amplitude and the period for each problem and graph one period of the function. Identify important points on the \(x\) and \(y\) axes.
    1. \(y=\cos 4 x\)
    2. \(y=-\sin 2 x\)
    3. \(y=3 \sin 3 x\)
    4. \(y=-2 \cos 5 x\)
    5. \(y=4 \cos \frac{1}{2} x\)
    6. \(y=2 \sin \frac{1}{3} x\)
    7. \(y=-\frac{1}{2} \sin \frac{2}{3} x\)
    8. \(y=-3 \cos \frac{1}{5} x\)
    9. \(y=-4 \sin 6 x\)
    10. \(y=3 \sin 4 x\)
    11. \(\quad y=2 \cos \frac{1}{2} x\)
    12. \(\quad y=3 \cos \frac{1}{3} x\)
    Determine an equation that satifies the given graph.

    clipboard_eab715513ed7308128d01ae2d789f5531.pngclipboard_ec092dcd152289cb4b73d358937de9c6b.png

    clipboard_e432b94b1a3bdf90344b42614ce0df8a3.png


    This page titled 9.2: Graphing Trigonometric Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Richard W. Beveridge.