Differential EquationsPartial Differential Equations1 of 6
Partial Differential Equations · 1

Introduction to PDEs

When something like the temperature along a rod or the height of a string depends on both position xx and time tt, we need a partial differential equation to connect its shape in space right now to how it moves in time next.

1

What ∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}} Means: Neighbor Average Minus Me

The heat, wave, and Laplace equations are all built around the second spatial derivative ∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}}, which measures how different a point's value is from the average of its immediate neighbors.

For a function of two variables u(x,t)\uval{u(x, t)}, a partial derivative holds one variable fixed while differentiating with respect to the other: ∂u∂t\rate{\frac{\partial u}{\partial t}} stays at one fixed spot xx and tracks how fast uu changes as time ticks forward, while ∂u∂x\rate{\frac{\partial u}{\partial x}} freezes time and measures the slope of the curve across space.

What ∂²u/∂x² Means: Neighbor Average Minus Me
∂\partial
Text solution
Subtract the left slope from the right slopeAt a point ume\uval{u_{\text{me}}} sitting between immediate neighbors uleft\uval{u_{\text{left}}} and uright\uval{u_{\text{right}}}, one unit away on each side, the second spatial derivative measures how the slope changes from the left step to the right step:
Change in slope\displaystyle \curv{\text{Change in slope}} =(uright−ume)−(ume−uleft)\displaystyle = (\uval{u_{\text{right}}} - \uval{u_{\text{me}}}) - (\uval{u_{\text{me}}} - \uval{u_{\text{left}}})
Regroup and factor out 22Combining the two neighbor terms puts their midpoint average right next to ume\uval{u_{\text{me}}}:
Change in slope=uleft+uright−2ume=2(uleft+uright2⏟neighbor average−ume)\displaystyle \begin{aligned} &\curv{\text{Change in slope}} \\ &\qquad= \uval{u_{\text{left}}} + \uval{u_{\text{right}}} - 2\uval{u_{\text{me}}} \\ &\qquad= 2\left(\underbrace{\frac{\uval{u_{\text{left}}} + \uval{u_{\text{right}}}}{2}}_{\text{neighbor average}} - \uval{u_{\text{me}}}\right) \end{aligned}

So the sign and size of ∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}} tell us directly how the average of the surrounding neighbors compares to the center point itself.

uleft\htmlClass{lc-blue}{u_{\text{left}}}
ume\htmlClass{lc-blue}{u_{\text{me}}}
uright\htmlClass{lc-blue}{u_{\text{right}}}
uleft+uright2\dfrac{\htmlClass{lc-blue}{u_{\text{left}}} + \htmlClass{lc-blue}{u_{\text{right}}}}{2}
valley\text{valley}
∂2u∂x2>0\htmlClass{lc-orange}{\dfrac{\partial^2 u}{\partial x^2}} > 0
uleft\htmlClass{lc-blue}{u_{\text{left}}}
ume\htmlClass{lc-blue}{u_{\text{me}}}
uright\htmlClass{lc-blue}{u_{\text{right}}}
uleft+uright2\dfrac{\htmlClass{lc-blue}{u_{\text{left}}} + \htmlClass{lc-blue}{u_{\text{right}}}}{2}
peak\text{peak}
∂2u∂x2<0\htmlClass{lc-orange}{\dfrac{\partial^2 u}{\partial x^2}} < 0
uleft=40∘\htmlClass{lc-blue}{u_{\text{left}} = 40^\circ}
ume=50∘\htmlClass{lc-blue}{u_{\text{me}} = 50^\circ}
uright=60∘\htmlClass{lc-blue}{u_{\text{right}} = 60^\circ}
40∘+60∘2=50∘\dfrac{\htmlClass{lc-blue}{40^\circ} + \htmlClass{lc-blue}{60^\circ}}{2} = \htmlClass{lc-blue}{50^\circ}
straight\text{straight}
ramp\text{ramp}
∂2u∂x2=0\htmlClass{lc-orange}{\dfrac{\partial^2 u}{\partial x^2}} = 0

Along the curve, the arrow from ume\uval{u_{\text{me}}} to the neighbor average uleft+uright2\frac{\uval{u_{\text{left}}} + \uval{u_{\text{right}}}}{2} points down at peaks and up in valleys. It is much longer on a sharp spike than on a wide, gentle hill, and it drops to zero on a tilted straight ramp because the hotter and colder neighbors cancel out.

At every spot along the rod, the second derivative is just the vertical arrow from that spot's temperature to the average of its immediate left and right neighbors.
2

The Heat Equation: Smoothing Toward the Average

Now we want to find how the temperature u(x,t)\uval{u(x, t)} along a metal rod changes over time as heat flows between neighboring slices. Because a slice only feels the atoms touching it on its immediate left and right, the rate ∂u∂t\rate{\frac{\partial u}{\partial t}} at which its temperature rises or falls is directly proportional to how much hotter or colder its neighbors are on average.

The Heat Equation: Smoothing Toward the Average
u\htmlClass{lc-blue}{u}
tt

Writing "rate of change in time is proportional to Neighbor Average minus Me" gives the one-dimensional heat equation, where the thermal diffusivity α\alpha sets how quickly the material conducts heat:

∂u∂t⏟temperaturevelocity\displaystyle \underbrace{\rate{\frac{\partial u}{\partial t}}}_{\rate{\substack{\text{temperature} \\ \text{velocity}}}} =α∂2u∂x2⏟neighbor averageminus me\displaystyle = \alpha \underbrace{\curv{\frac{\partial^2 u}{\partial x^2}}}_{\curv{\substack{\text{neighbor average} \\ \text{minus me}}}}

Because the velocity ∂u∂t\rate{\frac{\partial u}{\partial t}} points toward the neighbor average, sharp spikes smooth out fast while wide hills flatten slowly. Everything stops changing once the temperature settles into a straight line between the two ends, where ∂2u∂x2=0\curv{\frac{\partial^2 u}{\partial x^2}} = 0 everywhere.

Each point moves toward the average of its two neighbors, so sharp spikes flatten fast, wide hills flatten slowly, and everything stops along the straight line between the two ends.
3

The Wave Equation: Inertia and Overshooting

On a stretched guitar string, we want to track the vertical height u(x,t)\uval{u(x, t)} as tension pulls curved sections back toward their neighbors. Unlike heat, a piece of string has mass and inertia, so by Newton's second law (F=maF = ma) the pull from Neighbor Average minus Me controls the string's vertical acceleration ∂2u∂t2\accel{\frac{\partial^2 u}{\partial t^2}} rather than its velocity.

The Wave Equation: Inertia and Overshooting
u(x,t)\htmlClass{lc-blue}{u(x, t)}
tt

Setting the vertical acceleration proportional to the spatial curvature gives the one-dimensional wave equation, where cc is the speed at which ripples travel along the string:

∂2u∂t2⏟verticalacceleration\displaystyle \underbrace{\accel{\frac{\partial^2 u}{\partial t^2}}}_{\accel{\substack{\text{vertical} \\ \text{acceleration}}}} =c2∂2u∂x2⏟neighbor averageminus me\displaystyle = c^2 \underbrace{\curv{\frac{\partial^2 u}{\partial x^2}}}_{\curv{\substack{\text{neighbor average} \\ \text{minus me}}}}

Because Neighbor Average minus Me drives acceleration ∂2u∂t2\accel{\frac{\partial^2 u}{\partial t^2}}, a released peak speeds up all the way down to its neighbors' level. It is moving fastest right as it crosses the flat line, so it overshoots into a dip on the other side as the pluck splits into two outward-traveling ripples.

Because the gap to its neighbors' average height drives acceleration rather than velocity, a plucked piece of string moves fastest right as it reaches its neighbors' level and overshoots into a dip.
4

Laplace's Equation: Equilibrium in Two Dimensions

When a two-dimensional surface like a heated metal plate or a soap film settles into permanent equilibrium, its temperature or height u(x,y)\uval{u(x, y)} stops changing in time and satisfies Laplace's equation. On a 2D surface, a point has left-and-right neighbors along xx as well as front-and-back neighbors along yy, so comparing a point to all of its surrounding neighbors means adding the second derivatives in both directions.

Laplace's Equation: Equilibrium in Two Dimensions

Setting the time derivative ∂u∂t\rate{\frac{\partial u}{\partial t}} to zero in the 2D heat equation leaves Laplace's equation, often written with the shorthand Laplacian symbol ∇2u\curv{\nabla^2 u}:

∇2u=∂2u∂x2+∂2u∂y2⏟all neighbors’ averageminus me=0\displaystyle \underbrace{\curv{\nabla^2 u} = \curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}}}_{\curv{\begin{gathered}\scriptstyle\text{all neighbors' average} \\[-5pt] \scriptstyle\text{minus me}\end{gathered}}} = 0

In a bowl, the surface curves up in both directions, so all four neighbors sit above the center (∇2u>0\curv{\nabla^2 u} > 0). In a balanced saddle, it curves up left-to-right by the exact same amount it curves down front-to-back (∂2u∂y2=−∂2u∂x2\curvy{\frac{\partial^2 u}{\partial y^2}} = -\curv{\frac{\partial^2 u}{\partial x^2}}), so the higher pair and lower pair cancel out and the four neighbors average to the center (∇2u=0\curv{\nabla^2 u} = 0).

On a curved surface, the average of all four neighbors equals the center point whenever the front–back direction bends down just as much as the left–right direction bends up.
5

Checking Candidate Solutions in a PDE

To test whether a candidate formula solves a PDE, we compute the partial derivatives the equation calls for, plug them in, and check whether the left and right sides match.

Checking Candidate Solutions in a PDE
u(x,y)\displaystyle \uval{u(x, y)} =x2−y2\displaystyle = \uval{x^2 - y^2}
∂2u∂x2+∂2u∂y2\displaystyle \curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} =  ?\displaystyle = \;?
Text solution
Test u(x,y)=x2−y2\uval{u(x, y) = x^2 - y^2} in Laplace's equation ∂2u∂x2+∂2u∂y2=0\curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} = 0Differentiating twice in xx (holding yy constant) and twice in yy (holding xx constant) shows that the upward curvature in xx and downward curvature in yy cancel out:
∂u∂x=2x  ⟹  ∂2u∂x2=2∂u∂y=−2y  ⟹  ∂2u∂y2=−2∂2u∂x2+∂2u∂y2=2+(−2)=0\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial x}} = 2x &\implies \curv{\frac{\partial^2 u}{\partial x^2}} = \curv{2} \\ \rate{\frac{\partial u}{\partial y}} = -2y &\implies \curvy{\frac{\partial^2 u}{\partial y^2}} = \curvy{-2} \\ \curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} &= \curv{2} + (\curvy{-2}) = 0 \end{aligned}
So the saddle u(x,y)=x2−y2\uval{u(x, y) = x^2 - y^2} solves Laplace's equation, whereas the bowl u(x,y)=x2+y2\uval{u(x, y) = x^2 + y^2} gives 2+2=4≠0\curv{2} + \curvy{2} = 4 \neq 0 and is not a solution.
Test u(x,t)=e−9αtsin⁡(3x)\uval{u(x, t)} = \tpart{e^{-9\alpha t}}\uval{\sin(3x)} in the heat equation ∂u∂t=α∂2u∂x2\rate{\frac{\partial u}{\partial t}} = \alpha\curv{\frac{\partial^2 u}{\partial x^2}}One time derivative on the left pulls down −9α\tpart{-9\alpha} from the exponential, while two space derivatives on the right pull out −32=−9\curv{-3^2} = \curv{-9} from sin⁡(3x)\uval{\sin(3x)}:
∂u∂t=−9αe−9αtsin⁡(3x)∂u∂x=3e−9αtcos⁡(3x)  ⟹  α∂2u∂x2=−9αe−9αtsin⁡(3x)\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial t}} &= \tpart{-9\alpha} \tpart{e^{-9\alpha t}}\uval{\sin(3x)} \\[4pt] \rate{\frac{\partial u}{\partial x}} &= \curv{3}\tpart{e^{-9\alpha t}}\uval{\cos(3x)} \implies \\ \alpha\curv{\frac{\partial^2 u}{\partial x^2}} &= \curv{-9}\alpha \tpart{e^{-9\alpha t}}\uval{\sin(3x)} \end{aligned}
Because both sides equal −9αe−9αtsin⁡(3x)-9\alpha \tpart{e^{-9\alpha t}}\uval{\sin(3x)}, the decaying sine wave solves the heat equation.
Test u(x,t)=cos⁡(3ct)sin⁡(3x)\uval{u(x, t)} = \tpart{\cos(3ct)}\uval{\sin(3x)} in the wave equation ∂2u∂t2=c2∂2u∂x2\accel{\frac{\partial^2 u}{\partial t^2}} = c^2\curv{\frac{\partial^2 u}{\partial x^2}}Two time derivatives of cos⁡(3ct)\tpart{\cos(3ct)} pull out −(3c)2=−9c2\tpart{-(3c)^2} = \tpart{-9c^2}, matching the −9\curv{-9} pulled out by two space derivatives of sin⁡(3x)\uval{\sin(3x)} multiplied by c2c^2:
∂u∂t=−3csin⁡(3ct)sin⁡(3x)  ⟹  ∂2u∂t2=−9c2cos⁡(3ct)sin⁡(3x)∂u∂x=3cos⁡(3ct)cos⁡(3x)  ⟹  c2∂2u∂x2=−9c2cos⁡(3ct)sin⁡(3x)\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial t}} &= \tpart{-3c}\tpart{\sin(3ct)}\uval{\sin(3x)} \implies \\ \accel{\frac{\partial^2 u}{\partial t^2}} &= \tpart{-9c^2}\tpart{\cos(3ct)}\uval{\sin(3x)} \\[4pt] \rate{\frac{\partial u}{\partial x}} &= \curv{3}\tpart{\cos(3ct)}\uval{\cos(3x)} \implies \\ c^2\curv{\frac{\partial^2 u}{\partial x^2}} &= \curv{-9}c^2\tpart{\cos(3ct)}\uval{\sin(3x)} \end{aligned}

Both sides match, so the standing wave solves the wave equation and vibrates back and forth forever.

6

Boundary Conditions and Initial Conditions

A PDE only tells us how interior points react to their neighbors. To pin down a single solution, we also need boundary conditions at the spatial edges and initial conditions at the starting time t=0t = 0.

