Sub topic 9
The Doppler effect: why pitch shifts
This chapter assumes you know that frequency is the number of cycles per second, that wavelength is the distance between neighboring crests, and that v = f λ links them. It also assumes you know sound travels through air at a speed set by the air, about 343 m/s at 20 °C. The next chapter turns the ideas here into a formula with sign conventions. This chapter builds the physical picture so that the formula makes sense.
The observation
An ambulance siren sounds higher while the ambulance approaches and lower after it passes. The siren produces the same tone the whole time. Only the pitch you hear changes.
That difference is the point of the chapter. The source emits a fixed number of cycles per second. The listener receives a different number of cycles per second, because of how the motion changes the spacing or the arrival rate of the crests. This is the Doppler effect. The observed frequency differs from the emitted frequency whenever the source and the observer move relative to each other along the line joining them.
The wavefront picture
Think of the source as a device that releases one crest every period T = 1/f. Once a crest is released, it travels outward through the air at speed v. The speed of a sound wave depends on the medium, not on how the source moves. A moving source cannot make the sound it has already emitted travel faster.
Now let the source move toward the listener at speed v_s. Between two successive crests, a time T passes. In that time:
- The first crest travels a distance
v Tthrough the air. - The source moves forward a distance
v_s Tin the same direction. - The second crest starts from a point
v_s Tcloser to the listener.
The gap between the two crests in the air ahead of the source is therefore (v − v_s) T. That gap is the wavelength ahead of the source. It is shorter than the normal wavelength v T. The listener is stationary, and the crests move past at speed v. A shorter wavelength at the same speed means more crests per second, so the frequency is higher.
Behind the source, the next crest starts v_s T farther away. The wavelength there is (v + v_s) T, which is longer, so the frequency is lower.
A moving observer is a different mechanism
Suppose instead that the source is still and the listener moves toward it. The wavelength in the air is now the ordinary v/f, because the source did not move. What changes is the rate at which the listener meets crests. The listener walks into the oncoming crests, so the crests pass at a relative speed of v + v_o, where v_o is the listener's speed. Dividing the relative speed by the unchanged wavelength gives a higher frequency.
The two cases have different causes:
| Case | What changes | What stays fixed |
|---|---|---|
| Moving source | The wavelength in the air | The speed of the waves relative to the air |
| Moving observer | The speed of the crests relative to the listener | The wavelength in the air |
Because the cause differs, the two cases do not give identical shifts at the same speed. A source approaching at 30 m/s produces a slightly larger shift than an observer approaching at 30 m/s. The reason is that the air is a special reference frame for sound. Sound is a disturbance of the medium, and the medium defines what "the wave speed is v" means. Whether the source or the observer moves is therefore physically distinguishable. Both the source speed and the observer speed are measured relative to the air.
Checking the picture with code
The picture predicts numbers. The following script does not use any Doppler formula. It computes the emission time and arrival time of each crest, then measures how many crests arrive per second.
V = 343.0 # speed of sound in m/s
def arrival_time(n, f_source, v_source, start_distance):
"""Arrival time at a stationary listener of crest number n.
The source starts start_distance metres from the listener and moves
toward the listener at v_source (negative means moving away).
"""
t_emit = n / f_source
distance_at_emission = start_distance - v_source * t_emit
return t_emit + distance_at_emission / V
def observed_frequency(f_source, v_source, start_distance=300.0, n_crests=1000):
t_first = arrival_time(0, f_source, v_source, start_distance)
t_last = arrival_time(n_crests, f_source, v_source, start_distance)
return n_crests / (t_last - t_first)
print(f"approaching: {observed_frequency(440, 30):.1f} Hz") # about 482.2 Hz
print(f"receding: {observed_frequency(440, -30):.1f} Hz") # about 404.6 Hz
print(f"at rest: {observed_frequency(440, 0):.1f} Hz") # 440.0 HzEach crest leaves from a different place, so each one travels a different distance. Crest after crest, the travel time shrinks by a constant amount v_s T / v. The gap between arrivals shrinks from T to T (1 − v_s/v). That shorter gap is the higher pitch. The result agrees with the wavelength argument: f / (1 − v_s/v) is 440 / (1 − 30/343), which is about 482.2 Hz.
A moving observer follows from the same reasoning. The wavelength is 343/440 ≈ 0.7795 m. A listener walking toward the source at 30 m/s meets crests at relative speed 373 m/s. That gives 373 / 0.7795 ≈ 478.5 Hz, which is less than 482.2 Hz, the value for a moving source of the same speed.
What changes and what does not
It is easy to mix up the quantities, so keep them separate.
- The source frequency does not change. The siren emits 440 cycles per second throughout.
- The wave speed does not change. It depends on the medium. Source motion does not add to it.
- The wavelength and the received frequency change. These are the quantities that shift.
- The loudness changes for a separate reason. Intensity falls with distance, as an earlier chapter showed. An approaching siren gets louder because the distance shrinks, not because of the Doppler effect. The two effects happen at the same time but have different causes.
A useful check follows from this. The Doppler shift depends on the ratio of the motion speed to the sound speed. A walking cyclist at 5 m/s shifts a bell's pitch by only about 1.5%, which most listeners barely notice. A car at 30 m/s shifts it by roughly 9%, which is clear to the ear. A shift of about 6% is a semitone in music, so a passing car sounds more than a semitone sharper when it approaches and more than a semitone flatter when it recedes.
Only motion along the line of sight counts
The shift depends on how fast the distance between source and listener is changing, not on the source's speed alone. If a car drives past you on a straight road, the component of its velocity along the line to you changes continuously:
- Far away on approach, the car moves almost directly toward you, so the shift is nearly the full amount.
- As the car draws level, its velocity points sideways relative to the line of sight, so the shift fades toward zero.
- After it passes, it moves almost directly away, so the shift is nearly the full downward amount.
This is why a passing car gives a smooth glide in pitch rather than an instant jump. A listener standing very close to the road hears a faster glide than a listener far from it. A source moving in a circle at constant speed, such as a whistle on a swung cord, produces a pitch that rises and falls repeatedly. At no moment does a perfectly sideways motion produce a first-order shift.
Common errors
- Saying the source "speeds up" the sound. The sound travels at
vin the air regardless of source motion. The source changes the spacing of crests, not their speed. - Treating a moving source and a moving observer as interchangeable. They give different shifts at the same speed, as the code above showed (482.2 Hz against 478.5 Hz). They agree only approximately when the speed is small compared with
v. - Confusing pitch with loudness. A source that approaches gets louder and higher at once. The loudness comes from the inverse-square law, and the pitch comes from the Doppler effect.
- Expecting a shift for sideways motion. A source circling a listener at a constant distance produces no steady shift for the listener at the center.
- Forgetting the medium. Wind carries the air, and the air is the reference frame for sound. A source moving at 30 m/s in still air differs from a source stationary in a 30 m/s wind. Quantities in the formula are measured relative to the air.
Edge cases and limits
The wavefront picture has limits worth knowing now.
- Source speed close to
v. The wavelength ahead is(v − v_s) T, which approaches zero asv_sapproachesv. The crests pile up ahead of the source, and the observed frequency becomes very large. This leads to the shock waves in a later chapter. - Source speed above
v. The source outruns its own sound. Ahead of the source there is no sound before it arrives, so the simple picture of a wave stream ahead of the source fails. The wavefronts form a cone instead. - Light. Light also shows a Doppler shift, but it needs no medium. Only the relative speed of source and observer matters, so the asymmetry between moving source and moving observer disappears. This chapter covers sound only, where the medium matters.
- Non-uniform motion. If the source accelerates, the wavelength ahead changes from crest to crest, so the heard pitch drifts continuously. The simulation above handles this if you replace the constant-speed emission position with the actual position at each emission time.
Preparing for the formula
You now have all the ingredients for the quantitative result. For a moving source, the wavelength ahead is (v − v_s)/f. For a moving observer, the closing speed is v + v_o. Dividing closing speed by wavelength gives the general result, and the next chapter does this carefully, including the sign rules for motion toward and away.
Exercise
A stationary source emits 500 Hz in air where the speed of sound is 340 m/s. A listener walks directly toward it at 17 m/s. Using the crest-meeting picture, find the wavelength in the air and the frequency the listener hears.
Show answer
The source is stationary, so the wavelength is v/f = 340/500 = 0.68 m. The listener meets crests at relative speed 340 + 17 = 357 m/s. The observed frequency is 357/0.68 = 525 Hz.
Exercise
A source emits 500 Hz in air where the speed of sound is 340 m/s, and moves at 17 m/s directly away from a stationary listener. Find the wavelength behind the source and the frequency the listener hears. Why is this not the same as a listener moving away from a stationary source at 17 m/s?
Show answer
The wavelength behind the source is (v + v_s)/f = (340 + 17)/500 = 0.714 m. The listener hears 340/0.714 = 476 Hz (about 476.1). For a listener moving away from a stationary source, the wavelength stays 0.68 m and the closing speed is 340 − 17 = 323 m/s, giving 323/0.68 = 475 Hz. The values differ because a moving source changes the wavelength in the air, while a moving observer changes only the rate of meeting crests. The air is the reference frame for sound, so the two cases are physically different.