Skip to main content

Optional extension · Interactive lesson

Harmonics & Musical Sources

Boundary conditions pick which frequencies a source can hold; the way you excite it picks how loud each one is. Here is how strings and pipes build a harmonic series, and why two instruments on the same note sound nothing alike.

UPI-EXT-WS.09 · Lesson 9 of 11 in this extension. Position is not a completion score.
Starting model: Harmonics & Musical SourcesLine spectrum of a string fixed at both ends: five bars standing at 1, 2, 3, 4 and 5 times the 329 Hz fundamental, equally spaced along a frequency axis because fₙ = n f₁, with heights Aₙ/A₁ = |sin(nπp)|/(n² sin πp) set by a pluck at 0.12 of the length.pluck point x = 0.12Lspacing = f₁12345fixed–fixed string, v = 428 m s⁻¹ · x = frequency, bar = Aₙ/A₁
Start with a picture. Change the model in the lab below.

Optional extension. Use Waves & Sound only if your university includes it in Physics I. Optional work is not a required completion gate.

1

Build the model

Boundary conditions set the frequencies; excitation sets the mix.

The key idea

The harmonics of a musical source are its normal-mode frequencies, fₙ = n f₁, selected by the boundary conditions at its ends. The fundamental f₁ sets the pitch; the relative amplitudes of the higher harmonics set the timbre.

Example. A 0.500 m pipe open at both ends resonates at 343, 686, 1029 Hz … when v = 343 m s⁻¹. Plug one end and the set becomes 171.5, 514.5, 857.5 Hz — an octave lower, with every even harmonic gone.

The complete physical model and assumptions

A musical source has a definite pitch because its boundary conditions select modes whose frequencies are integer multiples of one another. A string clamped at both ends and a uniform air column both fit whole numbers of half or quarter wavelengths, so fₙ = n f₁, and any superposition of those modes repeats exactly every T₁ = 1/f₁ no matter what the mix is. Pitch comes from that period. Which end conditions apply decides the set: fixed–fixed and open–open give every n, while one closed end gives odd n only and halves the fundamental. What the modes do not fix is how much of each is present. That is set by the excitation — where a string is plucked, how a reed or a jet drives a column — and it is those relative amplitudes, together with the attack transient, that make a clarinet and a violin on the same note sound different. Pitch is the spacing of the lines in the spectrum; timbre is their heights.

1Why these sources have a pitch at all

A standing wave survives only where the boundary conditions are met, and for a uniform string clamped at both ends or a uniform air column the allowed wavelengths come out in the ratio 1 : 1/2 : 1/3 : …, so the frequencies come out as fₙ = n f₁. That integer relation is what makes the radiated sound periodic: add sinusoids at f₁, 2f₁ and 3f₁ with any amplitudes and phases you like and the sum still repeats exactly every T₁ = 1/f₁. A repeating waveform is what the ear reports as a pitch. Nothing guarantees the relation. A circular drumhead's modes sit at 1, 1.59, 2.14, 2.30, … times its lowest, ratios fixed by the zeros of Bessel functions rather than by integers, so the sum never repeats and the drum has colour but only a vague pitch. Standing waves and resonance came earlier; the question here is which set of frequencies a real musical source ends up with, and how loud each member of the set is.

2The string: a node forced at each end

Clamping both ends forces a displacement node at each, so a whole number of half wavelengths must fit: λₙ = 2L/n and fₙ = n v/(2L) with n = 1, 2, 3, …. The speed is the string's own, v = √(FT/μ), so f₁ = (1/2L)√(FT/μ) and every tuning control follows from that one line. A guitar's top E sounds 329.6 Hz over a 0.650 m scale, so v = 2Lf₁ = 428 m s⁻¹, and a string with μ = 0.40 g m⁻¹ needs FT = μv² = 73 N to sit there. Fretting at the twelfth fret halves L and doubles every fₙ: one octave. Raising the tension by 1% raises the pitch by only 0.5%, because f ∝ √FT — which is why a fine tuner has to move so little. Quadrupling μ halves the pitch, and is how a bass string stays short instead of long and slack. Every n is allowed, so the ladder runs 1 : 2 : 3 : 4 : 5, whose successive steps are an octave, a fifth, a fourth and a major third.

3Air columns: an open end and a stopped end are different boundaries

