Animations › Standing waves
Standing waves on strings and in pipes
Two identical waves travel in opposite directions and add up to a standing wave that stays in one place. Then a string fixed at both ends shows its first three harmonics, and two pipes of the same length, one open at both ends and one closed at one end, show why the closed pipe has only odd harmonics. C.4 Standing waves and resonance
What the animation shows
The string is slowed down 240 times and the pipes 600 times, so that you can see them move. In the first part the two travelling waves are blue (moving right) and orange (moving left), their sum is gold, and the violet curves are its envelope: they show the amplitude at each point. In the pipes, the dots are layers of air, and the violet curves are graphs of displacement amplitude.
- A wave travels to the right and an identical wave, with the same frequency, wavelength and amplitude, travels to the left. Where they meet they superpose: at every point the two displacements add. If one wave is $y_1 = A\sin(kx - \omega t)$ and the other $y_2 = A\sin(kx + \omega t)$, their sum is $y = 2A\sin(kx)\cos(\omega t)$. (You don't need these equations: they are only how the animation is calculated.)
- The sum doesn't travel. It grows, shrinks and flips over in the same place: a standing wave.
- Nodes (N) never move, because the two waves always cancel there. Antinodes (A) oscillate with the largest amplitude. Neighbouring nodes are half a wavelength apart, and a node is a quarter of a wavelength from the next antinode.
- Points P and Q are in the same loop. Their amplitudes are different, but they move up and down together: they are in phase. Point R is in the next loop, on the other side of a node, and it always moves the opposite way to P: it is in antiphase, with a phase difference of $\pi$ (180°). The green arrows show which way each point is moving.
- No net energy is transferred along a standing wave: the two waves carry equal amounts of energy in opposite directions.
- A string 0.80 m long is fixed at both ends, and waves travel along it at 192 $\text{m s}^{-1}$. A fixed end can't move, so it must be a node. The simplest pattern has one loop, so $L = \frac{\lambda}{2}$. This is the first harmonic: $\lambda_1 = 2L = 1.60$ m and $f_1 = \frac{v}{\lambda_1} = \frac{192}{1.60} = 120$ Hz.
- The same string is then drawn again below, once for each new harmonic. Second harmonic: two loops, so $L = \lambda$: $\lambda_2 = 0.80$ m and $f_2 = \frac{192}{0.80} = 240$ Hz.
- Third harmonic: three loops, so $L = \frac{3\lambda}{2}$: $\lambda_3 = \frac{2 \times 0.80}{3} = 0.533$ m and $f_3 = \frac{192}{0.533} = 360$ Hz, three times the first harmonic's frequency.
- A whole number of half-wavelengths fits between the fixed ends, so $\lambda_n = \frac{2L}{n}$ and $f_n = nf_1$, and all harmonics are possible. The real string vibrates 120 times a second in its first harmonic.
- Sound in a pipe is a longitudinal wave: layers of air move back and forth along the pipe. At an open end the air moves in and out freely, so an open end is a displacement antinode. The violet curves are a graph of the displacement amplitude: how far the air at each point moves from its rest position, drawn across the pipe. They are not the shape of the air or of anything else.
- The pipe is open at both ends and 0.68 m long, and sound travels at 340 $\text{m s}^{-1}$. First harmonic: antinodes at both ends and a node in the middle, so $L = \frac{\lambda}{2}$: $\lambda_1 = 2L = 1.36$ m and $f_1 = \frac{340}{1.36} = 250$ Hz. Second harmonic: $L = \lambda$, so $\lambda_2 = 0.68$ m and $f_2 = 500$ Hz. As on the string, all harmonics are possible.
- A second pipe of the same length is closed at one end. The air at a closed end can't move, so a closed end is a displacement node. With a node at the closed end and an antinode at the open end, the first harmonic has $L = \frac{\lambda}{4}$: $\lambda_1 = 4L = 2.72$ m and $f_1 = \frac{340}{2.72} = 125$ Hz.
- Predict: what is the next pattern that fits? What is its frequency, and which harmonic is it?
- The next pattern has $L = \frac{3\lambda}{4}$: $\lambda = \frac{4 \times 0.68}{3} = 0.907$ m and $f = \frac{340}{0.907} = 375$ Hz. That is $3 \times 125$ Hz, so it is the third harmonic. There is no second harmonic: the harmonic number says how many times the first harmonic's frequency it is.
- Next comes $L = \frac{5\lambda}{4}$: $\lambda = 0.544$ m and $f = 625$ Hz, the fifth harmonic. An odd number of quarter-wavelengths must fit, so only odd harmonics are possible.
- Both pipes go back to their first harmonic. Closing one end halves the lowest frequency: 125 Hz instead of 250 Hz.
- Summary: when both ends are the same (node–node or antinode–antinode), $\lambda_n = \frac{2L}{n}$ with all harmonics, $n = 1, 2, 3, \ldots$; with a node at one end and an antinode at the other, $\lambda_n = \frac{4L}{n}$ with odd harmonics only, $n = 1, 3, 5, \ldots$. In every case $f_n = \frac{v}{\lambda_n}$.
New for 2028 For exams from 2028, the guide asks you to work out the relationship between the wavelength and the length for the $n$th harmonic yourself, and to see that these relationships set the harmonic names: that is why the patterns in a pipe closed at one end are the 1st, 3rd and 5th harmonics, as in steps 12 to 15.
The animation ignores the small "end correction" at an open end (the antinode really sits a little beyond the end of the pipe), as the IB does. The layers of air are drawn moving much further than real air does: even in a loud note they typically move much less than a millimetre.
Read more in C.4 section 1: how standing waves form, section 2: nodes, antinodes, amplitude and phase, section 3: standing waves on strings, section 4: standing waves in pipes and section 5: summary of boundary conditions.