
3.2 An Order-Two Metho d: TS(2) 35
where t
n
= nh and x
0
= 1. For the purposes of hand calculation it can be
preferable to use (3.2) and arrange the results as shown below:
n = 0 : t
0
= 0 , n = 1 : t
1
= t
0
+ h = 0.3,
x
0
= 1, x
1
= x
0
+ hx
0
0
+
1
2
h
2
x
00
0
= 1.2550,
x
0
0
= 1, x
0
1
= (1 − 2t
1
)x
1
= 0.5020,
x
00
0
= −1, x
00
1
= [(1 − 2t
1
)
2
− 2]x
1
= −2.3092,
with a similar layout for n = 2, 3, . . ..
In Figure 3.1 the computations are extended to the interval 0 ≤ t ≤ 4 and
the numerical values with associated GEs at t = 1.2 are tabulated in Table 3.1.
We observed in Example 2.1 that the GE in Euler’s me thod was halved by
halving h, reflec ting the relationship e
n
∝ h. However, from Table 3.1, we see
that the error for the TS(2) method is reduced by a factor of roughly 4 as h is
halved (0.0031 ≈ 0.0118/4), suggesting that the GE e
n
∝ h
2
.
We deduce from Table 3.1 that, at t = 1.2,
1
GE for Euler’s method ≈ −0.77h
GE for TS(2) method ≈ 0.14h
2
.
These results suggest that, to achieve an accuracy of 0.01, the step size in
Euler’s method would have to satisfy 0.77h = 0.01, from which h ≈ 0.013 and
we would need about 1.2/0.013 ≈ 92 steps to integrate to t = 1.2. What are
the corresponding values for TS(2)? (Answer: h ≈ 0.27 and five steps). This
illustrates the huge potential advantages of using a higher order method.
Fig. 3.1 Numerical solutions for
Example 3.1
× : Euler’s method, h = 0.3,
• : Euler’s method, h = 0.15,
◦ : TS(2) method, h = 0.15.
Solutions at t = 1.2 GEs at t = 1.2
h Euler: TS(1) TS(2) Euler: TS(1) TS(2) GE for TS(2)/h
2
0.30 1.0402 0.7748 −0.2535 0.0118 0.131
0.15 0.9014 0.7836 −0.1148 0.0031 0.138
Table 3.1 Numerical solutions and global errors at t = 1.2 for Example 3.1.
The exact solution is x(1.2) = e
−0.24
= 0.7866.
1
These relations were deduced from the assertions e
n
= C
1
h for Euler and e
n
=
C
2
h
2
for TS(2) and choosing the constants C
1
, C
2
so as to match the data in Table 3.1
for h = 0.15.