Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 38 ยท Graphs of Trigonometric Functions

Amplitude and Period

Learn how the numbers A and B in y = A sin(Bx) stretch a sine wave vertically and horizontally, and how to read amplitude, period and frequency from an equation.

The basic sine wave rises to 1, falls to โˆ’1, and repeats every 2ฯ€. But waves in the real world have different heights and speeds: a loud sound versus a quiet one, a high note versus a low note. By adding two numbers to the equation we can change the height and the speed of the wave.

The general form

y = A sin(Bx) and y = A cos(Bx)

  • A controls the height. The amplitude is |A|.
  • B controls the speed. The period is 2ฯ€ / |B|.

Amplitude

The amplitude is the distance from the midline (center line) to the maximum, i.e., half the distance from the minimum to the maximum.

  • y = 3 sin x has amplitude 3: it oscillates between โˆ’3 and 3.
  • y = ยฝ cos x has amplitude 0.5: between โˆ’0.5 and 0.5.
  • y = โˆ’2 sin x has amplitude 2, but the negative sign flips the graph upside down (a reflection in the x-axis).

Period

The period is the length of one complete cycle along the x-axis.

period = 2ฯ€ / |B|

  • y = sin(2x): B = 2, period = ฯ€. The wave runs twice as fast.
  • y = sin(x/2): B = ยฝ, period = 4ฯ€. The wave is stretched out.
  • y = cos(3x): period = 2ฯ€/3. Three cycles fit in 2ฯ€.

The number of cycles per unit of x is the frequency, f = |B| / (2ฯ€) = 1 / period.

Python Amplitude and period explorer

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.

Reading amplitude and period from an equation

Example 1. y = 4 cos(3x).

  • Amplitude: 4.
  • Period: 2ฯ€/3.
  • Max 4, min โˆ’4.

Example 2. y = โˆ’ยฝ sin(ฯ€x).

  • Amplitude: ยฝ (the minus sign reflects the graph).
  • Period: 2ฯ€ / ฯ€ = 2.

Example 3. Find an equation for a cosine wave with amplitude 5 and period 8.

B = 2ฯ€ / 8 = ฯ€/4, so y = 5 cos(ฯ€x/4).

Sketching with key points

Divide one period into four equal parts to get the five key points. For y = 3 sin(2x):

  • Period ฯ€. Quarter steps of ฯ€/4: x = 0, ฯ€/4, ฯ€/2, 3ฯ€/4, ฯ€.
  • Values: 0, 3, 0, โˆ’3, 0.
Python Key points of A sin(Bx)

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.

Frequency and sound

A pure musical tone is a sine wave in air pressure. A higher frequency (more cycles per second, measured in hertz) sounds as a higher pitch; a larger amplitude sounds louder. The note A above middle C is standardly tuned to 440 Hz, which means 440 cycles each second, a period of about 0.00227 s. We can write a model as y = A sin(2ฯ€ ร— 440 ร— t), where B = 2ฯ€ ร— 440 and t is time in seconds.

Python Wave period from frequency

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.

(This computes the numbers for the model; it does not play a sound.)

To find the period quickly: it is 2ฯ€ divided by the number multiplying x. If the number is 1, the period is 2ฯ€.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the amplitude of y = -4 sin x?

    Amplitude is the absolute value of A. The minus sign only flips the graph.
  2. 2. What is the period of y = sin(4x)?

    Period = 2ฯ€ / 4 = ฯ€/2.
  3. 3. A cosine wave has amplitude 2 and period 6. Which equation fits?

    B = 2ฯ€/6 = ฯ€/3, so y = 2 cos(ฯ€x/3).
  4. 4. What does a larger B do to the graph of y = sin(Bx)?

    A larger B shortens the period, squeezing more cycles into the same interval.

Summary

  • In y = A sin(Bx) the amplitude is |A| and the period is 2ฯ€ / |B|.
  • A negative A reflects the graph over the x-axis.
  • Frequency is the reciprocal of the period.
  • Five equally spaced key points give a quick sketch.

Next: Phase Shift and Vertical Shift