Runge-Kutta method

It is a family of numerical methods to solve ODEs. The more famous is the RK4 (4th order).

yn+1=yn+h16(k1+2k2+2k3+k4)tn+1=tn+h

where

k1=f(tn,yn)k2=f(tn+h2,yn+hk12),k3=f(tn+h2,yn+hk22),k4=f(tn+h,yn+hk3).

Here yn+1 is the RK4 approximation of y(tn+1), and the next value (yn+1) is determined by the present value (yn) plus the weighted average of four increments, where each increment is the product of the size of the interval, h, and an estimated slope specified by function f on the right-hand side of the differential equation.

Interpretation

Short answer: you can think of v:=16(k1+2k2+2k3+k4) as a weighted average slope, so

yn+1=yn+hvn

is nothing but a kind of Euler method but with an improved slope. Instead of taking the slope at (xn,yn) you take several measures (ki) in the interval (xn,xn+1). Why these weights exactly? This requires a long answer.

Long answer: see this great answer. To summarize, the exact value of yn+1 is yn+xnxn+1f(x,y)dx so you should approximate this integral numerically (because you don't know y(x)). When you use Simpson's rule you obtain the formula you have presented.