Boundary Conditions and Initial Conditions
00
LL
Heat, ends held\text{Heat, ends held}
u(0,t)=0\htmlClass{lc-blue}{u(0, t)} = 0
u(L,t)=100\htmlClass{lc-blue}{u(L, t)} = 100
u(x,0)=f(x)\htmlClass{lc-blue}{u(x, 0)} = \htmlClass{lc-blue}{f(x)}
Heat, ends insulated\text{Heat, ends insulated}
∂u∂x(0,t)=0\htmlClass{lc-pink}{\dfrac{\partial u}{\partial x}(0, t)} = 0
∂u∂x(L,t)=0\htmlClass{lc-pink}{\dfrac{\partial u}{\partial x}(L, t)} = 0
u(x,0)=f(x)\htmlClass{lc-blue}{u(x, 0)} = \htmlClass{lc-blue}{f(x)}
Wave, ends pinned\text{Wave, ends pinned}
u(0,t)=0\htmlClass{lc-blue}{u(0, t)} = 0
u(L,t)=0\htmlClass{lc-blue}{u(L, t)} = 0
u(x,0)=f(x)\htmlClass{lc-blue}{u(x, 0)} = \htmlClass{lc-blue}{f(x)}
∂u∂t(x,0)=g(x)\htmlClass{lc-pink}{\dfrac{\partial u}{\partial t}(x, 0)} = \htmlClass{lc-pink}{g(x)}
Laplace, a plate\text{Laplace, a plate}
u(x,H)=f(x)\htmlClass{lc-blue}{u(x, H)} = \htmlClass{lc-blue}{f(x)}
u(0,y)=0\htmlClass{lc-blue}{u(0, y)} = 0
u(L,y)=0\htmlClass{lc-blue}{u(L, y)} = 0
u(x,0)=0\htmlClass{lc-blue}{u(x, 0)} = 0
0\htmlClass{lc-mute}{0}
L\htmlClass{lc-mute}{L}
H\htmlClass{lc-mute}{H}
no t=0 condition\text{no } t = 0 \text{ condition}
Text solution
Write the boundary conditions at the spatial edgesHolding an end at a known temperature or pinning a string fixes u\uval{u} directly, while capping an end with thermal insulation blocks heat flow by forcing the spatial slope ∂u∂x\rate{\frac{\partial u}{\partial x}} to be zero:
Fixed value at the ends:u(0,t)=0,u(L,t)=100Insulated ends (zero slope):∂u∂x(0,t)=0,∂u∂x(L,t)=0\displaystyle \begin{aligned} &\text{Fixed value at the ends:} \\ &\uval{u(0, t)} = 0, \quad \uval{u(L, t)} = 100 \\[6pt] &\text{Insulated ends (zero slope):} \\ &\rate{\frac{\partial u}{\partial x}(0, t)} = 0, \quad \rate{\frac{\partial u}{\partial x}(L, t)} = 0 \end{aligned}
Count the time derivatives to write the initial conditions at t=0t = 0Each time derivative in the PDE requires one starting curve across space at t=0t = 0:
Heat equation (first-order in t):u(x,0)=f(x)Wave equation(second-order in t):u(x,0)=f(x),∂u∂t(x,0)=g(x)Laplace’s equation (no t):no initial conditions(4 edge boundaries only)\displaystyle \begin{aligned} &\text{Heat equation (first-order in } t\text{):} \\ &\uval{u(x, 0)} = \uval{f(x)} \\[6pt] &\text{Wave equation} \\ &\text{(second-order in } t\text{):} \\ &\uval{u(x, 0)} = \uval{f(x)}, \quad \rate{\frac{\partial u}{\partial t}(x, 0)} = \rate{g(x)} \\[6pt] &\text{Laplace's equation (no } t\text{):} \\ &\text{no initial conditions} \\ &\text{(4 edge boundaries only)} \end{aligned}

In wave problems, look for the physical clue that sets one of the two initial conditions to zero: "plucked and released from rest" means zero starting velocity, ∂u∂t(x,0)=0\rate{\frac{\partial u}{\partial t}(x, 0)} = 0, whereas "starts flat and is struck" means zero starting height, u(x,0)=0\uval{u(x, 0)} = 0.

Key concepts

Every problem here comes down to reading the spatial piece ∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}} (or ∇2u=∂2u∂x2+∂2u∂y2\curv{\nabla^2 u} = \curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} in 2D) as Neighbor Average minus Me:

∂2u∂x2∝uleft+uright2−ume\displaystyle \curv{\frac{\partial^2 u}{\partial x^2}} \propto \frac{\uval{u_{\text{left}}} + \uval{u_{\text{right}}}}{2} - \uval{u_{\text{me}}}

At a peak, neighbors are lower so ∂2u∂x2<0\curv{\frac{\partial^2 u}{\partial x^2}} < 0 (and much more negative on a sharp spike than on a wide hill); in a valley, neighbors are higher so ∂2u∂x2>0\curv{\frac{\partial^2 u}{\partial x^2}} > 0. Don't confuse spatial slope ∂u∂x\rate{\frac{\partial u}{\partial x}} with curvature ∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}}: on a tilted straight line like 40∘→50∘→60∘\uval{40^\circ} \to \uval{50^\circ} \to \uval{60^\circ}, the slope is nonzero so heat flows through, but 40+602−50=0\frac{\uval{40} + \uval{60}}{2} - \uval{50} = 0, so ∂2u∂x2=0\curv{\frac{\partial^2 u}{\partial x^2}} = 0 and that point's temperature does not change right now.

How a system behaves, and what conditions it needs, comes directly from what the PDE sets equal to Neighbor Average minus Me:

Heat smoothing (∂u∂t=α∂2u∂x2\rate{\frac{\partial u}{\partial t}} = \alpha\curv{\frac{\partial^2 u}{\partial x^2}})

