The diffusion equation
ut=uxx,0⩽x⩽1,t⩾0,
with the initial condition u(x,0)=ϕ(x),0⩽x⩽1, and boundary conditions u(0,t)= u(1,t)=0, is discretised by umn≈u(mh,nk) with k=Δt,h=Δx=1/(1+M). The Courant number is given by μ=k/h2.
(a) The system is solved numerically by the method
umn+1=umn+μ(um−1n−2umn+um+1n),m=1,2,…,M,n⩾0.
Prove directly that μ⩽1/2 implies convergence.
(b) Now consider the method
aumn+1−41(μ−c)(um−1n+1−2umn+1+um+1n+1)=aumn+41(μ+c)(um−1n−2umn+um+1n)
where a and c are real constants. Using an eigenvalue analysis and carefully justifying each step, determine conditions on μ,a and c for this method to be stable.
[You may use the notation [β,α,β] for the tridiagonal matrix with α along the diagonal, and β along the sub-and super-diagonals and use without proof any relevant theorems about such matrices.]