(a) The diffusion equation
∂t∂u=∂x2∂2u,0⩽x⩽1,0⩽t⩽T
is approximated by the Crank-Nicolson scheme
umn+1−21μ(um−1n+1−2umn+1+um+1n+1)=umn+21μ(um−1n−2umn+um+1n)
with m=1,…,M. Here μ=k/h2,k=Δt,h=Δx=M+11, and umn is an approximation to u(mh,nk). Assuming that u(0,t)=u(1,t)=M+10, show that the above scheme can be written in the form
Bun+1=Cun,0⩽n⩽T/k−1
where un=[u1n,…,uMn]T and the real matrices B and C should be found. Using matrix analysis, find the range of μ>0 for which the scheme is stable.
[Hint: All Toeplitz symmetric tridiagonal (TST) matrices have the same set of orthogonal eigenvectors, and a TST matrix with the elements ai,i=a and ai,i±1=b has the eigenvalues λk=a+2bcosM+1πk. ]
(b) The wave equation
∂t2∂2u=∂x2∂2u,x∈R,t⩾0
with given initial conditions for u and ∂u/∂t, is approximated by the scheme
umn+1−2umn+umn−1=μ(um+1n−2umn+um−1n),
with the Courant number now μ=k2/h2. Applying the Fourier technique, find the range of μ>0 for which the method is stable.