Algebra 2Trigonometric Functions4 of 7
Trigonometric Functions · 4

Graphs of Sine and Cosine

We first meet sine and cosine on right triangles and the unit circle, and now we want to graph y=sin⁡(x)y = \sine{\sin(x)} and y=cos⁡(x)y = \cosine{\cos(x)} as waves as the angle xx grows.

1

Graphing Sine and Cosine from the Unit Circle

To graph y=sin⁡(x)y = \sine{\sin(x)} on the xyxy-plane, we track the vertical height of a point as it walks counter-clockwise around a unit circle of radius 11, plotting the angle xx horizontally and the point's height vertically.

The Sine Wave from the Unit Circle
θ\theta
sin⁡θ=oppositehypotenusecos⁡θ=adjacenthypotenuse\begin{aligned} \htmlClass{lc-blue}{\sin}\theta &= \dfrac{\htmlClass{lc-blue}{\text{opposite}}}{\text{hypotenuse}} \\[10pt] \htmlClass{lc-violet}{\cos}\theta &= \dfrac{\htmlClass{lc-violet}{\text{adjacent}}}{\text{hypotenuse}} \end{aligned}

Walking one full lap of length 2π\step{2\pi} in four equal quarter-steps of π2\step{\frac{\pi}{2}} gives the five key points that mark one cycle of the sine wave:

Sine:(0,0)⏟Middle  →  (π2,1)⏟High  →  (π,0)⏟Middle  →  (3π2,−1)⏟Low  →  (2π,0)⏟Middle\displaystyle \sine{\text{Sine:}}\quad \underbrace{(0, \sine{0})}_{\text{Middle}} \;\rightarrow\; \underbrace{\left(\frac{\pi}{2}, \sine{1}\right)}_{\text{High}} \;\rightarrow\; \underbrace{(\pi, \sine{0})}_{\text{Middle}} \;\rightarrow\; \underbrace{\left(\frac{3\pi}{2}, \sine{-1}\right)}_{\text{Low}} \;\rightarrow\; \underbrace{(2\pi, \sine{0})}_{\text{Middle}}

Now we want to graph y=cos⁡(x)y = \cosine{\cos(x)}, which tracks how far left or right of center the point is on the same walk around the unit circle.

The Cosine Wave and the Five-Beat Rhythm
y=sin⁡(x)y = \htmlClass{lc-blue}{\sin}(x)
0\htmlClass{lc-mute}{0}
π2\htmlClass{lc-mute}{\tfrac{\pi}{2}}
π\htmlClass{lc-mute}{\pi}
3π2\htmlClass{lc-mute}{\tfrac{3\pi}{2}}
2π\htmlClass{lc-mute}{2\pi}
1\htmlClass{lc-mute}{1}
−1\htmlClass{lc-mute}{-1}
y=cos⁡(x)y = \htmlClass{lc-violet}{\cos}(x)
1\htmlClass{lc-mute}{1}
−1\htmlClass{lc-mute}{-1}

Because a walk starting at angle 00 on the right edge of the circle begins at its farthest right position of 1\cosine{1}, cosine follows the same quarter-lap steps with its five-beat rhythm starting at the peak:

Cosine:(0,1)⏟High  →  (π2,0)⏟Middle  →  (π,−1)⏟Low  →  (3π2,0)⏟Middle  →  (2π,1)⏟High\displaystyle \cosine{\text{Cosine:}}\quad \underbrace{(0, \cosine{1})}_{\text{High}} \;\rightarrow\; \underbrace{\left(\frac{\pi}{2}, \cosine{0}\right)}_{\text{Middle}} \;\rightarrow\; \underbrace{(\pi, \cosine{-1})}_{\text{Low}} \;\rightarrow\; \underbrace{\left(\frac{3\pi}{2}, \cosine{0}\right)}_{\text{Middle}} \;\rightarrow\; \underbrace{(2\pi, \cosine{1})}_{\text{High}}

As a point goes around the unit circle, its vertical height traces y=sin⁡(x)y = \sine{\sin(x)} while its horizontal position becomes the vertical height on the graph of y=cos⁡(x)y = \cosine{\cos(x)} directly below it. This produces the exact same wave shifted by a quarter-lap, with both curves steepest when crossing the center line and flattest at the peaks and valleys.

