Sub topic 12
The Doppler Effect for Sound
This chapter assumes you know v = fλ, the speed of sound in air, and the idea of relative motion along a straight line. It covers the formula for a moving source and a moving observer, the sign convention that avoids most errors, and the standard NEET problem types.
What the Doppler effect is
The Doppler effect is the change in the frequency an observer hears when the source, the observer, or both are moving relative to the medium. The source itself does not change its emitted frequency. The observer receives a different number of wavefronts per second.
Everyday example: an ambulance siren sounds higher while the ambulance approaches and lower after it passes.
Two facts drive everything in this chapter:
- The speed of sound v is fixed by the medium (air). Motion of the source or observer does not change it.
- The wavelength in the medium is set by the source's motion. The rate at which the observer meets wavefronts is set by the observer's motion.
Why the frequency changes
Let the source emit frequency f₀ and let the speed of sound be v.
Moving source, stationary observer
In one period T = 1/f₀ the wave travels a distance vT. If the source moves toward the observer at speed vₛ, it moves a distance vₛT in that time. The next wavefront starts closer to the previous one, so the wavelength in front of the source shrinks:
λ' = (v − vₛ)T = (v − vₛ)/f₀
The wave still travels at v, so the observer hears
f = v/λ' = f₀ · v/(v − vₛ)
If the source moves away, the wavelength grows to (v + vₛ)/f₀ and f = f₀ · v/(v + vₛ).
Moving observer, stationary source
The wavelength stays λ = v/f₀. If the observer moves toward the source at speed vₒ, the relative speed at which wavefronts reach the observer is v + vₒ. So
f = (v + vₒ)/λ = f₀ · (v + vₒ)/v
If the observer moves away, the relative speed is v − vₒ and f = f₀ · (v − vₒ)/v.
The general formula and a sign convention
When both move along the line joining them, the two results combine:
f = f₀ · (v ± vₒ)/(v ∓ vₛ)
Use this rule to choose signs without memorizing cases:
- Draw the line from the observer to the source and call the direction from the observer toward the source positive.
- Take the speed of sound as positive in the direction from source to observer, which is the negative direction on this line when the observer is at the origin. Equivalent and simpler: use the version below.
- In the numerator, vₒ is added if the observer moves toward the source and subtracted if it moves away.
- In the denominator, vₛ is subtracted if the source moves toward the observer and added if it moves away.
The memory aid is: motion toward the other party raises the frequency. Toward-observer motion adds in the numerator (bigger). Toward-observer motion of the source subtracts in the denominator (smaller denominator, bigger result).
| Situation | Formula | Effect on f |
|---|---|---|
| Source approaches, observer at rest | f₀ · v/(v − vₛ) | Higher |
| Source recedes, observer at rest | f₀ · v/(v + vₛ) | Lower |
| Observer approaches, source at rest | f₀ · (v + vₒ)/v | Higher |
| Observer recedes, source at rest | f₀ · (v − vₒ)/v | Lower |
| Both approach each other | f₀ · (v + vₒ)/(v − vₛ) | Higher |
| Both move in the same direction, source behind and chasing | f₀ · (v − vₒ)/(v − vₛ) | Depends on speeds |
Worked example in code
The function below applies the sign rule directly. Speeds are signed along the direction from the observer toward the source being positive for the source's motion toward the observer, so you pass plain "toward" and "away" flags instead of signs.
def doppler(f0, v, vs=0.0, vo=0.0, source_toward=True, observer_toward=True):
"""Observed frequency for motion along the line joining source and observer.
vs, vo are speeds (non-negative). The flags say whether each one
moves toward the other party.
"""
numerator = v + vo if observer_toward else v - vo
denominator = v - vs if source_toward else v + vs
return f0 * numerator / denominator
v = 340.0
print(doppler(400.0, v, vs=20.0)) # source approaches
print(doppler(400.0, v, vs=20.0, source_toward=False)) # source recedes
print(doppler(400.0, v, vo=10.0)) # observer approaches
print(doppler(400.0, v, vs=20.0, vo=10.0)) # both approachThe outputs are about 425.0 Hz, 377.8 Hz, 411.8 Hz and 437.5 Hz. Check the first by hand: 400 × 340/320 = 425 Hz.
Worked example: a train whistle
A train blows a whistle of 500 Hz and moves at 30 m/s. Take v = 330 m/s. A person stands on the platform.
Approaching:
f = 500 × 330/(330 − 30) = 500 × 1.1 = 550 Hz
Receding:
f = 500 × 330/(330 + 30) = 500 × 0.9167 ≈ 458.3 Hz
The change in pitch as the train passes is 550 − 458.3 ≈ 91.7 Hz. Notice the approach and recession are not symmetric: the shift upward (50 Hz) is larger than the shift downward (about 41.7 Hz), because vₛ sits in the denominator.
Common errors
- Adding speeds to the speed of sound. Never replace v by v + vₛ. The speed of sound belongs to the medium.
- Wrong sign in the denominator. For an approaching source, the denominator is v − vₛ. Using v + vₛ gives the frequency for a receding source.
- Treating source and observer motion as symmetric. The formulas differ. For small speeds the shifts are nearly equal, but exactly equal speeds do not give equal frequencies.
- Forgetting wind. If air moves at speed w along the line, add w to v in the direction of the wind's motion relative to the source-to-observer direction. Use v + w if the wind blows from source to observer and v − w if it blows the other way. NEET problems that mention wind usually intend this.
- Mixing up emitted and heard frequency. f₀ is what the source emits. f is what the observer hears.
Edge cases and checks
Source moving at or above the speed of sound
If vₛ = v, the denominator v − vₛ becomes zero and the formula breaks down. Wavefronts pile up into a shock wave. The formula applies only for vₛ < v. NEET problems stay in this range.
Motion not along the line of sight
The formula uses the component of velocity along the line joining source and observer. If the source moves at angle θ to that line, replace vₛ by vₛ cos θ. When a source passes an observer at a right angle, the instantaneous component is zero and the observer hears f₀ at that moment.
Reflection from a moving surface
When sound reflects from a moving wall or vehicle, treat the problem in two steps. First, the wall acts as a moving observer receiving f₁. Then the wall acts as a moving source emitting f₁ toward the original listener. For a source at rest and a wall approaching at speed u:
f₁ = f₀ · (v + u)/v f₂ = f₁ · v/(v − u) = f₀ · (v + u)/(v − u)
The reflected frequency is higher than the original. This is the principle behind speed-measuring radar and ultrasound blood-flow meters, with the appropriate wave speed.
Small-speed approximation
When vₛ ≪ v, expand 1/(1 − vₛ/v) ≈ 1 + vₛ/v. Then the fractional change is
Δf/f₀ ≈ vₛ/v
This approximation is useful for quick estimates, but use the exact formula when the answer choices are close together.
Link to beats
A moving reflector or two sources moving differently produce two nearby frequencies at the listener. The listener hears beats at |f₁ − f₂|. For example, a source at 400 Hz and its echo from an approaching wall can be combined using the reflection formula above, and the beat frequency follows from the difference. This connects the Doppler effect to the previous chapter.
Quick comparison with light
The Doppler effect for sound depends on whether the source or the observer moves relative to the air, so the two cases give different formulas. For light there is no medium, and only the relative velocity matters. Do not carry the sound formulas over to light problems.
Solving procedure for NEET problems
- Write down f₀, v, vₛ and vₒ, and note any wind.
- Draw a line from source to observer and mark each velocity with an arrow.
- Decide for each party whether the motion is toward or away from the other.
- Put vₒ in the numerator with + for toward and − for away.
- Put vₛ in the denominator with − for toward and + for away.
- Compute, then check the direction of the change against intuition. Approach should raise the pitch.
Exercise
A source emits 600 Hz and moves at 20 m/s toward a stationary observer. Take the speed of sound as 340 m/s. Find the frequency heard, and the frequency heard after the source passes and moves away at the same speed.
Show answer
Approaching: f = 600 × 340/(340 − 20) = 600 × 340/320 = 637.5 Hz. Receding: f = 600 × 340/(340 + 20) = 600 × 340/360 ≈ 566.7 Hz.
Exercise
An observer moves at 17 m/s toward a stationary source of frequency 340 Hz. The speed of sound is 340 m/s. What frequency does the observer hear, and what is the wavelength of the sound in air?
Show answer
The wavelength is unchanged by observer motion: λ = v/f₀ = 340/340 = 1 m. The frequency is f = 340 × (340 + 17)/340 = 357 Hz.
Exercise
A car moving at 10 m/s toward a stationary wall sounds its horn at 500 Hz. Take v = 340 m/s. Find the frequency of the echo heard by the driver, and the beat frequency the driver hears if the horn is still sounding.
Show answer
The wall hears f₁ = 500 × 340/(340 − 10) = 500 × 340/330 ≈ 515.15 Hz. The wall acts as a stationary source of this frequency, and the driver is a moving observer approaching it: f₂ = 515.15 × (340 + 10)/340 ≈ 530.3 Hz. Beat frequency = 530.3 − 500 ≈ 30.3 Hz.