difference formula (Equation (1.22)), and dropping the Oh
3
terms, we obtain the
numerical integration formula for the modified Euler method, a secon d-order
method (see Section 7.2.3):
y
kþ1
¼ y
k
þ
1
2
f
k
þ f
kþ1
ðÞ: (7:48)
The associated Oh
3
error term is ðh
3
=12Þf
00
ξ; y ξðÞðÞ. Try to derive the error term
yourself.
Upon substituting a second-order backward difference approximation for the
first derivative of f and a first-order backward difference formula for the second
derivative of f, we obtain the third-order Adams–Moulton formula :
y
kþ1
¼ y
k
þ
h
12
5f
kþ1
þ 8f
k
f
k1
ðÞ: (7:49)
In this manner, higher-order formulas for the Adams–Moulton ODE solver can be
derived.
Upon comparing the magnitude of the error term of the second -order Adams–
Bashforth method and the second-or der Adams–Moulton method, we notice that
the local truncation error is smaller for the implicit Adams method. This is also the
case for higher-order explicit and implicit Adams methods. The smaller error lends
itself to smaller global truncation error and impro ved numerical stability.
Remember that instability of a numerical solution occurs when the error generated
at each step is magnified over successive time steps by the integration formula. The
second-order Adams–Moulton method is stable for all step sizes when the system of
ODEs is well-posed.
4
However, implicit multistep methods of order greater than 2
are not stable for all step sizes, and can produce truncation errors that grow without
bound when large step sizes are used (Grasselli and Pelinovsky, 2008).
7.5.2 Predictor–corrector methods
Implicit numerical ODE integration methods have superior stability characteristics
and smaller local truncation errors compared to explicit methods. However, execu-
tion of implicit methods can be cumbersome since an iterative root-finding algo-
rithm must be employed in general to find the solution at each time step. Also, to
begin the root- finding process, one must provide one or two guesses that lie close
to the true solution of the implicit ODE integration formula. Rather than having to
resort to iterative numerical methods for solving implicit multistep formulas, one
can obtain a prediction of the solution using the explicit multistep formula. The
explicit multistep ODE solver is called the predictor. The prediction y
ð0Þ
kþ1
is plugged
into the right-hand side of the implicit multistep ODE solver to calculate the slope at
ðt
kþ1
; y
ð0Þ
kþ1
Þ. The implicit formula imparts a correction on the prediction of the
solution made by the predictor. Therefore, the implicit ODE integration formula
is called the corrector.
Predictor and corrector formulas of the same order are paired with each other. An
example of a predictor–corrector pair is the second-order Adams–Bashforth method
paired with the second-order Adams–Moulton method shown below:
4
Well-posed ODEs have a unique solution that changes only slightly when the initial condition is
perturbed. An ODE whose solution fluctuates widely with small changes in the initial condition
constitutes an ill-posed problem.
454
Numerical integration of ODEs