5.3: Graphing The Sine and Cosine Functions
- Page ID
- 99747
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \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{\longvect}{\overrightarrow}\)
\( \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}\)The London Eye (London Eye photo by authors, 2010, CC-BY) is a huge Ferris wheel 135 meters (394 feet) tall in London, Eng
land, which completes one rotation every 30 minutes. When we look at the behavior of this Ferris wheel it is clear that it completes 1 cycle, or 1 revolution, and then repeats this revolution over and over again.
This is an example of a periodic function, because the Ferris wheel repeats its revolution or one cycle every 30 minutes, and so we say it has a period of 30 minutes.
In this section, we will work to sketch a graph of a rider’s height above the ground over time and express this height as a function of time.
A periodic function is a function for which a specific horizontal shift, \(P\), results in the original function: \(f(x+P)=f(x)\) for all values of \(x\). When this occurs we call the smallest such horizontal shift with \(P > 0\) the period of the function.
You might immediately guess that there is a connection here to finding points on a circle, since the height above ground would correspond to the \(y\) value of a point on the circle. We can determine the \(y\) value by using the sine function. To get a better sense of this function’s behavior, we can create a table of values we know, and use them to sketch a graph of the sine and cosine functions.
Listing some of the values for sine and cosine on a unit circle,
| \(\theta\) | 0 | \(\dfrac{\pi }{6}\) | \(\dfrac{\pi }{4}\) | \(\dfrac{\pi }{3}\) | \(\dfrac{\pi }{2}\) | \(\dfrac{2\pi }{3}\) | \(\dfrac{3\pi }{4}\) | \(\dfrac{5\pi }{6}\) | \(\pi\) |
| cos | 1 | \(\dfrac{\sqrt{3} }{2}\) | \(\dfrac{\sqrt{2} }{2}\) | \(\dfrac{1}{2}\) | 0 | \(-\dfrac{1}{2}\) | \(-\dfrac{\sqrt{2} }{2}\) | \(-\dfrac{\sqrt{3} }{2}\) | -1 |
| sin | 0 | \(\dfrac{1}{2}\) | \(\dfrac{\sqrt{2} }{2}\) | \(\dfrac{\sqrt{3} }{2}\) | 1 | \(\dfrac{\sqrt{3} }{2}\) | \(\dfrac{\sqrt{2} }{2}\) | \(\dfrac{1}{2}\) | 0 |
Here you can see how for each angle, we use the \(y\) value of the point on the circle to determine the output value of the sine function.

Plotting more points gives the full shape of the sine and cosine functions.

Notice how the sine values are positive between 0 and \(\pi \), which correspond to the values of sine in quadrants 1 and 2 on the unit circle, and the sine values are negative between \(\pi \) and 2\(\pi \), corresponding to quadrants 3 and 4.

Like the sine function we can track the value of the cosine function through the 4 quadrants of the unit circle as we place it on a graph.
Both of these functions are defined for all real numbers, since we can evaluate the sine and cosine of any angle. By thinking of sine and cosine as coordinates of points on a unit circle, it becomes clear that the range of both functions must be the interval [-1, 1].
The domain of sine and cosine is all real numbers, \((-\infty ,\infty )\).
The range of sine and cosine is the interval [-1, 1].
Both these graphs are called sinusoidal graphs.
In both graphs, the shape of the graph begins repeating after 2\(\pi \). Indeed, since any coterminal angles will have the same sine and cosine values, we could conclude that \[\sin (\theta +2\pi )=\sin (\theta )\nonumber\] and \[\cos (\theta +2\pi )=\cos (\theta )\nonumber\]
In other words, if you were to shift either graph horizontally by 2\(\pi \), the resulting shape would be identical to the original function. Sinusoidal functions are a specific type of periodic function.
The periods of the sine and cosine functions are both 2\(\pi \).
Looking at these functions on a domain centered at the vertical axis helps reveal symmetries.
sine cosine

