2.2: Graphing Trigonometric Functions
- Page ID
- 37214
\( \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}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)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} .\)
Below we see a graph of these points plotted on the coordinate axes.
In graphing trigonometric functions, we typically use radian measure along the \(x\) -axis, so the graph would generally look like this:
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.
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
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.
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:
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.
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:
If we create a similar table for the function \(y=\sin (2 x),\) then we can see how this will affect the graph:
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.
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:
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.
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\)
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.
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.
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.