In a sound wave an open end is very nearly a pressure node, and therefore a displacement antinode; a closed end is a displacement node and a pressure antinode. Sketch the displacement wave and the two cases separate at once. A pipe open at both ends needs an antinode at each, giving λₙ = 2L/n and fₙ = n v/(2L) with n = 1, 2, 3, …: for L = 0.500 m and v = 343 m s⁻¹ that is 343, 686, 1029 and 1372 Hz. Stop one end and the fit becomes a node at one end and an antinode at the other, which takes an odd number of quarter wavelengths: λₙ = 4L/n and fₙ = n v/(4L) with n = 1, 3, 5, …. The same 0.500 m pipe now gives 171.5, 514.5 and 857.5 Hz. Two things changed together: the fundamental dropped an octave, so a stopped pipe sounds as low as an open pipe of twice the length, and every even harmonic vanished. A clarinet is close to this case. It overblows to a twelfth, 3f₁, not an octave, and its lowest note near 147 Hz implies an effective length 343/(4 × 147) ≈ 0.58 m.

4Where the ideal pipe model bends

The pressure node does not sit exactly at the mouth of a pipe. Air just outside is dragged along with the column, so the tube behaves as though it ran slightly further, by about 0.6a at an unflanged end of bore radius a. Take L = 0.500 m and a = 0.020 m. Open at both ends there are two corrections, so L(eff) = 0.524 m and f₁ = 343/(2 × 0.524) = 327 Hz rather than 343 Hz — 4.6% flat, or 81 cents, close to a semitone. Stopped, only one correction applies: L(eff) = 0.512 m and f₁ = 167 Hz. Any pipe that is not thin compared with its length has to be measured, not merely cut to a formula. Temperature shifts the whole spectrum as well, since v ≈ 331√(1 + T/273) m s⁻¹ in air: warming a wind instrument from 15 °C to 25 °C sharpens it by 1.7%, near 30 cents, while a string, whose speed depends on tension and not on the air, does not follow.

5Which harmonics actually appear

The boundary conditions hand you a list of allowed frequencies and say nothing about their amplitudes. Those come from how the source is started. Release a string from a shape y(x,0) and expand that shape in the modes: y(x,0) = Σ Aₙ sin(nπx/L), with Aₙ = (2/L) ∫₀L y(x,0) sin(nπx/L) dx. Pluck it into a triangle whose corner sits at x = pL and the integral returns Aₙ ∝ sin(nπp)/n². Two audible consequences follow. The 1/n² makes a pluck low-harmonic-heavy, and the sine factor punches holes in the series: at p = 1/5 the amplitudes run 1, 0.40, 0.18, 0.063, 0, 0.028, and the fifth harmonic is gone because the pluck point is one of its nodes. Plucking at the midpoint kills every even harmonic. Plucking near the bridge makes p small, so sin(nπp) ≈ nπp and the fall flattens to 1/n, leaving many more strong harmonics — the same string at the same pitch, sounding thin and bright.

6Timbre is the spectrum plus the transient

Plot amplitude against frequency and a sustained note becomes a line spectrum: one line at each n f₁, its height set by the excitation and by how well the body radiates that frequency. Those heights are the main physical content of timbre, and a clarinet's near-missing even harmonics stand out in the plot before you hear them. The steady spectrum is not the whole story. Cut the first 50 ms from a recorded piano note and it becomes hard to name, because the attack — hammer noise, breath noise, bow scratch, the moment before the modes settle — carries much of the identity. Real sources also drift from exact harmonicity: a stiff piano string follows fₙ = n f₁√(1 + Bn²), and with B = 4 × 10⁻⁴ the eighth partial lands 1.3%, or 22 cents, sharp of 8f₁, which is why piano octaves are tuned stretched. Pitch even survives losing f₁: partials at 200, 300 and 400 Hz still repeat every 10 ms and are heard at 100 Hz, which is how a small loudspeaker suggests a bass note it cannot radiate.

2

Key equations

Read the units, assumptions and limits before substituting.

String fixed at both ends

fₙ = n v/(2L) = (n/2L)√(FT/μ), n = 1, 2, 3, …

0.650 m at 329.6 Hz → v = 428 m s⁻¹; with μ = 0.40 g m⁻¹, FT = 73 N.

L in m, FT in N, μ in kg m⁻¹; v is the string's speed, not the air's

Pipe open at both ends

λₙ = 2L/n, fₙ = n v/(2L), n = 1, 2, 3, …

L = 0.500 m and v = 343 m s⁻¹ give 343, 686, 1029, 1372 Hz.

Displacement antinode at each end; v is the speed of sound in the gas

Pipe stopped at one end

λₙ = 4L/n, fₙ = n v/(4L), n = 1, 3, 5, …

The same 0.500 m pipe gives 171.5, 514.5, 857.5 Hz — an octave down, evens gone.

Displacement node at the closed end, antinode at the open end

End correction at an open end

L(eff) = L + 0.6a per unflanged open end

L = 0.500 m, a = 0.020 m, open–open: f₁ = 327 Hz, not 343 Hz — 81 cents flat.

a is the bore radius; a flanged end is closer to 0.82a

Mode amplitudes from the initial shape

Aₙ = (2/L) ∫₀L y(x,0) sin(nπx/L) dx