The sine function is symmetric about the origin, the same symmetry the cubic function has, making it an odd function. The cosine function is clearly symmetric about the y axis, the same symmetry as the quadratic function, making it an even function.
The sine is an odd function, symmetric about the origin, so \[\sin (-\theta )=-\sin (\theta )\]
The cosine is an even function, symmetric about the y-axis, so \[\cos (-\theta )=\cos (\theta )\]
These identities can be used, among other purposes, for helping with simplification and proving identities.
You may recall the cofunction identity from last chapter, \[\sin (\theta )=\cos \left(\dfrac{\pi }{2} -\theta \right)\nonumber\]
Graphically, this tells us that the sine and cosine graphs are horizontal transformations of each other. We can prove this by using the cofunction identity and the negative angle identity for cosine.
\[\sin (\theta )=\cos \left(\dfrac{\pi }{2} -\theta \right)=\cos \left(-\theta +\dfrac{\pi }{2} \right)=\cos \left(-\left(\theta -\dfrac{\pi }{2} \right)\right)=\cos \left(\theta -\dfrac{\pi }{2} \right)\]
Now we can clearly see that if we horizontally shift the cosine function to the right by \(\pi \)/2 we get the sine function.
Remember this shift is not representing the period of the function. It only shows that the cosine and sine function are transformations of each other.
Simplify \(\dfrac{\sin (-\theta )}{\tan (\theta )}\).
Solution
We start by using the negative angle identity for sine.
\[\dfrac{-\sin (\theta )}{\tan (\theta )}\nonumber\] Rewriting the tangent
\[\dfrac{-\sin (\theta )}{\sin (\theta )/\cos(\theta)}\nonumber\] Inverting and multiplying
\[-\sin (\theta )\cdot \dfrac{\cos (\theta )}{\sin (\theta )}\nonumber\] Simplifying we get
\[-\cos (\theta )\nonumber\]
Transforming Sine and Cosine
A point rotates around a circle of radius 3. Sketch a graph of the \(y\) coordinate of the point.
Solution

Recall that for a point on a circle of radius \(r\), the \(y\) coordinate of the point is \(y=r\sin (\theta )\), so in this case, we get the equation\[y(\theta )=3\sin (\theta )\nonumber\]
The constant 3 causes a vertical stretch of the \(y\) values of the function by a factor of 3.
Notice that the period of the function does not change.
Since the outputs of the graph will now oscillate between -3 and 3, we say that the amplitude of the sine wave is 3.
What is the amplitude of the function \(f(\theta )=7\cos (\theta )\)? Sketch a graph of this function.
- Answer
-
7
A circle with radius 3 feet is mounted with its center 4 feet off the ground. The point closest to the ground is labeled \(P\). Sketch a graph of the height above ground of the point \(P\) as the circle is rotated, then find a function that gives the height in terms of the angle of rotation.

