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)\shape{u(x,t)} moving along a rope at a constant speed cc, we start with its shape u=f(x)\shape{u} = \shape{f(x)} at t=0t = 0 and shift that graph left or right as time tt moves forward.

Writing a Traveling Wave
u(x,t)=  ?\htmlClass{lc-blue}{u(x,t)} = \;?

After tt seconds at speed cc, the shape has traveled a distance ctct, so shifting the graph f(x)\shape{f(x)} by ctct gives a traveling wave:

u(x,t)=f(x−ct)⏟slides right at speed coru(x,t)=g(x+ct)⏟slides left at speed c\displaystyle \begin{aligned} \shape{u(x,t)} &= \underbrace{\shape{f}(\toright{x - ct})}_{\text{slides right at speed } c} \qquad \text{or} \\ \shape{u(x,t)} &= \underbrace{\shape{g}(\toleft{x + ct})}_{\text{slides left at speed } c} \end{aligned}

Notice the minus sign inside f(x−ct)\shape{f}(\toright{x - ct}): if the peak of f\shape{f} sits where its input is 00, then at time tt the peak sits where x−ct=0\toright{x - ct} = 0, so x=ct\toright{x = ct} moves to the right as tt 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 cc:

utt\displaystyle \second{u_{tt}} =c2uxx\displaystyle = c^2 \second{u_{xx}}
Why Traveling Waves Solve the Wave Equation
∂2u∂t2=?c2 ∂2u∂x2\htmlClass{lc-orange}{\dfrac{\partial^2 u}{\partial t^2}} \overset{?}{=} c^2\,\htmlClass{lc-orange}{\dfrac{\partial^2 u}{\partial x^2}}
u(x,t)=f(x−ct)\htmlClass{lc-blue}{u(x,t)} = \htmlClass{lc-blue}{f}(\htmlClass{lc-green}{x - ct})

Taking derivatives of u(x,t)=f(x−ct)\shape{u(x,t)} = \shape{f}(\toright{x - ct}) with the chain rule pulls out 11 each time we differentiate with respect to xx, and −c-c each time we differentiate with respect to tt:

uxx=f′′(x−ct)Chain rule in xpulls out (1)(1)=1utt=(−c)2f′′(x−ct)=c2uxxChain rule in tpulls out (−c)(−c)=c2\displaystyle \begin{aligned} \second{u_{xx}} &= \second{f''}(\toright{x - ct}) \\ &\quad \text{Chain rule in } x \\ &\quad \text{pulls out } (1)(1) = 1 \\[6pt] \second{u_{tt}} &= (-c)^2 \second{f''}(\toright{x - ct}) \\ &= c^2 \second{u_{xx}} \\ &\quad \text{Chain rule in } t \\ &\quad \text{pulls out } (-c)(-c) = c^2 \end{aligned}

If we switch to D'Alembert's moving coordinates R=x−ct\toright{R = x - ct} and L=x+ct\toleft{L = x + ct}, the wave equation simplifies to ∂2u∂R∂L=0\second{\frac{\partial^2 u}{\partial R \partial L}} = 0. Integrating twice shows that every solution on an infinite string is the sum of a right-moving wave and a left-moving wave:

u(x,t)\displaystyle \shape{u(x,t)} =F(x−ct)⏟right-moving wave+G(x+ct)⏟left-moving wave\displaystyle = \underbrace{\toright{F(x - ct)}}_{\text{right-moving wave}} + \underbrace{\toleft{G(x + ct)}}_{\text{left-moving wave}}
3

The Plucked String

In an actual problem, we aren't handed the two traveling waves F\toright{F} and G\toleft{G}; instead, we are given how the string starts at t=0t = 0. First, let's find u(x,t)\shape{u(x,t)} when the string is pulled into an initial shape f(x)\shape{f(x)} and released from rest:

utt\displaystyle \second{u_{tt}} =c2uxx,u(x,0)\displaystyle = c^2 \second{u_{xx}}, \qquad \shape{u(x,0)} =f(x),ut(x,0)\displaystyle = \shape{f(x)}, \qquad \vel{u_t(x,0)} =0\displaystyle = 0
The Plucked String
u(x,t)=F(x−ct)+G(x+ct)\htmlClass{lc-blue}{u(x,t)} = \htmlClass{lc-green}{F(x - ct)} + \htmlClass{lc-violet}{G(x + ct)}
f(x)\htmlClass{lc-blue}{f(x)}
u(x,0)=f(x),ut(x,0)=0\htmlClass{lc-blue}{u(x,0)} = \htmlClass{lc-blue}{f(x)},\qquad \htmlClass{lc-pink}{u_t(x,0)} = 0
F=  ?G=  ?\htmlClass{lc-green}{F} = \;?\qquad \htmlClass{lc-violet}{G} = \;?

Because the string is released from rest with no push to the left or right, the starting shape f(x)\shape{f(x)} splits into two identical half-height copies sliding in opposite directions:

