The math optional, made finite. Daily Practice

Heat equation

At a Glance

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(lx)x(l-x) vs.\ a single eigenmode vs.\ a modified PDE with extra +u+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 LL with Dirichlet ends:

ut=c2uxx,0<x<L,  t>0,u(0,t)=u(L,t)=0,u(x,0)=f(x).u_t = c^2 u_{xx},\quad 0<x<L,\;t>0,\quad u(0,t)=u(L,t)=0,\quad u(x,0)=f(x).

The diffusivity c2=K/(ρσ)c^2 = K/(\rho\sigma) where KK is thermal conductivity, ρ\rho density, σ\sigma specific heat.

Separation of variables. Set u=X(x)T(t)u=X(x)T(t). Substituting and separating gives

Tc2T=XX=λ2(λ>0 for oscillatory X).\frac{T'}{c^2 T}=\frac{X''}{X}=-\lambda^2\quad(\lambda>0\text{ for oscillatory }X).

Spatial: X+λ2X=0X''+\lambda^2 X=0 with X(0)=X(L)=0X(0)=X(L)=0 gives Xn=sin(nπx/L)X_n=\sin(n\pi x/L), λn=nπ/L\lambda_n=n\pi/L.

Temporal: T+c2λn2T=0T'+c^2\lambda_n^2 T=0 gives Tn=ec2n2π2t/L2T_n=e^{-c^2 n^2\pi^2 t/L^2}.

General solution:

u(x,t)=n=1Bnsin ⁣(nπxL)ec2n2π2t/L2,Bn=2L0Lf(x)sinnπxLdx.u(x,t)=\sum_{n=1}^{\infty}B_n\sin\!\left(\frac{n\pi x}{L}\right)e^{-c^2 n^2\pi^2 t/L^2},\quad B_n=\frac{2}{L}\int_0^L f(x)\sin\frac{n\pi x}{L}\,dx.

Modified equation utuxx+u=0u_t - u_{xx} + u = 0. The +u+u term modifies only the temporal decay: the eigenfunction equation for XX is unchanged; the TT-equation becomes T=(1+λn2)TT'=-(1+\lambda_n^2)T, so the decay exponent is replaced by 1+n2π2/l21+n^2\pi^2/l^2.

Key integral (quadratic IC). For f(x)=x(lx)f(x)=x(l-x) on [0,l][0,l]:

Bn=2l0lx(lx)sinnπxldx={8l2/(n3π3)n odd,0n even.B_n=\frac{2}{l}\int_0^l x(l-x)\sin\frac{n\pi x}{l}\,dx=\begin{cases}8l^2/(n^3\pi^3)&n\text{ odd},\\0&n\text{ even}.\end{cases}

(Only odd harmonics survive; the 1/n31/n^3 decay comes from the x2x^2 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.

Question Archetypes

ArchetypeRecognition
heat-equationut=c2uxxu_t=c^2 u_{xx} (or modified form) on [0,L][0,L] with zero Dirichlet ends and a given initial profile

heat-equation (3 question(s); 2015, 2016, 2022)

Recognition Cues

Solution Template

  1. Identify LL, c2c^2 (compute from material constants if needed), and f(x)f(x).
  2. Assume u=X(x)T(t)u=X(x)T(t); write the separated equations; state the eigenvalue problem.
  3. Solve: Xn=sin(nπx/L)X_n=\sin(n\pi x/L), Tn=ec2(nπ/L)2tT_n=e^{-c^2(n\pi/L)^2 t} (adjust decay for any extra linear terms in the PDE).
  4. Write the general series u=Bnsin(nπx/L)Tn(t)u=\sum B_n\sin(n\pi x/L)\,T_n(t).
  5. Apply u(x,0)=f(x)u(x,0)=f(x): compute BnB_n by Fourier projection. For f(x)=x(lx)f(x)=x(l-x) use the standard result; for f(x)=sin(kπx/L)f(x)=\sin(k\pi x/L) read off Bk=1B_k=1 by inspection.
  6. 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 utuxx+u=0u_t - u_{xx} + u = 0, 0<x<l0<x<l, u(0,t)=u(l,t)=0u(0,t)=u(l,t)=0, u(x,0)=x(lx)u(x,0)=x(l-x).

Set u=X(x)T(t)u=X(x)T(t). Substituting: XTXT+XT=0XT'-X''T+XT=0, so

T+TT=XX=λ2.\frac{T'+T}{T}=\frac{X''}{X}=-\lambda^2.

Spatial: X+λ2X=0X''+\lambda^2 X=0 with X(0)=X(l)=0X(0)=X(l)=0 gives Xn=sin(nπx/l)X_n=\sin(n\pi x/l), λn=nπ/l\lambda_n=n\pi/l.

Temporal: T+T=λn2TT'+T=-\lambda_n^2 T, i.e.\ T=(1+λn2)TT'=-(1+\lambda_n^2)T, giving

Tn=e(1+n2π2/l2)t.T_n=e^{-(1+n^2\pi^2/l^2)t}.

General solution: u(x,t)=n=1Bnsin ⁣(nπxl)e(1+n2π2/l2)tu(x,t)=\displaystyle\sum_{n=1}^\infty B_n\sin\!\left(\dfrac{n\pi x}{l}\right)e^{-(1+n^2\pi^2/l^2)t}.

Apply u(x,0)=x(lx)u(x,0)=x(l-x): Bn=2l0lx(lx)sin ⁣(nπxl)dxB_n=\dfrac{2}{l}\displaystyle\int_0^l x(l-x)\sin\!\left(\dfrac{n\pi x}{l}\right)dx. Using the standard quadratic-IC result:

u(x,t)=n=1nodd8l2n3π3sin ⁣(nπxl)e(1+n2π2/l2)t\boxed{u(x,t)=\sum_{\substack{n=1\\n\;\text{odd}}}^{\infty}\frac{8l^2}{n^3\pi^3}\sin\!\left(\frac{n\pi x}{l}\right)e^{-(1+n^2\pi^2/l^2)t}}

The extra +u+u term shifts the decay exponent from n2π2/l2n^2\pi^2/l^2 to 1+n2π2/l21+n^2\pi^2/l^2, giving slightly faster decay.


2016 Paper 2, 2016-P2-Q8a (20 marks)

Find u(x,t)u(x,t) in a 10 cm silver bar with ρ=10.6\rho=10.6 g/cm3^3, K=1.04K=1.04 cal/(cm s ^\circC), σ=0.056\sigma=0.056 cal/(g ^\circC), ends at 00^\circC, and initial temperature f(x)=sin(0.1πx)f(x)=\sin(0.1\pi x).

PDE: ut=c2uxxu_t=c^2 u_{xx} on 0x100\le x\le 10, u(0,t)=u(10,t)=0u(0,t)=u(10,t)=0, u(x,0)=sin(0.1πx)u(x,0)=\sin(0.1\pi x).

Step 1 — Diffusivity:

c2=Kρσ=1.0410.6×0.056=1.040.5936=1.752 cm2/s.c^2=\frac{K}{\rho\sigma}=\frac{1.04}{10.6\times0.056}=\frac{1.04}{0.5936}=1.752\ \text{cm}^2/\text{s}.

Step 2 — General series (with L=10L=10):

u(x,t)=n=1Bnsin ⁣nπx10ec2(nπ/10)2t.u(x,t)=\sum_{n=1}^{\infty}B_n\sin\!\frac{n\pi x}{10}\,e^{-c^2(n\pi/10)^2 t}.

Step 3 — Match IC. The initial profile f(x)=sin(0.1πx)=sin(πx/10)f(x)=\sin(0.1\pi x)=\sin(\pi x/10) is exactly the n=1n=1 eigenfunction. By inspection B1=1B_1=1 and Bn=0B_n=0 for n2n\ge2.

Step 4 — Decay rate:

c2 ⁣(π10)2=1.752×π2100=1.752×0.09870=0.1729 s1.c^2\!\left(\frac{\pi}{10}\right)^2=1.752\times\frac{\pi^2}{100}=1.752\times0.09870=0.1729\ \text{s}^{-1}.

u(x,t)=sin ⁣(πx10)e0.1729t\boxed{u(x,t)=\sin\!\left(\frac{\pi x}{10}\right)e^{-0.1729\,t}}

The bar keeps its initial half-sine shape and decays with time constant 1/0.17295.781/0.1729\approx5.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=uxxu_t=u_{xx}, 0<x<l0<x<l, t>0t>0, with u(0,t)=u(l,t)=0u(0,t)=u(l,t)=0 and u(x,0)=x(lx)u(x,0)=x(l-x).

Separate u=X(x)T(t)u=X(x)T(t): X+λ2X=0X''+\lambda^2 X=0, X(0)=X(l)=0X(0)=X(l)=0 gives Xn=sin(nπx/l)X_n=\sin(n\pi x/l); T+λn2T=0T'+\lambda_n^2 T=0 gives Tn=en2π2t/l2T_n=e^{-n^2\pi^2 t/l^2}.

General solution:

u(x,t)=n=1Bnsin ⁣(nπxl)en2π2t/l2.u(x,t)=\sum_{n=1}^{\infty}B_n\sin\!\left(\frac{n\pi x}{l}\right)e^{-n^2\pi^2 t/l^2}.

Apply u(x,0)=x(lx)u(x,0)=x(l-x): Bn=2l0lx(lx)sin ⁣(nπxl)dxB_n=\dfrac{2}{l}\displaystyle\int_0^l x(l-x)\sin\!\left(\dfrac{n\pi x}{l}\right)dx. Standard quadratic-IC integral gives Bn=8l2/(n3π3)B_n=8l^2/(n^3\pi^3) for odd nn, and 00 for even nn.

u(x,t)=n=1nodd8l2n3π3sin ⁣(nπxl)en2π2t/l2\boxed{u(x,t)=\sum_{\substack{n=1\\n\;\text{odd}}}^{\infty}\frac{8l^2}{n^3\pi^3}\sin\!\left(\frac{n\pi x}{l}\right)e^{-n^2\pi^2 t/l^2}}

After short time the dominant mode (n=1n=1) approximates u8l2π3sin(πx/l)eπ2t/l2u\approx\dfrac{8l^2}{\pi^3}\sin(\pi x/l)\,e^{-\pi^2 t/l^2}.

Common Traps


Marks-Aware Writing

15-mark questions (2015). Show: (1) the separation and eigenvalue problem for XX and TT with the modified decay; (2) the Fourier coefficient integral setup; (3) the IBP to evaluate x(lx)sin(nπx/l)dx\int x(l-x)\sin(n\pi x/l)\,dx; (4) odd-only conclusion; (5) boxed series. State “the +u+u term shifts the time decay by +1+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 c2c^2 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

YearPaper/QMarksHint
2020P2-Q8a20Standard heat equation; check whether the IC is a single eigenmode or requires a full Fourier series.
2018P2-Q8c20Identify the IC type; apply the quadratic-IC formula if f(x)=x(Lx)f(x)=x(L-x), or compute BnB_n by IBP if different.

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.