Solution
Sketching the height, we note that it will start 1 foot above the ground, then increase up to 7 feet above the ground, and continue to oscillate 3 feet above and below the center value of 4 feet.
Although we could use a transformation of either the sine or cosine function, we start by looking for characteristics that would make one function easier to use than the other.
We decide to use a cosine function because it starts at the highest or lowest value, while a sine function starts at the middle value. A standard cosine starts at the highest value, and this graph starts at the lowest value, so we need to incorporate a vertical reflection.
Second, we see that the graph oscillates 3 above and below the center, while a basic cosine has an amplitude of one, so this graph has been vertically stretched by 3, as in the last example.
Finally, to move the center of the circle up to a height of 4, the graph has been vertically shifted up by 4. Putting these transformations together,
\[h(\theta )=-3\cos (\theta )+4\nonumber\]
The center value of a sinusoidal function, the value that the function oscillates above and below, is called the midline of the function, corresponding to a vertical shift.
The function \(f(\theta )=\cos (\theta )+k\) has midline at \(y = k\).
What is the midline of the function \(f(\theta )=3\cos (\theta )-4\)? Sketch a graph of the function.
- Answer
-
-4
To answer the Ferris wheel problem at the beginning of the section, we need to be able to express our sine and cosine functions at inputs of time. To do so, we will utilize composition. Since the sine function takes an input of an angle, we will look for a function that takes time as an input and outputs an angle. If we can find a suitable \(\theta (t)\) function, then we can compose this with our \(f(\theta )=\cos (\theta )\) function to obtain a sinusoidal function of time: \(f(t)=\cos (\theta (t))\).
A point completes 1 revolution every 2 minutes around a circle of radius 5. Find the \(x\) coordinate of the point as a function of time, if it starts at (5, 0).
Solution
Normally, we would express the \(x\) coordinate of a point on a unit circle using \(x=r\cos (\theta )\), here we write the function \(x(\theta )=5\cos (\theta )\).
The rotation rate of 1 revolution every 2 minutes is an angular velocity. We can use this rate to find a for
mula for the angle as a function of time. The point begins at an angle of 0. Since the point rotates 1 revolution = 2\(\pi \) radians every 2 minutes, it rotates \(\pi \) radians every minute. After t minutes, it will have rotated:
\[\theta (t)=\pi {\kern 1pt} t\text{ radians}\nonumber\]
Composing this with the cosine function, we obtain a function of time.
\[x(t)=5\cos (\theta (t))=5\cos (\pi {\kern 1pt} t)\nonumber\]
Notice that this composition has the effect of a horizontal compression, changing the period of the function.
To see how the period relates to the stretch or compression coefficient \(B\) in the equation \(f(t)=\sin \left(Bt\right)\), note that the period will be the time it takes to complete one full revolution of a circle. If a point takes \(P\) minutes to complete 1 revolution, then the angular velocity is \(\dfrac{2\pi \; {\rm radians}}{P\; {\rm minutes}}\). Then \(\theta (t)=\dfrac{2\pi }{P} t\). Composing with a sine function,
\[f(t)=\sin (\theta (t))=\sin \left(\dfrac{2\pi }{P} t\right)\nonumber\]
From this, we can determine the relationship between the coefficient \(B\) and the period:
\[B=\dfrac{2\pi }{P}\nonumber\]
Notice that the stretch or compression coefficient \(B\) is a ratio of the “normal period of a sinusoidal function” to the “new period.” If we know the stretch or compression coefficient \(B\), we can solve for the “new period”: \[P=\dfrac{2\pi }{B}\nonumber\]
Summarizing our transformations so far:
Given an equation in the form \[f(t)=A\sin \left(Bt\right)+k\text{ or }f(t)=A\cos \left(Bt\right)+k\]
\(A\) is the vertical stretch, and is the amplitude of the function.
\(B\) is the horizontal stretch/compression, and is related to the period, \(P\), by \(P=\dfrac{2\pi }{B}\).
\(k\) is the vertical shift and determines the midline of the function.

What is the period of the function \(f(t)=\sin \left(\dfrac{\pi }{6} t\right)\)?
Solution
Using the relationship above, the stretch/compression factor is \(B=\dfrac{\pi }{6}\), so the period will be \[P=\dfrac{2\pi }{B} =\dfrac{2\pi }{\dfrac{\pi }{6} } =2\pi \cdot \dfrac{6}{\pi } =12\nonumber\]
While it is common to compose sine or cosine with functions involving time, the composition can be done so that the input represents any reasonable quantity.
A bicycle wheel with radius 14 inches has the bottom-most point on the wheel marked in red. The wheel then begins rolling down the street. Write a formula for the height above ground of the red point after the bicycle has travelled \(x\) inches.