u(x,t)\displaystyle \shape{u(x,t)} =12f(x−ct)+12f(x+ct)\displaystyle = \toright{\frac{1}{2}f(x - ct)} + \toleft{\frac{1}{2}f(x + ct)}

Watch how the two half-height copies add up to the full pluck at t=0t = 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\displaystyle \second{u_{tt}} =9uxx,u(x,0)\displaystyle = 9\second{u_{xx}}, \qquad \shape{u(x,0)} =cos⁡(x),ut(x,0)\displaystyle = \shape{\cos(x)}, \qquad \vel{u_t(x,0)} =0\displaystyle = 0
Text solution
Read the wave speed cc from c2=9c^2 = 9The number in front of uxx\second{u_{xx}} in the wave equation is c2c^2, so take its square root to get the wave speed.
c\displaystyle c =9\displaystyle = \sqrt{9} =3\displaystyle = 3
Split f(x)=cos⁡(x)\shape{f(x)} = \shape{\cos(x)} in half and shift by 3t3tCut the starting cosine shape to half height and slide one copy right by 3t3t and the other left by 3t3t.
u(x,t)\displaystyle \shape{u(x,t)} =12cos⁡(x−3t)+12cos⁡(x+3t)\displaystyle = \toright{\frac{1}{2}\cos(x - 3t)} + \toleft{\frac{1}{2}\cos(x + 3t)}

On a test, watch out for c2c^2 versus cc: the coefficient in utt=9uxx\second{u_{tt}} = 9\second{u_{xx}} is c2=9c^2 = 9, so always take the square root before writing x∓ctx \mp ct.

4

The Hammer Strike

Next, we want to find u(x,t)\shape{u(x,t)} when the string starts completely flat at t=0t = 0, and a hammer strikes it upward with an initial velocity g(x)\vel{g(x)}:

utt\displaystyle \second{u_{tt}} =c2uxx,u(x,0)\displaystyle = c^2 \second{u_{xx}}, \qquad \shape{u(x,0)} =0,ut(x,0)\displaystyle = 0, \qquad \vel{u_t(x,0)} =g(x)\displaystyle = \vel{g(x)}
The Hammer Strike
u(x,0)=0,ut(x,0)=g(x)\htmlClass{lc-blue}{u(x,0)} = 0,\qquad \htmlClass{lc-pink}{u_t(x,0)} = \htmlClass{lc-pink}{g(x)}
u(x,t)=  ?\htmlClass{lc-blue}{u(x,t)} = \;?

