Skip to main content

Math Trailhead

Section Build a graph, then read an equation from a graph

For \(w>0\text{,}\) the five quarter-turn landmarks occur at \(x=h,h+P/4,h+P/2,h+3P/4,h+P\text{.}\) Their heights are \(C+A,C,C-A,C,C+A\text{.}\) This works even when \(A<0\text{:}\) the first point is then a minimum. Join the landmarks with a smooth wave and repeat.

Example 84. Sketch \(f(x)=3\cos(2x+\pi/2)+2\).

Find its amplitude, period, horizontal shift, midline, and range, and sketch one cycle.
Solution.
Here \(A=3\text{,}\) \(w=2\text{,}\) \(T=\pi/2\text{,}\) and \(C=2\text{.}\) The amplitude is \(3\text{,}\) \(P=\pi\text{,}\) and \(h=-\pi/4\text{.}\) Each quarter period has length \(\pi/4\text{.}\) The midline is \(y=2\) and the range is \([-1,5]\text{.}\) Add \(2\) to each height of the corresponding wave with \(C=0\text{.}\)
Table 85. Follow the angle inside cosine
\(x\) \(-\pi/4\) \(0\) \(\pi/4\) \(\pi/2\) \(3\pi/4\)
\(2x+\pi/2\) \(0\) \(\pi/2\) \(\pi\) \(3\pi/2\) \(2\pi\)
\(f(x)\) \(5\) \(2\) \(-1\) \(2\) \(5\)
The graph starts this cycle at a maximum, falls through the midline, reaches a minimum, and returns to the maximum. As a check, \(f(0)=3\cos(\pi/2)+2=2\text{.}\)
A cosine wave through the five points negative pi over four, five; zero, two; pi over four, negative one; pi over two, two; and three pi over four, five. The dashed midline is y equals two. Amplitude three, period pi, and vertical displacement two are marked.
Figure 86. One cycle of \(3\cos(2x+\pi/2)+2\text{.}\) The midline is \(y=2\text{,}\) the amplitude is \(3\text{,}\) and consecutive peaks are \(\pi\) apart. Adding \(2\) moves every point up by \(2\text{.}\)

Example 87. Choose parameters from a graph.

A cosine-shaped wave has maximum \(7\text{,}\) minimum \(3\text{,}\) and consecutive maxima at \(x=1\) and \(x=5\text{.}\) Find an equation.
Solution.
The midline is halfway between the extreme heights: \(C=(7+3)/2=5\text{.}\) The amplitude is half their difference: \(|A|=(7-3)/2=2\text{.}\) Choose \(A=2\text{.}\) The period is \(5-1=4\text{,}\) so choose \(w=2\pi/4=\pi/2\text{.}\) Place a peak at \(h=1\text{:}\)
\begin{equation*} f(x)=2\cos\left(\frac{\pi}{2}(x-1)\right)+5 =2\cos\left(\frac{\pi}{2}x-\frac{\pi}{2}\right)+5. \end{equation*}
Thus one choice is \(T=-\pi/2\text{.}\) Check that the minimum lies halfway between the two maxima, at \(x=3\text{,}\) where \(f(3)=3\text{.}\)
In general, if a nonconstant wave has maximum \(M\) and minimum \(m\text{,}\) recover its vertical displacement and amplitude using
\begin{equation*} \boxed{C=\frac{M+m}{2},\qquad |A|=\frac{M-m}{2}.} \end{equation*}

Checkpoint 88. Combine amplitude and period.

\(\displaystyle{ y = {-2\sin\mathopen{}\left(4x\right)} }\)
What is the amplitude of the given function?
What is the period of the given function?
A B
C D
Hint.
First, remember that the amplitude is given by the coefficient \(A\) of \(A \sin(x)\) or \(A \cos(x)\text{.}\)
Then, remember that from a function \(\sin( B x )\) or \(\cos( B x )\text{,}\) the period \(p\) is given by the equation \(\displaystyle{ p = \frac{ 2 \pi }{ B } }\text{.}\)
Answer 1.
Answer 2.
\(\frac{2\pi }{4}\)
Answer 3.
\(\text{C}\)

The same rules for sine.

The same parameter rules apply to \(A\sin(wx+T)+C\text{:}\) amplitude \(|A|\text{,}\) period \(2\pi/|w|\text{,}\) horizontal shift \(-T/w\text{,}\) and midline \(y=C\text{,}\) when \(A,w\ne0\text{.}\)
In shifted form, write the wave as \(A\sin(w(x-h))+C\text{.}\) For \(w>0\text{,}\) its quarter-cycle heights, starting at \(x=h\text{,}\) are \(C,C+A,C,C-A,C\text{.}\) If you convert it to cosine using the quarter-turn identity, the corresponding cosine phase angle is \(-wh-\pi/2\text{.}\) The vertical displacement \(C\) stays the same.

Checkpoint 89. Describe a shifted sine wave.

Use the trigonometric function \(f(x) = 4\sin\left(\displaystyle\frac{\pi}{4}(x-2)\right)+5\) to answer the following questions.
What is the amplitude of \(f(x)\text{?}\)
What is the period of \(f(x)\text{?}\)
What is the maximum value of \(f(x)\text{?}\)
What is the minimum value of \(f(x)\) ?
What is the midline of \(f(x)\text{?}\)
The phase shift of \(f(x)\) is units
.
Answer 1.
Answer 2.
Answer 3.
Answer 4.
Answer 5.
\(\text{y=}\)
Answer 6.
Answer 7.
Answer 8.
\(\text{right}\)

Checkpoint 90. Check your understanding.

  1. Sketch one cycle of \(2\cos(x/2-\pi/2)-1\) by listing its five quarter-turn points. State its amplitude, period, horizontal shift, midline, and range.
  2. A wave with midline \(-3\) has amplitude \(4\text{,}\) period \(6\text{,}\) and a maximum at \(x=-1\text{.}\) Write one equation in the form \(A\cos(wx+T)+C\text{.}\)
  3. A classmate says \(\cos^2(2x)+\sin^2(2x)=2\) because the angle doubles. Explain the mistake using the circle.
Solution.
  1. Amplitude \(2\text{,}\) period \(4\pi\text{,}\) shift right \(\pi\text{,}\) midline \(y=-1\text{,}\) and range \([-3,1]\text{.}\) The points are \((\pi,1)\text{,}\) \((2\pi,-1)\text{,}\) \((3\pi,-3)\text{,}\) \((4\pi,-1)\text{,}\) and \((5\pi,1)\text{.}\)
  2. Choose \(A=4\text{,}\) \(w=\pi/3\text{,}\) and \(T=\pi/3\text{,}\) with \(C=-3\text{,}\) giving \(4\cos(\pi x/3+\pi/3)-3\text{.}\) At \(x=-1\) the angle is zero; six units later it is \(2\pi\text{.}\)
  3. The angle \(2x\) still locates a point on a circle of radius \(1\text{.}\) Its squared coordinates sum to \(1\text{.}\) Changing the angle changes the point, not the radius.