Solution
The height of the point begins at the lowest value, 0, increases to the highest value of 28 inches, and continues to oscillate above and below a center height of 14 inches. In terms of the angle of rotation, \(\theta\):
\[h(\theta )=-14\cos (\theta )+14\nonumber\]
In this case, \(x\) is representing a linear distance the wheel has travelled, corresponding to an arclength along the circle
. Since arclength and angle can be related by \(s=r\theta\), in this case we can write \(x=14\theta\), which allows us to express the angle in terms of \(x\):
\[\theta (x)=\dfrac{x}{14}\nonumber\]
Composing this with our cosine-based function from above,
\[h(x)=h(\theta (x))=-14\cos \left(\dfrac{x}{14} \right)+14=-14\cos \left(\dfrac{1}{14} x\right)+14\nonumber\]
The period of this function would be \(P=\dfrac{2\pi }{B} =\dfrac{2\pi }{\dfrac{1}{14} } =2\pi \cdot 14=28\pi\), the circumference of the circle. This makes sense – the wheel completes one full revolution after the bicycle has travelled a distance equivalent to the circumference of the wheel.
Determine the midline, amplitude, and period of the function \(f(t)=3\sin \left(2t\right)+1\).
Solution
The amplitude is 3
The period is \(P=\dfrac{2\pi }{B} =\dfrac{2\pi }{2} =\pi\)
The midline is at \(y=1\)
Amplitude, midline, and period, when combined with vertical flips, allow us to write equations for a variety of sinusoidal situations.
If a sinusoidal function starts on the midline at point (0,3), has an amplitude of 2, and a period of 4, write a formula for the function.
- Answer
-
\[f(x)=2\sin \left(\dfrac{\pi }{2} x\right)+3\nonumber\]
Find a formula for the sinusoidal function graphed here.

Solution
The graph oscillates from a low of -1 to a high of 3, putting the midline at \(y = 1\), halfway between.
The amplitude will be 2, the distance from the midline to the highest value (or lowest value) of the graph.
The period of the graph is 8. We can measure this from the first peak at \(x = -2\) to the second at \(x = 6\). Since the period is 8, the stretch/compression factor we will use will be
\[B=\dfrac{2\pi }{P} =\dfrac{2\pi }{8} =\dfrac{\pi }{4}\nonumber\]
At \(x = 0\), the graph is at the midline value, which tells us the graph can most easily be represented as a sine function. Since the graph then decreases, this must be a vertical reflection of the sine function. Putting this all together,
\[f(t)=-2\sin \left(\dfrac{\pi }{4} t\right)+1\nonumber\]
With these transformations, we are ready to answer the Ferris wheel problem from the beginning of the section.
The London Eye is a huge Ferris wheel in London, England, which completes one rotation every 30 minutes. The diameter of the wheel is 120 meters, but the passenger capsules sit outside the wheel. Suppose the diameter at the capsules is 130 meters, and riders board from a platform 5 meters above the ground. Express a rider’s height above ground as a function of time in minutes.
Solution
It can often help to sketch a graph of the situation before trying to find the equation.
With a diameter of 130 meters, the wheel has a radius of 65 meters. The height will oscillate
with amplitude of 65 meters above and below the center.
Passengers board 5 meters above ground level, so the center of the wheel must be located 65 + 5 = 70 meters above ground level. The midline of the oscillation will be at 70 meters.
The wheel takes 30 minutes to complete 1 revolution, so the height will oscillate with period of 30 minutes.
Lastly, since the rider boards at the lowest point, the height will start at the smallest value and increase, following the shape of a flipped cosine curve.
Putting these together:
Amplitude: 65
Midline: 70
Period: 30, so \[B=\dfrac{2\pi }{30} =\dfrac{\pi }{15}\nonumber\]
Shape: negative cosine
An equation for the rider’s height would be
\[h(t)=-65\cos \left(\dfrac{\pi }{15} t\right)+70\nonumber\]
The Ferris wheel at the Puyallup Fair (Photo by photogirl7.1, www.flickr.com/photos/kitkaph...86205/sizes/z/, CC-BY) ha
s a diameter of about 70 feet and takes 3 minutes to complete a full rotation. Passengers board from a platform 10 feet above the ground. Write an equation for a rider’s height above ground over time.
- Answer
-
\[h(t)=-35\cos \left(\dfrac{2\pi }{3} t\right)+45\nonumber\]
While these transformations are sufficient to represent many situations, occasionally we encounter a sinusoidal function that does not have a vertical intercept at the lowest point, highest point, or midline. In these cases, we need to use horizontal shifts. Since we are combining horizontal shifts with horizontal stretches, we need to be careful. Recall that when the inside of the function is factored, it reveals the horizontal shift.
Given an equation in the form \[f(t)=A\sin \left(B(t-h)\right)+k\text{ or }f(t)=A\cos \left(B(t-h)\right)+k\]
\(h\) is the horizontal shift of the function
Sketch a graph of \(f(t)=3\sin \left(\dfrac{\pi }{4} t-\dfrac{\pi }{4} \right)\).
Solution
To reveal the horizontal shift, we first need to factor inside the function:
\[f(t)=3\sin \left(\dfrac{\pi }{4} (t-1)\right)\nonumber\]
This graph will have the shape of a sine function, starting at the midline and increasing, with an amplitude of 3. The period of the graph will be \[P=\dfrac{2\pi }{B} =\dfrac{2\pi }{\dfrac{\pi }{4} } =2\pi \cdot \dfrac{4}{\pi } =8\nonumber\]
Finally, the graph will be shifted to the right by 1.

In some physics and mathematics books, you will hear the horizontal shift referred to as phase shift. In other physics and mathematics books, they would say the phase shift of the equation above is \(\dfrac{\pi }{4}\), the value in the unfactored form. Because of this ambiguity, we will not use the term phase shift any further, and will only talk about the horizontal shift.
Find a formula for the function graphed here.

Solution
With highest value at 1 and lowest value at -5, the midline will be halfway between at -2.
The distance from the midline to the highest or lowest value gives an amplitude of 3.
The period of the graph is 6, which can be measured from the peak at \(x = 1\) to the next peak at \(x = 7\), or from the distance between the lowest points. This gives \[B=\dfrac{2\pi }{P} =\dfrac{2\pi }{6} =\dfrac{\pi }{3}\nonumber\]
For the shape and shift, we have more than one option. We could either write this as:
A cosine shifted 1 to the right
A negative cosine shifted 2 to the left
A sine shifted 1/2 to the left
A negative sine shifted 2.5 to the right
While any of these would be fine, the cosine shifts are easier to work with than the sine shifts in this case, because they involve integer values. Writing these:
\[y(x)=3\cos \left(\dfrac{\pi }{3} (x-1)\right)-2\nonumber\]or
\[y(x)=-3\cos \left(\dfrac{\pi }{3} (x+2)\right)-2\nonumber\]
Again, these functions are equivalent, so both yield the same graph.
Write a formula for the function graphed here.
- Answer
-
Two possibilities: \[f(x)=4\cos \left(\dfrac{\pi }{5} (x-3.5)\right)+4\text{ or }f(x)=4\sin \left(\dfrac{\pi }{5} (x-1)\right)+4\nonumber\]
Many modeling situations involve functions that are periodic. Previously we learned that sinusoidal functions are a special type of periodic function. Problems that involve quantities that oscillate can often be modeled by a sine or cosine function and once we create a suitable model for the problem we can use that model to answer various questions.
The hours of daylight in Seattle oscillate from a low of 8.5 hours in January to a high of 16 hours in July (www.mountaineers.org/seattle/...ylightHrs.html). When should you plant a garden if you want to do it during a month where there are 14 hours of daylight?
Solution
To model this, we first note that the hours of daylight oscillate with a period of 12 months. \(B=\dfrac{2\pi }{12} =\dfrac{\pi }{6}\) corresponds to the horizontal stretch, found by using the ratio of the original period to the new period.

With a low of 8.5 and a high of 16, the midline will be halfway between these values, at
\[\dfrac{16+8.5}{2} =12.25.\nonumber\]
The amplitude will be half the difference between the highest and lowest values:
\[\dfrac{16-8.5}{2} =3.75\nonumber\]
or equivalently the distance from the midline to the high or low value, 16-12.25=3.75.
Letting January be \(t = 0\), the graph starts at the lowest value, so it can be modeled as a flipped cosine graph. Putting this together, we get a model:
\[h(t)=-3.75\cos \left(\dfrac{\pi }{6} t\right)+12.25\nonumber\]
\(h(t)\) is our model for hours of day light t months after January.
To find when there will be 14 hours of daylight, we solve \(h(t) = 14\).
\[14=-3.75\cos \left(\dfrac{\pi }{6} t\right)+12.25\nonumber\]Isolating the cosine
\[1.75=-3.75\cos \left(\dfrac{\pi }{6} t\right)\nonumber\]Subtracting 12.25 and dividing by -3.75
\[-\dfrac{1.75}{3.75} =\cos \left(\dfrac{\pi }{6} t\right)\nonumber\]Using the inverse
\[\dfrac{\pi }{6} t=\cos ^{-1} \left(-\dfrac{1.75}{3.75} \right)\approx 2.0563\nonumber\]multiplying by the reciprocal
\[t=2.0563\cdot \dfrac{6}{\pi } =3.927\nonumber\]
\(t=3.927\) months past January
There will be 14 hours of daylight 3.927 months into the year, or near the end of April.
While there would be a second time in the year when there are 14 hours of daylight, since we are planting a garden, we would want to know the first solution, in spring, so we do not need to find the second solution in this case.
The author’s monthly gas usage (in therms) is shown here. Find a function to model the data.

