Suppose we are solving the diffusion equation
Constant diffusion
Assume
Using the 5-point method, we get:
We can show that
where
Then
Using Splitting Numerical Schemes we can write:
Split Crank-Nicolson now uses
to approximate the exponential
where the inverse is calculated in
Note that in
The stability is verified:
Variable diffusion
First replace all space derivatives by
to find the ODE system:
Then
so by Product of matrix exponentials:
has an error
We can find a better approximation, for example: