The diffusion equation is:
with some initial 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
so we can get
So by
Proof 2
Apply Lax Equivalence Theorem.
Theorem
This method is stable for
Proof
Look at eigenvalues of
Semidiscretization (with Euler)
Semidiscretization
Write
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
Crank Nicolson scheme
Crank-Nicolson method Using the Trapezoidal rule (ODEs) after Semidiscretization we get:
Lemma
This method is stable for
Proof
Define
So this method is stable for any
Theorem
This method converges for
Proof
We can verify that
Hence for the error we have:
so:
All eigenvalues of
for some