Heat equation
At a Glance
- Frequency: 3 sub-parts across 3 of 13 years (2015, 2016, 2022)
- Priority tier: T3
- Marks (count): 15 (1), 20 (2)
- Average solve time: ~12 min
- Difficulty mix: medium 3
- Section: B | Dominant type: computation
Why This Chapter Matters
The heat equation recurs at intervals of roughly three years and always commands 15 or 20 marks, making it one of the higher-yield single algorithms in Section B. All three questions use the same separation-of-variables pipeline ending in a Fourier sine series; the variation is entirely in the initial condition (quadratic x(l−x) vs.\ a single eigenmode vs.\ a modified PDE with extra +u term). Recognising which IC triggers a full series vs.\ a one-term answer can save 6–8 minutes. The 2016 question adds a physical setup with given material constants — diffusivity must be computed first.
Minimum Theory
Heat equation on a bar. For a laterally insulated bar of length L with Dirichlet ends:
ut=c2uxx,0<x<L,t>0,u(0,t)=u(L,t)=0,u(x,0)=f(x).
The diffusivity c2=K/(ρσ) where K is thermal conductivity, ρ density, σ specific heat.
Separation of variables. Set u=X(x)T(t). Substituting and separating gives
c2TT′=XX′′=−λ2(λ>0 for oscillatory X).
Spatial: X′′+λ2X=0 with X(0)=X(L)=0 gives Xn=sin(nπx/L), λn=nπ/L.
Temporal: T′+c2λn2T=0 gives Tn=e−c2n2π2t/L2.
General solution:
u(x,t)=∑n=1∞Bnsin(Lnπx)e−c2n2π2t/L2,Bn=L2∫0Lf(x)sinLnπxdx.
Modified equation ut−uxx+u=0. The +u term modifies only the temporal decay: the eigenfunction equation for X is unchanged; the T-equation becomes T′=−(1+λn2)T, so the decay exponent is replaced by 1+n2π2/l2.
Key integral (quadratic IC). For f(x)=x(l−x) on [0,l]:
Bn=l2∫0lx(l−x)sinlnπxdx={8l2/(n3π3)0n odd,n even.
(Only odd harmonics survive; the 1/n3 decay comes from the x2 factor in the IC.)
![Temperature profiles at times t=0,t_1,t_2,t_3 on a bar [0,L] with u(0)=u(L)=0; each mode decays as e^{-c^2(n\pi/L)^2 t}; higher modes decay faster.](/guide-figures/heat-equation/anatomy.svg)
Question Archetypes
| Archetype | Recognition |
|---|
| heat-equation | ut=c2uxx (or modified form) on [0,L] with zero Dirichlet ends and a given initial profile |
heat-equation (3 question(s); 2015, 2016, 2022)
Recognition Cues
- “Solve ut=uxx” or “find the temperature u(x,t)” with u(0,t)=u(L,t)=0 and u(x,0)=f(x).
- Physical variants: bar with given ρ,K,σ — compute c2 first.
- Modified PDE: ut−uxx+u=0 — same spatial eigenfunctions, shifted decay.
- Shortcut: if f(x) is already sin(n0πx/L), only one mode survives.
Solution Template
- Identify L, c2 (compute from material constants if needed), and f(x).
- Assume u=X(x)T(t); write the separated equations; state the eigenvalue problem.
- Solve: Xn=sin(nπx/L), Tn=e−c2(nπ/L)2t (adjust decay for any extra linear terms in the PDE).
- Write the general series u=∑Bnsin(nπx/L)Tn(t).
- Apply u(x,0)=f(x): compute Bn by Fourier projection. For f(x)=x(l−x) use the standard result; for f(x)=sin(kπx/L) read off Bk=1 by inspection.
- Write the final boxed series; for single-mode IC write the single term explicitly.
Worked Examples
2015 Paper 2, 2015-P2-Q7a (15 marks)
Solve ut−uxx+u=0, 0<x<l, u(0,t)=u(l,t)=0, u(x,0)=x(l−x).
Set u=X(x)T(t). Substituting: XT′−X′′T+XT=0, so
TT′+T=XX′′=−λ2.
Spatial: X′′+λ2X=0 with X(0)=X(l)=0 gives Xn=sin(nπx/l), λn=nπ/l.
Temporal: T′+T=−λn2T, i.e.\ T′=−(1+λn2)T, giving
Tn=e−(1+n2π2/l2)t.
General solution: u(x,t)=n=1∑∞Bnsin(lnπx)e−(1+n2π2/l2)t.
Apply u(x,0)=x(l−x): Bn=l2∫0lx(l−x)sin(lnπx)dx. Using the standard quadratic-IC result:
- n odd: Bn=n3π38l2.
- n even: Bn=0.
u(x,t)=n=1nodd∑∞n3π38l2sin(lnπx)e−(1+n2π2/l2)t
The extra +u term shifts the decay exponent from n2π2/l2 to 1+n2π2/l2, giving slightly faster decay.
2016 Paper 2, 2016-P2-Q8a (20 marks)
Find u(x,t) in a 10 cm silver bar with ρ=10.6 g/cm3, K=1.04 cal/(cm s ∘C), σ=0.056 cal/(g ∘C), ends at 0∘C, and initial temperature f(x)=sin(0.1πx).
PDE: ut=c2uxx on 0≤x≤10, u(0,t)=u(10,t)=0, u(x,0)=sin(0.1πx).
Step 1 — Diffusivity:
c2=ρσK=10.6×0.0561.04=0.59361.04=1.752 cm2/s.
Step 2 — General series (with L=10):
u(x,t)=∑n=1∞Bnsin10nπxe−c2(nπ/10)2t.
Step 3 — Match IC. The initial profile f(x)=sin(0.1πx)=sin(πx/10) is exactly the n=1 eigenfunction. By inspection B1=1 and Bn=0 for n≥2.
Step 4 — Decay rate:
c2(10π)2=1.752×100π2=1.752×0.09870=0.1729 s−1.
u(x,t)=sin(10πx)e−0.1729t
The bar keeps its initial half-sine shape and decays with time constant 1/0.1729≈5.78 s. No Fourier series integration is needed because the initial profile is a single eigenmode.
2022 Paper 2, 2022-P2-Q6a (20 marks)
Solve ut=uxx, 0<x<l, t>0, with u(0,t)=u(l,t)=0 and u(x,0)=x(l−x).
Separate u=X(x)T(t): X′′+λ2X=0, X(0)=X(l)=0 gives Xn=sin(nπx/l); T′+λn2T=0 gives Tn=e−n2π2t/l2.
General solution:
u(x,t)=∑n=1∞Bnsin(lnπx)e−n2π2t/l2.
Apply u(x,0)=x(l−x): Bn=l2∫0lx(l−x)sin(lnπx)dx. Standard quadratic-IC integral gives Bn=8l2/(n3π3) for odd n, and 0 for even n.
u(x,t)=n=1nodd∑∞n3π38l2sin(lnπx)e−n2π2t/l2
After short time the dominant mode (n=1) approximates u≈π38l2sin(πx/l)e−π2t/l2.
Common Traps
- The +u term (2015). Do not treat it as a forcing term. It modifies only the time decay: each mode gains an extra factor e−t, shifting the exponent from n2π2/l2 to 1+n2π2/l2. The spatial eigenfunctions and Fourier coefficients are unchanged.
- Single-mode IC (2016). When f(x)=sin(kπx/L) is an eigenfunction, the answer is a single term. Computing the full Fourier integral wastes time (the integral gives Bk=1, all others 0 anyway — but state that explicitly to secure the marks).
- Material-constant arithmetic (2016). ρσ=10.6×0.056=0.5936; c2=1.04/0.5936=1.752. The decay exponent is c2(π/L)2 with L=10, giving π2/100≈0.09870 — a common error is using L=1 or omitting the (1/L)2 factor.
- Odd-modes-only pattern. For f(x)=x(l−x), the IC is symmetric about x=l/2; even harmonics integrate to zero. The coefficient 8l2/(n3π3) for odd n should be memorised — it reappears whenever a quadratic IC occurs.
Marks-Aware Writing
15-mark questions (2015). Show: (1) the separation and eigenvalue problem for X and T with the modified decay; (2) the Fourier coefficient integral setup; (3) the IBP to evaluate ∫x(l−x)sin(nπx/l)dx; (4) odd-only conclusion; (5) boxed series. State “the +u term shifts the time decay by +1” for a line that secures method marks.
20-mark questions (2016, 2022). The extra 5 marks reward: full derivation of the eigenvalue problem (not just quoting the answer), the explicit series formula before applying the IC, computation of c2 with units (2016), and the final one-term vs.\ full-series conclusion with justification. For 2022, write out the IBP explicitly: at least two integration-by-parts steps must be shown.
Practice Set
| Year | Paper/Q | Marks | Hint |
|---|
| 2020 | P2-Q8a | 20 | Standard heat equation; check whether the IC is a single eigenmode or requires a full Fourier series. |
| 2018 | P2-Q8c | 20 | Identify the IC type; apply the quadratic-IC formula if f(x)=x(L−x), or compute Bn by IBP if different. |