Skip to content

Lesson 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