MTH3007B Lecture 4

Me, in the lecture

zzzzz…

As usual, this session opened with feedback and recap - specifically clarifying a subtle distinction between Heun’s method (explicit trapezoid - predicts next value) and the implicit trapezoid (uses exact next value), and working through a concrete implicit Euler derivation. Then, the main content: stability and convergence of both ODEs and their numerical methods, followed by generalising everything to systems of ODEs.

Heun's method is not symmetric (since breaks the symmetry between and ), even though it superficially resembles the implicit trapezoid.

Stability of ODEs

Before asking whether a method is stable, we first ask whether the ODE itself is stable - i.e., whether small perturbations in initial conditions remain small over time.

Stability of an ODE: an ODE is stable if, given any , there exists a such that for two solutions and with :

So a stable ODE is one where small differences in initial conditions are not amplified.

Unstable ODE:

The solution is . For two solutions with slightly different initial conditions:

There is no finite upper bound, so no valid can be found - this ODE is unstable.

Stable ODE:

The solution is . For two solutions with slightly different initial conditions:

This goes to zero as , so we can simply take . The initial difference is attenuated (damped), and hence this ODE is stable.

Stability of Methods

Given a stable ODE, we ask whether a numerical method for solving it preserves that stability.

Stability of a method: a method is stable if, for a stable ODE, two slightly different initial conditions and produce solutions and whose difference stays bounded - i.e., there exists such that for all .

A method is unstable if it produces an unbounded solution for a stable ODE.

Forward Euler Stability

Consider the model stable ODE with . The explicit Euler scheme gives , and hence after steps:

This diverges as when , which (since ) means . For two different initial conditions the difference then grows without bound:

The explicit Euler method is therefore conditionally stable - unstable whenever .

Backward Euler Stability

The implicit Euler scheme for the same ODE gives , and hence after steps:

Since , we have , so this always decays to zero as , regardless of . The difference between two initial conditions goes to zero for any , so the implicit Euler method is unconditionally stable.

This explains the earlier instability observations - at , explicit Euler blows up entirely whilst implicit Euler remains well-behaved.

Convergence

Convergence: a numerical algorithm converges if, when continually refined with a smaller step size, the approximate solutions converge to the exact solution - i.e., the true solution is recovered in the limit .

In convergence proofs, only the truncation error is considered - round-off errors are discarded.

The Order of convergence is the rate at which the global error decreases as .

Lax Equivalence Theorem

A clean result that decomposes convergence into two more tractable conditions:

A finite-difference method for a well-posed initial-boundary value problem converges if and only if it is both:

  1. Stable (as defined above), and
  2. Consistent: the exact solution of the ODE satisfies the numerical scheme in the limit .

The motivation for this split is that stability and consistency are generally much easier to prove than convergence directly. Both explicit and implicit Euler are consistent, so both converge for sufficiently small (with the additional constraint for the explicit variant).

Richardson Method (and Why It Fails)

One natural attempt to construct a symmetric Euler-like method is the Richardson method, using a centred difference spanning two steps:

This is symmetric by construction, since and play symmetric roles around . However, it can be proven that the Richardson method is unconditionally unstable for ODEs such as - unstable for any choice of , rendering it practically useless.

Symmetry does not imply stability - the Richardson method is the canonical counterexample.

The implicit trapezoid rule, by contrast, is both symmetric and unconditionally stable.

Systems of ODEs

Up to now, we’ve only considered a single ODE . Many practical applications are coupled systems of ODEs. For equations:

This can be written compactly in vector form, where and are now vector-valued:

The explicit Euler method then extends trivially:

The scalar and vector forms are identical in structure - meaning the entire Runge-Kutta family generalises directly to systems by simply replacing scalar functions with vector-valued ones.


Pre-Lecture Notes from University Notes

  • Stability of ODEs and numerical methods.
  • Convergence, consistency, and the Lax Equivalence Theorem.
  • The Richardson method and why symmetry alone doesn’t guarantee stability.
  • Generalising single-variable ODE methods to coupled systems of ODEs.
  • Predator-prey (Lotka-Volterra) equations as a worked example.