Differential Equations › Section I · Partial differential equations › Topic I.8
The vibrating string
A guitar string fixed at both ends sounds a definite note, along with fainter higher notes that give it its character. Solving the wave equation by separation of variables shows exactly where those notes come from and how the way a string is set moving decides their mix.
The problem to solve
A string of length \(L\) with wave speed \(c\) is fixed at both ends and set moving with a starting shape \(f(x)\) and a starting velocity \(g(x)\):
Everything except the initial conditions is linear and homogeneous, so the plan is the same as for heat: product solutions, then superposition, then matching the initial conditions with Fourier series. The difference is that there are two initial conditions to match, and the time factors oscillate instead of decaying.
The normal modes
Separation of variables, as worked out earlier for a string with fixed ends, gives the eigenvalues \(\lambda_n = (n\pi/L)^2\), the eigenfunctions \(\sin(n\pi x/L)\) and time factors that are combinations of \(\cos(n\pi ct/L)\) and \(\sin(n\pi ct/L)\). Each product
is a normal mode: the whole string moves in one fixed shape whose size swings back and forth. Mode \(n\) has \(n - 1\) points between the ends that never move, called nodes, at \(x = L/n, 2L/n, \ldots\)
Frequencies and harmonics
Mode \(n\) oscillates with angular frequency \(n\pi c/L\), so its frequency in cycles per second is
This is the standing-wave formula from physics, \(f_n = nv_w/(2L)\), now derived from the wave equation itself. The fundamental, \(f_1 = c/(2L)\), sets the pitch, and the others are whole-number multiples called harmonics. Because every frequency is a multiple of \(f_1\), the whole motion repeats after one period of the fundamental, \(2L/c\). That exact repetition is what gives a string a clear musical pitch.
Matching both initial conditions
Superposition gives \(u = \sum u_n\). At \(t = 0\) the cosines equal 1 and the sines 0, so \(f(x) = \sum A_n\sin(n\pi x/L)\): the \(A_n\) are the Fourier sine coefficients of the starting shape. Differentiating in \(t\) brings out a factor \(n\pi c/L\) in each term, and setting \(t = 0\) then shows that the numbers \(B_n\,n\pi c/L\) are the sine coefficients of the starting velocity \(g\). Hence
A string released from rest has every \(B_n = 0\).
Worked example: a guitar string
A guitar string 0.65 m long sounds a fundamental of 110 Hz. It is released from rest in the shape, in metres,
1. Wave speed: \(c = 2Lf_1 = 2(0.65)(110) = 143\) m/s. 2. Released from rest, so all \(B_n = 0\). 3. Read off \(A_1 = 0.003\) and \(A_3 = 0.001\). 4. Solution:
5. Check: the angular frequencies \(n\pi c/L\) are \(2\pi(110)\) and \(2\pi(330)\), so the string sounds 110 Hz and its third harmonic, 330 Hz.
Worked example: a string plucked at its centre
A string is pulled aside a height \(h\) at its midpoint, forming a triangle, and released from rest. 1. The shape is \(f = 2hx/L\) for \(x \le L/2\) and \(f = 2h(L - x)/L\) for \(x \ge L/2\), and \(g = 0\). 2. Integrating each straight piece against the sine, by parts, gives
3. So \(A_1 = 8h/\pi^2 \approx 0.81h\), \(A_3 = -A_1/9\), \(A_5 = A_1/25\), and every even \(A_n\) is zero. 4. Check: the even modes have a node at the midpoint, so plucking exactly there cannot excite them; and the amplitudes fall as \(1/n^2\), so the fundamental dominates.
Worked example: a struck string
The same guitar string, \(c = 143\) m/s and \(L = 0.65\) m, starts straight but moving, with velocity \(g(x) = v_0\sin(\pi x/L)\) and \(v_0 = 0.50\) m/s. 1. Here \(f = 0\), so every \(A_n = 0\). 2. Only the \(n = 1\) sine appears in \(g\): \(B_1\,\pi c/L = v_0\), so \(B_1 = v_0L/(\pi c)\). 3. Numerically,
4. Solution: \(B_1\sin(\pi x/L)\) times \(\sin(\pi ct/L)\), a fundamental with an amplitude of about 0.72 mm. 5. Check: \(u = 0\) at \(t = 0\), and \(u_t\) at \(t = 0\) equals \(B_1(\pi c/L)\sin(\pi x/L)\), which is \(g\).
Timbre: how the start shapes the sound
Two strings tuned to the same fundamental can still sound different, because the relative sizes of the harmonics, the timbre, depend on how the string was started. Plucking at the exact centre gives only odd harmonics, with amplitudes falling as \(1/n^2\). Plucking near one end excites many more harmonics, so the sound is brighter, which is why guitarists pick near the bridge for a sharper tone. A pluck with a sharp corner has coefficients falling as \(1/n^2\), while smoother starting shapes have coefficients that fall faster, giving a mellower sound. Damping, ignored here, makes high harmonics fade first in a real string.
Standing waves from travelling waves
The normal modes are standing waves, but they are built from travelling ones. The identity that writes \(\sin a\cos b\) as half of \(\sin(a - b) + \sin(a + b)\) turns a mode into
two identical sine waves moving in opposite directions at speed \(c\), exactly d'Alembert's form from The wave equation. The fixed ends reflect each travelling wave back, and the reflections combine into the standing pattern. So the series solution and d'Alembert's solution describe the same motion.
Common mistakes to avoid
First, forgetting the factor \(n\pi c/L\) when matching the initial velocity, which makes every \(B_n\) wrong. Second, giving a string released from rest nonzero \(B_n\); with \(g = 0\) only cosines appear. Third, using the angular frequency \(n\pi c/L\) as if it were the frequency in hertz; divide by \(2\pi\) to get \(nc/(2L)\). Fourth, expecting a string plucked at its centre to contain even harmonics. Fifth, treating the modes as decaying like heat modes; in this undamped model they oscillate forever.
Key takeaways
A string with fixed ends has normal modes \(\sin(n\pi x/L)\) whose time factors oscillate at angular frequency \(n\pi c/L\), so mode \(n\) sounds at \(f_n = nc/(2L)\), a whole-number multiple of the fundamental. The solution is a sum of modes with cosine coefficients \(A_n\) from the starting shape and sine coefficients \(B_n\) from the starting velocity, divided by \(n\pi c/L\). Released from rest means only cosines; struck from flat means only sines. How the string is started sets the timbre. Each mode is two travelling waves, linking back to d'Alembert.
Flashcards
Flashcard
uₜₜ = c²uₓₓ, u = 0 at both ends, u(x, 0) = f(x), uₜ(x, 0) = g(x)
Test your understanding
Question 1 of 5
A string 0.50 m long has wave speed c = 200 m/s and fixed ends. What are its fundamental and third harmonic frequencies?
Question 2 of 5
A string with fixed ends is released from rest in the shape f(x) = 0.02 sin(2πx/L). What is u(x, t)?
Question 3 of 5
A straight string is struck so that g(x) = 4 sin(πx/L). What is B₁?
Question 4 of 5
A string is plucked exactly at its midpoint and released from rest. Which harmonics are missing from its motion?
Question 5 of 5
How many nodes, not counting the two fixed ends, does the n = 4 mode of a string have?
