Doppler Effect Simulator
Visualize sound waves from a moving source. Adjust source speed and observe how frequency shifts for approaching and receding observers.
About the Doppler Effect
The Doppler effect is the change in frequency of a wave observed by someone moving relative to the wave source. When the source approaches an observer, wavefronts pile up and the observed frequency is higher. When the source recedes, wavefronts spread out and the observed frequency is lower.
Key Variables
| Symbol | Name | Unit | Description |
|---|---|---|---|
| f₀ | Source frequency | Hz | Frequency emitted by the source at rest |
| f_obs | Observed frequency | Hz | Frequency detected by the observer |
| v_s | Source speed | m/s | Speed of the source (0 to <343 m/s) |
| v_o | Observer speed | m/s | Speed of observer (0 in this simulator) |
| v | Speed of sound | m/s | 343 m/s in air at 20°C |
| f_ahead | Frequency ahead | Hz | Frequency for observer in front of moving source |
| f_behind | Frequency behind | Hz | Frequency for observer behind moving source |
How Wavefronts Shift
The source emits one wavefront per period T = 1/f₀. If the source moves at speed v_s toward an observer, each successive wavefront is emitted from a position closer to that observer. The apparent wavelength ahead is compressed; behind, it is stretched.
Worked Example
A fire engine siren at f₀ = 800 Hz moves at v_s = 30 m/s (speed of sound v = 343 m/s):
As the engine passes, the observed pitch drops from 877 Hz to 736 Hz — a drop of 141 Hz, clearly audible.
The Sonic Boom
When the source speed equals the speed of sound (Mach 1), all wavefronts pile up at the front of the source. The denominator v − v_s → 0, so f_ahead → ∞. Exceeding Mach 1 creates a shock wave (sonic boom) — the source outruns its own wavefronts.
Key Formulas
Doppler Frequency (General)
Sign convention: v_o is positive when observer moves toward source; v_s is positive when source moves toward observer.
Stationary Observer — Source Moving Toward
Stationary Observer — Source Moving Away
Apparent Wavelengths
Mach Number
| Formula | Description | Notes |
|---|---|---|
| f_obs = f₀(v + v_o)/(v − v_s) | General Doppler formula | All speeds relative to medium |
| f_ahead = f₀ v/(v − v_s) | Observer ahead (source approaching) | f > f₀; higher pitch |
| f_behind = f₀ v/(v + v_s) | Observer behind (source receding) | f < f₀; lower pitch |
| λ = v/f | Apparent wavelength | Compressed ahead, stretched behind |
| M = v_s/v | Mach number | M < 1: subsonic; M = 1: sonic boom |
| v_sound = 343 m/s | Speed of sound in air at 20°C | Increases with temperature: v ≈ 331 + 0.6T |
Frequently Asked Questions
Why does a passing ambulance's siren change pitch?
As the ambulance approaches, its speed compresses wavefronts ahead, raising the observed frequency (higher pitch). Once it passes and recedes, wavefronts stretch behind it, lowering the observed frequency (lower pitch). The drop in pitch you hear corresponds to the difference f_ahead − f_behind.
Does the Doppler effect apply to light?
Yes. Light from stars moving away from us is redshifted (longer wavelength, lower frequency). Light from approaching stars is blueshifted. This is how astronomers measure galactic recession and expansion of the universe. For light, the relativistic Doppler formula must be used.
What happens at Mach 1 (source speed equals sound speed)?
At Mach 1, the formula f_ahead = f₀ v/(v − v_s) → ∞ because the denominator is zero. All wavefronts emitted by the source pile up at the same point. Exceeding Mach 1 creates a conical shock wave (Mach cone) and a sonic boom.
How does a radar speed gun use the Doppler effect?
The gun emits microwave pulses at a known frequency. These reflect off a moving car and return with a Doppler-shifted frequency. The frequency difference Δf = f_obs − f₀ is proportional to the car's speed, giving an accurate speed measurement.
How is Doppler ultrasound used in medicine?
Ultrasound waves are sent into the body and reflect off moving blood cells. The frequency shift of the reflected signal reveals the blood flow speed and direction. This is used to detect blockages, measure heart valve function, and monitor fetal blood flow.