As a point goes around the unit circle, its height traces the sine wave and its horizontal position relative to the center traces the cosine wave a quarter-turn ahead.
2

Midline, Amplitude, and Vertical Flips

So far our waves only go between −1\wave{-1} and 1\wave{1} around height 0\anchor{0}. Now we want to see how numbers outside the sine or cosine shift the center line up or down, change how far the wave reaches, or flip it upside down.

Midline, Amplitude, and Vertical Flips
y=Asin⁡(B(x−C))+Dy = \htmlClass{lc-pink}{A}\htmlClass{lc-blue}{\sin}\bigl(\htmlClass{lc-pink}{B}(x - \htmlClass{lc-violet}{C})\bigr) + \htmlClass{lc-violet}{D}

In a transformed wave, the number added at the end moves the horizontal center line, and the multiplier in front resizes the radius of the circle around that center. The number BB multiplies xx inside the angle. We use B>0\step{B} > 0, so the angle increases and the point moves counter-clockwise as xx increases.

y\displaystyle y =A⏟amplitude =∣A∣(minus sign flips High and Low)sin⁡(B(x−C))+D⏟midline y=D\displaystyle = \underbrace{\step{A}}_{\substack{\step{\text{amplitude }} = |\step{A}| \\ \text{(minus sign flips High and Low)}}} \wave{\sin}\bigl(\step{B}(x - \anchor{C})\bigr) + \underbrace{\anchor{D}}_{\anchor{\text{midline } y = D}}

From the midline y=D\anchor{y = D}, the wave reaches up by the amplitude and down by the amplitude:

High=Midline+Amplitude,Low=Midline−Amplitude\displaystyle \begin{aligned} \wave{\text{High}} &= \anchor{\text{Midline}} + \step{\text{Amplitude}}, \\ \wave{\text{Low}} &= \anchor{\text{Midline}} - \step{\text{Amplitude}} \end{aligned}

When the multiplier A\step{A} in front is negative, the amplitude stays positive, while High and Low trade places in the five-beat rhythm:

Negative Sine:Middle→Low→Middle→High→MiddleNegative Cosine:Low→Middle→High→Middle→Low\displaystyle \begin{aligned} &\wave{\text{Negative Sine:}} \\ &\text{Middle} \rightarrow \text{Low} \rightarrow \text{Middle} \\ &\qquad \rightarrow \text{High} \rightarrow \text{Middle} \\[8pt] &\wave{\text{Negative Cosine:}} \\ &\text{Low} \rightarrow \text{Middle} \rightarrow \text{High} \\ &\qquad \rightarrow \text{Middle} \rightarrow \text{Low} \end{aligned}

Try changing A\step{A} in y=Asin⁡(x)+3y = \step{A}\wave{\sin}(x) \anchor{+ 3} to see the circle resize and flip around the midline y=3\anchor{y = 3}.

Amplitude is the distance from the midline to the highest point, and a negative multiplier flips the wave across the midline without making the amplitude negative.
3

Period and Horizontal Shifts

Numbers outside the function move the wave vertically; now we want to find how numbers inside the parentheses change the wave horizontally: how long one full lap takes and where on the xx-axis that lap begins.

Period and Horizontal Shifts
y=sin⁡(2x)y = \htmlClass{lc-blue}{\sin}(\htmlClass{lc-pink}{2}x)
0\htmlClass{lc-mute}{0}
π2\htmlClass{lc-mute}{\tfrac{\pi}{2}}
π\htmlClass{lc-mute}{\pi}
3π2\htmlClass{lc-mute}{\tfrac{3\pi}{2}}
2π\htmlClass{lc-mute}{2\pi}
1\htmlClass{lc-mute}{1}
−1\htmlClass{lc-mute}{-1}

Because the unit circle always completes one full lap when the expression inside the parentheses grows by 2π2\pi, a multiplier B\step{B} on xx acts as a speed multiplier that divides the lap length:

Period (full lap)\displaystyle \step{\text{Period (full lap)}} =2πB\displaystyle = \frac{2\pi}{\step{B}}

Seeing how B\step{B} divides 2π2\pi covers all three types of speed multipliers:

