Here the wave speed c is a positive constant set by how tight and how heavy the string is, and the partial derivatives ∂t2∂2u and ∂x2∂2u measure vertical acceleration in time t and concavity in position x at each spot along the string.
The tension pulls at the two ends cancel on any straight tilt, and only accelerate the segment up or down when it bends.
2
Standing Waves and Allowed Spatial Shapes
Instead of guessing a complicated vibration all at once, we look first for a standing wave, which is a single spatial shape X(x) that scales up and down in sync over time by a factor T(t), written as u(x,t)=X(x)T(t), on a string pinned down at both ends, u(0,t)=0 and u(L,t)=0. Just as in the heat equation on a rod with ends held at zero, separating the variables turns the spatial half of the problem into X′′(x)=−k2X(x) with X(0)=0 and X(L)=0.
Standing waves and allowed spatial shapes
Plugging u(x,t)=X(x)T(t) into the wave equation and dividing both sides by c2X(x)T(t) puts all the t terms on the left and all the x terms on the right, so both sides must equal the same negative constant −k2:
c2T(t)T′′(t)=X(x)X′′(x)=−k2
In the spatial solution X(x)=Acos(kx)+Bsin(kx), the left post X(0)=0 eliminates cos(kx) because cos(0)=1, and the right post X(L)=0 requires sin(kL)=0, which restricts kL to whole-number multiples of π:
Each harmonic n fits n half-loops between the posts at x=0 and x=L, creating n−1 motionless interior nodes along the string where sin(Lnπx)=0.
3
Time Oscillation and the Harmonic Mixing Board
Now that we know which spatial shapes Xn(x) can exist on the string, we solve the time half of the separated equation to find how each harmonic Tn(t) moves as time goes on.
Time oscillation and the harmonic mixing board
With kn=Lnπ, the two time derivatives in the wave equation give a simple harmonic oscillator in time that vibrates back and forth forever instead of dying out:
Multiplying each allowed spatial shape Xn(x) by its time factor Tn(t) and adding all the harmonics together gives the general solution for a vibrating string with fixed ends:
Squeezing n half-loop arches into the same string length L makes each arch n times narrower, so at the same height it bends n2 times as sharply, since Xn′′(x)=−(Lnπ)2Xn(x). That gives n2 times the acceleration per unit of height, ωn2=(Lnπc)2, so the nth harmonic vibrates n times as fast as the first harmonic, at frequency ωn=Lnπc.
Fitting more arches onto the string bends each one more tightly, so it pulls back harder and vibrates faster.
4
Solving an Initial Shape Problem by Inspection
When a string's starting shape is already made of a few sine harmonics and it is released from rest, we can find u(x,t) directly from the coefficients without computing any integrals:
∂t2∂2uu(0,t)u(π,t)=9∂x2∂2u(0<x<π),=0,=0
u(x,0)∂t∂u(x,0)=4sin(x)−2sin(5x),=0
Solving an initial shape problem by inspection
Text solution
Plug in L=π and c=3Reading c=3 from c2=9 and L=π from the right endpoint gives spatial shapes sin(nx) and frequencies ωn=3n.
u(x,t)=n=1∑∞sin(nx)[Ancos(3nt)+Bnsin(3nt)]
Set all velocity coefficients Bn to zeroBecause the string is released from rest with ∂t∂u(x,0)=0, none of the sin(3nt) terms are active.
Bn=0for all n
Match the starting shape at t=0Evaluating u(x,t) at t=0 turns every cos(3nt) into 1, so we match the sine coefficients directly against 4sin(x)−2sin(5x).
u(x,0)=A1sin(x)+A2sin(2x)+⋯+A5sin(5x)+…=4sin(x)−2sin(5x)⟹A1=4,A5=−2,all other An=0
Restore the cos(3nt) time factorsPutting back cos(3t) for n=1 and cos(15t) for n=5 gives the complete motion.
u(x,t)=4sin(x)cos(3t)−2sin(5x)cos(15t)
So the string vibrates as the sum of its 1st harmonic oscillating at frequency 3 and its 5th harmonic oscillating five times faster at frequency 15.
5
Fourier Integrals for Initial Shape and Velocity
When the initial shape u(x,0)=f(x) or initial velocity ∂t∂u(x,0)=g(x) is not already a finite sum of sines, we find each harmonic's coefficient using the orthogonality of sine waves on [0,L]. Multiplying two different harmonics and integrating from 0 to L cancels their positive and negative areas to zero, while a harmonic multiplied by itself integrates to 2L over length L:
After finding the general integral formulas for An and Bn, we will also solve for the motion of our L=π,c=3 string when it starts flat and is given an initial velocity:
u(x,0)∂t∂u(x,0)=0,=12sin(2x)
Fourier integrals for initial shape and velocity
Setting t=0 in u(x,t) matches f(x) directly. To match the initial velocity g(x), we differentiate u(x,t) with respect to t first, which pulls a chain-rule factor of the frequency ωn=Lnπc out in front of Bn:
Set all position coefficients An to zeroBecause the string starts completely flat at t=0, every cosine term drops out.
An=0for all n
Differentiate in t and plug in t=0With L=π and c=3, differentiating sin(3nt) brings down the frequency ωn=3n in front of Bn.
∂t∂u(x,0)=n=1∑∞(3nBn)sin(nx)=12sin(2x)
Match the n=2 velocity term and divide by ω2=6Setting the n=2 velocity coefficient 3(2)B2 equal to 12 gives the amplitude B2.
6B2⟹B2all other Bn=12=2,=0
Restore the sin(6t) time factorPutting the n=2 spatial and time factors together gives the string's motion.
u(x,t)=2sin(2x)sin(6t)
So even though the string is launched with peak velocity 12, it only reaches a peak height of B2=2 because the 2nd harmonic oscillates at frequency 6.
For the exact same starting velocity at t=0, higher harmonics reach a much smaller peak amplitude Bn because they reverse direction so quickly, which is why finding Bn requires dividing the velocity coefficient by the frequency Lnπc.
For the same starting velocity, higher harmonics reverse direction sooner and reach a smaller peak height.
6
A Flat String Given a Uniform Velocity Kick
Now let's use the Fourier integral to find u(x,t) when a flat string of length L receives a constant upward velocity v0 across its entire length from 0 to L:
u(x,0)∂t∂u(x,0)=0,=v0(0<x<L)
A flat string given a uniform velocity kick
Text solution
Set all position coefficients An to zeroBecause the string starts flat with u(x,0)=0, all An=0.
An=0for all n
Integrate the constant velocity v0Plugging g(x)=v0 into the Bn integral brings out a second factor of nπ1 when we integrate sin(Lnπx).
So only the symmetric odd harmonics are active for a symmetric upward push, and their amplitudes drop off rapidly as n21: one n comes from integrating the spatial sine wave and a second n comes from dividing by the time frequency Lnπc. You can spot right away that the even-n coefficients from an initial shape or velocity are zero whenever that shape or velocity is symmetric across the midpoint x=2L, since mirroring an even harmonic across the midpoint turns it upside down, sin(Lnπ(L−x))=−sin(Lnπx), so its integrals over the two halves cancel.
7
Putting the Four Pieces Together
Every standing-wave problem on a fixed string comes down to combining four pieces: the allowed sine shapes, their time frequencies, the initial shape coefficients An, and the initial velocity coefficients Bn.
Putting the four pieces together
Key concepts
To solve ∂t2∂2u=c2∂x2∂2u on a string of length L with fixed ends u(0,t)=0 and u(L,t)=0, start by reading the wave speed c (the square root of the coefficient on ∂x2∂2u, so c2=16 means c=4) and the length L to write the allowed spatial shapes Xn(x)=sin(Lnπx) and their natural frequencies ωn=Lnπc. These fit together in the general solution
Before setting up any integral, check what happens at t=0: if the string is released from rest (∂t∂u(x,0)=0), every Bn=0 right away; if the string starts flat (u(x,0)=0), every An=0 right away. Next, look at the form of the nonzero initial condition:
Already a sum of sines (do not integrate)
If u(x,0) or ∂t∂u(x,0) is already made of harmonics sin(Lnπx), match coefficients at t=0. For position, u(x,0)=4sin(x)−2sin(5x) on [0,π] gives A1=4 and A5=−2 directly. For velocity, differentiating sin(ωnt) brings out ωn, so match ωnBn to the given velocity coefficient and divide by ωn: if ∂t∂u(x,0)=12sin(2x) with ωn=3n, then 3(2)B2=12, giving B2=2.
Any other shape or velocity (use the Fourier sine integrals)
When f(x) or g(x) is a triangle, a constant velocity v0, or a piecewise function, integrate against sin(Lnπx), remembering that Bn has an extra ωn=Lnπc in the denominator so that L2 divided by Lnπc becomes nπc2:
A string of length L=2 with fixed ends u(0,t)=0 and u(2,t)=0 obeys ∂t2∂2u=16∂x2∂2u. For the 3rd harmonic (n=3), find the spatial shape X3(x), the positions of all interior nodes (motionless points), and the natural angular frequency ω3.
In the wave equation, the number multiplying ∂x2∂2u is c2, not c; where inside (0,2) does 23πx equal a whole-number multiple of π?
From c2=16 we have c=4 (using c=16 directly without taking the square root is a common mistake here and gives the wrong frequency 24π). With L=2 and n=3, the 3rd spatial shape is X3(x)=sin(23πx). Its interior nodes occur where sin(23πx)=0 inside (0,2), so 23πx=π and 2π, which gives x=32 and x=34. Its natural angular frequency is ω3=L3πc=23π(4)=6π.
2
Solve ∂t2∂2u=25∂x2∂2u on 0<x<2 with fixed ends u(0,t)=0 and u(2,t)=0, initial shape u(x,0)=3sin(2πx)−5sin(23πx), and released from rest, ∂t∂u(x,0)=0.
Since u(x,0) is already written in terms of sin(2nπx), which harmonics n are active, and what is ωn=Lnπc for each one?
Here L=2 and c=5, so ωn=25nπ. Because the string is released from rest, every Bn=0. Matching u(x,0) at t=0 gives A1=3,A3=−5, and all other An=0. Restoring the cos(ωnt) time factors for n=1 (ω1=25π) and n=3 (ω3=215π) gives u(x,t)=3sin(2πx)cos(25πt)−5sin(23πx)cos(215πt). Watch out for forgetting to multiply the second frequency by n=3 or dropping L=2, which gives cos(25πt) or cos(15πt) on the second term.
3
Solve ∂t2∂2u=4∂x2∂2u on 0<x<π with fixed ends u(0,t)=0 and u(π,t)=0, initial shape u(x,0)=5sin(2x), and initial velocity ∂t∂u(x,0)=18sin(3x)−4sin(2x).
Both initial conditions are already sums of sin(nx), so write out ∂t∂u(x,0)=∑ωnBnsin(nx) before matching the velocity coefficients.
Here L=π and c=2, so Xn(x)=sin(nx) and ωn=2n. Matching the initial shape at t=0 gives A2=5 and all other An=0. For the initial velocity, matching ∑(2nBn)sin(nx)=−4sin(2x)+18sin(3x) gives 4B2=−4 (so B2=−1), 6B3=18 (so B3=3), and all other Bn=0 (reading B2=−4 and B3=18 straight off the given velocity without dividing by ω2=4 and ω3=6 is the likeliest mistake and gives 5sin(2x)cos(4t)−4sin(2x)sin(4t)+18sin(3x)sin(6t)). Putting the harmonics together gives u(x,t)=sin(2x)[5cos(4t)−sin(4t)]+3sin(3x)sin(6t).
4
A string of length L with wave speed c and fixed ends at x=0 and x=L is plucked at its midpoint to height h, forming the triangular shape u(x,0)=L2hx for 0≤x≤2L and u(x,0)=L2h(L−x) for 2L≤x≤L, and is released from rest (∂t∂u(x,0)=0). Find the series solution u(x,t).
Split the Fourier sine integral for An at x=2L and integrate by parts.
Because the string is released from rest, all Bn=0. Using the Fourier sine integral An=L2∫0Lu(x,0)sin(Lnπx)dx across the two halves and integrating by parts gives An=n2π28hsin(2nπ), which is 0 for even n and equals n2π28h(−1)(n−1)/2 for odd n (be careful not to replace sin(2nπ) with +1 for every odd n, which misses the alternating sign (−1)(n−1)/2 on n=3,7,…). Restoring the cosine time factors gives u(x,t)=π28h∑n=1,3,5,…∞n2(−1)(n−1)/2sin(Lnπx)cos(Lnπct).
5
A flat string of length L (u(x,0)=0) with wave speed c and fixed ends at x=0 and x=L receives an upward velocity kick on only its left half: ∂t∂u(x,0)=v0 for 0<x<2L and ∂t∂u(x,0)=0 for 2L<x<L. Find u(x,t) and explain why even harmonics such as n=2 are active here when they were zero for a full-string uniform kick.
Integrate v0sin(Lnπx) only from 0 to 2L where the velocity is nonzero, and evaluate cos(Lnπx) at the upper bound x=2L.
Because the string starts flat, all An=0. For the velocity coefficients, integrating from 0 to 2L gives Bn=nπc2∫0L/2v0sin(Lnπx)dx=n2π2c2Lv0(1−cos(2nπ)) (using L2 in front of the integral instead of nπc2 is the main mistake and leaves out dividing by the frequency, giving nπ2v0(1−cos(2nπ)) with only a single n in the denominator). Unlike a uniform push across the entire string, a push on only the left half is not symmetric across the midpoint x=2L, so it pushes the left half up relative to the right half and activates even harmonics such as n=2, where 1−cos(π)=2=0. Putting the harmonics together gives u(x,t)=π2c2Lv0∑n=1∞n21−cos(2nπ)sin(Lnπx)sin(Lnπct).