74 The Numerical Solution of Differential Equations
the accuracy conditions (2.12.5) are satisfied for r =0, 1, 2, 3, 4. The method is of
fourth order, and in fact its error term can be found by the method of section 2.8 to be
−h
5
y
(v)
(X)/90, where X lies between x
n−1
and x
n+1
.
Now we examine the stability of this method. First, when h = 0 the equation (2.12.9)
that determines the roots is just α
2
− 1 = 0, so the roots are +1 and −1. Therootat+1
is the friendly one. As h increases slightly to small positive values, that root will follow the
power series expansion of e
−τ
very accurately, in fact, through the first four powers of τ.
Therootat−1 is to be regarded with apprehension, because it is poised on the brink of
causing trouble. If as h grows to a small positive value, this root grows in absolute value,
then its powers will dwarf the powers of the principal root in the numerical solution, and
all accuracy will eventually be lost.
To see if this happens, let’s substitute a power series
α
2
(h)=−1+q
1
τ + q
2
τ
2
+ ··· (2.12.16)
into the characteristic equation (2.12.8), which in the present case is just the quadratic
equation
1+
τ
3
α
2
+
4τ
3
α −
1 −
τ
3
=0. (2.12.17)
After substituting, we quickly find that q
1
= −1/3, and our apprehension was fully war-
rented, because for small τ the root acts like −1 −τ/3, so for all small positive values of τ
this lies outside of the unit disk, so the method will be unstable.
In the next section, we are going to describe a family of multistep methods, called the
Adams methods, that are stable, and that offer whatever accuracy one might want, if one
is willing to save enough backwards values of the y’s. First we will develop a very general
tool, the Lagrange interpolation formula, that we’ll need in several parts of the sequel, and
following that we discuss the Adams formulas. The secret weapon of the Adams formulas
is that when h = 0, one of the roots (the friendly one) is as usual sitting at 1, ready to
develop into the exponential series, and all of the unfriendly roots are huddled together at
the origin, just as far out of trouble as they can get.
2.13 Lagrange and Adams formulas
Our next job is to develop formulas that can give us as much accuracy as we want in a
numerical solution of a differential equation. This means that we want methods in which
the formulas span a number of points, i.e., in which the next value of y is obtained from
several backward values, instead of from just one or two as in the methods that we have
already studied. Furthermore, these methods will need some assistance in getting started,
so we will have to develop matched formulas that will provide them with starting values of
the right accuracy.
All of these jobs can be done with the aid of a formula, due to Lagrange, whose mission
in life is to fit a polynomial to a given set of data points, so let’s begin with a little example.