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 x and time t, we need a partial differential equation to connect its shape in space right now to how it moves in time next.
1
What ∂x2∂2u Means: Neighbor Average Minus Me
The heat, wave, and Laplace equations are all built around the second spatial derivative ∂x2∂2u, 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), a partial derivative holds one variable fixed while differentiating with respect to the other: ∂t∂u stays at one fixed spot x and tracks how fast u changes as time ticks forward, while ∂x∂u freezes time and measures the slope of the curve across space.
What ∂²u/∂x² Means: Neighbor Average Minus Me
Text solution
Subtract the left slope from the right slopeAt a point ume sitting between immediate neighbors uleft and uright, 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=(uright−ume)−(ume−uleft)
Regroup and factor out 2Combining the two neighbor terms puts their midpoint average right next to ume:
Change in slope=uleft+uright−2ume=2neighbor average2uleft+uright−ume
So the sign and size of ∂x2∂2u tell us directly how the average of the surrounding neighbors compares to the center point itself.
Along the curve, the arrow from ume to the neighbor average 2uleft+uright 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) 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 ∂t∂u 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
Writing "rate of change in time is proportional to Neighbor Average minus Me" gives the one-dimensional heat equation, where the thermal diffusivity α sets how quickly the material conducts heat:
Because the velocity ∂t∂u 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 ∂x2∂2u=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) 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=ma) the pull from Neighbor Average minus Me controls the string's vertical acceleration ∂t2∂2u rather than its velocity.
The Wave Equation: Inertia and Overshooting
Setting the vertical acceleration proportional to the spatial curvature gives the one-dimensional wave equation, where c is the speed at which ripples travel along the string:
Because Neighbor Average minus Me drives acceleration ∂t2∂2u, 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) stops changing in time and satisfies Laplace's equation. On a 2D surface, a point has left-and-right neighbors along x as well as front-and-back neighbors along y, 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 ∂t∂u to zero in the 2D heat equation leaves Laplace's equation, often written with the shorthand Laplacian symbol ∇2u:
all neighbors’ averageminus me∇2u=∂x2∂2u+∂y2∂2u=0
In a bowl, the surface curves up in both directions, so all four neighbors sit above the center (∇2u>0). In a balanced saddle, it curves up left-to-right by the exact same amount it curves down front-to-back (∂y2∂2u=−∂x2∂2u), so the higher pair and lower pair cancel out and the four neighbors average to the center (∇2u=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)=x2−y2
∂x2∂2u+∂y2∂2u=?
Text solution
Test u(x,y)=x2−y2 in Laplace's equation ∂x2∂2u+∂y2∂2u=0Differentiating twice in x (holding y constant) and twice in y (holding x constant) shows that the upward curvature in x and downward curvature in y cancel out:
So the saddle u(x,y)=x2−y2 solves Laplace's equation, whereas the bowl u(x,y)=x2+y2 gives 2+2=4=0 and is not a solution.
Test u(x,t)=e−9αtsin(3x) in the heat equation ∂t∂u=α∂x2∂2uOne time derivative on the left pulls down −9α from the exponential, while two space derivatives on the right pull out −32=−9 from sin(3x):
Because both sides equal −9αe−9αtsin(3x), the decaying sine wave solves the heat equation.
Test u(x,t)=cos(3ct)sin(3x) in the wave equation ∂t2∂2u=c2∂x2∂2uTwo time derivatives of cos(3ct) pull out −(3c)2=−9c2, matching the −9 pulled out by two space derivatives of sin(3x) multiplied by c2:
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=0.
Boundary Conditions and Initial Conditions
Text solution
Write the boundary conditions at the spatial edgesHolding an end at a known temperature or pinning a string fixes u directly, while capping an end with thermal insulation blocks heat flow by forcing the spatial slope ∂x∂u to be zero:
Fixed value at the ends:u(0,t)=0,u(L,t)=100Insulated ends (zero slope):∂x∂u(0,t)=0,∂x∂u(L,t)=0
Count the time derivatives to write the initial conditions at t=0Each time derivative in the PDE requires one starting curve across space at t=0:
Heat equation (first-order in t):u(x,0)=f(x)Wave equation(second-order in t):u(x,0)=f(x),∂t∂u(x,0)=g(x)Laplace’s equation (no t):no initial conditions(4 edge boundaries only)
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, ∂t∂u(x,0)=0, whereas "starts flat and is struck" means zero starting height, u(x,0)=0.
Key concepts
Every problem here comes down to reading the spatial piece ∂x2∂2u (or ∇2u=∂x2∂2u+∂y2∂2u in 2D) as Neighbor Average minus Me:
∂x2∂2u∝2uleft+uright−ume
At a peak, neighbors are lower so ∂x2∂2u<0 (and much more negative on a sharp spike than on a wide hill); in a valley, neighbors are higher so ∂x2∂2u>0. Don't confuse spatial slope ∂x∂u with curvature ∂x2∂2u: on a tilted straight line like 40∘→50∘→60∘, the slope is nonzero so heat flows through, but 240+60−50=0, so ∂x2∂2u=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 (∂t∂u=α∂x2∂2u)
Neighbor Average minus Me sets the velocity∂t∂u. Because two x-derivatives of sin(nx) pull out −n2, a single t-derivative needs an exponential u(x,t)=e−n2αtsin(nx) (such as e−9αtsin(3x)), so a high-frequency wiggle sin(nx) decays n2 times faster than sin(x) and smooths into a straight line. Being first-order in t, it takes 1 initial conditionu(x,0)=f(x). At an end x=L, a held temperature fixes u(L,t)=T0, whereas thermal insulation fixes the slope ∂x∂u(L,t)=0. Never write u(L,t)=0 for an insulated end, which would mean clamping it at 0∘.
Wave inertia (∂t2∂2u=c2∂x2∂2u)
Neighbor Average minus Me sets the acceleration∂t2∂2u, causing peaks to speed up toward the flat line and overshoot. Two t-derivatives balance two x-derivatives using cosines and sines, u(x,t)=cos(nct)sin(nx) (such as cos(3ct)sin(3x)), producing steady vibration that continues forever. Being second-order in t, it requires 2 initial conditions: starting shape u(x,0)=f(x) and starting velocity ∂t∂u(x,0)=g(x).
2D Equilibrium (∂x2∂2u+∂y2∂2u=0)
When ∂t∂u=0, every point already equals the average of its four neighbors. Because t is absent, do not write any initial conditions at t=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 curves up in x (∂x2∂2u=2) and down by an equal amount in y (∂y2∂2u=−2) so the four neighbors still average to the center.
7
Practice
1
At t=0 along a metal rod governed by ∂t∂u=α∂x2∂2u, 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∘ to 60∘, and Point D sits at the bottom of a cold valley. Give the sign (+,−, or 0) of ∂t∂u at each of the four points at t=0, and state which of A or B cools faster initially and why.
Compare each point's temperature ume to the average of its immediate left and right neighbors 2uleft+uright.
At Point A and Point B, both immediate neighbors sit below the peak, so Neighbor Average minus Me (∂x2∂2u) is negative: ∂t∂u 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:
∂x2∂2u=0⟹∂t∂u=0
(Watch out: the likeliest wrong answer at Point C is +, from seeing the positive slope ∂x∂u>0 from 40∘ to 60∘ and confusing spatial slope with ∂x2∂2u. 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 ∂t∂u 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 (∂x2∂2u) than at the top of a wide gentle hill.
2
A 2D metal plate is in steady-state thermal equilibrium (∇2u=∂x2∂2u+∂y2∂2u=0). At a point P in the plate, the temperature is 50∘ and the surface curves upward along the x-direction with ∂x2∂2u=+8. What is ∂y2∂2u at P, what shape does the temperature surface have there, and if P's immediate left and right neighbors average 54∘, what must its immediate front and back neighbors average?
In equilibrium, the two curvatures must add to 0, and the average of all four neighbors must equal P's own temperature of 50∘.
For ∂x2∂2u+∂y2∂2u=0 with ∂x2∂2u=+8:
8+∂y2∂2u=0⟹∂y2∂2u=−8
Because the surface curves upward in x and downward by an equal amount in y, it forms a saddle shape.
The left and right neighbors average 54∘, which is +4∘ above P's temperature of 50∘. To make all four neighbors average to 50∘, the front and back neighbors must sit −4∘ below P:
50∘−4∘=46∘
(Watch out: a common mistake is to average the 50∘ center and 54∘ pair to get 52∘, or to forget that 50∘ is the midpoint between the x-pair average 54∘ and the y-pair average.)
Final result: ∂y2∂2u=−8,saddle shape, and front-and-back neighbor average =46∘.
3
Test whether each function solves Laplace's equation ∂x2∂2u+∂y2∂2u=0 by computing its second partial derivatives: (a) u(x,y)=2x2+2y2, (b) u(x,y)=x3−3xy2.
Hold y constant when differentiating twice with respect to x, and hold x constant when differentiating twice with respect to y.
(Watch out: the likeliest wrong answer on part (b) is ∂y2∂2u=−6, which gives 6x−6=0 and falsely rejects the solution; this happens if you drop the constant factor x while differentiating −3xy2 with respect to y.) Adding the two second derivatives:
∂x2∂2u+∂y2∂2u=6x+(−6x)=0
So (a) is not a solution, and (b) is a solution.
4
Find the value of the constant k for which u(x,t)=e−ktsin(5x) solves the heat equation ∂t∂u=α∂x2∂2u, and find how many times larger the decay rate constant k is for the higher-frequency wave u(x,t)=e−ktsin(15x).
Watch out: the likeliest wrong answer is k=5α and a ratio of 515=3 times larger, from taking only one spatial derivative or forgetting to square the 5 and 15 when differentiating sin(nx) twice.
Plug u(x,t) into both sides of ∂t∂u=α∂x2∂2u and count how many times the spatial frequency 5 (or 15) is pulled out on the right-hand side.
Differentiating u(x,t)=e−ktsin(5x) once in t and twice in x:
For sin(15x), two x-derivatives pull out −152=−225, giving k=225α.(Watch out: the likeliest wrong answer is k=5α and a ratio of 515=3 times larger, from taking only one spatial derivative or forgetting to square the 5 and 15 when differentiating sin(nx) twice.)
Dividing the two decay rates gives:
25α225α=9
So k=25α, and the decay rate for sin(15x) is 9 times larger.
5
Check whether the standing wave u(x,t)=cos(4ct)sin(4x) solves the wave equation ∂t2∂2u=c2∂x2∂2u 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 each time you differentiate cos(4ct) with respect to t.
(Watch out: a common mistake is forgetting to pull out the constant c from inside cos(4ct) during the time derivatives, which gives −16cos(4ct)sin(4x) on the left side and makes it look like c2 doesn't match.)
Right-hand side (two x-derivatives multiplied by c2):
Both sides equal −16c2cos(4ct)sin(4x), so yes, it is a solution, and it vibrates back and forth because the second-order time derivative ∂t2∂2u differentiates cos(4ct) twice to pull out a minus sign that balances the minus sign from differentiating sin(4x) twice.
6
A metal rod of length L with thermal diffusivity α has its left end (x=0) held at 60∘ and its right end (x=L) capped with thermal insulation so no heat can cross it. At t=0, the rod has temperature curve f(x). Write the PDE, boundary conditions, and initial condition for 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=L; in steady state, the temperature curve must be a straight line that satisfies both end conditions.
PDE
∂t∂u=α∂x2∂2u
Boundary conditionsLeft end held at 60∘ and right end insulated (zero spatial slope):
u(0,t)=60,∂x∂u(L,t)=0
(Watch out: the likeliest wrong boundary condition is writing u(L,t)=0 for the insulated right end, which instead clamps the right end at 0∘ and leads to the wrong steady-state line u(x)=60(1−Lx).)
Initial condition
u(x,0)=f(x)
Steady-state temperatureAfter a long time, ∂t∂u=0 so ∂x2∂2u=0, meaning the temperature graph is a straight line. The only straight line starting at u(0)=60 with flat slope ∂x∂u(L)=0 at the right end is the constant temperature:
u(x)=60∘
7
Write the complete mathematical problem (PDE, boundary conditions, and any initial conditions) for each setup: (a) A guitar string of length L with wave speed c is pinned down at x=0 and x=L; at t=0 it starts flat at u=0 and is struck upward with starting velocity g(x). (b) A rectangular plate (0≤x≤L,0≤y≤H) has settled into its permanent steady-state temperature with its left, right, and top edges held at 0∘ and its bottom edge (y=0) held at temperature f(x).
Count the time derivatives in each PDE to decide whether you need 2,1, or 0 initial conditions at t=0, and check whether g(x) in part (a) describes starting height or starting velocity.
(a) Struck guitar string
PDE∂t2∂2u=c2∂x2∂2u
Boundary conditionsu(0,t)=0,u(L,t)=0
Initial conditions
u(x,0)=0,∂t∂u(x,0)=g(x)
(Watch out: the likeliest mistake in part (a) is swapping the two initial conditions to u(x,0)=g(x) and ∂t∂u(x,0)=0, which describes a string plucked into shape g(x) and released from rest rather than a flat string struck with velocity g(x).)
(b) Steady-state rectangular plate
PDE∂x2∂2u+∂y2∂2u=0
Boundary conditions
u(0,y)=0,u(L,y)=0,u(x,H)=0,u(x,0)=f(x)
Initial conditionsNone (Laplace's equation has no time t; be careful not to misread the bottom-edge boundary condition u(x,0)=f(x) at y=0 as an initial condition at t=0).