Neighbor Average minus Me sets the velocity ∂u∂t\rate{\frac{\partial u}{\partial t}}. Because two xx-derivatives of sin⁡(nx)\uval{\sin(nx)} pull out −n2\curv{-n^2}, a single tt-derivative needs an exponential u(x,t)=e−n2αtsin⁡(nx)\uval{u(x, t)} = \tpart{e^{-n^2\alpha t}}\uval{\sin(nx)} (such as e−9αtsin⁡(3x)\tpart{e^{-9\alpha t}}\uval{\sin(3x)}), so a high-frequency wiggle sin⁡(nx)\uval{\sin(nx)} decays n2n^2 times faster than sin⁡(x)\uval{\sin(x)} and smooths into a straight line. Being first-order in tt, it takes 1 initial condition u(x,0)=f(x)\uval{u(x, 0)} = \uval{f(x)}. At an end x=Lx = L, a held temperature fixes u(L,t)=T0\uval{u(L, t)} = T_0, whereas thermal insulation fixes the slope ∂u∂x(L,t)=0\rate{\frac{\partial u}{\partial x}(L, t)} = 0. Never write u(L,t)=0\uval{u(L, t)} = 0 for an insulated end, which would mean clamping it at 0∘0^\circ.

Wave inertia (∂2u∂t2=c2∂2u∂x2\accel{\frac{\partial^2 u}{\partial t^2}} = c^2\curv{\frac{\partial^2 u}{\partial x^2}})

Neighbor Average minus Me sets the acceleration ∂2u∂t2\accel{\frac{\partial^2 u}{\partial t^2}}, causing peaks to speed up toward the flat line and overshoot. Two tt-derivatives balance two xx-derivatives using cosines and sines, u(x,t)=cos⁡(nct)sin⁡(nx)\uval{u(x, t)} = \tpart{\cos(nct)}\uval{\sin(nx)} (such as cos⁡(3ct)sin⁡(3x)\tpart{\cos(3ct)}\uval{\sin(3x)}), producing steady vibration that continues forever. Being second-order in tt, it requires 2 initial conditions: starting shape u(x,0)=f(x)\uval{u(x, 0)} = \uval{f(x)} and starting velocity ∂u∂t(x,0)=g(x)\rate{\frac{\partial u}{\partial t}(x, 0)} = \rate{g(x)}.

2D Equilibrium (∂2u∂x2+∂2u∂y2=0\curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} = 0)

When ∂u∂t=0\rate{\frac{\partial u}{\partial t}} = 0, every point already equals the average of its four neighbors. Because tt is absent, do not write any initial conditions at t=0t = 0, and specify only boundary conditions around the edges. In 2D, zero Laplacian does not require a flat plane: a saddle like u(x,y)=x2−y2\uval{u(x, y) = x^2 - y^2} curves up in xx (∂2u∂x2=2\curv{\frac{\partial^2 u}{\partial x^2}} = \curv{2}) and down by an equal amount in yy (∂2u∂y2=−2\curvy{\frac{\partial^2 u}{\partial y^2}} = \curvy{-2}) so the four neighbors still average to the center.

7

Practice

1

At t=0t = 0 along a metal rod governed by ∂u∂t=α∂2u∂x2\rate{\frac{\partial u}{\partial t}} = \alpha \curv{\frac{\partial^2 u}{\partial x^2}}, Point A sits at the tip of a narrow hot spike, Point B sits at the top of a wide gentle hill of the same peak temperature, Point C sits in the middle of a straight tilted segment where temperature rises steadily from 40∘\uval{40^\circ} to 60∘\uval{60^\circ}, and Point D sits at the bottom of a cold valley. Give the sign (++, −-, or 00) of ∂u∂t\rate{\frac{\partial u}{\partial t}} at each of the four points at t=0t = 0, and state which of A or B cools faster initially and why.

Compare each point's temperature ume\uval{u_{\text{me}}} to the average of its immediate left and right neighbors uleft+uright2\frac{\uval{u_{\text{left}}} + \uval{u_{\text{right}}}}{2}.

At Point A and Point B, both immediate neighbors sit below the peak, so Neighbor Average minus Me (∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}}) is negative: ∂u∂t\rate{\frac{\partial u}{\partial t}} is −- at A and −- at B.
At Point C on the straight tilted segment, the hotter neighbor on the right pulls up by the exact same amount the colder neighbor on the left pulls down:
∂2u∂x2\displaystyle \curv{\frac{\partial^2 u}{\partial x^2}} =0  ⟹  ∂u∂t\displaystyle = 0 \implies \rate{\frac{\partial u}{\partial t}} =0\displaystyle = \mathbf{0}
(Watch out: the likeliest wrong answer at Point C is ++, from seeing the positive slope ∂u∂x>0\rate{\frac{\partial u}{\partial x}} > 0 from 40∘\uval{40^\circ} to 60∘\uval{60^\circ} and confusing spatial slope with ∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}}. Heat is flowing past C, but as much enters from the hot side as leaves to the cold side.)
At Point D in the valley, both neighbors sit higher than the bottom, so ∂u∂t\rate{\frac{\partial u}{\partial t}} is ++.
Point A cools faster than Point Bbecause the immediate neighbors next to a sharp, narrow spike are much lower than the tip, giving a much larger negative value of Neighbor Average minus Me (∂2u∂x2\curv{\frac{\partial^2 u}{\partial x^2}}) than at the top of a wide gentle hill.
2

