The Heat Equation: Where It Comes From, How It Smooths, and How Solutions Settle Down
1. Derivation from conservation
Consider a thin rod with insulated sides, density ρ, specific heat capacity c, thermal conductivity k, and temperature u(x,t). For a small segment between x and x+Δx, the rate of change of stored heat equals the net heat flux into it. With Fourier's law, q=−kux:
ρcutΔx=q(x)−q(x+Δx)≈−qxΔx=kuxxΔx.
Dividing by ρcΔx gives the heat equation
ut=αuxx,α=ρck (units m2s−1).
The same equation describes the concentration of a diffusing solute (with α replaced by the diffusion coefficient), so 'heat equation' and 'diffusion equation' are used interchangeably.
2. What the equation says
- Curvature drives change. The local rate of change is set by uxx, which measures how the flux differs between neighbouring points. At the crest of a hot spot, for instance, the profile is concave down, heat leaves in both directions, and the crest cools.
- Averaging and smoothing. A finite-difference view makes this explicit: uxx≈[u(x+h)+u(x−h)−2u(x)]/h2, so u moves toward the average of its neighbours. Sharp features are smoothed first.
- Diffusion length. A disturbance spreads over a distance of order αt. Doubling a distance quadruples the time needed to diffuse across it.
Example. Copper has α≈401/(8960×385)=1.16×10−4 m2s−1. For a 0.10 m bar, the characteristic time L2/(π2α), which is explained in section 5, is about 8.7 s.
3. The data a problem needs
On 0<x<L, a well-posed problem needs one initial condition u(x,0)=f(x) and one boundary condition at each end for all t>0: a fixed temperature (Dirichlet), a fixed flux such as insulation ux=0 (Neumann), or convection (Robin). Unlike the wave equation, the heat equation needs no initial rate ut(x,0), because the equation determines it from f.
4. Separated solution with zero-temperature ends
For u(0,t)=u(L,t)=0, try u=X(x)T(t). Then T′/(αT)=X′′/X=−λ. The boundary conditions allow nonzero X only for λn=(nπ/L)2, with Xn=sin(nπx/L), and then Tn=e−αλnt. Superposing,
u(x,t)=n=1∑∞bne−α(nπ/L)2tsinLnπx,bn=L2∫0Lf(x)sinLnπxdx.
Worked example. Solve ut=2uxx on 0<x<π with zero ends and u(x,0)=3sinx+sin2x. The initial data are already a finite sine series, so b1=3, b2=1, and all others are 0. With L=π, mode n decays at rate 2n2:
u(x,t)=3e−2tsinx+e−8tsin2x.
The n=2 mode decays four times faster than the n=1 mode, so by t=1 its relative size has fallen by a factor of e−6, about 0.0025, compared with mode 1.
5. Long-time behaviour
- Zero Dirichlet ends. Every mode decays, and the slowest is n=1 (when b1=0): u≈b1e−απ2t/L2sin(πx/L). The time scale is L2/(π2α).
- Fixed unequal end temperatures u(0,t)=A, u(L,t)=B. The steady state satisfies u′′=0, so u∞=A+(B−A)x/L. The difference v=u−u∞ has zero end values and decays exactly like section 4, with v(x,0)=f(x)−u∞(x). For example, with A=10, B=50 and L=5, the steady state is u∞=10+8x.
- Insulated ends ux(0,t)=ux(L,t)=0. The eigenfunctions are cos(nπx/L), n=0,1,2,…, and u=a0/2+∑ane−α(nπ/L)2tcos(nπx/L) with an=(2/L)∫0Lfcos(nπx/L)dx. The n=0 term never decays: total heat is conserved, and u tends to the average of f. For example, f=2+cos2x on (0,π) tends to 2.
A related qualitative fact, proved in the study of the maximum principle, is that without sources a solution cannot develop new interior maxima above its initial and boundary values.
Common misconception. "A higher mode is just a smaller copy of the first and fades at the same rate." Mode n decays at a rate proportional to n2, so detail disappears far faster than the overall shape.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Consider ut=3uxx for 0<x<2, with u(0,t)=u(2,t)=0. A separated solution has the form u(x,t)=sin(23πx)e−λt.
Find the exact value of λ and give it to three significant figures. Also state the time for this mode's amplitude to fall to 1/e of its initial value.
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Solve ut=0.5uxx for 0<x<1, t>0, with u(0,t)=u(1,t)=0 and
u(x,0)=4sin(πx)−sin(3πx).
Write the solution and evaluate u(0.5, 0.02) to three decimal places.