Skip to main content
Virtual Laboratory
Physics Simulations Free · No Account Free & source-available · CC BY-NC-SA 4.0

Doppler Effect

The Doppler effect is the shift in observed frequency caused by relative radial motion between a source and an observer, while the source's natural frequency stays constant. For sound in air, f_obs = f₀(c ± v_o)/(c ∓ v_s): source motion alters wavelength, whereas observer motion changes relative wave speed. Vary speeds and microphone position below.

Doppler Effect — 3D Bench Preview

Interactive 3D Lab Preview

Runs right on this page in fullscreen · No account required

  • Distinguish the source's natural frequency f₀ (fixed at lesson setting 440.0 Hz) from the observed frequency f_obs, and verify that placing a stationary source close to the microphone increases loudness without causing any frequency shift.
  • Derive and compare the two asymmetric sound mechanisms: a moving source compresses or stretches wavelength in air as λ' = (c ∓ v_s)/f₀, whereas a moving observer changes relative wave speed as c' = c ± v_o.
  • Analyze the roadside pass-by curve f_obs(x_s) at lesson setting h = 8.0 m—calculating approach values, the zero-shift instant at x_s = 0, and recession values—and apply the same principle to color Doppler ultrasound and galaxy redshift.

Press Esc or your browser Back button anytime to return to the guide.

Principle, Mechanism & Key Concepts

Doppler Effect

What You Will Investigate
Goal 01

Distinguish the source's natural frequency f₀ (fixed at lesson setting 440.0 Hz) from the observed frequency f_obs, and verify that placing a stationary source close to the microphone increases loudness without causing any frequency shift.

Goal 02

Derive and compare the two asymmetric sound mechanisms: a moving source compresses or stretches wavelength in air as λ' = (c ∓ v_s)/f₀, whereas a moving observer changes relative wave speed as c' = c ± v_o.

Goal 03

Analyze the roadside pass-by curve f_obs(x_s) at lesson setting h = 8.0 m—calculating approach values, the zero-shift instant at x_s = 0, and recession values—and apply the same principle to color Doppler ultrasound and galaxy redshift.

Why does an approaching ambulance siren sound high-pitched and then drop suddenly in pitch the moment it passes you—is the siren itself changing frequency?

Stand beside a straight road and listen with your eyes closed: every passing siren glides from a higher pitch to a lower one. On our 3D acoustic track, the chrome tuning fork on the cart vibrates at a constant lesson setting of 440.0 Hz, and its digital readout never changes. Yet when the cart drives toward the microphone at 50 m/s (lesson setting), the wavefronts ahead crowd into tight crescents and the roadside microphone measures 515.9 Hz coaxially; directly abreast of the microphone the reading passes through 440.0 Hz, and as the cart speeds away it drops to 383.6 Hz.

The source's natural vibration frequency never changes: source motion squeezes or stretches the wavefront spacing in air, observer motion speeds up or slows down the rate of crossing crests, and only the radial velocity along the line of sight sets the shift.
Eccentric Wavefronts (c = 340 m/s, f₀ = 440 Hz, setting)v_s = 50 m/s →Rear λ'' = 0.886 mFront λ' = 0.659 mCoaxial 515.9 HzRoadside h = 8 m (θ = 90° → 440.0 Hz)True ratio v_s/c = 50/340 · λ₀ = 0.773 mRoadside h = 8 m Curve f_obs(x_s)515.9440.0383.6x_s = 0 (Δf = 0)Approach 509.6 HzRecede 387.1 Hz−20 m0 m+20 mDashed: far limits 515.9 / 383.6 HzS-curve transition · v_r = 0 abreast
2D Visual Guide & Diagram — Doppler Effect

Cause-and-Effect Chain

01 Source Motion Compresses Wavelength
Condition: A cart with natural frequency f₀ = 440 Hz moves at speed v_s through still air (lesson setting c = 340 m/s)

During each period T₀ = 1/f₀, the source advances by v_s·T₀, shrinking the crest spacing ahead to λ' = (c − v_s)/f₀

→ More complete waves reach a stationary observer each second, giving f_obs = f₀·c/(c − v_s) > f₀
02 Observer Motion Raises Relative Wave Speed
Condition: The source stays at rest (concentric wavelength λ₀ = 0.773 m in this simulation), while the observer moves toward it at v_o

The wavelength in air stays unchanged, but the sound wave's speed relative to the observer rises to c' = c + v_o

→ The observer crosses crests in less time, giving f_obs = f₀·(c + v_o)/c > f₀ (numerator shift rather than denominator)
03 Roadside 2D Radial Projection
Condition: An observer sits at perpendicular offset h = 8.0 m (lesson setting) as the cart travels from x_s = −20 m to +20 m

Only the radial velocity component v_s·cosθ along the line of sight shifts frequency; directly abreast at x_s = 0, θ = 90° so cosθ = 0

