Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 38 · Sound and Hearing

Beats and the Doppler Effect

Learn why two close frequencies make beats, f_beat = |f₁ − f₂|, and how the Doppler effect shifts pitch for moving sources, with formulas and calculators.

Two everyday sound effects both come from waves changing the frequency you hear. When two instruments play almost, but not quite, the same note, you hear a slow wobble in loudness: beats. When an ambulance races past, its siren drops in pitch at the moment it passes you: the Doppler effect. This lesson explains both and gives you the formulas.

Beats

Take two sound waves with slightly different frequencies f₁ and f₂. By superposition, they add. Sometimes their crests line up (loud) and sometimes crests meet troughs (quiet). The loudness rises and falls at the beat frequency:

Text
f_beat = |f₁ − f₂|

Example: 440 Hz and 444 Hz played together give 4 beats per second: a loudness "wah-wah-wah-wah" four times a second. The pitch you hear is the average, 442 Hz.

Musicians use beats to tune: play your string against a reference note and adjust until the beats slow down and stop. When the beat frequency is zero, the two frequencies are equal.

Python Two tones make beats

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 envelope (red dashed) has maxima every 1/4 s. The loudness is largest at each maximum of the envelope, so there are 4 beats per second.

The Doppler effect

The Doppler effect is the change in the observed frequency when the source and the observer move relative to each other.

  • Source approaching or observer approaching: higher observed frequency.
  • Source or observer receding: lower observed frequency.

Why? If the source moves toward you, it keeps pushing wavefronts after the previous ones, so they bunch up in front of the source: the wavelength is shorter, and more of them reach you per second. Behind the source they spread out.

flowchart LR
    A["Source moves toward observer"] --> B["Wavefronts bunch up"]
    B --> C["Shorter λ"]
    C --> D["Higher observed f"]

Approaching sources are heard at higher frequencies.

The formulas (sound, along a line)

Let v be the speed of sound, f the source frequency and f' the observed frequency.

Moving source, stationary observer:

Text
f' = f · v / (v ∓ v_s)

Use − when the source moves toward the observer (higher f') and + when it moves away (lower f').

Moving observer, stationary source:

Text
f' = f · (v ± v_o) / v

Use + when the observer moves toward the source and − when moving away.

Worked example 1

An ambulance siren emits 700 Hz and moves at 30 m/s. Take v = 343 m/s. What does a stationary listener hear as it approaches and as it recedes?

Approaching: f' = 700 × 343/(343 − 30) = 700 × 343/313 = 767 Hz. Receding: f' = 700 × 343/(343 + 30) = 700 × 343/373 = 644 Hz.

Worked example 2

An observer walks toward a stationary 1000 Hz speaker at 2.0 m/s (v = 343 m/s).

f' = 1000 × (343 + 2.0)/343 = 1005.8 Hz.

Python Doppler shift calculator

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.

Notice the pitch is not symmetric: speeds toward you raise the pitch more than the same speed away lowers it.

Plotting the drive-by

When a source passes you on a straight road, the frequency drops from the "approaching" value to the "receding" value. The actual curve is smooth because the speed toward you changes with the angle. This model uses the component of velocity along the line of sight.

Python Siren passing a listener (model)

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.

Doppler effect in other waves

The Doppler effect applies to all waves, including light. Light from receding galaxies is shifted to longer wavelengths (redshift), one of the pieces of evidence that the universe is expanding. Police speed guns and weather radar use the Doppler shift of radio waves, and medical Doppler ultrasound measures blood flow speed. (For light and radio the formulas differ from the sound formulas, because there is no medium; for speeds much lower than the speed of light, the shift is approximately Δf/f ≈ v/c.)

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Two tuning forks of 256 Hz and 260 Hz sound together. What is the beat frequency?

    f_beat = |260 − 256| = 4 Hz.
  2. 2. A source of sound moves toward a stationary observer. The observed frequency is...

    Wavefronts bunch up in front of an approaching source, so the observer receives more per second.
  3. 3. A 500 Hz source moves away from you at 34 m/s (v = 340 m/s). What do you hear?

    f' = 500 × 340/(340 + 34) = 500 × 340/374 = 454.5 ≈ 455 Hz.
  4. 4. What does a musician hear when tuning a string against a reference and the beats slow to nothing?

    Beat frequency |f₁ − f₂| = 0 means the two frequencies are the same.

Summary

  • Beats: two close frequencies superpose; loudness varies at f_beat = |f₁ − f₂|.
  • Doppler effect: relative motion changes the observed frequency; approaching raises it, receding lowers it.
  • Moving source: f' = f v/(v ∓ v_s); moving observer: f' = f (v ± v_o)/v.
  • The Doppler effect applies to light too, giving redshift for receding galaxies.

Next: The Law of Reflection