- Answer
-
Approximately \[G(t)=66\cos \left(\dfrac{\pi }{6} (t-1)\right)+87\nonumber\]
An object is connected to the wall with a spring that has a natural length of 20 cm. The object is pulled back 8 cm past the natural length and released. The object oscillates 3 times per second. Find an equation for the horizontal position of the object ignoring the effects of friction. How much time during each cycle is the object more than 27 cm from the wall?

Solution
If we use the distance from the wall, \(x\), as the desired output, then the object will oscillate equally on either side of the spring’s natural length of 20, putting the midline of the function at 20 cm.
If we release the object 8 cm past the natural length, the amplitude of the oscillation will be 8 cm.
We are beginning at the largest value and so this function can most easily be modeled using a cosine function.
Since the object oscillates 3 times per second, it has a frequency of 3 and the period of one oscillation is 1/3 of second. Using this we find the horizontal compression using the ratios of the periods: \(\dfrac{2\pi }{1/3} =6\pi\).
Using all this, we can build our model:
\[x(t)=8\cos \left(6\pi {\kern 1pt} t\right)+20 \nonumber\]
To find when the object is 27 cm from the wall, we can solve \(x(t) = 27\)
\[27=8\cos \left(6\pi {\kern 1pt} t\right)+20\nonumber\]Isolating the cosine
\[7=8\cos \left(6\pi {\kern 1pt} t\right)\nonumber\]
\[\dfrac{7}{8} =\cos \left(6\pi {\kern 1pt} t\right)\nonumber\]Using the inverse
\[6\pi {\kern 1pt} t=\cos ^{-1} \left(\dfrac{7}{8} \right)\approx 0.505\nonumber\]
\[t=\dfrac{0.505}{6\pi } =0.0268\nonumber\]

Based on the shape of the graph, we can conclude that the object will spend the first 0.0268 seconds more than 27 cm from the wall. Based on the symmetry of the function, the object will spend another 0.0268 seconds more than 27 cm from the wall at the end of the cycle. Altogether, the object spends 0.0536 seconds each cycle at a distance greater than 27 cm from the wall.
In some problems, we can use trigonometric functions to model behaviors more complicated than the basic sinusoidal function.
A rigid rod with length 10 cm is attached to a circle of radius 4 cm at point \(A\) as shown here. The point \(B\) is able to freely move along the horizontal axis, driving a piston (For an animation of this situation, see www.mathdemos.org/mathdemos/s...pp/engine1.gif). If the wheel rotates counterclockwise at 5 revolutions per second, find the location of point \(B\) as a function of time. When will the point \(B\) be 12 cm from the center of the circle?

