(i) The diffusion equation
∂t∂u=∂x∂(a(x)∂x∂u),0⩽x⩽1,t⩾0
with the initial condition u(x,0)=ϕ(x),0⩽x⩽1 and zero boundary conditions at x=0 and x=1, is solved by the finite-difference method
umn+1=umn+μ[am−21um−1n−(am−21+am+21)umn+am+21um+1n]m=1,2,…,N
where μ=Δt/(Δx)2,Δx=N+11 and umn≈u(mΔx,nΔt),aα=a(αΔx).
Assuming sufficient smoothness of the function a, and that μ remains constant as Δx>0 and Δt>0 become small, prove that the exact solution satisfies the numerical scheme with error O((Δx)3).
(ii) For the problem defined in Part (i), assume that there exist 0<a−<a+<∞ such that a−⩽a(x)⩽a+,0⩽x⩽1. Prove that the method is stable for 0<μ⩽1/(2a+).
[Hint: You may use without proof the Gerschgorin theorem: All the eigenvalues of the matrix A=(ak,l)k,l=1,…,M are contained in ⋃k=1mSk, where
Sk=⎩⎪⎪⎨⎪⎪⎧z∈C:∣z−ak,k∣⩽l=1l=k∑m∣ak,l∣⎭⎪⎪⎬⎪⎪⎫,k=1,2,…,m.⎦⎥⎥⎤