Sound: Standing Waves in Pipes and the Doppler Effect
Learn resonance in open and closed pipes and the Doppler effect for moving sources and observers in AP Physics 2, with worked examples and practice problems.
Reviewed by Independent AI model review on 2026-11-19
Watch the worked example
Sound is a wave, so it forms standing waves and it can shift in frequency when the source or the listener moves. These two ideas explain why a flute and a clarinet sound different, why a siren changes pitch as it passes you, and how Doppler ultrasound and weather radar measure motion.
Key ideas
- Sound is a longitudinal wave in a medium. In air at about 20 °C its speed is about 343 m/s, set by the air and not by the source.
- A standing wave in a pipe is a resonance. The air column vibrates strongly only at certain frequencies, where the reflected waves reinforce each other.
- At a closed end the air cannot move, so there is a displacement node. At an open end the air moves freely, so there is a displacement antinode.
- An open pipe (open at both ends) has an antinode at each end. It resonates at f = n v ÷ 2L, with n = 1, 2, 3, … All harmonics are present.
- A closed pipe (closed at one end) has a node at the closed end and an antinode at the open end. It resonates at f = n v ÷ 4L, with n = 1, 3, 5, … Only odd harmonics are present.
- The Doppler effect is the change in the frequency an observer receives because the source, the observer or both are moving relative to the air.
- Moving toward each other raises the frequency. Moving apart lowers it.
- The wave speed in the air does not change. What changes is how many crests reach the observer each second.
Key equations
| Quantity | Equation |
|---|---|
| Wave speed | v = f λ |
| Open pipe resonances | fₙ = n v ÷ 2L, n = 1, 2, 3, … |
| Closed pipe resonances | fₙ = n v ÷ 4L, n = 1, 3, 5, … |
| Moving source, stationary observer | f′ = f v ÷ (v ∓ vₛ) |
| Moving observer, stationary source | f′ = f (v ± vₒ) ÷ v |
Here v is the speed of sound, vₛ the speed of the source and vₒ the speed of the observer. For the source equation use the minus sign when the source moves toward the observer (a smaller denominator gives a higher frequency) and the plus sign when it moves away. For the observer equation use the plus sign when the observer moves toward the source and the minus sign when moving away. The AP exam may ask only for a qualitative treatment of the Doppler effect and may not give these equations, so check the official course description for your exam year.
Standing waves in pipes
In a pipe, sound reflects at both ends and the reflected waves overlap with the waves traveling the other way. At certain frequencies the overlap forms a steady pattern with fixed nodes and antinodes. Which pattern fits depends on the ends.
An open pipe has an antinode at each end. The simplest pattern, the fundamental, has one node in the middle, so the pipe holds half a wavelength: λ = 2L. The second harmonic holds a whole wavelength (λ = L), and so on, so fₙ = n v ÷ 2L.
A closed pipe has a node at the closed end and an antinode at the open end. The simplest pattern holds a quarter of a wavelength: λ = 4L. The next pattern that fits holds three quarters of a wavelength, then five quarters. Only odd multiples of the fundamental fit, so fₙ = n v ÷ 4L for odd n.
Because a closed pipe's fundamental is half as high as an open pipe of the same length, a closed organ pipe or a bottle sounds lower than an open one of the same length.
The Doppler effect
A source emits a wave crest at regular intervals. If the source is moving, each crest starts from a different place. Ahead of the source the crests are closer together, so the wavelength is shorter and the frequency is higher. Behind the source the crests are farther apart, so the wavelength is longer and the frequency is lower.
If the source moves toward a stationary observer at speed vₛ, the crests arrive with wavelength λ′ = (v − vₛ) ÷ f. The observer hears f′ = v ÷ λ′ = f v ÷ (v − vₛ).
If the observer moves toward a stationary source at speed vₒ, the wavelength in the air is unchanged, but the observer meets crests faster. The relative speed of the waves is v + vₒ, so f′ = (v + vₒ) ÷ λ = f (v + vₒ) ÷ v.
Which of the two is moving matters, because the speed of sound is fixed relative to the air, not to the source or observer. The two formulas give slightly different answers for the same relative speed.
Worked example 1: an open pipe
An open pipe is 0.50 m long. The speed of sound is 343 m/s. Find the first three resonant frequencies.
f₁ = v ÷ 2L = 343 ÷ (2 × 0.50) = 343 Hz. f₂ = 2f₁ = 686 Hz. f₃ = 3f₁ = 1029 Hz.
Worked example 2: a closed pipe
A pipe closed at one end is 0.25 m long. Find the first three resonant frequencies.
f₁ = v ÷ 4L = 343 ÷ (4 × 0.25) = 343 Hz. The next resonances are odd multiples: f₃ = 3 × 343 = 1029 Hz and f₅ = 5 × 343 = 1715 Hz. There is no resonance at 686 Hz.
A closed pipe half as long as an open pipe has the same fundamental, but it lacks the even harmonics, so its tone sounds different.
Worked example 3: the length for a note
A closed pipe must have a fundamental of 256 Hz. How long should it be?
L = v ÷ 4f = 343 ÷ (4 × 256) = 343 ÷ 1024 = 0.335 m, or about 0.34 m.
Worked example 4: a moving source
An ambulance siren has a frequency of 700 Hz. The ambulance drives at 30 m/s. Find the frequency heard by a stationary listener as it approaches and as it moves away.
Approaching: f′ = f v ÷ (v − vₛ) = 700 × 343 ÷ (343 − 30) = 700 × 343 ÷ 313 = 767 Hz. Receding: f′ = f v ÷ (v + vₛ) = 700 × 343 ÷ (343 + 30) = 700 × 343 ÷ 373 = 644 Hz.
The pitch drops by about 123 Hz as the ambulance passes, which is the familiar change you hear.
Worked example 5: a moving observer
A stationary speaker plays a 500 Hz tone. A cyclist rides toward it at 20 m/s. What frequency does the cyclist hear?
f′ = f (v + vₒ) ÷ v = 500 × (343 + 20) ÷ 343 = 500 × 363 ÷ 343 = 529 Hz.
More worked problems
These three exam-style problems are worked out step by step in the video "Sound in Pipes and the Doppler Effect: Practice Problems Solved". Each solution is written out below, after the three problems. You can try new problems in "Try it yourself" afterward.
Problem 1: open and closed pipes. An open pipe and a pipe closed at one end both have a length of 0.80 m. The speed of sound is 343 m/s. Find (a) the fundamental frequency of each pipe, and (b) the first three resonant frequencies of each.
Problem 2: a flute. A flute can be modeled as an open pipe. Its fundamental is 440 Hz when the speed of sound is 343 m/s. Find (a) its effective length (to two significant figures). On a hot stage the speed of sound rises to 350 m/s. Find (b) the new fundamental frequency, assuming the length is unchanged.
Problem 3: a car horn. A car sounds a 400 Hz horn as it drives at 25 m/s past a stationary observer. The speed of sound is 343 m/s. Find (a) the frequency the observer hears as the car approaches, (b) the frequency as it moves away, and (c) the difference between the two (give it to the nearest hertz).
Solutions to the worked problems
Problem 1.
(a) Open pipe: f₁ = v ÷ 2L = 343 ÷ (2 × 0.80) = 343 ÷ 1.6 = 214 Hz. Closed pipe: f₁ = v ÷ 4L = 343 ÷ 3.2 = 107 Hz.
(b) Open pipe: 214 Hz, 429 Hz and 643 Hz (all multiples of 214.4 Hz). Closed pipe: only odd harmonics, so 107 Hz, 322 Hz and 536 Hz (1, 3 and 5 times 107.2 Hz).
Problem 2.
(a) For an open pipe f₁ = v ÷ 2L, so L = v ÷ 2f₁ = 343 ÷ (2 × 440) = 0.39 m.
(b) The length is unchanged, so f₁ = v ÷ 2L = 350 ÷ (2 × 0.3898) = 449 Hz (using L = 0.390 m gives 448.7 Hz, which also rounds to 449 Hz). The pitch rises by about 9 Hz, which is why wind instruments go sharp when they warm up.
Problem 3.
(a) Approaching: f′ = 400 × 343 ÷ (343 − 25) = 400 × 343 ÷ 318 = 431 Hz.
(b) Receding: f′ = 400 × 343 ÷ (343 + 25) = 400 × 343 ÷ 368 = 373 Hz.
(c) The difference is 431.4 − 372.8 = 58.6 Hz, about 59 Hz. (Using the rounded values 431 and 373 gives 58 Hz, so 58 or 59 Hz is fine.) The observer hears the pitch fall by this much as the car goes past.
Try it yourself
These problems are not worked out in the videos. Use v = 343 m/s.
Problem A. A pipe closed at one end has two successive resonant frequencies of 150 Hz and 250 Hz. Find (a) the fundamental frequency, (b) which two harmonics these are, and (c) the length of the pipe.
Problem B. A stationary source emits a 600 Hz tone. An observer walks away from it at 15 m/s. What frequency does the observer hear?
Problem C. A source of true frequency 400 Hz moves toward a stationary observer, who hears 440 Hz. Find the speed of the source.
Check your answers. A: (a) 50 Hz; (b) the third and fifth harmonics; (c) 1.7 m. B: 574 Hz. C: 31 m/s.
Common mistakes
- Using all harmonics for a closed pipe. A closed pipe has only odd harmonics: f, 3f, 5f, and so on.
- Using λ = 2L for a closed pipe. A closed pipe's fundamental has λ = 4L.
- Swapping the signs in the Doppler equations. Moving toward each other must raise the frequency. Check your answer is higher, or lower, in the right direction.
- Thinking the speed of sound changes. It depends on the medium, not on the motion of the source or observer.
- Using the source equation for a moving observer. A moving source changes the wavelength in the air. A moving observer does not.
Practice questions
Choose an answer to see whether you are right and why.
1. An open pipe of length 0.50 m is filled with air. The speed of sound is 343 m/s. What is the fundamental frequency?
2. A closed pipe (closed at one end) and an open pipe have the same length. How do their fundamental frequencies compare?
3. Which set of frequencies are the resonances of a pipe closed at one end, with fundamental f?
4. A fire truck sounds a siren as it drives toward you. Compared with the frequency the driver hears, the frequency you hear is:
5. A source of frequency 700 Hz moves at 30 m/s toward a stationary observer. The speed of sound is 343 m/s. What frequency does the observer hear?
6. An observer walks away from a stationary source of sound. What changes for the observer?
Make your own study set
Upload your class notes, a PDF or a revision video and CampusBadge builds notes, flashcards and quizzes for you to practise with.
This lesson is a study guide, not the syllabus. Check what is examined in the official AP Physics 2 syllabus for your exam year.