Differential EquationsPartial Differential Equations5 of 6
Partial Differential Equations · 5
D'Alembert's Solution
When you flick a long rope, you don't see a wave bouncing up and down in place like on a guitar string. You see a single pulse traveling down the rope, so we need a way to write down a moving shape.
1
Writing a Traveling Wave
To describe a pulse of height u(x,t) moving along a rope at a constant speed c, we start with its shape u=f(x) at t=0 and shift that graph left or right as time t moves forward.
Writing a Traveling Wave
After t seconds at speed c, the shape has traveled a distance ct, so shifting the graph f(x) by ct gives a traveling wave:
u(x,t)u(x,t)=slides right at speed cf(x−ct)or=slides left at speed cg(x+ct)
Notice the minus sign inside f(x−ct): if the peak of f sits where its input is 0, then at time t the peak sits where x−ct=0, so x=ct moves to the right as t increases.
2
Why Traveling Waves Solve the Wave Equation
Now we want to see why these sliding shapes solve the wave equation for a string with wave speed c:
utt=c2uxx
Why Traveling Waves Solve the Wave Equation
Taking derivatives of u(x,t)=f(x−ct) with the chain rule pulls out 1 each time we differentiate with respect to x, and −c each time we differentiate with respect to t:
uxxutt=f′′(x−ct)Chain rule in xpulls out (1)(1)=1=(−c)2f′′(x−ct)=c2uxxChain rule in tpulls out (−c)(−c)=c2
If we switch to D'Alembert's moving coordinates R=x−ct and L=x+ct, the wave equation simplifies to ∂R∂L∂2u=0. Integrating twice shows that every solution on an infinite string is the sum of a right-moving wave and a left-moving wave:
In an actual problem, we aren't handed the two traveling waves F and G; instead, we are given how the string starts at t=0. First, let's find u(x,t) when the string is pulled into an initial shape f(x) and released from rest:
utt=c2uxx,u(x,0)=f(x),ut(x,0)=0
The Plucked String
Because the string is released from rest with no push to the left or right, the starting shape f(x) splits into two identical half-height copies sliding in opposite directions:
u(x,t)=21f(x−ct)+21f(x+ct)
Watch how the two half-height copies add up to the full pluck at t=0 and then slide apart:
When you let go of a pluck, the rope's shape comes from two half-height copies sliding apart and adding together.
Now let's write the solution for a plucked cosine wave:
utt=9uxx,u(x,0)=cos(x),ut(x,0)=0
Text solution
Read the wave speed c from c2=9The number in front of uxx in the wave equation is c2, so take its square root to get the wave speed.
c=9=3
Split f(x)=cos(x) in half and shift by 3tCut the starting cosine shape to half height and slide one copy right by 3t and the other left by 3t.
u(x,t)=21cos(x−3t)+21cos(x+3t)
On a test, watch out for c2 versus c: the coefficient in utt=9uxx is c2=9, so always take the square root before writing x∓ct.
4
The Hammer Strike
Next, we want to find u(x,t) when the string starts completely flat at t=0, and a hammer strikes it upward with an initial velocity g(x):
utt=c2uxx,u(x,0)=0,ut(x,0)=g(x)
The Hammer Strike
For the string to be flat at t=0, the two traveling waves must be exact upside-down copies that cancel out, u(x,t)=F(x−ct)−F(x+ct). Matching the velocity at t=0 connects the slope F′(x) directly to the hammer velocity g(x):
ut(x,0)=−2cF′(x)=g(x)⟹F′(x)=−2c1g(x)
Since F(x−ct)−F(x+ct) is the negative of the integral of F′ from x−ct to x+ct, the two minus signs cancel and we get the hammer-strike solution:
u(x,t)=2c1∫x−ctx+ctg(s)ds
Here is what that growing integral looks like when a hammer strikes the interval [−1,1]:
The middle of the string rises only while the widening bracket captures more of the hammer's velocity rectangle, then stays at a flat plateau as the edges keep traveling outward.
5
D'Alembert's Full Solution
When a string starts with both an initial pluck f(x) and an initial velocity g(x), we want to solve the full initial value problem:
utt=c2uxx,u(x,0)=f(x),ut(x,0)=g(x)
D'Alembert's Full Solution
uttu(x,0)ut(x,0)u(x,t)=c2uxx=f(x)=g(x)=?
Adding the pluck solution and the hammer solution together gives D'Alembert's full formula:
u(x,t)=pluck: splits in half and slides21[f(x−ct)+f(x+ct)]+hammer: area on [x−ct,x+ct]2c1∫x−ctx+ctg(s)ds
Here is how the two pieces come together for this problem:
utt=4uxx,u(x,0)=x2,ut(x,0)=sin(x)
Text solution
Find the wave speed c from c2=4Taking the square root of the coefficient on uxx gives the speed of the waves.
c=4=2
Shift and simplify the pluck part for f(x)=x2Split the parabola in half, shift left and right by 2t, and expand the squares so the −4xt and +4xt terms cancel.
21[(x−2t)2+(x+2t)2]=x2+4t2
Integrate the hammer part for g(x)=sin(x)Integrate sin(s) from x−2t to x+2t and divide by 2c=4.
Add the parts and evaluate at x=0,t=πCombine the pluck and hammer pieces, then plug in x=0 and t=π where the two cosines cancel out.
u(x,t)=x2+4t2+41[cos(x−2t)−cos(x+2t)]
u(0,π)=02+4π2+41[cos(−2π)−cos(2π)]=4π2
6
Reflections at a Fixed End
On an infinite string, pulses slide away forever, but what happens when a string on x≥0 is pinned to a wall at x=0 so the end can never move?
u(0,t)=0for all t
Reflections at a Fixed End
Once time t is large enough that x−ct<0, the pluck formula asks for f(x−ct) at a negative position past the wall. Just as with Fourier sine series, we extend the starting shape to x<0 using an odd extension, which reflects f(x) across x=0 and flips it upside down (if the string also starts with a velocity g(x),g gets the same odd extension):
fodd(−x)=−f(x)
Whenever x−ct<0, its opposite ct−x is positive, so replacing f(x−ct) with fodd(x−ct)=−f(ct−x) flips the pulse upside down and sends it back to the right:
u(x,t)=⎩⎨⎧21f(x−ct)+21f(x+ct)when x−ct≥0(no reflection has reached x yet)flipped and moving right−21f(ct−x)+21f(x+ct)when x−ct<0(the first term has bouncedoff x=0)
Watch how the upright pulse and its upside-down reflection cancel at x=0 as they pass through each other, making the pulse bounce upside down off the wall:
An upside-down twin crossing from the negative side cancels the incoming pulse at the wall and comes out on the real string as an upside-down reflection.
7
Standing Waves from Traveling Waves
Finally, when a string is pinned at two walls, x=0 and x=L, how do D'Alembert's traveling waves produce the standing waves from separation of variables?
u(0,t)=0,u(L,t)=0,u(x,0)=sin(Lnπx),ut(x,0)=0
Standing Waves from Traveling Waves
To combine the two traveling sine waves, we use the product-to-sum trig identity:
sin(A−B)+sin(A+B)=2sin(A)cos(B)
Plugging the n-th harmonic shape into D'Alembert's pluck formula and combining the two terms with A=Lnπx and B=Lnπct gives the standing wave:
u(x,t)=21sin(Lnπ(x−ct))+21sin(Lnπ(x+ct))Two half-height traveling sine waves=sin(Lnπx)cos(Lnπct)Combine into a single standing wave
Watch the two half-height sine waves slide through each other to form a standing wave:
Two half-height sine waves sliding through each other in opposite directions always cancel at the walls and nodes, adding up to a standing wave that only moves up and down in place.
Key concepts
Every solution to the wave equation utt=c2uxx is built from shapes moving at wave speed c (the square root of the coefficient on uxx, so utt=9uxx has c=3), shifted right with x−ct and left with x+ct. How the string is started tells you which part of D'Alembert's formula to use, and whether there is a wall tells you when to reflect:
Plucked from rest (u(x,0)=f(x),ut(x,0)=0)
There is no velocity integral to compute. Just split the starting shape in half and shift one copy right by ct and one left by ct:
If a problem gives both an initial position f(x) and an initial velocity g(x), add the pluck and hammer pieces together. If a problem instead specifies a single wave traveling entirely in one direction, don't split it in half. Just write f(x−ct) for right or f(x+ct) for left.
Pinned wall at x=0 (u(0,t)=0 on x≥0)
As long as x−ct≥0, no reflection from the wall has reached x yet, so leave 21f(x−ct) alone. Once x−ct<0, flip that term upside down and reverse the sign inside using the odd extension:
21fodd(x−ct)=−21f(ct−x)
When the string is pinned at both x=0 and x=L with a sine harmonic f(x)=sin(Lnπx), the two traveling waves 21sin(Lnπ(x−ct))+21sin(Lnπ(x+ct)) already include all wall reflections and combine via sin(A−B)+sin(A+B)=2sin(A)cos(B) into the standing wave sin(Lnπx)cos(Lnπct).
8
Practice
1
For the wave equation utt=16uxx on an infinite string, write the formula u(x,t) for a single wave with initial shape u(x,0)=1+x21 that travels entirely to the left without changing shape, and find the x-position of its peak at t=3.
First find the wave speed c from c2=16. Does a single wave traveling entirely to the left replace x with x−ct or x+ct?
Find the wave speed cFrom c2=16, the wave speed is c=4. (Using 16 directly without taking the square root gives 1+(x+16t)21 and puts the peak at x=−48.)
Shift the shape left by 4tBecause the wave travels entirely to the left as a single pulse, replace x with x+4t without dividing by 2 (using x−4t sends the wave right to x=12 instead of left):
u(x,t)=1+(x+4t)21
Locate the peak at t=3The peak sits where the squared term is zero, x+4t=0. At t=3,x+12=0, which gives:
u(x,t)=1+(x+4t)21,x=−12
2
An infinite string with wave speed c=2 is held still at t=0 in a flat-topped bump of height 4 on −3≤x≤3 (and u(x,0)=0 elsewhere), then released from rest (ut(x,0)=0). Find the height of the string at t=1 at the positions x=0,x=2, and x=6, and describe the shape of the string for t>1.5.
Forgetting to cut the height in half leaves each copy at height 4, doubling the answers to u(0,1)=8 and u(2,1)=4.
Cut the bump of height 4 into two half-height copies of height 2, then find the interval each copy covers after sliding a distance ct=2(1)=2 to the left and right.
Split into two half-height copies and shift by ct=2Releasing from rest splits the bump of height 4 on [−3,3] into two bumps of height 2 (forgetting to cut the height in half leaves each copy at height 4, doubling the answers to u(0,1)=8 and u(2,1)=4). At t=1, each copy shifts by 2(1)=2:
Right-moving copy: height 2 on [−3+2,3+2]=[−1,5]Left-moving copy: height 2 on [−3−2,3−2]=[−5,1]
Add the heights at t=1
At x=0 (inside both [−1,5] and [−5,1]): u(0,1)=2+2=4.
At x=2 (inside [−1,5] only): u(2,1)=2+0=2.
At x=6 (outside both intervals): u(6,1)=0+0=0.
Shape for t>1.5Once ct=2t>3, the two copies have each moved more than 3 units in opposite directions and no longer overlap.
u(0,1)=4,u(2,1)=2,u(6,1)=0;for t>1.5, two separateflat-topped bumps of height 2and width 6 move in oppositedirections at speed 2with u=0 between them.
3
An infinite string with wave speed c=3 is initially flat (u(x,0)=0). At t=0, a hammer strikes the interval −2≤x≤2 upward with constant initial velocity ut(x,0)=6 (and 0 elsewhere). Find the height of the string at t=21 at x=0 and at x=2, and find the permanent plateau height at x=0 for all t≥32.
Dividing by c=3 instead of 2c=6 doubles every height to 6,3, and 8.
For each position x, write down the interval [x−ct,x+ct] and find the width of its overlap with the hammer-strike interval [−2,2] where g(s)=6.
Set up the hammer integral with 2c=6
u(x,t)=61∫x−3tx+3tg(s)ds
(Dividing by c=3 instead of 2c=6 doubles every height to 6,3, and 8; and multiplying the full bracket width 2ct by 6 without checking where g(s) is actually nonzero gives u(2,21)=3 instead of 23 and makes the height at x=0 grow forever.)
Evaluate at t=21 (where 3t=23)
At x=0, the bracket [−23,23] lies entirely inside [−2,2], so the overlap width is 3:
u(0,21)=61(3×6)=3
At x=2, the bracket [2−23,2+23]=[21,27] only overlaps [−2,2] on [21,2], which has width 23:
u(2,21)=61(23×6)=23
Plateau height at x=0 for t≥32When t≥32,3t≥2, so the bracket [−3t,3t] contains the entire hammer interval [−2,2] of width 4:
An infinite string satisfies utt=9uxx with initial position u(x,0)=2x2 and initial velocity ut(x,0)=cos(x). Find the height of the string at x=0 and t=6π.
Integrating cos(s) as −sin(s) flips the sign of the hammer term and gives 2π2−31.Treating sin(−2π) as +1 instead of −1 makes the sine terms cancel to 0 and leaves 2π2.
Find c from c2=9, then compute the pluck part for f(x)=2x2 and the hammer integral for g(x)=cos(x) separately and add them.
Find the wave speed cFrom c2=9, we have c=3 and 2c=6.
(Integrating cos(s) as −sin(s) flips the sign of the hammer term and gives 2π2−31; or treating sin(−2π) as +1 instead of −1 makes the sine terms cancel to 0 and leaves 2π2.)
A semi-infinite string on x≥0 with wave speed c=2 has a pinned end u(0,t)=0 for all t, and is released from rest (ut(x,0)=0) with initial shape u(x,0)=f(x) for x≥0. Write the formula for u(x,t) in terms of f when x−2t≥0 and when x−2t<0. Then, if f(x) is a single narrow bump on 5≤x≤7 with peak height f(6)=4 (and 0 elsewhere), find the height of the string at x=2 at t=2 and at t=4.
When x−2t<0, replace f(x−2t) with its odd extension −f(2t−x) so the input to f is positive and the reflected pulse is flipped upside down.
Write the formula before and after hitting the wallFor x−2t≥0, no reflection from the wall has reached x yet; for x−2t<0, the odd extension flips the sign outside and reverses x−2t to 2t−x inside (reversing the inside to f(2t−x) without the minus sign in front forgets the upside-down reflection at the pinned wall and gives +2 instead of −2 at t=4):
Evaluate at x=2,t=2Here x−2t=−2<0 (so 2t−x=2, where f(2)=0) and x+2t=6 (the incoming peak, where f(6)=4):
u(2,2)=−21f(2)+21f(6)=0+21(4)=2
Evaluate at x=2,t=4Here x−2t=−6<0 (so 2t−x=6, the reflected peak) and x+2t=10 (where f(10)=0):
u(2,4)=−21f(6)+21f(10)=−21(4)+0=−2
6
A string of length L=π with wave speed c=3 is pinned at both ends, u(0,t)=0 and u(π,t)=0. It is plucked into the shape u(x,0)=4sin(3x) and released from rest (ut(x,0)=0). Write u(x,t) first as the sum of two traveling waves using D'Alembert's formula, then combine them into a standing wave and find the smallest positive time t when the string is completely flat.
Put parentheses around (x−3t) and (x+3t) inside sin(3x) so the 3 multiplies both x and 3t, then combine the two sines using sin(A−B)+sin(A+B)=2sin(A)cos(B).
Write as two traveling wavesCut the amplitude 4 in half and replace x with (x−3t) and (x+3t):
u(x,t)=2sin(3(x−3t))+2sin(3(x+3t))
(Writing sin(3x−3t) instead of sin(3(x−3t))=sin(3x−9t) leaves out the factor of 3 on 3t, giving cos(3t) instead of cos(9t) and the wrong flat time t=6π.)
Combine into a standing waveApply sin(A−B)+sin(A+B)=2sin(A)cos(B) with A=3x and B=9t:
u(x,t)=4sin(3x)cos(9t)
Find the first positive time when the string is flatThe string is flat everywhere when cos(9t)=0, which first happens for t>0 when 9t=2π: