Find a course

Module 4: TrigonometryLesson 10 of 1211 min

Graphs of Sine and Cosine

Graph sine and cosine waves, read amplitude, period, phase shift and midline, and build sinusoidal models for real cycles.

Step 1 of 11Learn

Waves from a circle

Ride a Ferris wheel and track your height above the ground. You rise, peak, fall, bottom out and rise again, every rotation. Plot height against time and you get a smooth wave: a sinusoid.

Sine and cosine produce these waves because they come from the unit circle. As θ increases, the point goes around and around, and its y-coordinate, sin θ, swings between −1 and 1 forever.

Key facts about y = sin x:

  • It starts at 0, rises to 1 at π/2, returns to 0 at π, falls to −1 at 3π/2 and is back to 0 at 2π.
  • It repeats every 2π: the period is 2π.
  • Its values stay between −1 and 1: the amplitude is 1.

y = cos x has the same shape, shifted: it starts at its maximum, 1, when x = 0. In fact cos x = sin(x + π/2). Cosine is just sine started a quarter-turn earlier.

Sinusoids model anything that repeats smoothly: tides, sound and light waves, alternating current, seasonal temperatures, daylight hours, a swinging pendulum and the Ferris wheel. Once you can read the four numbers that control a sinusoid, you can write a model for any of them.

Step 2 of 11Practice · Chart

Height on a Ferris wheel over one turn

Tap the minute when the rider is at the top.

Tap the point that answers the question, then press Check.

Height on a Ferris wheel over one turnLine chart with 11 categories: 0: 5 m; 1: 9.8 m; 2: 22.3 m; 3: 37.7 m; 4: 50.2 m; 5: 55 m; 6: 50.2 m; 7: 37.7 m; 8: 22.3 m; 9: 9.8 m; 10: 5 m.0 m20 m40 m60 m012345678910Minutes
Wheel 50 m across, center 30 m up, one turn every 10 minutes, rider starts at the bottom.
Height on a Ferris wheel over one turn
MinutesHeight
05 m
19.8 m
222.3 m
337.7 m
450.2 m
555 m
650.2 m
737.7 m
822.3 m
99.8 m
105 m

Step 3 of 11Learn

The four controls

The general sinusoid is

y = A·sin(B(x − C)) + D

and each letter controls one feature:

  • |A| is the amplitude: the distance from the middle of the wave to a peak. If A is negative, the wave is flipped.
  • B sets the period: period = 2π/B. A larger B squeezes more cycles in. y = sin(2x) completes a cycle in π; y = sin(x/2) takes 4π.
  • C is the phase shift: the wave moves right by C (inside the function, so the sign works the opposite way, just as in the transformations lesson).
  • D is the midline: the wave oscillates around y = D. The maximum is D + |A| and the minimum is D − |A|.

Example: y = 3 sin(2(x − π/4)) + 1.

  • Amplitude 3, so the wave rises 3 above and falls 3 below its midline.
  • Period 2π/2 = π.
  • Phase shift π/4 to the right.
  • Midline y = 1, maximum 4, minimum −2.

A shortcut for reading graphs: amplitude = (max − min)/2 and midline = (max + min)/2. A wave between 2 and 10 has amplitude 4 and midline 6.

The most frequent mistake is confusing B with the period. In sin(4x), the period is 2π/4 = π/2, not 4.

Step 4 of 11Explore

Build a sinusoid

This is y = A·sin(B(x − C)) + D, with x in radians. Change one control at a time and watch the readouts: the period depends only on B, the peaks only on A and D.

-505 -505
Amplitude |A|
3
Period 2π/B
3.142
Maximum
4
Minimum
-2

Step 5 of 11Practice · Match the pairs

Match each function to its period.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. y = sin(3x)
  2. y = cos(x/2)
  3. y = 5 sin x
  4. y = sin(πx)
  5. y = cos(4x) + 7

Step 6 of 11Practice · Work it out

The temperature in a city varies between 4°C and 28°C over a year. What is the amplitude of a sinusoidal model?

Step 7 of 11Note

Step 8 of 11Practice · Spot the mistake

Priya described y = −2 cos(4x) + 5. Tap each incorrect claim.

Step 9 of 11Learn

Fitting a model to data

Real data rarely comes with a formula, but you can build one from four observations.

Suppose daylight in a city ranges from 9 hours (shortest day, around December 21) to 15 hours (longest day, around June 21), repeating every 365 days.

  1. Midline: D = (15 + 9)/2 = 12 hours.
  2. Amplitude: A = (15 − 9)/2 = 3 hours.
  3. Period: 365 days, so B = 2π/365.
  4. Phase shift: sine crosses its midline going up a quarter-period before its peak. The peak is near day 172 (June 21), and a quarter-period is about 91 days, so C ≈ 81 (late March, near the spring equinox, when day and night are nearly equal).

Model: L(t) = 3 sin(2π(t − 81)/365) + 12, with t the day of the year.

Check: at t = 172, the angle is 2π(91)/365 ≈ π/2, so L ≈ 3 + 12 = 15 hours.

Using cosine is often easier when you know when the maximum happens: L(t) = 3 cos(2π(t − 172)/365) + 12 gives the same curve, with the phase shift set directly to the peak day.

Step 10 of 11Chart

Hours of daylight through the year

Hours of daylight through the yearLine chart with 12 categories: Jan: 9.4 h; Feb: 10.5 h; Mar: 11.8 h; Apr: 13.3 h; May: 14.5 h; Jun: 15 h; Jul: 14.7 h; Aug: 13.7 h; Sep: 12.3 h; Oct: 10.8 h; Nov: 9.6 h; Dec: 9 h.8 h10 h12 h14 h16 hJanFebMarAprMayJunJulAugSepOctNovDec15 h
Illustrative, from the model with midline 12 h, amplitude 3 h, period 365 days.
Hours of daylight through the year
ItemDaylight
Jan9.4 h
Feb10.5 h
Mar11.8 h
Apr13.3 h
May14.5 h
Jun15 h
Jul14.7 h
Aug13.7 h
Sep12.3 h
Oct10.8 h
Nov9.6 h
Dec9 h

Step 11 of 11Practice · Choose one

A tide reaches high water every 12.4 hours. In the model h(t) = A cos(Bt) + D, what is B?