MATH/APPM 4650
Class notes, March 18
Runge-Kutta methods
Today's notes will mostly be on the board.
So far:
- Euler's method, with local truncation error O(h):
w0 = y0, wi+1 = wi + h f(ti, wi)
- Second-order Taylor method, with local truncation error O(h):
w0 = y0, wi+1 = wi + h f(ti, wi) + h2/2 [ft(ti, wi) + f(ti, wi) fy(ti, wi)]
- nth-order Taylor method involves computing derivatives up to y(n)(t) in terms of t and y(t). Has local truncation error O(h).
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:
- Replace evaluation at f(ti, wi) with evaluation at some other point/points f(τ, ω).
- Instead of
wnew = wold + h f(told, wold)
we try
wnew = wold + h f(τ, ω)
for some choice of τ and ω.
- Or even
wnew = wold + h [ a1 f(τ1, ω1) + . . . + am f(τm, ωm) ].
- 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:
- Trapezoid method ("modified Euler"):

- 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).