Runge-Kutta methods approximate IVP solutions using higher-order Taylor expansions, without evaluating derivatives of .
Mesh points are with , as in Euler’s method.
Midpoint Method
Second-order Taylor, with the derivative term replaced using
The local truncation error is . The global error is .
Modified Euler Method
Third-order Taylor, with the derivative term replaced by an average of the endpoint slopes.
The local truncation error is . The global error is .
Order 4 Runge-Kutta
for . The local truncation error is . The global error is .
Error Orders
| Method | Global error | Local truncation error |
|---|---|---|
| Euler | ||
| Midpoint | ||
| Modified Euler | ||
| Order 4 Runge-Kutta |
Higher order gives a better approximation for the same .
Worked Examples
Example 1
Apply each method to , , , with . Exact solution , giving .
Solution Reveal Hide
and .
Midpoint
Modified Euler
Order 4
First step, ,
Continuing, , , .
| Method | Error | |
|---|---|---|
| Euler | ||
| Midpoint | ||
| Modified Euler | ||
| Order 4 Runge-Kutta |
Example 2
Apply 1 step of order 4 Runge-Kutta to , , with .
Solution Reveal Hide
The exact value is . Euler gives .