We first meet sine and cosine on right triangles and the unit circle, and now we want to graph y=sin(x) and y=cos(x) as waves as the angle x grows.
1
Graphing Sine and Cosine from the Unit Circle
To graph y=sin(x) on the xy-plane, we track the vertical height of a point as it walks counter-clockwise around a unit circle of radius 1, plotting the angle x horizontally and the point's height vertically.
The Sine Wave from the Unit Circle
Walking one full lap of length 2π in four equal quarter-steps of 2π gives the five key points that mark one cycle of the sine wave:
Now we want to graph y=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
Because a walk starting at angle 0 on the right edge of the circle begins at its farthest right position of 1, cosine follows the same quarter-lap steps with its five-beat rhythm starting at the peak:
As a point goes around the unit circle, its vertical height traces y=sin(x) while its horizontal position becomes the vertical height on the graph of y=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 and 1 around height 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
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 B multiplies x inside the angle. We use B>0, so the angle increases and the point moves counter-clockwise as x increases.
y=amplitude =∣A∣(minus sign flips High and Low)Asin(B(x−C))+midline y=DD
From the midline y=D, the wave reaches up by the amplitude and down by the amplitude:
HighLow=Midline+Amplitude,=Midline−Amplitude
When the multiplier A in front is negative, the amplitude stays positive, while High and Low trade places in the five-beat rhythm:
Try changing A in y=Asin(x)+3 to see the circle resize and flip around the midline 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 x-axis that lap begins.
Period and Horizontal Shifts
Because the unit circle always completes one full lap when the expression inside the parentheses grows by 2π, a multiplier B on x acts as a speed multiplier that divides the lap length:
Period (full lap)=B2π
Seeing how B divides 2π covers all three types of speed multipliers:
yPeriodyPeriodyPeriod=sin(2x)⟹=22π=π(twice as fast, half as long)=sin(31x)⟹=312π=6π(one-third speed,three times as long)=cos(2πx)⟹=2π2π=4(π’s cancel, leavingwhole numbers on the x-axis)
Adding or subtracting inside the parentheses shifts where the lap starts, because the circle begins its lap when the entire inside equals 0:
y⟹x−4π⟹lap starts at x=sin(x−4π)=0=4π
Try changing B in y=sin(Bx) to see how the speed around the circle sets the period on the x-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=−3cos(2x−2π)+1
Graphing a Transformed Wave Step by Step
Text solution
Mark the midline, high, and low on the y-axisUse the +1 at the end for the center line and the amplitude of 3 in front to find the top and bottom of the wave.
Midline: yHighLow=1,=1+3=4,=1−3=−2
Set the inside equal to 0 to find the starting tick markSetting the whole expression inside the parentheses to 0 gives the starting x-value directly without needing to factor out 2.
2x−2π⟹2x⟹x=0=2π=4π
Find the period and count out four quarter-stepsDivide the period by 4 to find the step size, then add it four times from the start while keeping the denominator of 4 unreduced so the spacing stays clear.
Period⟹Quarter-step=22π=π=4π
Five ticks: 41π,42π,43π,44π,45π
Plot the five-beat rhythm for negative cosineBecause the front term is −3cos, start at the Low line and follow Low→Middle→High→Middle→Low across the five ticks.
(41π,−2)→(42π,1)→(43π,4)→(44π,1)→(45π,−2)
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) and (6,5) and a valley at (3,−1), write its equation as a cosine wave and as a sine wave.
Writing an Equation from a Wave
Text solution
Average the high and low to find the midline and amplitudeThe midline is the average of the peak height 5 and valley height −1, and the amplitude is the distance from that midline to the peak.
MidlineAmplitude=25+(−1)=24=2,=5−2=3
Measure peak-to-peak to find the period and speed multiplier BThe horizontal distance from the peak at x=0 to the next peak at x=6 is one full lap, which gives B.
Period⟹B=6−0=6=Period2π=62π=3π
Match the wave at x=0 to write the simplest equationBecause the wave sits at a peak right on the y-axis (x=0), positive cosine matches it without needing a horizontal shift.
y=3cos(3πx)+2
Shift to an upward midline crossing to write a sine equationCount forward by quarter-steps of 46=1.5 from the peak at 0 (going through Middle heading down at 1.5 and Low at 3) to reach Middle heading up at x=4.5, then shift the starting point to 4.5.
y=3sin(3π(x−4.5))+2
Key concepts
Every sine or cosine wave is built from a circle centered on the midliney=D with radius equal to the amplitude (the distance from the midline to a peak, never the full bottom-to-top height):
MidlineAmplitude=2High+Low,=High−Midline
In y=−4sin(x)+3, the midline is y=3, the amplitude is 4 (reaching up to 7 and down to −1), and the negative sign swaps High and Low in the five-beat rhythm:
Sine
starts at the midline: Middle→High→Middle→Low→Middle (and goes to Low first when negative).
Cosine
starts at a peak or valley: High→Middle→Low→Middle→High (and starts at Low when negative).
Inside the parentheses, the speed multiplier B on x sets the length of one full lap and its four quarter-steps:
Period⟺BQuarter-step=B2π=Period2π,=4Period
When graphing from an equation
like y=−3cos(2x−2π)+1, you do not need to factor B out of the parentheses: set the entire inside equal to 0(2x−2π=0⟹x=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=0 first. If a peak, valley, or midline crossing already sits on the y-axis, like a peak at (0,5), choose the matching function and sign in front (+cos,−cos, or ±sin) so you do not need a shift (x−C). Use a horizontal shift (x−C) when no peak, valley, or midline crossing lies on the y-axis, or when you must use a specific function whose rhythm begins at x=C, such as y=3sin(3π(x−4.5))+2.
6
Practice
1
Find the midline, amplitude, maximum y-value, and minimum y-value of y=−6sin(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=6
(Watch out: a common slip is writing −6 for the amplitude because of the minus sign in front, or doubling the radius to get 12. The minus sign flips the wave, while the amplitude is always the positive radius 6.)
Add and subtract the amplitude 6 from the midline 4:
For one full cycle of y=−2sin(2x+2π)−1, find the starting x-value, the period, the quarter-step, and the five key points (x,y) in order.
Watch out: reading +2π inside the parentheses and jumping straight to a start of x=−2π forgets the 2 multiplying x, which shifts all five x-ticks off by 4π.
Set the entire inside equal to 0 to find the starting tick, add 4Period four times, and check how the negative sign in front of sin changes the five-beat rhythm.
Set the inside of the parentheses to 0 for the start, and use B=2 for the period and quarter-step:
2x+2π⟹2x⟹x=0=−2π=−4π
(Watch out: reading +2π inside the parentheses and jumping straight to a start of x=−2π forgets the 2 multiplying x, which shifts all five x-ticks off by 4π.)
PeriodQuarter-step=22π=π,=4π
Adding 4π four times from −4π gives ticks at −4π,0,4π,42π,43π. With midline y=−1 and amplitude 2,High=−1+2=1 and Low=−1−2=−3. Because of −2sin, follow Middle→Low→Middle→High→Middle:
(−4π,−1),(0,−3),(4π,−1),(42π,1),(43π,−1)
(Watch out: using the positive sine rhythm goes up to High first, which gives (0,1) and (42π,−3) backwards.)
A wave has a valley (minimum) at (0,−4), the next peak (maximum) at (2π,2), and the following valley at (4π,−4). Write an equation for this wave using cosine.
Average the peak and valley y-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 y-axis.
Average the high and low for the midline and find the reach to the peak:
MidlineAmplitude=22+(−4)=−1,=2−(−1)=3
(Watch out: using the full bottom-to-top distance 2−(−4)=6 as the amplitude gives −6cos(…) instead of −3cos(…).)
One full lap goes from the valley at x=0 to the next valley at x=4π:
Period⟹B=4π−0=4π=4π2π=21
(Watch out: using the valley-to-peak distance 2π as the period only measures half a lap, which gives B=1 and y=−3cos(x)−1.)
Because the wave starts at a valley right at x=0, use negative cosine with no horizontal shift:
y=−3cos(21x)−1
Answery=−3cos(21x)−1
5
A wave has consecutive peaks at (1,7) and (9,7), with a valley halfway between them at (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 B from the peaks; then shift (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 and valley at −3:
MidlineAmplitude=27+(−3)=2,=7−2=5
From peak to peak (x=1 to x=9):
Period⟹BQuarter-step=9−1=8=82π=4π,=48=2
(a)Positive cosine starts at a peak, and the first peak is at x=1:
y=5cos(4π(x−1))+2
(b)Positive sine starts where the wave crosses the midline heading up. Stepping by the quarter-step 2 from the peak at x=1 gives Middle heading down at x=3, Low at x=5, and Middle heading up at x=7 (or stepping back one quarter-step from x=1 to x=−1):
y=5sin(4π(x−7))+2(or y=5sin(4π(x+1))+2)
(Watch out: shifting to the first midline crossing at x=3 gives y=5sin(4π(x−3))+2, which is upside down because at x=3 the wave is heading down toward the valley at x=5 rather than heading up.)