Runge-Kutta Method

Contribute to this entry

A method of numerically integrating ordinary differential equations by using a trial step at the midpoint of an interval to cancel out lower-order error terms. The second-order formula is

k_1=hf(x_n,y_n)
(1)
k_2=hf(x_n+1/2h,y_n+1/2k_1)
(2)
y_(n+1)=y_n+k_2+O(h^3)
(3)

(where O(x) is a Landau symbol), sometimes known as RK2, and the fourth-order formula is

k_1=hf(x_n,y_n)
(4)
k_2=hf(x_n+1/2h,y_n+1/2k_1)
(5)
k_3=hf(x_n+1/2h,y_n+1/2k_2)
(6)
k_4=hf(x_n+h,y_n+k_3)
(7)
y_(n+1)=y_n+1/6k_1+1/3k_2+1/3k_3+1/6k_4+O(h^5)
(8)

(Press et al. 1992), sometimes known as RK4. This method is reasonably simple and robust and is a good general candidate for numerical solution of differential equations when combined with an intelligent adaptive step-size routine.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.