2.6 The Runge–Kutta Method

We now discuss a method for approximating the solution y=y(x) of the initial value problem

dydx=f(x, y),y(x0)=y0 (1)

that is considerably more accurate than the improved Euler method and is more widely used in practice than any of the numerical methods discussed in Sections 2.4 and 2.5. It is called the Runge–Kutta method, after the German mathematicians who developed it, Carl Runge (1856–1927) and Wilhelm Kutta (1867–1944).

With the usual notation, suppose that we have computed the approximations y1, y2, y3, , yn to the actual values y(x1), y(x2), y(x3), , y(xn) and now want to compute yn+1y(xn+1). Then

y(xn+1)y(xn)=xnxn+1y(x)dx=xnxn+hy(x)dx (2)

by the fundamental theorem of calculus. Next, Simpson’s rule ...

Get Differential Equations and Linear Algebra, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.