MTH3007b Lecture 2

Me, in the lecture

zzzzz…

Lecture 1 established the explicit and implicit Euler methods and showed that both are first-order: global error . This session introduces higher-order Runge-Kutta methods that achieve global error by evaluating the right-hand side at intermediate points within each timestep.

General Form of Runge-Kutta Methods

A single-step method can always be written as

where is called the the increment function. For explicit Euler, . Higher-order methods use more sophisticated choices of that incorporate information about at multiple points.

Midpoint Method

Formula

The Midpoint method evaluates at the midpoint of the interval :

The argument is an Euler-style estimate of at the midpoint - this is then used to evaluate there.

Note

The midpoint method is a second-order method: global error . This is a full order of magnitude improvement over explicit Euler.

How it achieves second order

The key idea is that by evaluating at the midpoint rather than the left endpoint, the method implicitly incorporates information about through the way changes across the interval. The Taylor expansion of the resulting scheme matches the exact solution to per step, giving global error (since the global error is one order lower in than the LTE for consistent methods… wait, actually: LTE per step, global ).

Ralston’s Method

Formula

Ralston’s method is another second-order Runge-Kutta scheme. It uses two stages:

The weights and are chosen to minimise the leading error coefficient among all second-order two-stage RK methods.

Important

Both the midpoint method and Ralston’s method are second-order: global error . Halving reduces the error by a factor of four.

Comparison with Explicit Euler

For small enough , both second-order methods produce significantly smaller errors than explicit Euler. Ralston’s method is generally more accurate than the midpoint method at the same due to its optimised coefficients.

Example

Applied to (a stiff-ish equation for large ): at , a second-order method yields much smaller deviation from the exact solution than explicit Euler at the same step size.

The tradeoff is computational cost: each step of a two-stage RK method requires two evaluations of versus one for Euler. In practice, the improved accuracy per unit cost makes second-order methods preferable for most problems.


Pre-Lecture Notes from University Notes

  • General RK form: where is the increment function
  • Midpoint method: - second-order ( global error)
  • Ralston’s method: two-stage RK with , , update
  • Both methods are second-order; Ralston’s is generally more accurate than the midpoint method
  • Cost: two -evaluations per step (vs one for Euler), but error makes this worthwhile
  • Next session: formal derivation of second-order RK coefficients via Taylor expansion, and the RK4 formula