Sub topic 15
The Doppler effect: moving source and moving observer
This chapter assumes you know v = fλ, the speed of sound in air (about 340 m/s), and the idea that sound is a wave carried by a medium. The Doppler effect is the change in the frequency an observer hears when the source, the observer, or both move relative to the medium.
Why the frequency changes
The medium (air) sets the wave speed v. The source sets how many wave crests leave per second. Two things can then change the count of crests reaching the observer each second:
- If the source moves, the crests are bunched closer together ahead of it (shorter wavelength) and stretched behind it.
- If the observer moves, the observer meets crests at a different rate, even though the wavelength is unchanged.
The formula
Let f be the true source frequency, v the speed of sound in still air, vo the observer's speed and vs the source's speed. The heard frequency is:
f' = f (v + vo) / (v − vs)
Use this sign rule: count a speed as positive when that party moves toward the other. Then:
- Observer moving toward the source: vo > 0, so the numerator grows.
- Source moving toward the observer: vs > 0, so the denominator shrinks.
- Moving apart: use a negative value for that speed.
All speeds are measured relative to the air, and v and vs, vo are in the same units.
Worked example
A source emits 500 Hz. Take v = 340 m/s.
- Source approaches a stationary observer at 20 m/s. Then f' = 500 × 340 / (340 − 20) = 531.25 Hz.
- The observer also walks toward the source at 10 m/s. Then f' = 500 × 350 / 320 = 546.875 Hz.
def doppler(f, v, v_obs_toward, v_src_toward):
# Speeds are positive when moving toward the other party.
return f * (v + v_obs_toward) / (v - v_src_toward)
print(doppler(500.0, 340.0, 0.0, 20.0)) # 531.25
print(doppler(500.0, 340.0, 10.0, 20.0)) # 546.875
print(doppler(500.0, 340.0, 0.0, -20.0)) # source receding: 472.222...Common errors
- Treating the two motions as symmetric. A moving source and a moving observer with the same speed give different frequencies, because the source changes the wavelength while the observer only changes the rate of meeting crests.
- Using the sign rule backwards. Always ask: is this party moving toward the other? If yes, the speed is positive.
- Subtracting the wrong way in the denominator. The source speed enters as v − vs, never v + vs, when the source approaches.
- Using relative speed between source and observer in place of each speed relative to the air.
Summary
The source's motion changes the wavelength, and the observer's motion changes the rate at which crests are met. Both are combined in f' = f (v + vo)/(v − vs), with each speed positive when moving toward the other party.
Exercise
A siren of frequency 600 Hz moves away from a stationary observer at 30 m/s. Take v = 330 m/s. What frequency does the observer hear?
Show answer
The source moves away, so vs = −30 m/s. f' = 600 × 330 / (330 + 30) = 600 × 330 / 360 = 550 Hz.
Exercise
An observer runs toward a stationary source of 400 Hz at 17 m/s. Take v = 340 m/s. What frequency is heard?
Show answer
The observer moves toward the source, so vo = +17 m/s and vs = 0. f' = 400 × (340 + 17) / 340 = 400 × 357 / 340 = 420 Hz.