Doppler Effect Simulator: How Motion Changes Sound Frequency

simulator intermediate ~10 min
Loading simulation...
f = 483 Hz — 10% higher than emitted

A 440 Hz source moving at 30 m/s toward a stationary observer produces an observed frequency of 483 Hz — a clearly audible upward shift of about a whole tone.

Formula

f_obs = f₀ × (c + v_observer) / (c + v_source)
λ_ahead = (c - v_source) / f₀
M = v_source / c (Mach number)

Waves in Motion

When an ambulance races past you, its siren noticeably drops in pitch — higher as it approaches, lower as it recedes. This frequency shift, predicted by Christian Doppler in 1842 and experimentally confirmed by Buys Ballot using trumpeters on a moving train, arises because the motion of the source compresses or stretches the wavefronts reaching the observer. The effect is fundamental to acoustics, optics, and cosmology.

The Doppler Equation

For sound waves in a medium, the observed frequency depends on both source and observer velocities relative to the medium. When the source approaches, it partially 'catches up' to its own wavefronts, compressing the wavelength and raising the frequency. The formula f = f₀(c + v_o)/(c + v_s) captures this asymmetry — the effect is stronger for source motion than for observer motion at the same speed.

Approaching Mach 1

As source velocity approaches the speed of sound, the wavefronts pile up dramatically. At exactly Mach 1, all fronts arrive at the same point, creating a singularity in the Doppler formula and a physical shock wave — the sonic boom. Beyond Mach 1, the source outruns its own waves, creating a Mach cone whose angle depends on the Mach number. This simulation visualizes the wavefront compression as you increase source speed.

Applications Everywhere

The Doppler effect enables remarkable technologies: Doppler ultrasound measures blood flow velocity in arteries, weather radar tracks storm rotation to detect tornadoes, police radar measures vehicle speed, and astronomical redshift measurements revealed the expansion of the universe. From medical imaging to cosmology, the simple principle that motion shifts frequency has transformed science and engineering.

FAQ

What is the Doppler effect?

The Doppler effect is the change in observed frequency of a wave when the source and observer are in relative motion. For sound, an approaching source compresses wavefronts (higher frequency) while a receding source stretches them (lower frequency). Named after Christian Doppler who predicted it in 1842.

What is the Doppler formula for sound?

f_observed = f_source × (c + v_observer) / (c + v_source), where c is the speed of sound. The sign convention matters: velocities are positive when source moves toward observer and observer moves toward source.

What happens at the speed of sound?

When the source reaches the speed of sound (Mach 1), all wavefronts pile up at the same point, creating a shock wave — the sonic boom. The Doppler formula diverges (infinite observed frequency), signaling the breakdown of the simple model.

How is the Doppler effect used in practice?

Doppler radar measures storm velocities, Doppler ultrasound measures blood flow, police radar guns measure vehicle speed, and astronomical redshift reveals galaxy recession velocities. It is one of the most widely applied principles in physics.

Sources

Embed

<iframe src="https://homo-deus.com/lab/acoustics/doppler-effect/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub