Who decides the pitch?
An ambulance races toward you with its siren on, passes, and the pitch suddenly drops. Everybody has heard it.
But stop and think for a moment. The siren on the ambulance makes the same tone the whole time; the driver hears no change at all. Yet you, standing at the roadside, hear a higher note and then a lower one. So who decides the pitch of a sound?
This is the Doppler effect. Oddly enough, the man who first answered this question with a formula wasn't thinking about sirens at all; he was trying to explain the colors of stars. And if we make the source faster and faster, until it outruns its own sound, something even more dramatic happens: a shock wave. In this simulation we'll draw every "crest" of sound the source sends out, one by one, and see the answer with our own eyes.
The air carries the crests
Sound is a pressure wave in air. The source pushes and pulls on the air times a second. Let's follow the high-pressure "crests".
Here is the key point. Once a crest has left the source, it spreads out at the speed of sound , relative to the air, centered on the spot where it was emitted. What the source does afterward no longer matters. The air carries the sound, not the source.
Doppler himself explained the idea with a ship at sea. A ship heading into the waves meets them more often than a ship lying still, and a ship running with the waves meets them less often. The waves haven't changed at all; only the rate of meeting them has. The same thing happens with sound.
Now let the source move to the right at speed , sending out a crest every period . By the time seconds have passed, the first crest has traveled to the right, but the source has also moved to the right, and that is where it emits the second crest. So ahead of the source the gap between crests, the wavelength, shrinks to , while behind the source it stretches to .
That's exactly what the circles on the screen show: their centers creep forward, so the crests bunch up in front and spread out behind. Someone waiting in front receives the bunched-up crests one after another, more of them per second, so they hear a higher pitch. The source didn't change its frequency; the way the crests arrive did.
Counting the crests that arrive
The wavelength in front is . How many crests per second does an observer at rest receive? The train of crests sweeps past at speed relative to the air, so in one second a length of the train goes by, and that length holds "length divided by spacing", , crests. That is the frequency the observer hears. In front of an approaching source and behind a receding one, respectively,
With Hz and m/s, which is half the speed of sound of 340 m/s, the observer in front hears 800 Hz and the one behind about 267 Hz. That's an octave up!
If the observer moves too, take the direction from source to observer as positive, call the observer's velocity and the source's velocity ; then . The train of crests, spaced apart, sweeps past the observer at speed , so the number met per second is divided by the wavelength. Walk against the flow of a conveyor-belt sushi counter and you meet plates faster, though the spacing between plates hasn't changed. Why aren't source and observer treated symmetrically? Because the air is a reference. A moving source changes the wavelength; a moving observer changes how often it meets the crests. Physically, different things happen. Lining up the four cases makes the asymmetry plain. Here is the source's speed and the observer's, both taken as positive numbers:
| What moves | Approaching | Receding | What changes |
|---|---|---|---|
| Source (speed ) | the wavelength in the air | ||
| Observer (speed ) | how often crests are met |
When the speeds are much smaller than the speed of sound, though, the difference all but disappears. Put ; then , and since with far smaller than , we have . The observer's formulas already have the form . So for it hardly matters which one moves: , and the fractional shift is the ratio of the speed to the speed of sound, . That is where Doppler's star idea went astray. Light travels at 300,000 km/s, and most stars move at a few tens of km/s, so is about one part in ten thousand, which on the 3776 m height of Mount Fuji comes to less than 40 cm. Worse, a star shines at a whole rainbow of wavelengths, so shifting everything slightly hardly changes its color at all.
Colored stars and a band on a train
Christian Doppler was born in 1803 in Salzburg, Austria, into a family of stonemasons. Too frail for the family trade, he studied mathematics and physics, but an academic job was hard to find; in 1835 he had decided to emigrate to the United States when a teaching post in Prague came through.
What caught his interest were double stars whose two members have contrasting colors, one reddish and one bluish. In May 1842 he read a paper to the Royal Bohemian Society of Sciences in Prague, reportedly to an audience of about five members, titled On the Colored Light of the Double Stars and Certain Other Stars of the Heavens. Light from an approaching star should shift toward blue, and from a receding star toward red, he argued, and that would explain the colors. His derivation of the frequency shift was right; his explanation of star colors was wrong. A star's color is set mainly by its surface temperature, and as we saw, motion changes it very little.
The Dutch scientist Christoph Buys Ballot set out to test it with sound. He didn't believe stars changed color by moving, but he had no way to test light, so he tried sound instead. In February 1845 he put musicians on an open railway car between Utrecht and Maarssen, but hail and snow kept them from playing properly. In June he tried again: the players held a steady note as the train ran, and trained musicians stationed along the line heard the note about a half step higher as it approached and a half step lower as it receded. Accounts differ on whether the listeners stood beside the track or on the station platforms. Well-trained ears served as the measuring instrument. Doppler was right about sound, yet Buys Ballot still refused to accept that light could change color.
For light, the French physicist Hippolyte Fizeau pointed out in 1848 what to look at instead: not the color, but the positions of the narrow lines in a star's spectrum. That suggestion would later become one of astronomy's most powerful tools.
Doppler's idea had a rough ride. In 1852, at the Academy of Sciences in Vienna, the mathematician Joseph Petzval attacked the theory, and after a public debate most members sided with Petzval. Doppler died of a lung disease in Venice the next year, aged 49. The majority went against him; but nature does not decide things by a show of hands. What began to turn opinion for light was William Huggins' report in 1868 of a shift in the spectral lines of Sirius, although his measurement is said to have been more persuasive than accurate. As more precise observations piled up, by the end of the nineteenth century measuring how fast stars move toward or away from us by the Doppler effect had become a routine part of astronomy.
Measuring speed from afar
The Doppler effect lets us measure how fast something is moving without touching it. Doppler radar bounces radio waves off raindrops or cars and reads their speed from the frequency shift of the echo; weather forecasts and speed enforcement both rely on it. In medicine, Doppler ultrasound uses the shift of ultrasound reflected by blood to display the direction and speed of blood flow in color.
Even the location on your phone traces back to Doppler. When the Soviet Union launched Sputnik 1 in 1957, William Guier and George Weiffenbach at the Johns Hopkins Applied Physics Laboratory listened to its radio signal and heard the frequency drift as the satellite passed. From the shape of that drift they could work out the satellite's whole orbit from a single pass. In 1958 the laboratory's Frank McClure turned the problem around: if you know the satellite's orbit, the shift tells you where the receiver is. The result, the Transit satellite navigation system, entered US Navy service in 1964 and was later used by civilian ships; it retired in 1996, its job taken over by GPS and other systems with many more satellites.
The same idea reaches out to the stars. A planet makes its star wobble slightly, which shifts the wavelength of the starlight a tiny amount. In 1995 a planet around the star 51 Pegasi was found this way, work recognized with the 2019 Nobel Prize in Physics.
Look farther out still. Light from receding galaxies is shifted to longer, redder wavelengths, and Hubble's finding that more distant galaxies recede faster became evidence for the expanding universe. Strictly, though, cosmological redshift comes from the stretching of space, which is not quite the same thing as the formula here.
Outrunning the sound
Now for the shock wave promised at the start.
What if gets close to ? The denominator goes to zero and heads to infinity. Indeed, at all the crests in front pile up at the source. That's the "sound barrier".
For the source overtakes its own sound. All the crests are left behind, and the curve enclosing them forms a cone: the Mach cone. Its angle follows from a picture.
The ratio is the Mach number. At Mach 2, and .
The first person to capture a shock wave was the Austrian physicist Ernst Mach. In 1887, working with the physicist and photographer Peter Salcher, he photographed the disturbances in the air around bullets flying faster than sound, and confirmed a conical shock wave with the bullet at its tip. The ratio of an object's speed to the speed of sound is called the Mach number in his honor.
To be honest, this model only tracks where the crests are. In a real shock wave the piled-up pressure crests steepen nonlinearly into a sudden jump. That detail is beyond this simulation.
Shock waves have even shaped the rules of the sky. In 1947 the American X-1 research aircraft became the first to exceed the speed of sound in level flight, and Concorde later carried passengers at about Mach 2. But its sonic boom led to restrictions on supersonic flight over land: a cone from a physics diagram ended up in aviation law. Now NASA is flying the X-59, an experimental aircraft shaped so that its shock waves don't merge into one big boom. It made its first flight in 2025 and its first supersonic flight in 2026. If it can turn the boom into a soft "thump" on the ground, NASA plans to ask people how they perceive it, to help regulators rethink the rules for supersonic flight over land.
Nor are Mach cones only for sound. Light travels at about three quarters of its vacuum speed in water, and electrons moving faster than that make a cone of light: the blue glow in the water around a nuclear reactor core. A boat also leaves a V-shaped wake, but in deep water its half-angle is about 19.5° whatever the boat's speed; water waves are dispersive, meaning their speed depends on wavelength, so the story differs from the sound cone. And along a Mach cone, many crests are superposed at once, about as extreme a case of the superposition principle as you'll find.
Run the source yourself
- At the start v = 170 m/s, which is Mach 0.50, and f = 400 Hz. In the panel, the "Front observer (source approaching)" and "Rear observer (source receding)" sections each show the formula value and the value "Counted from the wavefronts". Do they agree?
- Under "Listen and compare", press "🔊 Front" and "🔊 Rear" to hear what each observer hears. Mind the volume.
- Predict, then check: set "Source speed " to 340 m/s and press "➡ Run the source". What happens to the circles in front?
- Set v to 510 m/s, or Mach 1.5. A red Mach cone appears. Work out θ from sin θ = c/v first, then compare with the angle on screen.
- Set v to 680 m/s. Now the front observer receives the sound in reverse order. Why? Here's a hint: sound emitted later was emitted closer to the observer.
- Drag anywhere on the canvas and "Source motion" switches to "Drag to move", so the source follows your finger. Compare the wavefront patterns for slow and fast movements.
The fine print: motion is shown at 1/100 of real speed. Sound travels 340 m every second, so at real speed it would cross the 20 m-wide screen in 0.06 s. The speeds, frequencies and wavelengths shown are real values. The air is still, with no wind, and the sound does not weaken as it spreads.
All from one fact
Everything here followed from one fact: a sound crest spreads at speed relative to the air, centered where it was emitted, and the source's later motion doesn't matter. So the wavelength shrinks to in front and stretches to behind, and a stationary observer hears . At the crests pile up, and for they form a Mach cone with .
Doppler's idea missed its original target, the colors of stars. But its core, that a frequency shift reveals a speed, was right, and it now measures the motion of stars and galaxies, rain clouds and blood, and once guided ships by satellite. Sometimes a correct principle survives the failure of its first application.
A last question: the two "approaching" formulas in the table give almost the same value at low speeds. But as the speed nears the speed of sound, the approaching source's pitch heads to infinity, while an observer rushing in at the speed of sound hears only . What does the air have to do with that difference?
Sources and further reading
- D. D. Nolte, "The fall and rise of the Doppler effect" (Physics Today, 2020)
- Doppler experiment by Buys Ballot, 160 years ago (Royal Netherlands Meteorological Institute KNMI, in Dutch)
- NASA's X-59 Completes First Flight, Prepares for More Flight Testing (NASA, 2025)
- NASA's X-59 Aircraft Flies Supersonic for First Time (NASA, 2026)
- The Nobel Prize in Physics 2019 (Nobel Foundation)
Further reading (encyclopedia):