Graphing Sine and Cosine
See how the unit circle unrolls into the sine and cosine waves, and learn their period, amplitude, zeros, maximums and minimums.
Welcome back!
Step 1 of 11Learn
Unrolling the circle
Tide charts, heartbeat monitors, sound recordings and the daily hours of sunlight all share the same shape: a smooth wave that repeats. That shape is the graph of sine.
Here's where it comes from. Walk around the unit circle, and at each angle record your height, which is sin θ. Plot the angle on a horizontal axis (in radians) and the height on the vertical axis:
- At 0 you're at height 0.
- At π/2 (a quarter turn) you're at the top, height 1.
- At π (a half turn) you're back to 0.
- At 3π/2 you're at the bottom, height −1.
- At 2π you're back where you started, height 0.
Connect those points smoothly and you get one full wave. Keep walking and the pattern repeats forever in both directions, because angles that differ by 2π land on the same point.
A function that repeats like this is called periodic, and the length of one repetition is its period. For y = sin x, the period is 2π ≈ 6.28.
Graphing trig functions in radians puts angles and heights on comparable scales, which is why the x-axis in this lesson uses radians. Use the explorer to trace the curve and compare it to the unit circle.
Step 2 of 11Practice · Chart
Hours of daylight at 40° N
Plot daylight month by month and a wave appears. It repeats every 12 months, peaks near the June solstice and bottoms out near December.
Tap the month at the top of the wave.
Tap the point that answers the question, then press Check.
| Item | Daylight |
|---|---|
| Jan | 9.5 |
| Feb | 10.6 |
| Mar | 11.9 |
| Apr | 13.2 |
| May | 14.4 |
| Jun | 15 |
| Jul | 14.8 |
| Aug | 13.7 |
| Sep | 12.4 |
| Oct | 11.1 |
| Nov | 9.9 |
| Dec | 9.3 |
Step 3 of 11Explore
The sine wave
The curve is y = sin x with x in radians. Move the slider t to pick an angle; the readouts show the point (cos t, sin t) on the unit circle. The height of the wave at x = t equals sin t, the y-coordinate of that point.
- sin t (height of the wave)
- 1
- cos t (x-coordinate on the circle)
- 0.001
- t in degrees
- 90 °
Step 4 of 11Learn
Key features of y = sin x
Every sine graph can be described by a few features:
- Period: 2π. The wave repeats every 2π units.
- Amplitude: 1. The distance from the middle of the wave to the top (or bottom).
- Midline: y = 0, the horizontal line halfway between the highest and lowest points.
- Range: −1 ≤ y ≤ 1. Domain: all real numbers.
- Zeros: x = 0, π, 2π, 3π, … and also −π, −2π, … (every multiple of π).
- Maximum: 1, at x = π/2 (and every 2π after).
- Minimum: −1, at x = 3π/2 (and every 2π after).
A good way to sketch one period by hand is the five key points: (0, 0), (π/2, 1), (π, 0), (3π/2, −1), (2π, 0). They split the period into four equal quarters: zero, peak, zero, trough, zero.
Students sometimes draw the sine wave with sharp corners, like a zigzag. The real graph is smooth and rounded at the peaks, and steepest where it crosses the midline. That matches the Ferris wheel: a seat moves up and down fastest at the sides and seems to pause briefly at the very top and bottom.
Step 5 of 11Practice · Choose one
What is the period of y = sin x?
Step 6 of 11Practice · Fill in the blanks
Fill in the blanks
On y = sin x, the maximum value is , reached at x = π/, and the minimum value is .
Step 7 of 11Learn
The cosine wave
Do the same thing with the x-coordinate, cos θ, and you get the cosine graph. It has exactly the same shape, period (2π), amplitude (1) and range (−1 to 1) as sine. The only difference is where it starts:
- cos 0 = 1, so the cosine wave starts at its maximum.
- Its five key points are (0, 1), (π/2, 0), (π, −1), (3π/2, 0), (2π, 1).
In fact, the cosine graph is the sine graph shifted π/2 to the left:
cos x = sin(x + π/2)
That makes sense on the unit circle: the x-coordinate at angle θ equals the y-coordinate a quarter turn later.
There's one more visual difference. The cosine graph is symmetric about the y-axis (a mirror image left and right), because cos(−x) = cos x. The sine graph has a different symmetry: rotating it 180° about the origin leaves it unchanged, because sin(−x) = −sin x.
When you look at a wave and need to decide whether to model it with sine or cosine, ask where it starts. A wave that starts at the middle and rises fits sine. A wave that starts at the top fits cosine.
Step 8 of 11Explore
Shifting sine into cosine
This graph is y = sin(x + k). Start with k = 0 (plain sine), then slide k to about 1.57 (π/2). The wave now starts at its maximum: it has become the cosine graph.
- Value at x = 0: sin(k)
- 0
- k as a multiple of π
- 0
Step 9 of 11Practice · True or false
The graph of y = cos x crosses the x-axis at x = 0.
Step 10 of 11Practice · Sort into groups
Which graph has each feature?
Tap an item, then tap its group (or drag it there).
Step 11 of 11Practice · Work it out
How many times does the graph of y = sin x touch the x-axis for 0 ≤ x ≤ 2π, including both endpoints?
Lesson complete!