y=sin⁡(2x)  ⟹  Period=2π2=π(twice as fast, half as long)y=sin⁡(13x)  ⟹  Period=2π13=6π(one-third speed,three times as long)y=cos⁡(π2x)  ⟹  Period=2ππ2=4(π’s cancel, leavingwhole numbers on the x-axis)\displaystyle \begin{aligned} y &= \wave{\sin}(\step{2}x) \implies \\[4pt] \step{\text{Period}} &= \frac{2\pi}{\step{2}} = \step{\pi} \\ &\text{(twice as fast, half as long)} \\[14pt] y &= \wave{\sin}\left(\step{\frac{1}{3}}x\right) \implies \\[4pt] \step{\text{Period}} &= \frac{2\pi}{\step{\tfrac{1}{3}}} = \step{6\pi} \\ &\text{(one-third speed,} \\ &\text{three times as long)} \\[14pt] y &= \wave{\cos}\left(\step{\frac{\pi}{2}}x\right) \implies \\[4pt] \step{\text{Period}} &= \frac{2\pi}{\step{\tfrac{\pi}{2}}} = \step{4} \\ &\text{($\pi$'s cancel, leaving} \\ &\text{whole numbers on the $x$-axis)} \end{aligned}

Adding or subtracting inside the parentheses shifts where the lap starts, because the circle begins its lap when the entire inside equals 00:

y=sin⁡(x−π4)  ⟹  x−π4=0  ⟹  lap starts at x=π4\displaystyle \begin{aligned} y &= \wave{\sin}\left(x - \anchor{\frac{\pi}{4}}\right) \\[6pt] \implies x - \anchor{\frac{\pi}{4}} &= 0 \\[6pt] \implies \text{lap starts at } x &= \anchor{\frac{\pi}{4}} \end{aligned}

Try changing B\step{B} in y=sin⁡(Bx)y = \wave{\sin}(\step{B}x) to see how the speed around the circle sets the period on the xx-axis.

Every full wave is one lap around the unit circle, so squeezing the wave into a shorter period means going around the circle faster.
4

Graphing a Transformed Wave Step by Step

Now we want to combine the vertical and horizontal changes to graph one full cycle of

y\displaystyle y =−3cos⁡(2x−π2)+1\displaystyle = \wave{-}\step{3}\wave{\cos}\left(\step{2}x - \anchor{\frac{\pi}{2}}\right) \anchor{+ 1}
Graphing a Transformed Wave Step by Step
y=−3cos⁡(2x−π2)+1y = \htmlClass{lc-blue}{-}\htmlClass{lc-pink}{3}\htmlClass{lc-blue}{\cos}\left(\htmlClass{lc-pink}{2}x - \htmlClass{lc-violet}{\tfrac{\pi}{2}}\right) \mathbin{\htmlClass{lc-violet}{+}} \htmlClass{lc-violet}{1}
Text solution
Mark the midline, high, and low on the yy-axisUse the +1\anchor{+1} at the end for the center line and the amplitude of 3\step{3} in front to find the top and bottom of the wave.
Midline: y=1,High=1+3=4,Low=1−3=−2\displaystyle \begin{aligned} \anchor{\text{Midline: } y} &= \anchor{1}, \\ \wave{\text{High}} &= \anchor{1} + \step{3} = \wave{4}, \\ \wave{\text{Low}} &= \anchor{1} - \step{3} = \wave{-2} \end{aligned}
Set the inside equal to 00 to find the starting tick markSetting the whole expression inside the parentheses to 00 gives the starting xx-value directly without needing to factor out 2\step{2}.
2x−π2=0  ⟹  2x=π2  ⟹  x=π4\displaystyle \begin{aligned} \step{2}x - \anchor{\frac{\pi}{2}} &= 0 \\[6pt] \implies \step{2}x &= \anchor{\frac{\pi}{2}} \\[6pt] \implies x &= \anchor{\frac{\pi}{4}} \end{aligned}
Find the period and count out four quarter-stepsDivide the period by 44 to find the step size, then add it four times from the start while keeping the denominator of 44 unreduced so the spacing stays clear.
Period=2π2=π  ⟹  Quarter-step=π4\displaystyle \begin{aligned} \step{\text{Period}} &= \frac{2\pi}{\step{2}} = \step{\pi} \\[6pt] \implies \step{\text{Quarter-step}} &= \step{\frac{\pi}{4}} \end{aligned}
Five ticks: 1π4,  2π4,  3π4,  4π4,  5π4\displaystyle \text{Five ticks: } \anchor{\frac{1\pi}{4}},\; \frac{2\pi}{4},\; \frac{3\pi}{4},\; \frac{4\pi}{4},\; \frac{5\pi}{4}
Plot the five-beat rhythm for negative cosineBecause the front term is −3cos⁡\wave{-}\step{3}\wave{\cos}, start at the Low line and follow Low→Middle→High→Middle→Low\text{Low} \rightarrow \text{Middle} \rightarrow \text{High} \\ \rightarrow \text{Middle} \rightarrow \text{Low} across the five ticks.
(1π4,−2)→(2π4,1)→(3π4,4)→(4π4,1)→(5π4,−2)\displaystyle \left(\frac{1\pi}{4}, \wave{-2}\right) \rightarrow \left(\frac{2\pi}{4}, \wave{1}\right) \rightarrow \left(\frac{3\pi}{4}, \wave{4}\right) \rightarrow \left(\frac{4\pi}{4}, \wave{1}\right) \rightarrow \left(\frac{5\pi}{4}, \wave{-2}\right)
Highy=4\begin{matrix}\htmlClass{lc-blue}{\text{High}} \\ y = \htmlClass{lc-blue}{4}\end{matrix}
Midliney=1\begin{matrix}\htmlClass{lc-violet}{\text{Midline}} \\ y = \htmlClass{lc-violet}{1}\end{matrix}
Lowy=−2\begin{matrix}\htmlClass{lc-blue}{\text{Low}} \\ y = \htmlClass{lc-blue}{-2}\end{matrix}
(1π4,−2)\htmlClass{lc-blue}{\left(\tfrac{1\pi}{4}, -2\right)}
(2π4,1)\htmlClass{lc-blue}{\left(\tfrac{2\pi}{4}, 1\right)}
(3π4,4)\htmlClass{lc-blue}{\left(\tfrac{3\pi}{4}, 4\right)}
(4π4,1)\htmlClass{lc-blue}{\left(\tfrac{4\pi}{4}, 1\right)}
(5π4,−2)\htmlClass{lc-blue}{\left(\tfrac{5\pi}{4}, -2\right)}
y=−3cos⁡(2x−π2)+1y = \htmlClass{lc-blue}{-}\htmlClass{lc-pink}{3}\htmlClass{lc-blue}{\cos}\left(\htmlClass{lc-pink}{2}x - \htmlClass{lc-violet}{\tfrac{\pi}{2}}\right) \mathbin{\htmlClass{lc-violet}{+}} \htmlClass{lc-violet}{1}
5

Writing an Equation from a Wave

Finally, we want to work in reverse: given the graph of a wave with peaks at (0,5)(0, \wave{5}) and (6,5)(6, \wave{5}) and a valley at (3,−1)(3, \wave{-1}), write its equation as a cosine wave and as a sine wave.

(0,5)\htmlClass{lc-blue}{\left(0, 5\right)}
(6,5)\htmlClass{lc-blue}{\left(6, 5\right)}
(3,−1)\htmlClass{lc-blue}{\left(3, -1\right)}
Writing an Equation from a Wave
y=y =
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
6\htmlClass{lc-mute}{6}
7\htmlClass{lc-mute}{7}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
Text solution
Average the high and low to find the midline and amplitudeThe midline is the average of the peak height 5\wave{5} and valley height −1\wave{-1}, and the amplitude is the distance from that midline to the peak.
Midline=5+(−1)2=42=2,Amplitude=5−2=3\displaystyle \begin{aligned} \anchor{\text{Midline}} &= \frac{\wave{5} + (\wave{-1})}{2} = \frac{4}{2} = \anchor{2}, \\[4pt] \step{\text{Amplitude}} &= \wave{5} - \anchor{2} = \step{3} \end{aligned}
Measure peak-to-peak to find the period and speed multiplier B\step{B}The horizontal distance from the peak at x=0x = 0 to the next peak at x=6x = 6 is one full lap, which gives B\step{B}.
Period=6−0=6  ⟹  B=2πPeriod=2π6=π3\displaystyle \begin{aligned} \step{\text{Period}} &= 6 - 0 = \step{6} \\ \implies \step{B} &= \frac{2\pi}{\step{\text{Period}}} = \frac{2\pi}{\step{6}} = \step{\frac{\pi}{3}} \end{aligned}
Match the wave at x=0x = 0 to write the simplest equationBecause the wave sits at a peak right on the yy-axis (x=0x = 0), positive cosine matches it without needing a horizontal shift.
y\displaystyle y =3cos⁡(π3x)+2\displaystyle = \step{3}\wave{\cos}\left(\step{\frac{\pi}{3}}x\right) \anchor{+ 2}
Shift to an upward midline crossing to write a sine equationCount forward by quarter-steps of 64=1.5\frac{6}{4} = \step{1.5} from the peak at 00 (going through Middle heading down at 1.51.5 and Low at 33) to reach Middle heading up at x=4.5x = \anchor{4.5}, then shift the starting point to 4.5\anchor{4.5}.
y\displaystyle y =3sin⁡(π3(x−4.5))+2\displaystyle = \step{3}\wave{\sin}\left(\step{\frac{\pi}{3}}(x - \anchor{4.5})\right) \anchor{+ 2}

Key concepts

Every sine or cosine wave is built from a circle centered on the midline y=D\anchor{y = D} with radius equal to the amplitude (the distance from the midline to a peak, never the full bottom-to-top height):

Midline=High+Low2,Amplitude=High−Midline\displaystyle \begin{aligned} \anchor{\text{Midline}} &= \frac{\wave{\text{High}} + \wave{\text{Low}}}{2}, \\[4pt] \step{\text{Amplitude}} &= \wave{\text{High}} - \anchor{\text{Midline}} \end{aligned}

In y=−4sin⁡(x)+3y = \wave{-}\step{4}\wave{\sin}(x) \anchor{+ 3}, the midline is y=3\anchor{y = 3}, the amplitude is 4\step{4} (reaching up to 7\wave{7} and down to −1\wave{-1}), and the negative sign swaps High and Low in the five-beat rhythm:

Sine

starts at the midline: Middle→High→Middle→Low→Middle\text{Middle} \rightarrow \text{High} \rightarrow \text{Middle} \\ \rightarrow \text{Low} \rightarrow \text{Middle} (and goes to Low\text{Low} first when negative).

Cosine

starts at a peak or valley: High→Middle→Low→Middle→High\text{High} \rightarrow \text{Middle} \rightarrow \text{Low} \\ \rightarrow \text{Middle} \rightarrow \text{High} (and starts at Low\text{Low} when negative).

Inside the parentheses, the speed multiplier B\step{B} on xx sets the length of one full lap and its four quarter-steps:

Period=2πB⟺B=2πPeriod,Quarter-step=Period4\displaystyle \begin{aligned} \step{\text{Period}} &= \frac{2\pi}{\step{B}} \\[6pt] \Longleftrightarrow\quad \step{B} &= \frac{2\pi}{\step{\text{Period}}}, \\[6pt] \step{\text{Quarter-step}} &= \frac{\step{\text{Period}}}{4} \end{aligned}
When graphing from an equation

like y=−3cos⁡(2x−π2)+1y = \wave{-}\step{3}\wave{\cos}\left(\step{2}x - \anchor{\frac{\pi}{2}}\right) \anchor{+ 1}, you do not need to factor B\step{B} out of the parentheses: set the entire inside equal to 00 (2x−π2=0  ⟹  x=π4\step{2}x - \anchor{\frac{\pi}{2}} = 0 \implies x = \anchor{\frac{\pi}{4}}) for the first tick mark, then add the quarter-step four times with a common denominator.

When writing an equation from a graph

check x=0x = 0 first. If a peak, valley, or midline crossing already sits on the yy-axis, like a peak at (0,5)(0, \wave{5}), choose the matching function and sign in front (+cos⁡+\cos, −cos⁡-\cos, or ±sin⁡\pm\sin) so you do not need a shift (x−C)(x - \anchor{C}). Use a horizontal shift (x−C)(x - \anchor{C}) when no peak, valley, or midline crossing lies on the yy-axis, or when you must use a specific function whose rhythm begins at x=Cx = \anchor{C}, such as y=3sin⁡(π3(x−4.5))+2y = \step{3}\wave{\sin}\left(\step{\frac{\pi}{3}}(x - \anchor{4.5})\right) \anchor{+ 2}.

6

Practice

1

Find the midline, amplitude, maximum yy-value, and minimum yy-value of y=−6sin⁡(x)+4y = -6\sin(x) + 4.

Identify the center height at the end of the equation, then use the positive radius of the circle to step up and down from that center.

The number added at the end sets the midline, and the positive size of the front multiplier is the amplitude:
Midline: y=4,Amplitude\displaystyle \anchor{\text{Midline: } y = 4}, \qquad \step{\text{Amplitude}} =6\displaystyle = \step{6}
(Watch out: a common slip is writing −6-6 for the amplitude because of the minus sign in front, or doubling the radius to get 1212. The minus sign flips the wave, while the amplitude is always the positive radius 6\step{6}.)
Add and subtract the amplitude 6\step{6} from the midline 4\anchor{4}:
Maximum=4+6=10,Minimum=4−6=−2\displaystyle \begin{aligned} \wave{\text{Maximum}} &= \anchor{4} + \step{6} = \wave{10}, \\ \wave{\text{Minimum}} &= \anchor{4} - \step{6} = \wave{-2} \end{aligned}
AnswerMidline: y=4y = 4; Amplitude: 66; Maximum: 1010; Minimum: −2-2
2

Find the period and the quarter-step length for (a) y=sin⁡(x4)y = \sin\left(\tfrac{x}{4}\right) and (b) y=cos⁡(π3x)y = \cos\left(\tfrac{\pi}{3}x\right).

Write the number multiplying xx as the speed multiplier BB in Period=2πB\text{Period} = \frac{2\pi}{B}, then divide the period by 44.

(a)Here x4\tfrac{x}{4} means B=14\step{B} = \step{\frac{1}{4}}:
Period=2π14=8π,Quarter-step=8π4=2π\displaystyle \begin{aligned} \step{\text{Period}} &= \frac{2\pi}{\step{\tfrac{1}{4}}} = \step{8\pi}, \\[6pt] \step{\text{Quarter-step}} &= \frac{\step{8\pi}}{4} = \step{2\pi} \end{aligned}
(Watch out: treating x4\tfrac{x}{4} as B=4B = 4 instead of B=14\step{B} = \step{\frac{1}{4}} divides instead of multiplying and gives the wrong period π2\frac{\pi}{2}.)
(b)Here B=π3\step{B} = \step{\frac{\pi}{3}}, so dividing 2π2\pi by π3\step{\frac{\pi}{3}} cancels π\pi:
Period=2ππ3=2π⋅3π=6,Quarter-step=64=1.5  (or 32)\displaystyle \begin{aligned} \step{\text{Period}} &= \frac{2\pi}{\step{\tfrac{\pi}{3}}} = 2\pi \cdot \frac{3}{\pi} = \step{6}, \\[6pt] \step{\text{Quarter-step}} &= \frac{\step{6}}{4} = \step{1.5} \;\left(\text{or } \step{\frac{3}{2}}\right) \end{aligned}
(Watch out: multiplying straight across without flipping the fraction π3\step{\frac{\pi}{3}} leaves π\pi in the answer as 2π23\frac{2\pi^2}{3} instead of canceling π\pi to get 6\step{6}.)
Answer(a) Period: 8π8\pi, Quarter-step: 2π2\pi; (b) Period: 66, Quarter-step: 1.51.5 (or 32\tfrac{3}{2})
3

For one full cycle of y=−2sin⁡(2x+π2)−1y = -2\sin\left(2x + \tfrac{\pi}{2}\right) - 1, find the starting xx-value, the period, the quarter-step, and the five key points (x,y)(x, y) in order.

Set the entire inside equal to 00 to find the starting tick, add Period4\tfrac{\text{Period}}{4} four times, and check how the negative sign in front of sin⁡\sin changes the five-beat rhythm.

Set the inside of the parentheses to 00 for the start, and use B=2\step{B} = \step{2} for the period and quarter-step:
2x+π2=0  ⟹  2x=−π2  ⟹  x=−π4\displaystyle \begin{aligned} \step{2}x + \anchor{\frac{\pi}{2}} &= 0 \\[6pt] \implies \step{2}x &= \anchor{-\frac{\pi}{2}} \\[6pt] \implies x &= \anchor{-\frac{\pi}{4}} \end{aligned}
(Watch out: reading +π2\anchor{+\frac{\pi}{2}} inside the parentheses and jumping straight to a start of x=−π2x = -\frac{\pi}{2} forgets the 2\step{2} multiplying xx, which shifts all five xx-ticks off by π4\frac{\pi}{4}.)
Period=2π2=π,Quarter-step=π4\displaystyle \begin{aligned} \step{\text{Period}} &= \frac{2\pi}{\step{2}} = \step{\pi}, \\[6pt] \step{\text{Quarter-step}} &= \step{\frac{\pi}{4}} \end{aligned}
Adding π4\step{\frac{\pi}{4}} four times from −π4\anchor{-\frac{\pi}{4}} gives ticks at −π4,0,π4,2π4,3π4\anchor{-\frac{\pi}{4}}, 0, \frac{\pi}{4}, \frac{2\pi}{4}, \frac{3\pi}{4}. With midline y=−1\anchor{y = -1} and amplitude 2\step{2}, High=−1+2=1\wave{\text{High}} = \anchor{-1} + \step{2} = \wave{1} and Low=−1−2=−3\wave{\text{Low}} = \anchor{-1} - \step{2} = \wave{-3}. Because of −2sin⁡\wave{-}\step{2}\wave{\sin}, follow Middle→Low→Middle→High→Middle\text{Middle} \rightarrow \text{Low} \rightarrow \text{Middle} \rightarrow \text{High} \rightarrow \text{Middle}:
(−π4,−1),  (0,−3),  (π4,−1),  (2π4,1),  (3π4,−1)\displaystyle \left(-\frac{\pi}{4}, \wave{-1}\right),\; (0, \wave{-3}),\; \left(\frac{\pi}{4}, \wave{-1}\right),\; \left(\frac{2\pi}{4}, \wave{1}\right),\; \left(\frac{3\pi}{4}, \wave{-1}\right)
(Watch out: using the positive sine rhythm goes up to High first, which gives (0,1)(0, 1) and (2π4,−3)(\frac{2\pi}{4}, -3) backwards.)
AnswerStart: x=−π4x = -\tfrac{\pi}{4}; Period: π\pi; Quarter-step: π4\tfrac{\pi}{4}; Key points: (−π4,−1)\left(-\tfrac{\pi}{4}, -1\right), (0,−3)(0, -3), (π4,−1)\left(\tfrac{\pi}{4}, -1\right), (2π4,1)\left(\tfrac{2\pi}{4}, 1\right), (3π4,−1)\left(\tfrac{3\pi}{4}, -1\right)
4

A wave has a valley (minimum) at (0,−4)(0, -4), the next peak (maximum) at (2π,2)(2\pi, 2), and the following valley at (4π,−4)(4\pi, -4). Write an equation for this wave using cosine.

Average the peak and valley yy-values for the midline, measure a complete valley-to-valley lap for the period, and pick the sign of cosine that starts at a valley on the yy-axis.

Average the high and low for the midline and find the reach to the peak:
Midline=2+(−4)2=−1,Amplitude=2−(−1)=3\displaystyle \begin{aligned} \anchor{\text{Midline}} &= \frac{\wave{2} + (\wave{-4})}{2} = \anchor{-1}, \\ \step{\text{Amplitude}} &= \wave{2} - (\anchor{-1}) = \step{3} \end{aligned}
(Watch out: using the full bottom-to-top distance 2−(−4)=62 - (-4) = 6 as the amplitude gives −6cos⁡(… )-6\cos(\dots) instead of −3cos⁡(… )\wave{-}\step{3}\wave{\cos}(\dots).)
One full lap goes from the valley at x=0x = 0 to the next valley at x=4πx = 4\pi:
Period=4π−0=4π  ⟹  B=2π4π=12\displaystyle \begin{aligned} \step{\text{Period}} &= 4\pi - 0 = \step{4\pi} \\ \implies \step{B} &= \frac{2\pi}{\step{4\pi}} = \step{\frac{1}{2}} \end{aligned}
(Watch out: using the valley-to-peak distance 2π2\pi as the period only measures half a lap, which gives B=1B = 1 and y=−3cos⁡(x)−1y = -3\cos(x) - 1.)
Because the wave starts at a valley right at x=0x = 0, use negative cosine with no horizontal shift:
y\displaystyle y =−3cos⁡(12x)−1\displaystyle = \wave{-}\step{3}\wave{\cos}\left(\step{\frac{1}{2}}x\right) \anchor{- 1}
Answery=−3cos⁡(12x)−1y = -3\cos\left(\tfrac{1}{2}x\right) - 1
5

A wave has consecutive peaks at (1,7)(1, 7) and (9,7)(9, 7), with a valley halfway between them at (5,−3)(5, -3). Write an equation for the wave (a) as a positive cosine function and (b) as a positive sine function.

Find the midline, amplitude, and BB from the peaks; then shift (x−C)(x - C) to a peak for positive cosine, and step by quarter-laps to where the wave crosses the midline heading up for positive sine.

From the peak at 7\wave{7} and valley at −3\wave{-3}:
Midline=7+(−3)2=2,Amplitude=7−2=5\displaystyle \begin{aligned} \anchor{\text{Midline}} &= \frac{\wave{7} + (\wave{-3})}{2} = \anchor{2}, \\ \step{\text{Amplitude}} &= \wave{7} - \anchor{2} = \step{5} \end{aligned}
From peak to peak (x=1x = 1 to x=9x = 9):
Period=9−1=8  ⟹  B=2π8=π4,Quarter-step=84=2\displaystyle \begin{aligned} \step{\text{Period}} &= 9 - 1 = \step{8} \\ \implies \step{B} &= \frac{2\pi}{\step{8}} = \step{\frac{\pi}{4}}, \\[6pt] \step{\text{Quarter-step}} &= \frac{\step{8}}{4} = \step{2} \end{aligned}
(a)Positive cosine starts at a peak, and the first peak is at x=1x = \anchor{1}:
y\displaystyle y =5cos⁡(π4(x−1))+2\displaystyle = \step{5}\wave{\cos}\left(\step{\frac{\pi}{4}}(x - \anchor{1})\right) \anchor{+ 2}
(b)Positive sine starts where the wave crosses the midline heading up. Stepping by the quarter-step 2\step{2} from the peak at x=1x = 1 gives Middle heading down at x=3x = 3, Low at x=5x = 5, and Middle heading up at x=7x = \anchor{7} (or stepping back one quarter-step from x=1x = 1 to x=−1x = \anchor{-1}):
y=5sin⁡(π4(x−7))+2(or y=5sin⁡(π4(x+1))+2)\displaystyle \begin{aligned} &y = \step{5}\wave{\sin}\left(\step{\frac{\pi}{4}}(x - \anchor{7})\right) \anchor{+ 2} \\ &\left(\text{or } y = \step{5}\wave{\sin}\left(\step{\frac{\pi}{4}}(x + \anchor{1})\right) \anchor{+ 2}\right) \end{aligned}
(Watch out: shifting to the first midline crossing at x=3x = 3 gives y=5sin⁡(π4(x−3))+2y = 5\sin\left(\frac{\pi}{4}(x - 3)\right) + 2, which is upside down because at x=3x = 3 the wave is heading down toward the valley at x=5x = 5 rather than heading up.)
Answer(a) y=5cos⁡(π4(x−1))+2y = 5\cos\left(\tfrac{\pi}{4}(x - 1)\right) + 2; (b) y=5sin⁡(π4(x−7))+2y = 5\sin\left(\tfrac{\pi}{4}(x - 7)\right) + 2 (or y=5sin⁡(π4(x+1))+2y = 5\sin\left(\tfrac{\pi}{4}(x + 1)\right) + 2)