Pluck at x = pL: Aₙ ∝ sin(nπp)/n², so p = 1/5 erases the fifth harmonic.

A half-range Fourier sine series; mode orthogonality does the work

Stiff-string inharmonicity

fₙ = n f₁ √(1 + B n²)

B = 4 × 10⁻⁴ puts the eighth partial 22 cents sharp of 8f₁.

B ≈ 10⁻⁴ to 10⁻³ for piano wire; B → 0 is the ideal flexible string
3

Interactive lab

Predict first. Explore the model. Compare the result.

Explore the model

0.65 m
0.45 to 0.91 m; steps of 0.02.
0.12 × L
0.05 to 0.5 × L; steps of 0.01.

Try this. Drag the pluck point to 0.20 and watch the fifth bar drop flat onto the axis — the pluck has landed on that harmonic's node — then shorten L and watch the whole ladder slide outward with no bar changing height.

Live results

Fundamental f₁ = v/2L
329 Hz
Fifth harmonic 5f₁
1646 Hz
Second harmonic A₂/A₁
0.465
Fifth harmonic A₅/A₁
0.103

Results follow this lesson’s model and assumptions. Displayed values are rounded.

Interactive Physics I modelLine spectrum of a string fixed at both ends: five bars standing at 1, 2, 3, 4 and 5 times the 329 Hz fundamental, equally spaced along a frequency axis because fₙ = n f₁, with heights Aₙ/A₁ = |sin(nπp)|/(n² sin πp) set by a pluck at 0.12 of the length.pluck point x = 0.12Lspacing = f₁12345fixed–fixed string, v = 428 m s⁻¹ · x = frequency, bar = Aₙ/A₁
Line spectrum of a string fixed at both ends: five bars standing at 1, 2, 3, 4 and 5 times the 329 Hz fundamental, equally spaced along a frequency axis because fₙ = n f₁, with heights Aₙ/A₁ = |sin(nπp)|/(n² sin πp) set by a pluck at 0.12 of the length.

Predict → change one variable → check

Plan a change before running it. Every other input stays at the saved baseline.

Saved baseline. String length L: 0.65 m; Pluck point p: 0.12 × L

Baseline 0.65; choose 0.45 to 0.91, in steps of 0.02.
4. Compared with the saved baseline, this result will…

This experiment is kept only while this page is open. It does not change saved course progress.

4

Catch the common trap

Harmonic and overtone are not synonyms, and a stopped pipe shows why. The nth harmonic is n f₁; the first overtone is simply the next resonance above the fundamental. For a string or an open pipe they coincide from n = 2 onward, but a stopped pipe's first overtone is 3f₁ — the second harmonic does not exist there. The second trap is treating a spectrum as a property of the instrument alone: one string plucked at its midpoint and near the bridge gives the same harmonics at very different amplitudes.

5

Practice & worked examples

3 authored examples. Make an attempt, then reveal the reasoning one step at a time.

EasyExample 1

A steel string is clamped at both ends over a speaking length of 0.630 m. Its mass per unit length is μ = 1.20 g m⁻¹ and it is tuned to a tension of 88.0 N. Find the wave speed on the string, the fundamental frequency, and the frequency of the fourth harmonic. Name that harmonic as an overtone.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 5 steps revealed.

MediumExample 2

A cylindrical pipe is 0.440 m long with an internal bore radius a = 0.0150 m. Take v = 343 m s⁻¹. Ignoring end effects, find the fundamental and the first overtone when the pipe is open at both ends, and again when one end is stopped. Then apply the unflanged end correction 0.6a to the stopped pipe and say how many cents flat it lands.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 6 steps revealed.

HardExample 3

A string fixed at both ends is pulled into a triangle with its corner at x = pL and released from rest, so the mode amplitudes go as Aₙ ∝ sin(nπp)/n². Take p = 1/4. Which harmonics are missing, and what are A₂, A₃ and A₄ relative to A₁? The player then plucks at p = 1/20 instead: find A₂/A₁ there and say what changed in the sound.

Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.

0 of 6 steps revealed.

6

Quick check

Select an answer and explain it before checking.

A pipe 0.500 m long and open at both ends has a fundamental of 343 Hz, with v = 343 m s⁻¹. One end is now plugged. What is the new fundamental, and the next resonance above it?
7

Review & continue

The harmonics of a musical source are its normal-mode frequencies, fₙ = n f₁, selected by the boundary conditions at its ends. The fundamental f₁ sets the pitch; the relative amplitudes of the higher harmonics set the timbre.

  • Explain the relationship without looking at the equation.
  • Check a sign, a unit and a model assumption in your working.
  • Return to the lab or worked example if a step is still unclear.

Extra challenging questions

Connect several ideas, explore supplied data, and compare your reasoning with a worked solution.