→ Measured frequency traces a smooth S-shaped drop: above 440 Hz approaching, exactly 440 Hz abreast, and below 440 Hz receding

Core Formulas & Quantitative Relations

Wavelength Ahead of and Behind a Moving Source
λ' = (c − v_s) / f₀ (ahead, compressed) , λ'' = (c + v_s) / f₀ (behind, stretched)

The speed of sound in air depends only on properties of the air medium such as temperature, never on the source speed v_s (lesson settings: c = 340.0 m/s, a typical value near 15 °C, and natural frequency f₀ = 440.0 Hz).

General Coaxial Doppler Effect Equation
f_obs = f₀ · (c ± v_o) / (c ∓ v_s)

Use '+' in the numerator when the observer moves toward the source and '−' in the denominator when the source approaches the observer (approaching always raises frequency; receding always lowers it).

Instantaneous Roadside Observed Frequency (2D)
f_obs = f₀ · (c + v_o·cosθ) / (c − v_s·cosθ) , cosθ = (x_o − x_s) / √[(x_o − x_s)² + h²]

At the instant the cart passes directly abreast of the roadside microphone (x_s = x_o), cosθ = 0, so Δf = 0 Hz and f_obs = f₀ = 440.0 Hz (perpendicular offset h = 8.0 m is a lesson setting).

Moving Source vs. Moving Observer: Why Does the Same 34 m/s Approach Differ by 4.9 Hz?

Students often assume the Doppler shift depends only on relative speed v_rel. Because air acts as the medium for sound, under our lesson setting c = 340.0 m/s a source approaching at 0.1c (34 m/s) divides by 0.9 in the denominator, whereas an observer approaching a still source at 0.1c (formula extrapolation) multiplies by 1.1 in the numerator—producing a clear split at high speed.

  • Moving source (v_s = 34 m/s, v_o = 0): front wavelength compresses to 0.695 m, giving f_obs = 440 × 340 / (340 − 34) = 488.9 Hz.
  • Moving observer (v_s = 0, v_o = 34 m/s): wavelength in air stays 0.773 m, giving f_obs = 440 × (340 + 34) / 340 = 484.0 Hz.
Case 1 · Source v_s = 34 m/s (0.1c), still observerStill observer (v_o = 0)Compressed (0.1c): λ' = (340 − 34)/440 = 0.695 mf_obs = 440 × 340 / 306 = 488.9 HzCase 2 · Observer v_o = 34 m/s (extrap.), still sourceApproaching 34 m/sSame λ₀ = 0.773 m · Relative speed 374 m/sf_obs = 440 × 374 / 340 = 484.0 Hz

Concept Breakdown

01

A higher siren pitch does not mean the source vibrates faster—nor does it happen simply because the vehicle is close.

Constant Natural Frequency and Why Proximity Alone Causes No Shift

The speed of sound c in uniform air (lesson setting 340.0 m/s, typical near 15 °C) depends only on the air's temperature and elastic properties, not on how fast the source moves. Likewise, the tuning fork's natural frequency (lesson setting f₀ = 440.0 Hz) is fixed by its own physical structure. When both the cart and the roadside microphone are at rest (v_s = 0, v_o = 0), moving the cart along the track from |x_s| = 15 m to a parked spot near the front at |x_s| = 2.0 m (at roadside offset h = 8.0 m, leaving a line-of-sight distance of √(2² + 8²) ≈ 8.25 m) raises the spherical wave's amplitude and loudness, yet the crest spacing stays locked at λ₀ = c/f₀ ≈ 0.773 m. Exactly 440.0 complete waves strike the microphone diaphragm each second, so the Doppler shift is strictly 0.

Try in the 3D bench: In the 3D bench, turn on the buzzer, switch to Parked mode, and drag the cart along the track to |x_s| ≤ 4 m. Confirm that f₀ stays locked at 440.0 Hz and Δf reads 0.0 Hz.
02

Mechanical sound waves travel through air, so a source chasing its own waves is physically different from an observer running into them.

Eccentric Wavefronts: Wavelength Compression vs. Relative Wave Speed

When the cart moves rightward at speed v_s, each spherical wavefront emitted one period T₀ earlier expands outward at speed c while the source itself advances by Δx = v_s·T₀. Successive wavefront centers shift rightward into eccentric circles: crest spacing compresses ahead to λ' = cT₀ − v_sT₀ = (c − v_s)/f₀ and stretches behind to λ'' = (c + v_s)/f₀. By contrast, when the source stays still and an observer runs toward it at v_o, the wavefronts in air remain evenly spaced concentric circles (λ₀ = 0.773 m), but the wave's speed relative to the observer rises to c' = c + v_o, yielding f_obs = c'/λ₀ = f₀(c + v_o)/c. When both approach each other simultaneously, the two factors multiply: f_obs = f₀(c + v_o)/(c − v_s).