A 2D metal plate is in steady-state thermal equilibrium (∇2u=∂2u∂x2+∂2u∂y2=0\curv{\nabla^2 u} = \curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} = 0). At a point PP in the plate, the temperature is 50∘\uval{50^\circ} and the surface curves upward along the xx-direction with ∂2u∂x2=+8\curv{\frac{\partial^2 u}{\partial x^2}} = \curv{+8}. What is ∂2u∂y2\curvy{\frac{\partial^2 u}{\partial y^2}} at PP, what shape does the temperature surface have there, and if PP's immediate left and right neighbors average 54∘\uval{54^\circ}, what must its immediate front and back neighbors average?

In equilibrium, the two curvatures must add to 00, and the average of all four neighbors must equal PP's own temperature of 50∘\uval{50^\circ}.

For ∂2u∂x2+∂2u∂y2=0\curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} = 0 with ∂2u∂x2=+8\curv{\frac{\partial^2 u}{\partial x^2}} = \curv{+8}:
8+∂2u∂y2\displaystyle \curv{8} + \curvy{\frac{\partial^2 u}{\partial y^2}} =0  ⟹  ∂2u∂y2\displaystyle = 0 \implies \curvy{\frac{\partial^2 u}{\partial y^2}} =−8\displaystyle = \curvy{-8}
Because the surface curves upward in xx and downward by an equal amount in yy, it forms a saddle shape.
The left and right neighbors average 54∘\uval{54^\circ}, which is +4∘\curv{+4^\circ} above PP's temperature of 50∘\uval{50^\circ}. To make all four neighbors average to 50∘\uval{50^\circ}, the front and back neighbors must sit −4∘\curvy{-4^\circ} below PP:
50∘−4∘\displaystyle \uval{50^\circ} - \curvy{4^\circ} =46∘\displaystyle = 46^\circ
(Watch out: a common mistake is to average the 50∘\uval{50^\circ} center and 54∘\uval{54^\circ} pair to get 52∘52^\circ, or to forget that 50∘\uval{50^\circ} is the midpoint between the xx-pair average 54∘\uval{54^\circ} and the yy-pair average.)
Final result: ∂2u∂y2=−8\curvy{\frac{\partial^2 u}{\partial y^2}} = \mathbf{-8}, saddle shape, and front-and-back neighbor average =46∘= \mathbf{46^\circ}.
3

Test whether each function solves Laplace's equation ∂2u∂x2+∂2u∂y2=0\curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} = 0 by computing its second partial derivatives: (a) u(x,y)=2x2+2y2\uval{u(x, y) = 2x^2 + 2y^2}, (b) u(x,y)=x3−3xy2\uval{u(x, y) = x^3 - 3xy^2}.

Hold yy constant when differentiating twice with respect to xx, and hold xx constant when differentiating twice with respect to yy.

(a)Differentiating u(x,y)=2x2+2y2\uval{u(x, y) = 2x^2 + 2y^2}:
∂u∂x=4x  ⟹  ∂2u∂x2=4∂u∂y=4y  ⟹  ∂2u∂y2=4∂2u∂x2+∂2u∂y2=4+4=8≠0\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial x}} = 4x &\implies \curv{\frac{\partial^2 u}{\partial x^2}} = \curv{4} \\ \rate{\frac{\partial u}{\partial y}} = 4y &\implies \curvy{\frac{\partial^2 u}{\partial y^2}} = \curvy{4} \\ \curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} &= \curv{4} + \curvy{4} = 8 \neq 0 \end{aligned}
So (a) is not a solution.
(b)Differentiating u(x,y)=x3−3xy2\uval{u(x, y) = x^3 - 3xy^2}:
∂u∂x=3x2−3y2  ⟹  ∂2u∂x2=6x∂u∂y=−6xy  ⟹  ∂2u∂y2=−6x\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial x}} = 3x^2 - 3y^2 &\implies \curv{\frac{\partial^2 u}{\partial x^2}} = \curv{6x} \\ \rate{\frac{\partial u}{\partial y}} = -6xy &\implies \curvy{\frac{\partial^2 u}{\partial y^2}} = \curvy{-6x} \end{aligned}
(Watch out: the likeliest wrong answer on part (b) is ∂2u∂y2=−6\curvy{\frac{\partial^2 u}{\partial y^2}} = -6, which gives 6x−6≠0\curv{6x} - 6 \neq 0 and falsely rejects the solution; this happens if you drop the constant factor xx while differentiating −3xy2-3xy^2 with respect to yy.) Adding the two second derivatives:
∂2u∂x2+∂2u∂y2\displaystyle \curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} =6x+(−6x)\displaystyle = \curv{6x} + (\curvy{-6x}) =0\displaystyle = 0
So (a) is not a solution, and (b) is a solution.
4

