
46 4. Linear Multistep Methods—I
Example 4.1
Apply the TS(2), trapezoidal and AB(2) methods to the IVP x
0
(t) = (1 −
2t)x(t), t ∈ (0, 4], x(0) = 1 (cf. Examples 2.1 and 3.1) with h = 0.2 and
h = 0.1. Compare the accuracy achieved by the various methods at t = 1.2.
The application of TS(2) is described in Example 3.1. With f(t, x) = (1 −
2t)x, the trapezoidal rule gives
x
n+1
= x
n
+
1
2
h[(1 − 2t
n+1
)x
n+1
+ (1 − 2t
n
)x
n
],
which can be rearranged to read
x
n+1
=
1 +
1
2
h(1 − 2t
n
)
1 −
1
2
h(1 − 2t
n+1
)
x
n
(4.11)
for n = 0, 1, 2, . . . and x
0
= 1. When h = 0.2 we take n = 6 steps to reach
t = 1.2, at which point we obtain x
6
= 0.789 47. Comparing this with the exact
solution x(1.2) = 0.786 63 gives a GE of −0.0028.
For the AB(2) method, we find
x
n+2
= x
n+1
+
1
2
h[3(1 − 2t
n+1
)x
n+1
− (1 − 2t
n
)x
n
]
=
1 +
3
2
h(1 − 2t
n+1
)
x
n+1
−
1
2
h(1 − 2t
n
)x
n
,
which holds for n ≥ 0. When n = 0 we have x
0
= 1, t
0
= 0, t
1
= h, and
x
2
=
1 +
3
2
h(1 − 2h)
x
1
−
1
2
h.
It is necess ary to use some other method to find the additional starting value
x
1
before we can begin. Two obvious possibilities are to use either Euler’s
method, x
1
= (1 + h)x
0
(we label the results ABE), or the value computed by
the trapezoidal rule (4.11) with n = 0 (leading to ABT).
The calculation of the sequence {x
n
} is best organized with a start-up phase:
first calculate f
0
= 1 from the initial data x = x
0
at t = t
0
. The solution at
t = t
1
is then calculated by Euler’s method (for instance):
t
1
= t
0
+ h = 0.2,
x
1
= x
0
+ hf
0
= 1.2 (Euler’s method),
f
1
= (1 − 2t
1
)x
1
= 0.72;
then, for each n = 0, 1, 2, . . . , x
n+2
and f
n+2
are calculated from
t
n+2
= t
n+1
+ h,
x
n+2
= x
n+1
+
1
2
h(3f
n+1
− f
n
),
f
n+2
= (1 − 2t
n+2
)x
n+2
,