1 General linear multistep methods
Euler’s method and the trapezium method are both special cases of a wider class of so-called linear multistep methods. The following Key Point gives the most general situation that we will look at.
Key Point 8
The general -step linear multistep method is given by
or equivalently
It is always the case that . Also, at least one of and will be non-zero.
A linear multistep method is defined by the choice of the quantities
- If the method is called explicit . (Because at each step, when we are trying to find the newest , there is no appearance of this unknown on the right-hand side.)
- If the method is called implicit . (Because now appears on both sides of the equation (on the right-hand side it appears through , and we cannot, in general, rearrange to get an explicit formula for .)
The next Example shows one such choice.
Example 5
Write down the linear multistep scheme defined by the choices , , , .
Solution
Here so that
and substituting the values in for the four coefficients gives
which, as we know, is the trapezium method.
Task!
Write down the linear multistep scheme defined by the choices , , , and .
Here and we have
and substituting the values in for the four coefficients gives
which, as we know, is Euler’s method.
Task!
Write down the linear multistep scheme defined by the choices , , , , , and .
Here (so we are looking at a 2-step scheme) and we have
Substituting the values in for the six coefficients gives
which is an example of a scheme that is explicit (because is zero).
In the preceding Section we saw several examples implementing the Euler and trapezium methods.
The next Example deals with the explicit 2-step that was the subject of the Task above.
Example 6
A numerical scheme has been used to approximate the solution of
and has produced the following estimates, to 6 decimal places,
Now use the 2-step, explicit linear multistep scheme
to approximate .
Solution
Evidently the value will serve our purposes and we seek . The values we will need to use in our implementation of the 2-step scheme are and
to 6 decimal places since . It follows that
And we conclude that , where this approximation has been given to 6 decimal places.
Notice that in this implementation of a 2-step method we needed to use the values of the two values preceding the one currently being sought. Both and were used in finding .
Similarly, a -step method will use, in general, previous values at each time step.
This means that there is an issue to be resolved in implementing methods that are 2- or higher-step, because when we start we are only given one starting value . This issue will be dealt with towards the end of this Section. The following exercise involves a 2-step method, but (like the example above) it does not encounter the difficulty relating to starting values as it assumes that the numerical procedure is already underway.
Task!
A numerical scheme has been used to approximate the solution of
and has produced the following estimates, to 6 decimal places,
Now use the 2-step, explicit linear multistep scheme
to approximate .
Evidently the value will serve our purposes and we seek . The values we will need to use in our implementation of the 2-step scheme are , and
to 6 decimal places since . It follows that
And we conclude that , to 6 decimal places.
1.1 Zero stability
We now begin to classify linear multistep methods. Some choices of the coefficients give rise to schemes that work well, and some do not. One property that is required if we are to obtain reliable approximations is that the scheme be zero stable . A scheme that is zero stable will not produce approximations which grow unrealistically with .
We define the first characteristic polynomial
where the are the coefficients of the linear multistep method as defined in Key Point 8 (page 21). This polynomial appears in the definition of zero stability given in the following Key Point.
Key Point 10
The linear multistep scheme
is said to be zero stable if the zeros of the first characteristic polynomial are such that
- none is larger than 1 in magnitude
- any zero equal to 1 in magnitude is simple (that is, not repeated)
The second characteristic polynomial is defined in terms of the coefficients on the right-hand side (the ), but its use is beyond the scope of this Workbook.
Example 7
Find the roots of the first characteristic polynomial for each of the examples below and determine whether or not the method is zero stable.
Solution
- In this case and the single zero of is . This is a simple (that is, not repeated) root with magnitude equal to 1, so the method is zero stable.
- which has one zero, . This has magnitude and therefore the method is not zero stable.
- . One root is which has magnitude greater than 1 and the method is therefore not zero stable.
-
Here
,
and
, therefore
which has two zeros, and . These both have magnitude less than or equal to 1 and there is no repeated zero with magnitude equal to 1, so the method is zero stable.
- . Here is not a simple root, it is repeated and, since it has magnitude equal to 1, the method is not zero stable.
- and the roots of can be found from the quadratic formula. In this case the roots are complex and are equal to Zero-stability requires that the absolute values have magnitude less than or equal to 1. Consequently we conclude that the method is not zero stable.
Task!
Find the roots of the first characteristic polynomial for the linear multistep scheme
and hence determine whether or not the scheme is zero stable.
The first characteristic polynomial is
and the roots of are both equal to 1. In the case of roots that are equal, zero-stability requires that the absolute value has magnitude less than 1. Consequently we conclude that the method is not zero stable.
At this stage, the notion of zero stability is rather abstract, so let us try using a zero unstable method and see what happens. We consider the simple test problem
which we know to have analytic solution , a quantity which decays with increasing . Implementing the zero unstable scheme
on a spreadsheet package with gives the following results
where 5 decimal places have been given for . The dramatic growth in the values of is due to the zero instability of the method. (There are in fact other things than zero instability wrong with the scheme , but it is the zero instability that is causing the large numbers.)
1.2 Consistency and order
A scheme that is zero stable will produce approximations that do not grow in size in a way that is not present in the exact, analytic solution. Zero stability is a required property, but it is not enough on its own. There remains the issue of whether the approximations are close to the exact values.
The truncation error of the general linear multistep method is a measure of how well the differential equation and the numerical method agree with each other. It is defined by
where is a normalising factor.
It is the first few terms in this expression that will matter most in what follows, and it helps us that there are formulae for the coefficients which appear
and so on, the general formula for is .
Recall that the truncation error is intended to be a measure of how well the differential equation and its approximation agree with each other. We say that the numerical method is consistent with the differential equation if tends to zero as . The following Key Point says this in other words.
Key Point 11
The linear multistep scheme is said to be consistent if and .
Example 8
Show that Euler’s method ( ) is consistent.
Solution
In this case , , and . It follows that
and therefore Euler’s method is consistent.
Task!
Show that the trapezium method ( ) is consistent.
In this case , , and . It follows that
and therefore the trapezium method is consistent.
Task!
Determine the consistency (or otherwise) of the following 2-step linear multistep schemes
- , . Therefore the method is consistent.
- , so the method is inconsistent.
- This method is consistent, because and .
(Notice also that the first characteristic polynomial , defined on page 6 of this Section, evaluated at is equal to . It follows that a consistent scheme must always have as one of the roots of its .)
Assuming that the method is consistent, the order of the scheme tells us how quickly the truncation error tends to zero as . For example, if , , and then the first non-zero term in will be the one involving and the linear multistep method is called second-order . This means that if is small then is dominated by the term (because the and subsequent terms will be tiny in comparison) and halving will cause to decrease by a factor of approximately . The decrease is only approximately known because the and other terms will have a small effect.
We summarise the general situation in the following Key Point.
Combining the last two Key Points gives us another way of describing consistency: “A linear multistep method is consistent if it is at least first order".
Example 9
Find the order of
- Euler’s method
- The trapezium method.
Solution
-
We have already found that
so the first quantity to calculate is
which is not zero and therefore Euler’s method is of order 1. (Or, in other words, Euler’s method is first order.)
-
We have already found that
so the first quantity to calculate is
this is equal to zero, so we must calculate the next coefficient
which is not zero. Hence the trapezium method is of order 2 (that is, it is second order).
This finally explains some of the results we saw in the first Section of this Workbook. We saw that the errors incurred by the Euler and trapezium methods, for a particular test problem, were roughly proportional to and respectively. This behaviour is dictated by the first non-zero term in the truncation error which is the one involving for Euler and the one involving for trapezium.
We now apply the method to another linear multistep scheme.
Example 10
Find the order of the 4-step, explicit linear multistep scheme
Solution
In the established notation we have
,
,
,
and
. The
terms similarly come from the coefficients on the right hand side (remembering the denominator of 24).
Now
from which we conclude that the method is consistent.
We also find that
(The exact value of is .)
Because is the first non-zero coefficient we conclude that the method is of order 4.
So the scheme in Example 10 has the property that the truncation error will tend to zero proportional to (approximately) as . This is a good thing, as it says that the error will decay to zero very quickly, when is decreased.
Task!
Find the order of the 2-step linear multistep scheme
In the established notation we have , and . Also , and . Now
from which we conclude that the method is consistent.
We also find that
so that the method is of order 3.
1.3 Convergence
The key result concerning linear multistep methods is given in the following Key Point.
Key Point 13
The numerical approximation to the initial value problem converges to the actual solution as if
1. the scheme is zero stable
2. the scheme is consistent
The proof of this result lies beyond the scope of this Workbook. It is worth pointing out that this is not the whole story. The convergence result is useful, but only deals with as it tends to zero. In practice we use a finite, non-zero value of and there are ways of determining how big an it is possible to “get away with" for a particular linear multistep scheme applied to a particular initial value problem.
If, when implementing the methods described above, it is found that the numerical approximations behave in an unexpected way (for example, if the numbers are very large when they should not be, or if decreasing does not seem to lead to results that converge) then one topic to look for in further reading is that of “absolute stability".