Solution
To find the position of point \(B\), we can begin by finding the coordinates of point \(A\). Since it is a point on a circle with radius 4, we can express its coordinates as \((4\cos (\theta ),4\sin (\theta ))\), where \(\theta\) is the angle shown.
The angular velocity is 5 revolutions per second, or equivalently 10\(\pi \) radians per second. After \(t\) seconds, the wheel will rotate by \(\theta =10\pi {\kern 1pt} t\) radians. Substituting this, we can find the coordinates of \(A\) in terms of \(t\).
\[(4\cos (10\pi {\kern 1pt} t),4\sin (10\pi {\kern 1pt} t))\nonumber\]
Notice that this is the same value we would have obtained by observing that the period of the rotation is 1/5 of a second and calculating the stretch/compression factor:
\[\dfrac{"original"}{"new"}\dfrac{2\pi}{1/5} = 10 \pi\nonumber\]
Now that we have the coordinates of the point \(A\), we can relate this to the point \(B\). By drawing a vertical line segment from \(A\) to the horizontal axis, we can form a right triangle. The height of the triangle is the \(y\) coordinate of the point \(A\): \[4\sin (10\pi {\kern 1pt} t)\nonumber\]
Using the Pythagorean Theorem, we can find the base length of the triangle:
\[\left(4\sin (10\pi {\kern 1pt} t)\right)^{2} +b^{2} =10^{2}\nonumber\]
\[b^{2} =100-16\sin ^{2} (10\pi {\kern 1pt} t)\nonumber\]
\[b=\sqrt{100-16\sin ^{2} (10\pi {\kern 1pt} t)}\nonumber\]
Looking at the \(x\) coordinate of the point \(A\), we can see that the triangle we drew is shifted to the right of the \(y\) axis by \(4\cos (10\pi {\kern 1pt} t)\). Combining this offset with the length of the base of the triangle gives the \(x\) coordinate of the point \(B\):
\[x(t)=4\cos (10\pi {\kern 1pt} t)+\sqrt{100-16\sin ^{2} (10\pi {\kern 1pt} t)}\nonumber\]
To solve for when the point B will be 12 cm from the center of the circle, we need to solve \(x(t) = 12\).
\[12=4\cos (10\pi {\kern 1pt} t)+\sqrt{100-16\sin ^{2} (10\pi {\kern 1pt} t)}\nonumber\]Isolate the square root
\[12-4\cos (10\pi {\kern 1pt} t)=\sqrt{100-16\sin ^{2} (10\pi {\kern 1pt} t)}\nonumber\]Square both sides
\[\left(12-4\cos (10\pi {\kern 1pt} t)\right)^{2} =100-16\sin ^{2} (10\pi {\kern 1pt} t)\nonumber\]Expand the left side
\[144-96\cos (10\pi {\kern 1pt} t)+16\cos ^{2} (10\pi {\kern 1pt} t)=100-16\sin ^{2} (10\pi {\kern 1pt} t)\nonumber\]Move all terms to the left
\[44-96\cos (10\pi {\kern 1pt} t)+16\cos ^{2} (10\pi {\kern 1pt} t)+16\sin ^{2} (10\pi {\kern 1pt} t)=0\nonumber\]Factor out 16
\[44-96\cos (10\pi {\kern 1pt} t)+16\left(\cos ^{2} (10\pi {\kern 1pt} t)+\sin ^{2} (10\pi {\kern 1pt} t)\right)=0\nonumber\]
At this point, we can utilize the Pythagorean Identity, which tells us that
\[\cos ^{2} (10\pi {\kern 1pt} t)+\sin ^{2} (10\pi {\kern 1pt} t)=1\nonumber\]
Using this identity, our equation simplifies to
\[44-96\cos (10\pi {\kern 1pt} t)+16=0\nonumber\]Combine the constants and move to the right side
\[-96\cos (10\pi {\kern 1pt} t)=-60\nonumber\]Divide
\[\cos (10\pi {\kern 1pt} t)=\dfrac{60}{96}\nonumber\]Make a substitution
\[\cos (u)=\dfrac{60}{96}\nonumber\]
\[u=\cos ^{-1} \left(\dfrac{60}{96} \right)\approx 0.896\nonumber\]By symmetry we can find a second solution
\[u=2\pi -0.896=5.388\nonumber\]Undoing the substitution
\[10\pi {\kern 1pt} t=0.896\text{, so }t = 0.0285\nonumber\]
\[10\pi {\kern 1pt} t=5.388\text{, so }t = 0.1715\nonumber\]
The point \(B\) will be 12 cm from the center of the circle 0.0285 seconds after the process begins, 0.1715 seconds after the process begins, and every 1/5 of a second after each of those values.


