Light Doppler & Redshift
The Doppler effect for light, a cornerstone of modern astrophysics and relativity, is visualized in this simulator. Unlike sound, light propagates as an electromagnetic wave in a vacuum, requiring a relativistic treatment. The core principle is that the observed frequency (or wavelength) of light shifts when the source and observer are in relative motion. For a source moving directly away from the observer, the light is redshifted (longer wavelength, lower frequency); motion toward the observer causes a blueshift. The simulator calculates this shift using the exact relativistic Doppler formula: f/f₀ = √[(1 - β)/(1 + β)], where β = v/c is the velocity as a fraction of the speed of light, f₀ is the emitted frequency, and f is the observed frequency. Redshift (z) is defined as z = (λ_observed - λ_emitted)/λ_emitted = (f₀/f) - 1. The tool contrasts this exact result with the non-relativistic, approximate formula Δλ/λ ≈ v/c, which is valid only for velocities much less than c. A key simplification is that it models motion directly along the line of sight (radial velocity). By adjusting the velocity slider, students see the precise mathematical relationship between v/c and z, observe how spectral lines shift in a simulated spectrum, and discover the dramatic failure of the linear approximation at relativistic speeds. This builds intuition for how astronomers measure the recessional velocities of galaxies and the expansion of the universe.
Who it's for: High school and introductory undergraduate physics or astronomy students studying waves, special relativity, or cosmology. It is also valuable for educators demonstrating the transition from classical to relativistic physics.
Key terms
- Relativistic Doppler Effect
- Redshift (z)
- Blueshift
- Radial Velocity
- Spectral Line
- Beta (β = v/c)
- Hubble's Law
- Special Relativity
How it works
For electromagnetic waves in vacuum, motion along the line of sight mixes space and time in a way that sound waves in air do not. The exact factor is relativistic; at everyday speeds it matches Δλ/λ ≈ v/c, which is why stellar radial velocities and the “Spectral Lines & Doppler” simulator use the same linear shift. At large β, only the relativistic formula stays valid — compare the cyan (linear-in-z) and amber lines above.
Key equations
Relativistic (source emits f₀, observer along ±x): f_obs/f₀ = √((1−β)/(1+β)) with β = v/c for receding source.
Redshift z = λ_obs/λ_emit − 1 = √((1+β)/(1−β)) − 1.
Non-relativistic limit: z ≈ β, f_obs/f₀ ≈ 1 − β.
Frequently asked questions
- Why is the formula for light different from the Doppler effect for sound?
- Sound requires a medium, and the equations depend on the motion of both source and observer relative to that medium. Light, as an electromagnetic wave in a vacuum, has no preferred medium. Its behavior is governed by the principles of special relativity, leading to a symmetric formula that depends only on the relative velocity between source and observer.
- What does a redshift of z=1 actually mean?
- A redshift of z=1 means the observed wavelength is twice the emitted wavelength (λ_obs = 2λ_emit). According to the relativistic formula, this corresponds to a source receding at 60% of the speed of light (v/c = 0.6). It is a direct observational indicator of cosmic expansion for distant galaxies.
- When is the approximate formula Δλ/λ ≈ v/c good enough to use?
- The linear approximation is accurate to within about 1% for velocities less than roughly 0.1c (30,000 km/s). For most terrestrial and solar system applications, this is sufficient. However, for distant galaxies and high-precision tests, the full relativistic formula is essential.
- Does this simulator show transverse Doppler or gravitational redshift?
- No. This model is simplified to only show the longitudinal (radial) Doppler effect for inertial motion in a vacuum. It does not include the transverse Doppler effect (from motion perpendicular to the line of sight) or gravitational redshift caused by strong gravitational fields, which are separate relativistic phenomena.
More from Waves & Sound
Other simulators in this category — or see all 31.
Room Reverberation (2D rays)
Specular rays in a shoebox plan; impulse response; RT60 vs Sabine. Absorption per bounce.
Active Noise Cancellation (1D)
Two tones same f: amplitudes and phase; RMS sum vs ideal π phase. Destructive interference demo.
Beam Modal Analysis (Euler–Bernoulli)
First three bending modes: λ from BC; f ∝ (λ/L)²√(EI/μ). Pinned, cantilever, clamped.
Group & Phase Velocity
Two-wave beat: ω(k)=ck+αk²; v_g=Δω/Δk vs v_p=ω̄/k̄; envelope vs carrier.
Organ Pipe (harmonic series)
Open–open vs stopped: f_n formulas; pressure shape; table of modes; Web Audio.
Sound Wave Visualizer
Real-time waveform and frequency spectrum from microphone.