EP02: String Vibration and the Wave Equation
Overview
When you pluck a guitar string, why does it produce a rich spectrum of overtones rather than a single pure tone? The answer lies in a second-order partial differential equation derived by d’Alembert in 1747 and the separation-of-variables technique that Fourier refined in the early 19th century.
This episode derives the 1D wave equation from Newton’s second law, establishes d’Alembert’s general solution as a superposition of traveling waves, and then reframes everything as Fourier series — infinite sums of standing-wave modes whose frequencies form the integer harmonic series
中文: “从波动方程到傅里叶级数,我们看到了数学如何揭示音乐的物理本质。达朗贝尔的行波解告诉我们波如何传播,傅里叶的级数解告诉我们泛音如何叠加。”
Prerequisites
- Multivariable calculus: partial derivatives, Taylor expansion
- Ordinary differential equations: constant-coefficient second-order ODEs
- Basic real analysis: convergence of series
- Cochlear nonlinearity (EP09) — this wave equation is the linear model from which EP09 departs
- Microphone physics (EP28) — the same ODE structure reappears as a damped oscillator
Definitions
Let denote the transverse displacement of a string at position and time . The 1D wave equation is
where is the string tension (force) and is the linear mass density (mass per unit length). The constant has units of velocity and is the propagation speed of waves on the string.
For a string with fixed endpoints, the boundary conditions are
Combined with initial conditions (initial shape) and (initial velocity), this forms a well-posed initial-boundary value problem.
The -th normal mode (or standing wave) is the particular solution
where
The frequency is the fundamental frequency (first harmonic). The frequency is the -th harmonic or -th overtone.
The general solution to the wave equation with Dirichlet boundary conditions is the Fourier series
The coefficients are determined by initial conditions via
The total mechanical energy of the string is
The energy of the -th mode is
(using ).
Main Theorems
Under the small-amplitude approximation (displacements much smaller than string length), Newton’s second law applied to an infinitesimal string element of length yields the wave equation
Consider the string element occupying with transverse displacement . The element has mass .
The tension acts tangentially at both ends. At the right end, the string makes angle with the horizontal (small angle approximation: ). At the left end, angle is .
The net transverse force on the element is:
Newton’s second law: , so
Dividing by :
Visual: Draw a curved string element with tangent lines at both endpoints. The net upward force from tension is proportional to the curvature — positive curvature (concave up) creates upward restoring force, driving oscillation.
Every solution of on can be written as
for arbitrary twice-differentiable functions and . The term represents a rightward-traveling wave; represents a leftward-traveling wave. Given initial conditions and , the unique solution is
Step 1 — Change of variables. Let , . By the chain rule:
The wave equation becomes
Simplifying: , so .
Step 2 — Integration. Integrate first in : for some function . Then integrate in : where . Setting , gives .
Step 3 — Initial conditions. From and :
Integrating: . Solving the system of two equations for and , then substituting back yields the stated formula.
The only solutions of of the separable form satisfying Dirichlet boundary conditions are (up to scalar multiples) the normal modes:
for
Substituting into :
Dividing both sides by (assuming both nonzero):
where is a separation constant (it must be constant since the left side depends only on and the right only on ).
Spatial ODE: with .
- If : the general solution is exponential or linear; neither can satisfy both boundary conditions with .
- If : write . Then . Condition gives . Condition gives , so for
Temporal ODE: (with ), which has general solution .
Visual: The first five normal modes: mode 1 has one arch (no interior nodes), mode 2 has one interior node at , mode has interior nodes at . Each mode vibrates at frequency .
The total energy decomposes as a sum over modes with no cross terms:
where , and each is independently conserved in time.
Compute the kinetic energy .
Differentiate the Fourier series:
Integrate over using the orthogonality of sine functions:
All cross terms () vanish. The same orthogonality applies to the potential energy . Adding kinetic and potential contributions for mode and using :
Each is constant in time (the factor does not depend on ).
The frequencies of the normal modes of a fixed string form the harmonic series:
where is the fundamental frequency.
By Definition 2.3, . The ratio .
Physical interpretation: Doubling the string length halves (one octave lower). Doubling the tension multiplies by (a musical tritone up). Quadrupling tension doubles (one octave up).
Worked Example: Plucked String
Setup: A string of length is plucked at the midpoint to height and released from rest. Initial conditions:
Fourier coefficients: Since , all . For :
This equals for , for , and $0$ for even .
Conclusion: Plucking at the midpoint eliminates all even harmonics (). The resulting timbre contains only odd harmonics — this is the mathematical explanation for why plucking position shapes timbre.
中文: “傅里叶级数的威力在于:任何初始形状,无论多复杂,都可以分解为这些正弦驻波的叠加。系数Aₙ由初始条件决定,而这些系数正是傅里叶系数。”
Musical Connection
The Overtone Series is the Harmonic Series
Theorem 2.3 shows that a vibrating string produces frequencies in the exact ratio This is called the overtone series or harmonic series in music. The first several intervals it generates are:
| Harmonic ratio | Interval |
|---|---|
| Octave | |
| Perfect fifth | |
| Perfect fourth | |
| Major third | |
| Minor third | |
| “Harmonic seventh” (slightly flat of B) |
The ratios (perfect fifth) and (major third) that define the consonant intervals in Western music emerge directly from the integer structure of the harmonic series. This is why Pythagorean tuning (built from pure fifths) and just intonation (built from pure thirds) have mathematical foundations in the wave equation.
Timbre as spectral envelope: Different instruments playing the same pitch differ only in the amplitudes of each harmonic. A clarinet emphasizes odd harmonics (similar to our midpoint-pluck example, because of its cylindrical bore closed at one end). A violin’s spectral envelope depends on bow speed and contact point. The piano’s hammer position at roughly of the string length from one end suppresses harmonics , avoiding the harsh high partials that would come from the exact hammer resonance.
中文: “泛音的相对强度决定了音色。这就是为什么钢琴和吉他演奏同一个音符,听起来却完全不同——它们的泛音结构不同。”
Limits and Open Questions
-
Small-amplitude approximation: The derivation in Theorem 2.1 requires . For large-amplitude vibrations (e.g., hard piano hammering), nonlinear terms enter. The nonlinear string equation introduces overtone inharmonicity — the higher modes deviate from exact integer multiples, which piano technicians compensate for by stretching the octave during tuning.
-
Real strings have stiffness: Physical strings are not perfectly flexible. The corrected model adds a bending stiffness term:
where is the bending stiffness. This yields frequencies for a small constant (inharmonicity coefficient). The effect is musically significant for piano bass strings and is discussed in EP33 (physical modeling) . -
Two and three dimensions: Drumhead vibrations satisfy the 2D wave equation . The normal modes involve Bessel functions rather than sines, and the frequency ratios are no longer integer multiples — hence drums do not produce a clear pitch the way strings do.
-
Damping and decay: Real strings have internal friction. Adding a damping term to the right side shifts the normal mode frequencies to and causes exponential amplitude decay , which gives each string note its characteristic sustain and decay envelope.
Academic References
-
Strauss, W. A. (2008). Partial Differential Equations: An Introduction (2nd ed.). Wiley. Ch. 1–2.
-
Haberman, R. (2013). Applied Partial Differential Equations (5th ed.). Pearson. Ch. 4 (Wave equation), Ch. 3 (Fourier series).
-
Fletcher, N. H., & Rossing, T. D. (1998). The Physics of Musical Instruments (2nd ed.). Springer. Ch. 2 (Vibrating strings).
-
Rayleigh, J. W. S. (1877). The Theory of Sound (2nd ed., 1894). Macmillan. Vol. 1, Ch. 6.
-
d’Alembert, J. (1747). Recherches sur la courbe que forme une corde tendue mise en vibration. Histoire de l’Académie Royale des Sciences et Belles-Lettres de Berlin, 3, 214–219.
-
Morse, P. M. (1948). Vibration and Sound (2nd ed.). McGraw-Hill. Ch. 3.
-
Terhardt, E. (1974). Pitch, consonance, and harmony. Journal of the Acoustical Society of America, 55(5), 1061–1069.