Ga naar inhoud

Les 21 · Trigonometric Functions Review

Graphs of Sine and Cosine

Read and build sinusoidal graphs from amplitude, period, phase shift and midline, with plots and a fitting tool you can run.

Sine and cosine produce smooth waves that model tides, sound, daylight hours and alternating current. Every such wave is a stretched, squeezed and shifted copy of the basic curve. Once you can read the four numbers that describe it, you can sketch the graph in seconds and write an equation from a picture.

The basic waves

Plot y = sin x and y = cos x by tracing the height of the point on the unit circle.

  • Domain: all real numbers. Range: [−1, 1].
  • Period: 2π. The pattern repeats every 2π.
  • sin 0 = 0, rising to 1 at π/2, back to 0 at π, down to −1 at 3π/2, and back to 0 at 2π.
  • Cosine is sine shifted left by π/2: cos x = sin(x + π/2). It starts at its maximum, 1.
Python Plot sine and cosine

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The general sinusoid

Every sinusoidal wave can be written as

Text
y = A·sin(B(x − C)) + D
Symbol Name What it does
|A| amplitude half the distance from the highest to the lowest value
B frequency factor sets the period: period = 2π / |B|
C phase shift slides the graph right by C (left if negative)
D vertical shift the midline is y = D

If A is negative the graph is also flipped upside down. The maximum is D + |A| and the minimum D − |A|.

Worked example

Describe y = 3·sin(2(x − π/4)) + 1.

  • Amplitude 3.
  • Period 2π/2 = π.
  • Phase shift π/4 to the right.
  • Midline y = 1, so the range is [−2, 4].

Five key points: the sine starts a cycle at x = π/4 on the midline (value 1), reaches its maximum a quarter period later at x = π/4 + π/4 = π/2 (value 4), crosses the midline at 3π/4, hits its minimum at π (value −2), and finishes at 5π/4 (value 1).

The quarter-period rule is the best sketching habit: split one period into four equal steps and mark midline, max, midline, min, midline.

Watch the form. In sin(2x − π/2) the shift is not π/2. Factor first: sin(2(x − π/4)), so the shift is π/4.

Python Wave describer

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Writing an equation from a graph

Suppose a graph has a maximum of 7, a minimum of −1, and consecutive maxima 12 units apart. Then:

  1. D = (7 + (−1))/2 = 3 (midline: average of max and min).
  2. A = (7 − (−1))/2 = 4 (amplitude).
  3. B = 2π/12 = π/6 (from the period).
  4. Use cosine if a maximum sits at x = 0: y = 4cos(πx/6) + 3.

If you choose sine instead, you need a phase shift. Either form is correct; pick whichever needs less shifting.

Modeling a real situation

A Ferris wheel of radius 10 m has its lowest point 2 m above the ground and turns once every 40 seconds. A rider starts at the lowest point. The height h after t seconds is a negative cosine, because it starts at a minimum:

Text
h(t) = −10·cos(2πt / 40) + 12

The midline is the hub height 2 + 10 = 12 m, the amplitude is the radius 10 m, and the period is 40 s.

Python Fit a wave to data

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the period of y = sin(4x)?

    Period = 2π/|B| = 2π/4 = π/2.
  2. 2. A wave has a maximum of 9 and a minimum of 1. What are its amplitude and midline?

    Amplitude is (9 - 1)/2 = 4 and the midline is (9 + 1)/2 = 5.
  3. 3. In y = sin(2x - π), what is the phase shift?

    Factor: sin(2(x - π/2)). The graph shifts π/2 to the right.
  4. 4. Which function starts at its maximum value when x = 0?

    cos 0 = 1 is the maximum of cosine.

Summary

  • y = A·sin(B(x − C)) + D has amplitude |A|, period 2π/|B|, phase shift C and midline y = D.
  • Midline is the average of max and min; amplitude is half their difference.
  • Sketch with five key points spaced a quarter period apart.
  • Factor out B before reading the phase shift.
  • Cosine is a sine shifted by π/2, so either function can model any sinusoid.

Next: Trigonometric Identities

Volg je voortgang

Maak een gratis account om lessen af te vinken en op elk apparaat verder te gaan waar je gebleven was.