MATH/APPM 4650
Class notes, March 18

Runge-Kutta methods

Today's notes will mostly be on the board.

So far:

Problem: f may not be known very accurately, so derivatives will be known to much less accuracy.
Even if f were known exactly, the derivatives might be hard to compute.

Can we get the higher-order benefits of Taylor methods without having to compute complicated derivatives of f?

Yes. Idea:
  1. Replace evaluation at f(ti, wi) with evaluation at some other point/points f(τ, ω).
  2. Instead of
    wnew = wold + h f(told, wold)
    we try
    wnew = wold + h f(τ, ω)
    for some choice of τ and ω.
  3. Or even
    wnew = wold + h [ a1 f1, ω1) + . . . + am fm, ωm) ].
  4. We choose the points τi and ωi and the coefficients ai to make this as close as possible to the nth order Taylor formula.

Since the Taylor formula is complicated, we may not have m = n. That is, you may use m points but not get error O(hm). Oh well.

In the simplest case when m=1, the formula is called the Midpoint method.
The best time to use is the midpoint between told and tnew and the best w-value is the midpoint between wold and wnew (which is itself approximated by Euler's method).
and this will have local truncation error O(h2).
You can see this by expanding wnew in a Taylor series in h.
The terms up to h3 match those of the second-order Taylor method, so cumulatively we have LTE O(h2).

Specifically, the error at each step will look like




More generally if we try
wnew = w + h [ af(t, w) + bf(t+ch, w+dhf(t, w)) ]
then we cannot make it equal to the third-order Taylor method, but if we only try to make it equal to the second-order method, we only get two equations.

There are two popular choices:
  1. Trapezoid method ("modified Euler"):

  2. Heun's method:


Of course the local truncation error of all three methods is O(h2).
Notice the right combination of the three methods will eliminate this term and give something with LTE at least O(h3).

But that will involve four points and only give O(h3).