Find the value of the constant kk for which u(x,t)=e−ktsin⁡(5x)\uval{u(x, t)} = \tpart{e^{-kt}}\uval{\sin(5x)} solves the heat equation ∂u∂t=α∂2u∂x2\rate{\frac{\partial u}{\partial t}} = \alpha \curv{\frac{\partial^2 u}{\partial x^2}}, and find how many times larger the decay rate constant kk is for the higher-frequency wave u(x,t)=e−ktsin⁡(15x)\uval{u(x, t)} = \tpart{e^{-kt}}\uval{\sin(15x)}.

Plug u(x,t)\uval{u(x, t)} into both sides of ∂u∂t=α∂2u∂x2\rate{\frac{\partial u}{\partial t}} = \alpha \curv{\frac{\partial^2 u}{\partial x^2}} and count how many times the spatial frequency 55 (or 1515) is pulled out on the right-hand side.

Differentiating u(x,t)=e−ktsin⁡(5x)\uval{u(x, t)} = \tpart{e^{-kt}}\uval{\sin(5x)} once in tt and twice in xx:
∂u∂t=−ke−ktsin⁡(5x)α∂2u∂x2=−52αe−ktsin⁡(5x)=−25αe−ktsin⁡(5x)\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial t}} &= \tpart{-k}\tpart{e^{-kt}}\uval{\sin(5x)} \\ \alpha\curv{\frac{\partial^2 u}{\partial x^2}} &= \curv{-5^2}\alpha \tpart{e^{-kt}}\uval{\sin(5x)} = \curv{-25}\alpha \tpart{e^{-kt}}\uval{\sin(5x)} \end{aligned}
Matching the two sides gives k=25αk = 25\alpha.
For sin⁡(15x)\uval{\sin(15x)}, two xx-derivatives pull out −152=−225\curv{-15^2} = \curv{-225}, giving k=225αk = 225\alpha. (Watch out: the likeliest wrong answer is k=5αk = 5\alpha and a ratio of 155=3\tfrac{15}{5} = 3 times larger, from taking only one spatial derivative or forgetting to square the 55 and 1515 when differentiating sin⁡(nx)\uval{\sin(nx)} twice.)
Dividing the two decay rates gives:
225α25α\displaystyle \frac{225\alpha}{25\alpha} =9\displaystyle = 9
So k=25αk = \mathbf{25\alpha}, and the decay rate for sin⁡(15x)\uval{\sin(15x)} is 9\mathbf{9} times larger.
5

Check whether the standing wave u(x,t)=cos⁡(4ct)sin⁡(4x)\uval{u(x, t)} = \tpart{\cos(4ct)}\uval{\sin(4x)} solves the wave equation ∂2u∂t2=c2∂2u∂x2\accel{\frac{\partial^2 u}{\partial t^2}} = c^2 \curv{\frac{\partial^2 u}{\partial x^2}} by computing both sides, and explain from the order of the time derivative why this solution vibrates back and forth instead of decaying exponentially.

Remember the chain rule factor 4c\tpart{4c} each time you differentiate cos⁡(4ct)\tpart{\cos(4ct)} with respect to tt.

Left-hand side (two tt-derivatives):
∂u∂t=−4csin⁡(4ct)sin⁡(4x)∂2u∂t2=−16c2cos⁡(4ct)sin⁡(4x)\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial t}} &= \tpart{-4c}\tpart{\sin(4ct)}\uval{\sin(4x)} \\ \accel{\frac{\partial^2 u}{\partial t^2}} &= \tpart{-16c^2}\tpart{\cos(4ct)}\uval{\sin(4x)} \end{aligned}
(Watch out: a common mistake is forgetting to pull out the constant cc from inside cos⁡(4ct)\tpart{\cos(4ct)} during the time derivatives, which gives −16cos⁡(4ct)sin⁡(4x)-16\tpart{\cos(4ct)}\uval{\sin(4x)} on the left side and makes it look like c2c^2 doesn't match.)
Right-hand side (two xx-derivatives multiplied by c2c^2):
∂u∂x=4cos⁡(4ct)cos⁡(4x)  ⟹  ∂2u∂x2=−16cos⁡(4ct)sin⁡(4x)c2∂2u∂x2=−16c2cos⁡(4ct)sin⁡(4x)\displaystyle \begin{aligned} \rate{\frac{\partial u}{\partial x}} = \curv{4}\tpart{\cos(4ct)}\uval{\cos(4x)} &\implies \curv{\frac{\partial^2 u}{\partial x^2}} = \curv{-16}\tpart{\cos(4ct)}\uval{\sin(4x)} \\ c^2\curv{\frac{\partial^2 u}{\partial x^2}} &= \curv{-16}c^2\tpart{\cos(4ct)}\uval{\sin(4x)} \end{aligned}
Both sides equal −16c2cos⁡(4ct)sin⁡(4x)-16c^2\tpart{\cos(4ct)}\uval{\sin(4x)}, so yes, it is a solution, and it vibrates back and forth because the second-order time derivative ∂2u∂t2\accel{\frac{\partial^2 u}{\partial t^2}} differentiates cos⁡(4ct)\tpart{\cos(4ct)} twice to pull out a minus sign that balances the minus sign from differentiating sin⁡(4x)\uval{\sin(4x)} twice.
6

A metal rod of length LL with thermal diffusivity α\alpha has its left end (x=0x = 0) held at 60∘60^\circ and its right end (x=Lx = L) capped with thermal insulation so no heat can cross it. At t=0t = 0, the rod has temperature curve f(x)\uval{f(x)}. Write the PDE, boundary conditions, and initial condition for u(x,t)\uval{u(x, t)}, and find the steady-state temperature curve the rod settles into after a long time.

An insulated end blocks heat flow by making the spatial slope zero at x=Lx = L; in steady state, the temperature curve must be a straight line that satisfies both end conditions.

PDE
∂u∂t\displaystyle \rate{\frac{\partial u}{\partial t}} =α∂2u∂x2\displaystyle = \alpha\curv{\frac{\partial^2 u}{\partial x^2}}
Boundary conditionsLeft end held at 60∘60^\circ and right end insulated (zero spatial slope):
u(0,t)\displaystyle \uval{u(0, t)} =60,∂u∂x(L,t)\displaystyle = 60, \quad \rate{\frac{\partial u}{\partial x}(L, t)} =0\displaystyle = 0
(Watch out: the likeliest wrong boundary condition is writing u(L,t)=0\uval{u(L, t)} = 0 for the insulated right end, which instead clamps the right end at 0∘0^\circ and leads to the wrong steady-state line u(x)=60(1−xL)\uval{u(x)} = 60(1 - \tfrac{x}{L}).)
Initial condition
u(x,0)\displaystyle \uval{u(x, 0)} =f(x)\displaystyle = \uval{f(x)}
Steady-state temperatureAfter a long time, ∂u∂t=0\rate{\frac{\partial u}{\partial t}} = 0 so ∂2u∂x2=0\curv{\frac{\partial^2 u}{\partial x^2}} = 0, meaning the temperature graph is a straight line. The only straight line starting at u(0)=60\uval{u(0)} = 60 with flat slope ∂u∂x(L)=0\rate{\frac{\partial u}{\partial x}(L)} = 0 at the right end is the constant temperature:
u(x)\displaystyle \uval{u(x)} =60∘\displaystyle = \mathbf{60^\circ}
7

Write the complete mathematical problem (PDE, boundary conditions, and any initial conditions) for each setup: (a) A guitar string of length LL with wave speed cc is pinned down at x=0x = 0 and x=Lx = L; at t=0t = 0 it starts flat at u=0u = 0 and is struck upward with starting velocity g(x)g(x). (b) A rectangular plate (0≤x≤L0 \le x \le L, 0≤y≤H0 \le y \le H) has settled into its permanent steady-state temperature with its left, right, and top edges held at 0∘0^\circ and its bottom edge (y=0y = 0) held at temperature f(x)f(x).

Count the time derivatives in each PDE to decide whether you need 22, 11, or 00 initial conditions at t=0t = 0, and check whether g(x)g(x) in part (a) describes starting height or starting velocity.

(a) Struck guitar string
PDE∂2u∂t2=c2∂2u∂x2\accel{\frac{\partial^2 u}{\partial t^2}} = c^2\curv{\frac{\partial^2 u}{\partial x^2}}
Boundary conditionsu(0,t)=0,u(L,t)=0\uval{u(0, t)} = 0, \quad \uval{u(L, t)} = 0
Initial conditions
u(x,0)\displaystyle \uval{u(x, 0)} =0,∂u∂t(x,0)\displaystyle = 0, \quad \rate{\frac{\partial u}{\partial t}(x, 0)} =g(x)\displaystyle = \rate{g(x)}
(Watch out: the likeliest mistake in part (a) is swapping the two initial conditions to u(x,0)=g(x)\uval{u(x, 0)} = g(x) and ∂u∂t(x,0)=0\rate{\frac{\partial u}{\partial t}(x, 0)} = 0, which describes a string plucked into shape g(x)g(x) and released from rest rather than a flat string struck with velocity g(x)\rate{g(x)}.)
(b) Steady-state rectangular plate
PDE∂2u∂x2+∂2u∂y2=0\curv{\frac{\partial^2 u}{\partial x^2}} + \curvy{\frac{\partial^2 u}{\partial y^2}} = 0
Boundary conditions
u(0,y)\displaystyle \uval{u(0, y)} =0,u(L,y)\displaystyle = 0, \quad \uval{u(L, y)} =0,u(x,H)\displaystyle = 0, \quad \uval{u(x, H)} =0,u(x,0)\displaystyle = 0, \quad \uval{u(x, 0)} =f(x)\displaystyle = \uval{f(x)}
Initial conditionsNone (Laplace's equation has no time tt; be careful not to misread the bottom-edge boundary condition u(x,0)=f(x)\uval{u(x, 0)} = \uval{f(x)} at y=0y = 0 as an initial condition at t=0t = 0).