For sound, the wave travels through a medium (usually air) at a fixed speed v — around 340m s−1 in air. The IB data booklet provides both equations; your job is to pick the right one and, above all, the right sign.
Case 1 — source moving, observer stationary
f′=fv±usv
- Source moving toward the observer → use − in the denominator → smaller denominator → higher f′.
- Source moving away → use + → larger denominator → lower f′.
Here us is the speed of the source and v is the speed of sound.
Case 2 — observer moving, source stationary
f′=fvv±uo
- Observer moving toward the source → use + in the numerator → larger numerator → higher f′.
- Observer moving away → use − → lower f′.
Here uo is the speed of the observer.
The sign trap — and the foolproof check. The two cases put the ± in different places (denominator for a source, numerator for an observer) and use opposite signs for "toward". Do not try to memorise four sign rules. Instead:
Whatever the situation, if the source and observer are getting closer, the observed frequency must be HIGHER than f. If they are getting further apart, it must be LOWER. After every calculation, check your answer against this — if approach gave you a lower frequency, you used the wrong sign.
Worked mini-example (moving source). A train sounds a 400Hz horn and approaches a stationary observer at us=30m s−1; speed of sound v=340m s−1.
f′=400×340−30340=400×310340=439Hz
As it recedes:
f′=400×340+30340=400×370340=368Hz
The pitch heard therefore drops from 439Hz to 368Hz as the train passes — a jump of about 71Hz, which is exactly the audible "neeee-aaww" of a passing vehicle.
Consistency of speeds. Always keep v (the speed of sound in the medium) and the source/observer speed in the same units (m s⁻¹) and never confuse the two — v is a property of the medium, us or uo is how fast the object moves.