The FTCS scheme is known as an explicit numerical technique.
It is explicit since it calculates the new value of the evolving
function given the function's known current values. This technique is
rather unstable however. In fact, it can be shown for the advection
equation that the explicit FTCS scheme is unstable all for values
of the time step. All is not lost, since we can use some tricks to
have schemes with better stability. One such scheme is the
implicit FTCS scheme. The scheme is still forward in time and
centred in space however, in a sense, it calculates the next value of
the function in time using the next value of the function in
time. ``Hang on'', you say, ``but we don't know that yet''.
Correct. But, what we can do is just write the equations out
as if we knew what the next point in time was and see what
happens. What is our motivation or basis for doing this? Well, for
sufficiently small time steps, the function changes very little, so
is ``pretty close'' to
, and so using such
a trick is not such an evil thing after all.
Using this idea, let's rewrite the matrix form of the diffusion
equation, but this time let the
matrix act on the future
value of
:
| (3.34) |
| (3.35) | ||
| (3.36) | ||
| (3.37) | ||
| (3.38) |
Again, we see that all we have to do is calculate the relevant
matrix, construct the matrix
(which is just a
conglomeration of other matrices) and you're away laughing
(so-to-speak). Also note that we don't need to alter the code
producing the matrix form of the explicit FTCS scheme that much to
implement the implicit scheme. We just need to take the matrix
inverse, and a plus sign is changed to a minus sign. Now I hope you
see the power of using the matrix formalism for numerically
representing differential operators.
It turns out that the implicit FTCS scheme is unconditionally stable. This means that it converges to a solution for any time step. This may seem amazing, and yes, it is, but there is a down side: the scheme isn't as accurate as the explicit scheme. To get around this problem we can take something like the ``average'' of the both the implicit and explicit schemes and we can then have the best of both worlds: stability and accuracy. We discuss such a scheme in the next section; it is called the Crank-Nicolson scheme.
Paul Cochrane 2002-04-18