Doppler Effect

Why a passing siren drops in pitch, drawn wave by wave. A source glides to the right, sending out a circular wavefront every beat; because it moves between beats, the fronts bunch up ahead of it into a shorter wavelength and higher pitch (tinted blue), and stretch out behind into a lower one (tinted red). Set the source speed, the observer speed, the emitted frequency and the medium, and read the shifted frequencies and wavelengths from f′ = f·(v ± vo)/(v ∓ vs). Push the source past the wave speed and the fronts collapse into a Mach cone — the makings of a sonic boom. It all runs on your device.

You are in the Physics lab.

Raise the speed toward Mach 1 and watch the wavefronts pile up ahead
Presets
Source frequency f₀440 Hz
Heard by observer (ahead)— Hz
Heard behind (receding)— Hz
Wavelength ahead— m
Wavelength behind— m
Mach number M0.58
The source's frequency never changes — only the one you hear. Each wave crest still leaves the source at the same steady rate. But because the source moves forward between crests, the ones sent ahead are packed closer together (shorter wavelength, higher pitch) and the ones sent behind are spread apart (longer wavelength, lower pitch). The shift follows f′ = f·(v ± vo)/(v ∓ vs) — the plus/minus for the moving observer, the minus/plus for the moving source. Reach Mach 1 and the source keeps pace with its own waves, which stack into a shock wave.

Reading the simulation

What the rings, the colours and the cone are telling you.

1

Why the rings bunch ahead and spread behind

Each ring is a wave crest, expanding at the wave speed from the exact spot the source sat when it left. Because the source keeps moving, every new ring starts a little further to the right, so the circles are no longer concentric — ahead of the source the moving centres crowd the rings into a shorter wavelength, and behind it they leave the rings stretched apart. A listener meets the crowded crests more often (higher pitch) and the stretched ones less often (lower pitch).

2

Blue means higher, red means lower

The half of every ring facing the way the source moves is drawn blue — that is the compressed, higher-pitch side, and the region ahead carries a faint blue wash. The trailing half is drawn red for the stretched, lower-pitch side. The observer's readout is tinted the same way: blue when the frequency it hears is above f₀, red when it drops below. Move the observer toward the source to push its reading further into the blue, or away to slide it toward red.

3

The Mach cone when the source outruns its waves

Raise the source speed toward the wave speed and the rings ahead squeeze together until, at Mach 1, the source rides the front of its own waves. Past that the crests can never get ahead, so they all touch a single V-shaped envelope trailing the source — the Mach cone, drawn in red with its half-angle set by sin θ = 1/M. The sudden pressure jump as that cone sweeps past a listener is heard as a sonic boom. Faster source, narrower cone.

How It Works

Crests emitted from a moving point, packed ahead and stretched behind.

1

Each crest starts where the source was

The source emits a wavefront at a steady rate, and each front expands outward at the wave speed from the exact spot the source occupied when it left. Because the source has moved on by the time the next front is emitted, the circles are no longer concentric — their centres march forward with the source.

2

Bunched ahead, stretched behind

Ahead of the source the moving centres crowd the fronts together, shortening the wavelength, so a listener there meets crests more often — a higher frequency. Behind the source the fronts are spread apart, lengthening the wavelength, so a listener there hears a lower frequency. The readouts apply the general Doppler relation f′ = f·(v ± vo)/(v ∓ vs) to each side: in the numerator take plus when the observer moves toward the source, minus when it moves away; in the denominator take minus when the source approaches, plus when it recedes. The wavelength readouts come straight from λ = (v ∓ vs)/f, and every value is scaled to the medium you pick — sound in air at 343 m/s or in water at 1480 m/s.

3

Catching up to the waves

As the source speed approaches the wave speed the fronts ahead squeeze into almost the same place and the approaching frequency shoots up. At exactly the wave speed — Mach 1 — the source rides the crest of its own waves, which pile into a single shock front; beyond it they trail as a Mach cone, heard as a sonic boom. Slide the speed up to see it happen.

What is the Doppler effect?
The Doppler effect is the change in the observed frequency of a wave when the source and the observer move relative to each other. As a source moves toward you, each successive wave crest is emitted from a little closer, so the crests arrive more often and the frequency you detect is higher; as it moves away, the crests are stretched out and the frequency drops. It happens with sound, light and any wave. This simulator shows the wavefronts bunching ahead of a moving source and spreading behind it.
Why does a passing siren or car change pitch?
As the vehicle approaches, the sound waves ahead of it are compressed into a shorter wavelength, so you hear a higher pitch. The instant it passes and starts moving away, the waves behind it are stretched to a longer wavelength and the pitch drops. The engine's actual frequency never changes — only the frequency that reaches your ears does, because the source is moving between the moments each crest is emitted. Set the source speed here and compare the "ahead" and "behind" readings to see the jump.
What is the Doppler effect formula?
The general Doppler formula is f′ = f · (v ± vo) / (v ∓ vs), where f is the source frequency, v is the wave speed, vo the observer speed and vs the source speed. In the numerator use plus when the observer moves toward the source and minus when it moves away; in the denominator use minus when the source approaches and plus when it recedes — the signs that raise the pitch sit closest together. This tool lets you set the source speed, the observer speed and the medium (sound in air at 343 m/s or water at 1480 m/s) and reads out both shifted frequencies and wavelengths at once.
What is a sonic boom or Mach cone?
When the source moves as fast as the waves themselves (Mach 1) it keeps pace with its own wavefronts, which pile up into a single sharp front. Faster still (supersonic), the fronts form a cone trailing the source — the Mach cone — and the sudden pressure jump as that cone sweeps past is heard as a sonic boom. Push the speed slider to Mach 1 or beyond in this simulator to watch the wavefronts collapse into a shock.

Teaching or blogging about waves and sound? You can embed this simulator on your own site free — one line of code, no sign-up.