Try in the 3D bench: In Coaxial mode, test v_s = 50 m/s (515.9 Hz) and v_o = +15 m/s (459.4 Hz) separately and watch whether the 3D wavefront rings become eccentric or remain concentric.
03

The abrupt pitch drop as a high-speed train rushes past you occurs because cosθ crosses from positive through 0 to negative.

Zero Shift Directly Abreast, Color Doppler Ultrasound, and Galaxy Redshift

At the lesson setting roadside offset h = 8.0 m, the instantaneous frequency depends not on total cart speed v_s, but on its radial component v_r = v_s·cosθ along the source–microphone line. Far ahead on the approach, θ → 0° and cosθ approaches +1, so f_obs nears its upper limit. At the exact instant the cart passes directly abreast at x_s = 0, velocity is perpendicular to the line of sight (θ = 90°), so v_r = 0, f_obs equals 440.0 Hz, and the curve has its steepest downward slope. Past x_s = 0, cosθ turns negative and frequency falls toward the receding asymptote. The same physics spans sound and light: medical color Doppler ultrasound (CDFI) sends ultrasound into blood vessels, measures echo shifts from moving red blood cells, and maps flow with BART false color (Blue Away, Red Toward); astronomers measure how the hydrogen Hα line (laboratory rest wavelength 656.3 nm) shifts toward longer red wavelengths (redshift) in distant galaxies, providing evidence of cosmic expansion.

Try in the 3D bench: In Road h=8m mode, run the cart at 50 m/s to trace the full S-curve, then click Ultrasound & Redshift (or the 3D pod on the right of the bench) to inspect BART blood-flow color coding and galaxy Hα redshift.

Reference & Comparison Table

Quantitative Comparison Across Motion Setups under Lesson Settings c = 340.0 m/s (typical near 15 °C), f₀ = 440.0 Hz, and h = 8.0 m (Note: v_o = +34.0 m/s is a formula extrapolation beyond the 3D bench observer slider range of ±15 m/s)
Experimental Setup (Lesson Setting)Source Speed v_s (m/s)Observer v_o (m/s)Wavelength λ'/λ'' (m)Observed Frequency f_obs (Hz)Doppler Shift Δf (Hz)
Parked near microphone (|x_s| = 2 m)0.00.00.773440.00.0
Coaxial source approach (0.1c, front λ')34.00.00.695488.9+48.9
Observer toward still source (0.1c extrapolation)0.0+34.00.773484.0+44.0
Fast coaxial source approach (front λ')50.00.00.659515.9+75.9
Roadside h = 8 m abreast instant (x_s = 0, front λ')50.00.00.659440.00.0
Fast coaxial source recession (rear λ'')50.00.00.886383.6−56.4
Common Misconceptions

Common Misconceptions

When a sound source speeds toward me, do its natural vibration frequency f₀ and the speed of sound in air increase?

No. The source's natural frequency f₀ (lesson setting 440.0 Hz) is fixed by the vibrating fork itself, and the speed of sound c (lesson setting 340.0 m/s) is set by the air medium—neither changes with cart speed. Only the observed frequency f_obs increases because compressed wavefronts arrive faster. Verify this in Step 3 by clicking the tuning fork on the moving cart.

If a moving sound source keeps getting closer to me, does the pitch I hear keep climbing higher and higher?

No. During constant-speed coaxial approach, the observed frequency stays at one steady elevated value even as distance shrinks. Along a roadside offset (lesson setting h = 8 m), the angle θ actually increases toward 90° as the cart approaches the closest point, so cosθ shrinks and the observed pitch drops rather than rises. Watch this live on the f_obs(x_s) curve in Step 4.

Is the Doppler frequency shift largest at the exact moment a passing cart is closest to the roadside microphone (lesson setting h = 8 m, x_s = 0)?

The exact opposite happens. Sound loudness peaks at x_s = 0, but the cart's velocity is perpendicular to the line of sight (θ = 90°), making the radial velocity component 0. At that instant the Doppler shift Δf is exactly 0 Hz and f_obs equals 440.0 Hz. Confirm the crossing of the vertical dashed line in Step 4.

Practice Quiz

Test your understanding with 6 diagnostic questions

Check concepts, graphs, and experimental error reasoning with immediate feedback for every choice.

Embed & Source Availability

Embed this simulation

Paste this iframe snippet into your non-commercial course page or learning platform.

Free & Source-Available (CC BY-NC-SA 4.0)

This simulation is licensed under CC BY-NC-SA 4.0 for non-commercial educational use, embedding, and adaptation with attribution.

Browse All 159 Free Labs →
Sources, Revision & Feedback

Sources, Revision & Feedback

Quiz →