The Doppler effect explained
Everyone has heard it: the siren of a passing ambulance, the horn of a train rushing through a station, the whine of a race car that drops the moment it flashes past. The source plays the same note all the time; it is the motion that changes what you hear. This page explains why, gives the formulas for a moving source and a moving listener, tells the story of their discovery, and follows the effect past the speed of sound to the Mach cone and the sonic boom.
Sound waves, pitch and the speed of sound
Sound is a wave of pressure in the air: a vibrating string or loudspeaker pushes the air together and pulls it apart many times a second, and those compressions travel outwards. The number of crests a second is the frequency, which we hear as pitch, and the distance between them is the wavelength, λ = c/f. In air the speed of sound c depends only on the temperature, c = 331.3 √(1 + T/273.15) m/s: 331 m/s at 0 °C, 343 m/s at 20 °C, and 295 m/s in the −56 °C air at 18 km where Concorde cruised. Once sent, a sound wave travels at that speed through the air whatever the source does, and this is what makes the Doppler effect.
Christian Doppler and the trumpeters on the train
In 1842 the Austrian physicist Christian Doppler argued in Prague that the frequency of a wave must depend on the motion of its source, and suggested that this coloured the light of double stars. The stars move far too slowly for that, but the principle was right. In 1845 the Dutch scientist Christophorus Buys Ballot tested it with sound: musicians on an open railway car near Utrecht held a steady note while musicians with perfect pitch listened beside the track, and heard it higher as the train approached and lower as it left, as Doppler had predicted. In 1848 Hippolyte Fizeau showed how the effect shifts the lines in the spectra of stars.
The formula for a moving source
A source sends one crest every T = 1/f seconds. Between two crests it moves on by vT, so in front of it the crests are only (c − v)T apart and behind it (c + v)T. A listener in front therefore hears f′ = f c/(c − v), and one behind f′ = f c/(c + v). For a listener in any other direction only the part of the velocity along the line to them counts: f′ = f/(1 − v cos θ/c), with θ the angle between the source's motion and that line at the moment the sound was sent. A train horn of 311 Hz at 35 m/s (126 km/h) is heard at 346 Hz as it approaches and at 282 Hz as it leaves.
A moving listener is not the same
If the source stands still and you move towards it at v, the crests are their normal distance apart but you meet them more often, and you hear f′ = f (c + v)/c. At 30 m/s a moving source is heard 9.6 % higher, a moving listener 8.7 % higher; at the speed of sound the difference becomes dramatic, an infinitely high pitch against a doubled one. Both together give f′ = f (c + v_listener)/(c − v_source). The asymmetry comes from the air: what matters is how each moves through the medium that carries the sound. Light needs no medium, so its Doppler shift depends only on the relative speed, f′ = f √((1 + β)/(1 − β)) with β = v/c for an approaching source.
What a listener really hears
Because sound takes time to travel, you always hear the source as it was a moment ago: what reaches you now was sent at an earlier moment, the retarded time, when the source was somewhere else. That is why the drop in pitch comes slightly after the ambulance has passed you, and why its loudness peaks late too. Everything about the sound is squeezed or stretched by the same factor, not only its pitch: the rhythm of a two-tone siren or of a beeping lorry speeds up as it comes towards you and slows down as it leaves. The simulator finds, for each observer, the moment whose wavefront is passing them now: for a straight road a quadratic equation, for a circular track a search along the lap.
Faster than sound: the Mach cone
The Mach number M = v/c compares a speed with the speed of sound. As M approaches 1 the fronts in front of the source crowd ever closer and finally pile up into a single shock wave, the sound barrier that made aircraft shake and lose control until Chuck Yeager flew the Bell X-1 past Mach 1 on 14 October 1947. Faster still, the source outruns its own waves, and the wavefronts touch a cone behind it whose half-angle μ obeys sin μ = 1/M: 90° at Mach 1, 30° at Mach 2. The bow wave of a boat is a cousin of the Mach cone, and when a charged particle outruns light in water it glows blue with Cherenkov radiation, the Mach cone of light.
The sonic boom
The Mach cone sweeps over the ground for as long as an aircraft flies faster than sound, and everyone it passes hears a sonic boom: a sudden jump in pressure, usually a double bang, because the nose and the tail each make a shock and the pressure between them falls in a straight line, the N-wave. Concorde's boom raised the pressure by about a thousandth of an atmosphere in a split second, enough to rattle windows, so it flew faster than sound only over the sea. After the boom an observer hears two sounds at once: one sent while the aircraft was still approaching, and one sent later that arrives first, so it plays backwards. The crack of a rifle bullet is the boom of a small, fast object.
The Doppler effect at work
A police radar gun bounces microwaves off a car and measures its speed from the shift of the echo, and Doppler weather radar sees the winds inside a storm the same way. Doppler ultrasound measures how fast blood flows in an artery or listens to the heartbeat of a baby before birth. Horseshoe bats lower the pitch of their calls as they fly, so that the echo comes back at the pitch their ears hear best. In astronomy the shifts of spectral lines give the speeds of stars, reveal planets that make their star wobble, and show that distant galaxies are moving away from us: the redshift that led to the discovery that the universe is expanding.
Frequently asked questions
Does a siren get louder or higher as it approaches?
Both, but for different reasons. It gets louder because it comes nearer and its sound spreads over a smaller sphere. It sounds higher because of its motion, and that higher pitch stays the same all the way in as long as it comes straight at you; the pitch only drops as it passes. Off to the side, the pitch slides down gradually while it passes, while the loudness peaks.
Why don't I notice the Doppler effect when someone walks past me talking?
Because walking is slow compared with sound. At 1.5 m/s the pitch changes by 0.4 %, less than a tenth of a semitone, which is too little to notice in a voice. At 30 m/s, the speed of a car on a motorway, it is about 9 %, more than a semitone each way, and that is easy to hear.
Is the sound barrier a real barrier?
No wall is there, but as an aircraft nears Mach 1 the air in front can no longer move out of the way in time: shock waves form on the wings, the drag rises steeply and the controls can stop working. Early aircraft shook or dived out of control there. Once an aircraft built for it is through, the flow settles down and supersonic flight is smooth.
How does the simulator work out what each observer hears?
Every wavefront is a circle around the place where the source was when it sent it, growing at the speed of sound. For each observer and each moment the simulator finds every earlier moment whose wavefront is passing the observer now, and from the source's velocity at that moment the pitch it is heard at, f/(1 − v cos θ/c). On a straight road that is a quadratic equation, below Mach 1 always with one answer, above it with none before the cone arrives and two after; on a circular track it searches the lap. Nothing is approximated, so the numbers are those of real sound in air.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
Open the Doppler simulator