The diffusion equation is:
with some initial conditions
and Dirichlet boundary conditions
Full discretization
Similar as in Poisson Equation
By Taylor’s expansion:
So for the true solution we obtain
Now use
with
A method is convergent if for a fixed
Theorem
If
Proof
We will use
We have
so we can get
So by
Proof 2
Apply Lax Equivalence Theorem.
Theorem
This method is stable for
Proof
Look at eigenvalues of
noting that
Eigenvalues of
Hence the eigenvalues of
and if
(for small enough
Semidiscretization (with Euler)
Semidiscretization
Write
Then we can make the equation into:
Now we can use the Euler method method to solve this,
(which yields a full discretization)
but we can also use the Reverse-Euler Method
which yields:
Reverse Euler has enhanced stability.
This means that we can pick larger
i.e. we can have
Note that for Reverse-Euler Method,
we would need to solve the linear system of equations
that arises from the implicit method.
Crank Nicolson scheme
Crank-Nicolson method
Using the Trapezoidal rule (ODEs) after Semidiscretization we get:
Lemma
This method is stable for
Proof
Define
where
Let
Amazingly,
hence
with eigenvalues given by:
So this method is stable for any
Theorem
This method converges for
Proof
We can verify that
We also have:
Hence for the error we have:
so:
All eigenvalues of
(by Gershgorin Theorem)
and we have already seen
for some
Thus taking