8


09/08/11 - Refined numerical methods:  improved Euler's method and the Runge-Kutta method
The weakness in Euler's method and how to reduce it
Runge-Kutta fourth-order method
This method is probably the most commonly used solution algorithm.  For most equations and systems it is suitably fast and accurate.  It's comparable to Simpson's method for approximating integrals numerically.
Given a first-order ODE of the form:

This method looks at the slope at the beginning of an interval (y' = f(tk-1,yk-1)), the estimated slope at the end of the interval (y' = f(tk,yk)), and two estimates of the slope in the middle.  Starting with the initial condition (t0,y0), we calculate four parameters for k = 1 to N:




Then


Example:

Homework