Equation (7.33) guarantees decay of y with time for any h > 0. The numerical
scheme is unconditionally stable for this problem . This is another example demon-
strating the excellent stability characteristics of implicit numerical ODE integration
methods.
7.3 Runge–Kutta (RK) methods
The Runge–Kutta (RK) methods are a set of explicit higher-order ODE solvers.
The modified Euler method discussed in Section 7.2.3 was an implicit second-order
method that requires two slope evaluations at each time step. By doubling the
number of slope calculations in the interval, we were able to increase the order of
accuracy by an order of magnitude from OðhÞ, characteristic of Euler’s expli cit
method, to Oh
2
for the modified Euler method. This direct correlation between
the number of slope evaluations and the order of the method is exploi ted by the
RK methods. Instead of calculating higher-order derivatives of y, RK numerical
schemes calculate the slope fðt; yÞ at specific points within each subinterval and
then combine them according to a specific rule. In this manner, the RK techniques
have a much faster error convergence rate than first-order schemes, yet require
evaluations only of the first derivative of y. This is one reason why the RK
methods are so popular.
The RK methods are easy to use because the formulas are explicit. However, their
stability characteristics are only slightly better than Euler’s explicit method.
Therefore, a stable solution is not guaranteed for all values of h. When the RK
numerical scheme is stable for the chosen value of h, sub sequent reductions in h lead
to rapid convergence of the numerical approximation to the exact solution. The
convergence rate depends on the order of the RK method. The order of the method is
equal to the number of slope evaluations combined in one time step, when the
number of slopes evaluated is two, three, or four. When the slope evaluations at
each time step exceed four, the correlation between the order of the method and the
number of slopes combined is no longer one-to-one. For example, a fifth-order RK
method requires six slope evaluations at every time step.
3
In this section, we intro-
duce second-order (RK-2) and fourth-order (RK-4) methods.
7.3.1 Second-order RK methods
The second-order RK method is, as the name suggests, second-order accurate, i.e.
the global truncation error associated with the numerical solution is Oh
2
. This
explicit ODE integration scheme requires slope evaluations at two points within
each time step. If k
1
and k
2
are the slope function s evaluated at two distinct time
points within the subinterval t
k
; t
kþ1
½, then the general purpose formula of the
RK-2 method is
y
kþ1
¼ y
k
þ hc
1
k
1
þ c
2
k
2
ðÞ;
k
1
¼ ft
k
; y
k
ðÞ; (7:34)
k
2
¼ ft
k
þ p
2
h; y
k
þ q
21
k
1
hðÞ:
3
RK methods of order greater than 4 are not as computationally efficient as RK-4 methods.
434
Numerical integration of ODEs