Astronomy and Space Exploration ES

Glossary / R / Mathematics and numerical methods

Runge–Kutta method

Also: Runge-Kutta · RK4 · RK45 · Dormand-Prince

Illustration: Runge–Kutta method

An improvement on Euler's method that "samples" the slope at several intermediate points of each step and averages them. The fourth-order version (RK4) is thousands of times more accurate for the same step size.

Going further

RK4: k1=f(tn,yn)k_1 = f(t_n, y_n), k2=f(tn+h/2,yn+hk1/2)k_2 = f(t_n + h/2, y_n + hk_1/2), k3=f(tn+h/2,yn+hk2/2)k_3 = f(t_n + h/2, y_n + hk_2/2), k4=f(tn+h,yn+hk3)k_4 = f(t_n + h, y_n + hk_3), yn+1=yn+h6(k1+2k2+2k3+k4)y_{n+1} = y_n + \dfrac{h}{6}(k_1 + 2k_2 + 2k_3 + k_4). Global error O(h4)O(h^{4}); it is not symplectic.

Where it is explained: Runge–Kutta and adaptive step size Higher Education

Related terms

Used in these lessons

← Whole glossaryLessons at this level →