For the string to be flat at t=0t = 0, the two traveling waves must be exact upside-down copies that cancel out, u(x,t)=F(x−ct)−F(x+ct)\shape{u(x,t)} = \toright{F(x - ct)} - \toleft{F(x + ct)}. Matching the velocity at t=0t = 0 connects the slope F′(x)\vel{F'(x)} directly to the hammer velocity g(x)\vel{g(x)}:

ut(x,0)\displaystyle \vel{u_t(x,0)} =−2cF′(x)\displaystyle = -2c \vel{F'(x)} =g(x)  ⟹  F′(x)\displaystyle = \vel{g(x)} \implies \vel{F'(x)} =−12cg(x)\displaystyle = -\frac{1}{2c}\vel{g(x)}

Since F(x−ct)−F(x+ct)\toright{F(x - ct)} - \toleft{F(x + ct)} is the negative of the integral of F′\vel{F'} from x−ct\toright{x - ct} to x+ct\toleft{x + ct}, the two minus signs cancel and we get the hammer-strike solution:

u(x,t)\displaystyle \shape{u(x,t)} =12c∫x−ctx+ctg(s) ds\displaystyle = \frac{1}{2c}\int_{\toright{x - ct}}^{\toleft{x + ct}} \vel{g(s)\,ds}
g(s)\htmlClass{lc-pink}{g(s)}
s\htmlClass{lc-mute}{s}
x−ct\htmlClass{lc-green}{x - ct}
xx
x+ct\htmlClass{lc-violet}{x + ct}

Here is what that growing integral looks like when a hammer strikes the interval [−1,1][-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)\shape{f(x)} and an initial velocity g(x)\vel{g(x)}, we want to solve the full initial value problem:

utt\displaystyle \second{u_{tt}} =c2uxx,u(x,0)\displaystyle = c^2 \second{u_{xx}}, \qquad \shape{u(x,0)} =f(x),ut(x,0)\displaystyle = \shape{f(x)}, \qquad \vel{u_t(x,0)} =g(x)\displaystyle = \vel{g(x)}
D'Alembert's Full Solution
utt=c2 uxxu(x,0)=f(x)ut(x,0)=g(x)u(x,t)=  ?\displaystyle \begin{aligned}\second{u_{tt}} &= c^2\,\second{u_{xx}}\\ \shape{u(x,0)} &= \shape{f(x)}\\ \vel{u_t(x,0)} &= \vel{g(x)}\\ \shape{u(x,t)} &= \;?\end{aligned}

Adding the pluck solution and the hammer solution together gives D'Alembert's full formula:

u(x,t)=12[f(x−ct)+f(x+ct)]⏟pluck: splits in half and slides+12c∫x−ctx+ctg(s) ds⏟hammer: area on [x−ct, x+ct]\displaystyle \begin{aligned} \shape{u(x,t)} &= \underbrace{\frac{1}{2}\big[\toright{f(x - ct)} + \toleft{f(x + ct)}\big]}_{\text{pluck: splits in half and slides}} \\ &\quad + \underbrace{\frac{1}{2c}\int_{\toright{x - ct}}^{\toleft{x + ct}} \vel{g(s)\,ds}}_{\text{hammer: area on } [\toright{x - ct},\, \toleft{x + ct}]} \end{aligned}

Here is how the two pieces come together for this problem:

utt\displaystyle \second{u_{tt}} =4uxx,u(x,0)\displaystyle = 4\second{u_{xx}}, \qquad \shape{u(x,0)} =x2,ut(x,0)\displaystyle = \shape{x^2}, \qquad \vel{u_t(x,0)} =sin⁡(x)\displaystyle = \vel{\sin(x)}
Text solution
Find the wave speed cc from c2=4c^2 = 4Taking the square root of the coefficient on uxx\second{u_{xx}} gives the speed of the waves.
c\displaystyle c =4\displaystyle = \sqrt{4} =2\displaystyle = 2
Shift and simplify the pluck part for f(x)=x2\shape{f(x)} = \shape{x^2}Split the parabola in half, shift left and right by 2t2t, and expand the squares so the −4xt-4xt and +4xt+4xt terms cancel.
12[(x−2t)2+(x+2t)2]\displaystyle \frac{1}{2}\big[\toright{(x - 2t)^2} + \toleft{(x + 2t)^2}\big] =x2+4t2\displaystyle = x^2 + 4t^2
Integrate the hammer part for g(x)=sin⁡(x)\vel{g(x)} = \vel{\sin(x)}Integrate sin⁡(s)\vel{\sin(s)} from x−2t\toright{x - 2t} to x+2t\toleft{x + 2t} and divide by 2c=42c = 4.
14∫x−2tx+2tsin⁡(s) ds=14[−cos⁡(s)]x−2tx+2t=14[cos⁡(x−2t)−cos⁡(x+2t)]\displaystyle \begin{aligned} &\frac{1}{4}\int_{\toright{x - 2t}}^{\toleft{x + 2t}} \vel{\sin(s)\,ds} \\ &\quad= \frac{1}{4}\big[-\cos(s)\big]_{\toright{x - 2t}}^{\toleft{x + 2t}} \\ &\quad= \frac{1}{4}\big[\cos(\toright{x - 2t}) - \cos(\toleft{x + 2t})\big] \end{aligned}
Add the parts and evaluate at x=0,t=πx = 0, t = \piCombine the pluck and hammer pieces, then plug in x=0x = 0 and t=πt = \pi where the two cosines cancel out.
u(x,t)\displaystyle \shape{u(x,t)} =x2+4t2+14[cos⁡(x−2t)−cos⁡(x+2t)]\displaystyle = x^2 + 4t^2 + \frac{1}{4}\big[\cos(\toright{x - 2t}) - \cos(\toleft{x + 2t})\big]
u(0,π)\displaystyle \shape{u(0,\pi)} =02+4π2+14[cos⁡(−2π)−cos⁡(2π)]\displaystyle = 0^2 + 4\pi^2 + \frac{1}{4}\big[\cos(\toright{-2\pi}) - \cos(\toleft{2\pi})\big] =4π2\displaystyle = 4\pi^2
6

Reflections at a Fixed End

On an infinite string, pulses slide away forever, but what happens when a string on x≥0x \ge 0 is pinned to a wall at x=0x = 0 so the end can never move?

u(0,t)\displaystyle \shape{u(0,t)} =0for all t\displaystyle = 0 \quad \text{for all } t
Reflections at a Fixed End
u(0,t)=0\htmlClass{lc-blue}{u(0,t)} = 0
0\htmlClass{lc-mute}{0}
5\htmlClass{lc-mute}{5}
x≥0x \geq 0

Once time tt is large enough that x−ct<0\toright{x - ct} < 0, the pluck formula asks for f(x−ct)\toright{f(x - ct)} at a negative position past the wall. Just as with Fourier sine series, we extend the starting shape to x<0x < 0 using an odd extension, which reflects f(x)\shape{f(x)} across x=0x = 0 and flips it upside down (if the string also starts with a velocity g(x)\vel{g(x)}, g\vel{g} gets the same odd extension):

fodd(−x)\displaystyle \shape{f_{\text{odd}}}(-x) =−f(x)\displaystyle = -\shape{f}(x)

Whenever x−ct<0\toright{x - ct} < 0, its opposite ct−x\toright{ct - x} is positive, so replacing f(x−ct)\toright{f(x - ct)} with fodd(x−ct)=−f(ct−x)\toright{f_{\text{odd}}(x - ct)} = -\toright{f(ct - x)} flips the pulse upside down and sends it back to the right:

u(x,t)={12f(x−ct)+12f(x+ct)when x−ct≥0(no reflection has reached x yet)−12f(ct−x)⏟flipped and moving right+12f(x+ct)when x−ct<0(the first term has bouncedoff x=0)\displaystyle \begin{aligned} &\shape{u(x,t)} = \\ &\begin{cases} \toright{\dfrac{1}{2}f(x - ct)} + \toleft{\dfrac{1}{2}f(x + ct)} \\ \text{when } \toright{x - ct} \ge 0 \\ \text{(no reflection has reached } x \text{ yet)} \\[10pt] \underbrace{-\toright{\dfrac{1}{2}f(ct - x)}}_{\text{flipped and moving right}} + \toleft{\dfrac{1}{2}f(x + ct)} \\ \text{when } \toright{x - ct} < 0 \\ \text{(the first term has bounced} \\ \text{off } x = 0\text{)} \end{cases} \end{aligned}

Watch how the upright pulse and its upside-down reflection cancel at x=0x = 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=0x = 0 and x=Lx = L, how do D'Alembert's traveling waves produce the standing waves from separation of variables?

u(0,t)\displaystyle \shape{u(0,t)} =0,u(L,t)\displaystyle = 0, \quad \shape{u(L,t)} =0,u(x,0)\displaystyle = 0, \qquad \shape{u(x,0)} =sin⁡ ⁣(nπxL),ut(x,0)\displaystyle = \shape{\sin\!\left(\frac{n\pi x}{L}\right)}, \quad \vel{u_t(x,0)} =0\displaystyle = 0
Standing Waves from Traveling Waves
u(x,0)=sin⁡ ⁣(nπxL)ut(x,0)=0\begin{aligned}\htmlClass{lc-blue}{u(x,0)} &= \htmlClass{lc-blue}{\sin\!\left(\dfrac{n\pi x}{L}\right)}\\ \htmlClass{lc-pink}{u_t(x,0)} &= 0\end{aligned}
n=2n = 2
0\htmlClass{lc-mute}{0}
L\htmlClass{lc-mute}{L}

To combine the two traveling sine waves, we use the product-to-sum trig identity:

sin⁡(A−B)+sin⁡(A+B)\displaystyle \toright{\sin(A - B)} + \toleft{\sin(A + B)} =2sin⁡(A)cos⁡(B)\displaystyle = \shape{2\sin(A)\cos(B)}

Plugging the nn-th harmonic shape into D'Alembert's pluck formula and combining the two terms with A=nπxLA = \frac{n\pi x}{L} and B=nπctLB = \frac{n\pi ct}{L} gives the standing wave:

u(x,t)=12sin⁡ ⁣(nπL(x−ct))+12sin⁡ ⁣(nπL(x+ct))Two half-height traveling sine waves=sin⁡ ⁣(nπxL)cos⁡ ⁣(nπctL)Combine into a single standing wave\displaystyle \begin{aligned} &\shape{u(x,t)} \\ &\quad= \toright{\frac{1}{2}\sin\!\left(\frac{n\pi}{L}(x - ct)\right)} \\ &\qquad + \toleft{\frac{1}{2}\sin\!\left(\frac{n\pi}{L}(x + ct)\right)} \\ &\quad\text{Two half-height traveling sine waves} \\[6pt] &\quad= \shape{\sin\!\left(\frac{n\pi x}{L}\right)\cos\!\left(\frac{n\pi ct}{L}\right)} \\ &\quad\text{Combine into a single standing wave} \end{aligned}

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\second{u_{tt}} = c^2 \second{u_{xx}} is built from shapes moving at wave speed cc (the square root of the coefficient on uxx\second{u_{xx}}, so utt=9uxx\second{u_{tt}} = 9\second{u_{xx}} has c=3c = 3), shifted right with x−ct\toright{x - ct} and left with x+ct\toleft{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)\shape{u(x,0)} = \shape{f(x)}, ut(x,0)=0\vel{u_t(x,0)} = 0)

There is no velocity integral to compute. Just split the starting shape in half and shift one copy right by ctct and one left by ctct:

u(x,t)=12f(x−ct)+12f(x+ct)(for u(x,0)=cos⁡(x),  u(x,t)=12cos⁡(x−3t)+12cos⁡(x+3t))\displaystyle \begin{aligned} \shape{u(x,t)} &= \toright{\tfrac{1}{2}f(x - ct)} + \toleft{\tfrac{1}{2}f(x + ct)} \\[4pt] &\Big(\text{for } \shape{u(x,0)} = \shape{\cos(x)},\; \\ \shape{u(x,t)} &= \toright{\tfrac{1}{2}\cos(x - 3t)} \\ &\quad + \toleft{\tfrac{1}{2}\cos(x + 3t)}\Big) \end{aligned}

Struck by a hammer from a flat start (u(x,0)=0\shape{u(x,0)} = 0, ut(x,0)=g(x)\vel{u_t(x,0)} = \vel{g(x)})

Integrate the initial velocity over the interval [x−ct,x+ct][\toright{x - ct}, \toleft{x + ct}] of points close enough for their disturbances to reach xx in time tt, and divide by 2c2c:

u(x,t)=12c∫x−ctx+ctg(s) ds(for ut(x,0)=sin⁡(x),  u(x,t)=16∫x−3tx+3tsin⁡(s) ds)\displaystyle \begin{aligned} \shape{u(x,t)} &= \frac{1}{2c}\int_{\toright{x - ct}}^{\toleft{x + ct}} \vel{g(s)\,ds} \\[4pt] &\Big(\text{for } \vel{u_t(x,0)} = \vel{\sin(x)},\; \\ \shape{u(x,t)} &= \frac{1}{6}\int_{\toright{x - 3t}}^{\toleft{x + 3t}} \vel{\sin(s)\,ds}\Big) \end{aligned}
If a problem gives both an initial position f(x)\shape{f(x)} and an initial velocity g(x)\vel{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)\shape{f}(\toright{x - ct}) for right or f(x+ct)\shape{f}(\toleft{x + ct}) for left.

Pinned wall at x=0x = 0 (u(0,t)=0\shape{u(0,t)} = 0 on x≥0x \ge 0)

As long as x−ct≥0\toright{x - ct} \ge 0, no reflection from the wall has reached xx yet, so leave 12f(x−ct)\toright{\frac{1}{2}f(x - ct)} alone. Once x−ct<0\toright{x - ct} < 0, flip that term upside down and reverse the sign inside using the odd extension:

12fodd(x−ct)\displaystyle \toright{\frac{1}{2}f_{\text{odd}}(x - ct)} =−12f(ct−x)\displaystyle = -\toright{\frac{1}{2}f(ct - x)}
When the string is pinned at both x=0x = 0 and x=Lx = L with a sine harmonic f(x)=sin⁡(nπxL)\shape{f(x)} = \shape{\sin(\tfrac{n\pi x}{L})}, the two traveling waves 12sin⁡(nπL(x−ct))+12sin⁡(nπL(x+ct))\toright{\frac{1}{2}\sin(\frac{n\pi}{L}(x - ct))} + \toleft{\frac{1}{2}\sin(\frac{n\pi}{L}(x + ct))} already include all wall reflections and combine via sin⁡(A−B)+sin⁡(A+B)=2sin⁡(A)cos⁡(B)\toright{\sin(A - B)} + \toleft{\sin(A + B)} = \shape{2\sin(A)\cos(B)} into the standing wave sin⁡(nπxL)cos⁡(nπctL)\shape{\sin(\tfrac{n\pi x}{L})\cos(\tfrac{n\pi ct}{L})}.

8

Practice

1

For the wave equation utt=16uxx\second{u_{tt}} = 16\second{u_{xx}} on an infinite string, write the formula u(x,t)\shape{u(x,t)} for a single wave with initial shape u(x,0)=11+x2\shape{u(x,0)} = \shape{\dfrac{1}{1 + x^2}} that travels entirely to the left without changing shape, and find the xx-position of its peak at t=3t = 3.

First find the wave speed cc from c2=16c^2 = 16. Does a single wave traveling entirely to the left replace xx with x−ctx - ct or x+ctx + ct?

Find the wave speed ccFrom c2=16c^2 = 16, the wave speed is c=4c = 4. (Using 1616 directly without taking the square root gives 11+(x+16t)2\frac{1}{1 + (x + 16t)^2} and puts the peak at x=−48x = -48.)
Shift the shape left by 4t4tBecause the wave travels entirely to the left as a single pulse, replace xx with x+4t\toleft{x + 4t} without dividing by 22 (using x−4tx - 4t sends the wave right to x=12x = 12 instead of left):
u(x,t)\displaystyle \shape{u(x,t)} =11+(x+4t)2\displaystyle = \frac{1}{1 + (\toleft{x + 4t})^2}
Locate the peak at t=3t = 3The peak sits where the squared term is zero, x+4t=0\toleft{x + 4t} = 0. At t=3t = 3, x+12=0\toleft{x + 12} = 0, which gives:
u(x,t)\displaystyle \shape{u(x,t)} =11+(x+4t)2,x\displaystyle = \frac{1}{1 + (\toleft{x + 4t})^2}, \qquad x =−12\displaystyle = -12
2

An infinite string with wave speed c=2c = 2 is held still at t=0t = 0 in a flat-topped bump of height 44 on −3≤x≤3-3 \le x \le 3 (and u(x,0)=0\shape{u(x,0)} = 0 elsewhere), then released from rest (ut(x,0)=0\vel{u_t(x,0)} = 0). Find the height of the string at t=1t = 1 at the positions x=0x = 0, x=2x = 2, and x=6x = 6, and describe the shape of the string for t>1.5t > 1.5.

Cut the bump of height 44 into two half-height copies of height 22, then find the interval each copy covers after sliding a distance ct=2(1)=2ct = 2(1) = 2 to the left and right.

Split into two half-height copies and shift by ct=2ct = 2Releasing from rest splits the bump of height 44 on [−3,3][-3, 3] into two bumps of height 22 (forgetting to cut the height in half leaves each copy at height 44, doubling the answers to u(0,1)=8u(0,1) = 8 and u(2,1)=4u(2,1) = 4). At t=1t = 1, each copy shifts by 2(1)=22(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]\displaystyle \begin{aligned} &\text{Right-moving copy: height } 2 \text{ on } \\ &\quad [-3 + 2,\, 3 + 2] = \toright{[-1, 5]} \\[4pt] &\text{Left-moving copy: height } 2 \text{ on } \\ &\quad [-3 - 2,\, 3 - 2] = \toleft{[-5, 1]} \end{aligned}
Add the heights at t=1t = 1
At x=0x = 0 (inside both [−1,5]\toright{[-1, 5]} and [−5,1]\toleft{[-5, 1]}): u(0,1)=2+2=4\shape{u(0,1)} = \toright{2} + \toleft{2} = 4.
At x=2x = 2 (inside [−1,5]\toright{[-1, 5]} only): u(2,1)=2+0=2\shape{u(2,1)} = \toright{2} + \toleft{0} = 2.
At x=6x = 6 (outside both intervals): u(6,1)=0+0=0\shape{u(6,1)} = \toright{0} + \toleft{0} = 0.
Shape for t>1.5t > 1.5Once ct=2t>3ct = 2t > 3, the two copies have each moved more than 33 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.\displaystyle \begin{aligned} &\shape{u(0,1)} = 4, \quad \shape{u(2,1)} = 2, \\ &\shape{u(6,1)} = 0; \\ &\text{for } t > 1.5\text{, two separate} \\ &\text{flat-topped bumps of height } 2 \\ &\text{and width } 6 \text{ move in opposite} \\ &\text{directions at speed } 2 \\ &\text{with } \shape{u} = 0 \text{ between them.} \end{aligned}
3

An infinite string with wave speed c=3c = 3 is initially flat (u(x,0)=0\shape{u(x,0)} = 0). At t=0t = 0, a hammer strikes the interval −2≤x≤2-2 \le x \le 2 upward with constant initial velocity ut(x,0)=6\vel{u_t(x,0)} = \vel{6} (and 00 elsewhere). Find the height of the string at t=12t = \tfrac{1}{2} at x=0x = 0 and at x=2x = 2, and find the permanent plateau height at x=0x = 0 for all t≥23t \ge \tfrac{2}{3}.

For each position xx, write down the interval [x−ct,x+ct][\toright{x - ct}, \toleft{x + ct}] and find the width of its overlap with the hammer-strike interval [−2,2][-2, 2] where g(s)=6\vel{g(s)} = \vel{6}.

Set up the hammer integral with 2c=62c = 6
u(x,t)\displaystyle \shape{u(x,t)} =16∫x−3tx+3tg(s) ds\displaystyle = \frac{1}{6}\int_{\toright{x - 3t}}^{\toleft{x + 3t}} \vel{g(s)\,ds}
(Dividing by c=3c = 3 instead of 2c=62c = 6 doubles every height to 66, 33, and 88; and multiplying the full bracket width 2ct2ct by 66 without checking where g(s)\vel{g(s)} is actually nonzero gives u(2,12)=3u(2, \tfrac{1}{2}) = 3 instead of 32\tfrac{3}{2} and makes the height at x=0x = 0 grow forever.)
Evaluate at t=12t = \tfrac{1}{2} (where 3t=323t = \tfrac{3}{2})
At x=0x = 0, the bracket [−32,32][\toright{-\tfrac{3}{2}}, \toleft{\tfrac{3}{2}}] lies entirely inside [−2,2][-2, 2], so the overlap width is 33:
u(0,12)\displaystyle \shape{u(0, \tfrac{1}{2})} =16(3×6)\displaystyle = \frac{1}{6}(3 \times \vel{6}) =3\displaystyle = 3
At x=2x = 2, the bracket [2−32, 2+32]=[12,72][\toright{2 - \tfrac{3}{2}},\, \toleft{2 + \tfrac{3}{2}}] = [\toright{\tfrac{1}{2}}, \toleft{\tfrac{7}{2}}] only overlaps [−2,2][-2, 2] on [12,2][\tfrac{1}{2}, 2], which has width 32\tfrac{3}{2}:
u(2,12)\displaystyle \shape{u(2, \tfrac{1}{2})} =16(32×6)\displaystyle = \frac{1}{6}\left(\frac{3}{2} \times \vel{6}\right) =32\displaystyle = \frac{3}{2}
Plateau height at x=0x = 0 for t≥23t \ge \tfrac{2}{3}When t≥23t \ge \tfrac{2}{3}, 3t≥23t \ge 2, so the bracket [−3t,3t][\toright{-3t}, \toleft{3t}] contains the entire hammer interval [−2,2][-2, 2] of width 44:
u(0,12)=3,u(2,12)=32,plateau height=16(4×6)=4\displaystyle \begin{aligned} \shape{u(0, \tfrac{1}{2})} &= 3, \\ \shape{u(2, \tfrac{1}{2})} &= \frac{3}{2}, \\ \text{plateau height} &= \frac{1}{6}(4 \times \vel{6}) = 4 \end{aligned}
4

An infinite string satisfies utt=9uxx\second{u_{tt}} = 9\second{u_{xx}} with initial position u(x,0)=2x2\shape{u(x,0)} = \shape{2x^2} and initial velocity ut(x,0)=cos⁡(x)\vel{u_t(x,0)} = \vel{\cos(x)}. Find the height of the string at x=0x = 0 and t=π6t = \tfrac{\pi}{6}.

Find cc from c2=9c^2 = 9, then compute the pluck part for f(x)=2x2\shape{f(x)} = \shape{2x^2} and the hammer integral for g(x)=cos⁡(x)\vel{g(x)} = \vel{\cos(x)} separately and add them.

Find the wave speed ccFrom c2=9c^2 = 9, we have c=3c = 3 and 2c=62c = 6.
Compute the pluck part for f(x)=2x2\shape{f(x)} = \shape{2x^2}
12[2(x−3t)2+2(x+3t)2]=(x2−6xt+9t2)+(x2+6xt+9t2)=2x2+18t2\displaystyle \begin{aligned} &\frac{1}{2}\big[\toright{2(x - 3t)^2} + \toleft{2(x + 3t)^2}\big] \\ &\quad= \toright{(x^2 - 6xt + 9t^2)} \\ &\qquad + \toleft{(x^2 + 6xt + 9t^2)} \\ &\quad= 2x^2 + 18t^2 \end{aligned}
Compute the hammer part for g(x)=cos⁡(x)\vel{g(x)} = \vel{\cos(x)}
16∫x−3tx+3tcos⁡(s) ds=16[sin⁡(s)]x−3tx+3t=16[sin⁡(x+3t)−sin⁡(x−3t)]\displaystyle \begin{aligned} &\frac{1}{6}\int_{\toright{x - 3t}}^{\toleft{x + 3t}} \vel{\cos(s)\,ds} \\ &\quad= \frac{1}{6}\big[\sin(s)\big]_{\toright{x - 3t}}^{\toleft{x + 3t}} \\ &\quad= \frac{1}{6}\big[\sin(\toleft{x + 3t}) - \sin(\toright{x - 3t})\big] \end{aligned}
(Integrating cos⁡(s)\vel{\cos(s)} as −sin⁡(s)-\sin(s) flips the sign of the hammer term and gives π22−13\frac{\pi^2}{2} - \frac{1}{3}; or treating sin⁡(−π2)\sin(-\tfrac{\pi}{2}) as +1+1 instead of −1-1 makes the sine terms cancel to 00 and leaves π22\frac{\pi^2}{2}.)
Add the parts and plug in x=0,t=π6x = 0, t = \tfrac{\pi}{6}
u(x,t)\displaystyle \shape{u(x,t)} =2x2+18t2+16[sin⁡(x+3t)−sin⁡(x−3t)]\displaystyle = 2x^2 + 18t^2 + \frac{1}{6}\big[\sin(\toleft{x + 3t}) - \sin(\toright{x - 3t})\big]
u(0,π6)=0+18(π6)2+16[sin⁡(π2)−sin⁡(−π2)]=π22+13\displaystyle \begin{aligned} \shape{u(0, \tfrac{\pi}{6})} &= 0 + 18\left(\frac{\pi}{6}\right)^2 \\ &\quad + \frac{1}{6}\big[\sin(\toleft{\tfrac{\pi}{2}}) - \sin(\toright{-\tfrac{\pi}{2}})\big] \\ &= \frac{\pi^2}{2} + \frac{1}{3} \end{aligned}
5

A semi-infinite string on x≥0x \ge 0 with wave speed c=2c = 2 has a pinned end u(0,t)=0\shape{u(0,t)} = 0 for all tt, and is released from rest (ut(x,0)=0\vel{u_t(x,0)} = 0) with initial shape u(x,0)=f(x)\shape{u(x,0)} = \shape{f(x)} for x≥0x \ge 0. Write the formula for u(x,t)\shape{u(x,t)} in terms of f\shape{f} when x−2t≥0\toright{x - 2t} \ge 0 and when x−2t<0\toright{x - 2t} < 0. Then, if f(x)\shape{f(x)} is a single narrow bump on 5≤x≤75 \le x \le 7 with peak height f(6)=4\shape{f(6)} = 4 (and 00 elsewhere), find the height of the string at x=2x = 2 at t=2t = 2 and at t=4t = 4.

When x−2t<0\toright{x - 2t} < 0, replace f(x−2t)\toright{f(x - 2t)} with its odd extension −f(2t−x)-\toright{f(2t - x)} so the input to f\shape{f} is positive and the reflected pulse is flipped upside down.

Write the formula before and after hitting the wallFor x−2t≥0\toright{x - 2t} \ge 0, no reflection from the wall has reached xx yet; for x−2t<0\toright{x - 2t} < 0, the odd extension flips the sign outside and reverses x−2t\toright{x - 2t} to 2t−x\toright{2t - x} inside (reversing the inside to f(2t−x)f(2t - x) without the minus sign in front forgets the upside-down reflection at the pinned wall and gives +2+2 instead of −2-2 at t=4t = 4):
u(x,t)=12f(x−2t)+12f(x+2t)(x−2t≥0),u(x,t)=−12f(2t−x)+12f(x+2t)(x−2t<0)\displaystyle \begin{aligned} \shape{u(x,t)} &= \toright{\frac{1}{2}f(x - 2t)} + \toleft{\frac{1}{2}f(x + 2t)} \\ &\quad (\toright{x - 2t} \ge 0), \\[4pt] \shape{u(x,t)} &= -\toright{\frac{1}{2}f(2t - x)} + \toleft{\frac{1}{2}f(x + 2t)} \\ &\quad (\toright{x - 2t} < 0) \end{aligned}
Evaluate at x=2,t=2x = 2, t = 2Here x−2t=−2<0\toright{x - 2t} = -2 < 0 (so 2t−x=2\toright{2t - x} = 2, where f(2)=0\shape{f(2)} = 0) and x+2t=6\toleft{x + 2t} = 6 (the incoming peak, where f(6)=4\shape{f(6)} = 4):
u(2,2)\displaystyle \shape{u(2,2)} =−12f(2)+12f(6)\displaystyle = -\toright{\frac{1}{2}f(2)} + \toleft{\frac{1}{2}f(6)} =0+12(4)\displaystyle = \toright{0} + \toleft{\frac{1}{2}(4)} =2\displaystyle = 2
Evaluate at x=2,t=4x = 2, t = 4Here x−2t=−6<0\toright{x - 2t} = -6 < 0 (so 2t−x=6\toright{2t - x} = 6, the reflected peak) and x+2t=10\toleft{x + 2t} = 10 (where f(10)=0\shape{f(10)} = 0):
u(2,4)\displaystyle \shape{u(2,4)} =−12f(6)+12f(10)\displaystyle = -\toright{\frac{1}{2}f(6)} + \toleft{\frac{1}{2}f(10)} =−12(4)+0\displaystyle = -\toright{\frac{1}{2}(4)} + \toleft{0} =−2\displaystyle = -2
6

A string of length L=πL = \pi with wave speed c=3c = 3 is pinned at both ends, u(0,t)=0\shape{u(0,t)} = 0 and u(π,t)=0\shape{u(\pi,t)} = 0. It is plucked into the shape u(x,0)=4sin⁡(3x)\shape{u(x,0)} = \shape{4\sin(3x)} and released from rest (ut(x,0)=0\vel{u_t(x,0)} = 0). Write u(x,t)\shape{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 tt when the string is completely flat.

Put parentheses around (x−3t)(\toright{x - 3t}) and (x+3t)(\toleft{x + 3t}) inside sin⁡(3x)\shape{\sin(3x)} so the 33 multiplies both xx and 3t3t, then combine the two sines using sin⁡(A−B)+sin⁡(A+B)=2sin⁡(A)cos⁡(B)\toright{\sin(A - B)} + \toleft{\sin(A + B)} = \shape{2\sin(A)\cos(B)}.

Write as two traveling wavesCut the amplitude 44 in half and replace xx with (x−3t)(\toright{x - 3t}) and (x+3t)(\toleft{x + 3t}):
u(x,t)\displaystyle \shape{u(x,t)} =2sin⁡(3(x−3t))+2sin⁡(3(x+3t))\displaystyle = \toright{2\sin\big(3(x - 3t)\big)} + \toleft{2\sin\big(3(x + 3t)\big)}
(Writing sin⁡(3x−3t)\sin(3x - 3t) instead of sin⁡(3(x−3t))=sin⁡(3x−9t)\sin(3(x - 3t)) = \sin(3x - 9t) leaves out the factor of 33 on 3t3t, giving cos⁡(3t)\cos(3t) instead of cos⁡(9t)\cos(9t) and the wrong flat time t=π6t = \tfrac{\pi}{6}.)
Combine into a standing waveApply sin⁡(A−B)+sin⁡(A+B)=2sin⁡(A)cos⁡(B)\toright{\sin(A - B)} + \toleft{\sin(A + B)} = \shape{2\sin(A)\cos(B)} with A=3xA = 3x and B=9tB = 9t:
u(x,t)\displaystyle \shape{u(x,t)} =4sin⁡(3x)cos⁡(9t)\displaystyle = 4\sin(3x)\cos(9t)
Find the first positive time when the string is flatThe string is flat everywhere when cos⁡(9t)=0\cos(9t) = 0, which first happens for t>0t > 0 when 9t=π29t = \tfrac{\pi}{2}:
t\displaystyle t =π18\displaystyle = \frac{\pi}{18}