Paper 3, Section II, 40E

Numerical Analysis | Part II, 2021

Consider discretisation of the diffusion equation

ut=2ux2,0t1\frac{\partial u}{\partial t}=\frac{\partial^{2} u}{\partial x^{2}}, \quad 0 \leqslant t \leqslant 1

by the Crank-Nicholson method:

umn+112μ(um1n+12umn+1+um+1n+1)=umn+12μ(um1n2umn+um+1n),n=0,,N,u_{m}^{n+1}-\frac{1}{2} \mu\left(u_{m-1}^{n+1}-2 u_{m}^{n+1}+u_{m+1}^{n+1}\right)=u_{m}^{n}+\frac{1}{2} \mu\left(u_{m-1}^{n}-2 u_{m}^{n}+u_{m+1}^{n}\right), \quad n=0, \ldots, N,

where μ=kh2\mu=\frac{k}{h^{2}} is the Courant number, hh is the step size in the space discretisation, k=1N+1k=\frac{1}{N+1} is the step size in the time discretisation, and umnu(mh,nk)u_{m}^{n} \approx u(m h, n k), where u(x,t)u(x, t) is the solution of ()(*). The initial condition u(x,0)=u0(x)u(x, 0)=u_{0}(x) is given.

(a) Consider the Cauchy problem for ()(*) on the whole line, xRx \in \mathbb{R} (thus mZm \in \mathbb{Z} ), and derive the formula for the amplification factor of the Crank-Nicholson method ( \dagger ). Use the amplification factor to show that the Crank-Nicholson method is stable for the Cauchy problem for all μ>0\mu>0.

[You may quote basic properties of the Fourier transform mentioned in lectures, but not the theorem on sufficient and necessary conditions on the amplification factor to have stability.]

(b) Consider ()(*) on the interval 0x10 \leqslant x \leqslant 1 (thus m=1,,Mm=1, \ldots, M and h=1M+1h=\frac{1}{M+1} ) with Dirichlet boundary conditions u(0,t)=ϕ0(t)u(0, t)=\phi_{0}(t) and u(1,t)=ϕ1(t)u(1, t)=\phi_{1}(t), for some sufficiently smooth functions ϕ0\phi_{0} and ϕ1\phi_{1}. Show directly (without using the Lax equivalence theorem) that, given sufficient smoothness of uu, the Crank-Nicholson method is convergent, for any μ>0\mu>0, in the norm defined by η2,h=(hm=1Mηm2)1/2\|\boldsymbol{\eta}\|_{2, h}=\left(h \sum_{m=1}^{M}\left|\eta_{m}\right|^{2}\right)^{1 / 2} for ηRM\boldsymbol{\eta} \in \mathbb{R}^{M}.

[You may assume that the Trapezoidal method has local order 3 , and that the standard three-point centred discretisation of the second derivative (as used in the CrankNicholson method) has local order 2.]

Typos? Please submit corrections to this page on GitHub.