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 ρ\rho, specific heat capacity cc, thermal conductivity kk, and temperature u(x,t)u(x,t). For a small segment between xx and x+Δxx + \Delta x, the rate of change of stored heat equals the net heat flux into it. With Fourier's law, q=−k uxq = -k\,u_x:


ρc ut Δx=q(x)−q(x+Δx)≈−qx Δx=k uxx Δx.\rho c\,u_t\,\Delta x = q(x) - q(x+\Delta x) \approx -q_x\,\Delta x = k\,u_{xx}\,\Delta x.


Dividing by ρc Δx\rho c\,\Delta x gives the heat equation


ut=α uxx,α=kρc  (units m2 s−1).u_t = \alpha\,u_{xx},\qquad \alpha = \dfrac{k}{\rho c}\ \ (\text{units m}^2\,\text{s}^{-1}).


The same equation describes the concentration of a diffusing solute (with α\alpha 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 uxxu_{xx}, 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)]/h2u_{xx} \approx [u(x+h) + u(x-h) - 2u(x)]/h^2, so uu moves toward the average of its neighbours. Sharp features are smoothed first.
  • Diffusion length. A disturbance spreads over a distance of order αt\sqrt{\alpha t}. Doubling a distance quadruples the time needed to diffuse across it.


Example. Copper has α≈401/(8960×385)=1.16×10−4 m2 s−1\alpha \approx 401/(8960 \times 385) = 1.16\times10^{-4}\ \text{m}^2\,\text{s}^{-1}. For a 0.10 m bar, the characteristic time L2/(π2α)L^2/(\pi^2\alpha), which is explained in section 5, is about 8.7 s.

3. The data a problem needs

On 0<x<L0 < x < L, a well-posed problem needs one initial condition u(x,0)=f(x)u(x,0) = f(x) and one boundary condition at each end for all t>0t > 0: a fixed temperature (Dirichlet), a fixed flux such as insulation ux=0u_x = 0 (Neumann), or convection (Robin). Unlike the wave equation, the heat equation needs no initial rate ut(x,0)u_t(x,0), because the equation determines it from ff.

4. Separated solution with zero-temperature ends

For u(0,t)=u(L,t)=0u(0,t) = u(L,t) = 0, try u=X(x)T(t)u = X(x)T(t). Then T′/(αT)=X′′/X=−λT'/(\alpha T) = X''/X = -\lambda. The boundary conditions allow nonzero XX only for λn=(nπ/L)2\lambda_n = (n\pi/L)^2, with Xn=sin⁡(nπx/L)X_n = \sin(n\pi x/L), and then Tn=e−αλntT_n = e^{-\alpha\lambda_n t}. Superposing,


u(x,t)=∑n=1∞bn e−α(nπ/L)2tsin⁡nπxL,bn=2L∫0Lf(x)sin⁡nπxL dx.u(x,t) = \displaystyle\sum_{n=1}^{\infty} b_n\,e^{-\alpha(n\pi/L)^2 t}\sin\frac{n\pi x}{L},\qquad b_n = \frac{2}{L}\int_0^L f(x)\sin\frac{n\pi x}{L}\,dx.


Worked example. Solve ut=2uxxu_t = 2u_{xx} on 0<x<π0<x<\pi with zero ends and u(x,0)=3sin⁡x+sin⁡2xu(x,0) = 3\sin x + \sin 2x. The initial data are already a finite sine series, so b1=3b_1 = 3, b2=1b_2 = 1, and all others are 0. With L=πL = \pi, mode nn decays at rate 2n22n^2:


u(x,t)=3e−2tsin⁡x+e−8tsin⁡2x.u(x,t) = 3e^{-2t}\sin x + e^{-8t}\sin 2x.


The n=2n = 2 mode decays four times faster than the n=1n = 1 mode, so by t=1t = 1 its relative size has fallen by a factor of e−6e^{-6}, about 0.0025, compared with mode 1.

5. Long-time behaviour

  • Zero Dirichlet ends. Every mode decays, and the slowest is n=1n = 1 (when b1≠0b_1 \ne 0): u≈b1e−απ2t/L2sin⁡(πx/L)u \approx b_1 e^{-\alpha\pi^2 t/L^2}\sin(\pi x/L). The time scale is L2/(π2α)L^2/(\pi^2\alpha).
  • Fixed unequal end temperatures u(0,t)=Au(0,t) = A, u(L,t)=Bu(L,t) = B. The steady state satisfies u′′=0u'' = 0, so u∞=A+(B−A)x/Lu_\infty = A + (B - A)x/L. The difference v=u−u∞v = u - u_\infty has zero end values and decays exactly like section 4, with v(x,0)=f(x)−u∞(x)v(x,0) = f(x) - u_\infty(x). For example, with A=10A = 10, B=50B = 50 and L=5L = 5, the steady state is u∞=10+8xu_\infty = 10 + 8x.
  • Insulated ends ux(0,t)=ux(L,t)=0u_x(0,t) = u_x(L,t) = 0. The eigenfunctions are cos⁡(nπx/L)\cos(n\pi x/L), n=0,1,2,…n = 0, 1, 2, \dots, and u=a0/2+∑ane−α(nπ/L)2tcos⁡(nπx/L)u = a_0/2 + \sum a_n e^{-\alpha(n\pi/L)^2 t}\cos(n\pi x/L) with an=(2/L)∫0Lfcos⁡(nπx/L) dxa_n = (2/L)\int_0^L f\cos(n\pi x/L)\,dx. The n=0n = 0 term never decays: total heat is conserved, and uu tends to the average of ff. For example, f=2+cos⁡2xf = 2 + \cos 2x on (0,π)(0,\pi) 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 nn decays at a rate proportional to n2n^2, so detail disappears far faster than the overall shape.

Temperature in a rod obeys ut=α uxxu_t = \alpha\,u_{xx} with α>0\alpha > 0. At some instant, the temperature profile has a local minimum at x=x0x = x_0, where ux(x0)=0u_x(x_0) = 0 and uxx(x0)>0u_{xx}(x_0) > 0. What happens to the temperature at x0x_0 at that instant?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Consider ut=3 uxxu_t = 3\,u_{xx} for 0<x<20 < x < 2, with u(0,t)=u(2,t)=0u(0,t) = u(2,t) = 0. A separated solution has the form u(x,t)=sin⁡ ⁣(3πx2)e−λtu(x,t) = \sin\!\left(\dfrac{3\pi x}{2}\right)e^{-\lambda t}.

Find the exact value of λ\lambda and give it to three significant figures. Also state the time for this mode's amplitude to fall to 1/e1/e of its initial value.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Solve ut=0.5 uxxu_t = 0.5\,u_{xx} for 0<x<10 < x < 1, t>0t > 0, with u(0,t)=u(1,t)=0u(0,t) = u(1,t) = 0 and

u(x,0)=4sin⁡(πx)−sin⁡(3πx).u(x,0) = 4\sin(\pi x) - \sin(3\pi x).

Write the solution and evaluate u(0.5, 0.02)u(0.5,\ 0.02) to three decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors