Most anybody that has done numerical integration is familiar with Runge Kutta methods. The most common being the fourth order integration equations. But, the equations for simultaneous differential equations are generally not presented so I've put them here.
I'm not trying to teach Runge Kutta methods here, just present the equations for those familiar with numerical integration methods. If this is "greek" to you, take a look at any number of books on numerical methods.
I'm presenting the common second, third and fourth order equations here for completeness. You should be able to find them just about anywhere. These were taken from Handbook of Mathematical Functions (see below). NOTE: there are other equations for the Runge Kutta method, usually differing by constants. I'm not claiming that these are the only methods or even the best.
All equations are for single integration step of the function y = F(x,y) over a step size of h.
Second order |
---|
y_{n+1} = y_{n} + ( k_{1} + k_{2} ) / 2 + O( h^{3} ) |
k_{1} = h F( x_{n},y_{n} ) |
k_{2} = h F( x_{n} + h,y_{n} + k_{1} ) |
Third order |
y_{n+1} = y_{n} + 1/6 k_{1} + 2/3 k_{2} + 1/6 k_{3} + O( h^{4} ) |
k_{1} = h F( x_{n},y_{n} ) |
k_{2} = h F( x_{n} + h/2, y_{n} + k_{1}/2 ) |
k_{3} = h F( x_{n} + h, y_{n} -k_{1} + 2 k_{2} ) |
Fourth order: |
y_{n+1} = y_{n} + 1/6 k_{1} + 1/3 k_{2} + 1/3 k_{3} + 1/6 k_{4} + O( h^{5} ) |
k_{1} = h F( x_{n},y_{n} ) |
k_{2} = h F( x_{n} + h/2, y_{n} + k_{1}/2 ) |
k_{3} = h F( x_{n} + h/2, y_{n} + k_{2}/2 ) |
k_{4} = h F( x_{n} + h, y_{n} + k_{3} ) |
The equations of motion for a bullet in flight, are simultaneous coupled differential equations. Specifically three equations for acceleration, position and spin. These equations may have been transformed using the substitution:
producing equations as a function of mach number and range:
where v = u - w and u is the velocity relative to the ground and w is the wind velocity.
Integrating this equation is much easier when trajectory parameters are required as a function of range. [This vector equation for velocity is derived in the discussion of CD and KD] But, it does introduce another differential equation for time.
The Runge Kutta methods for coupled equations are slightly different and not seen very often (at least by me!). I've found them listed in one book, Ballistics of the Future (see below), and have listed them here for anybody that does not have access to this book (only fourth order was shown).
For two equations, dy/dx = F(x, y, z) and dz/dx = G(x, y, z), a single integration step of h is defined by:
y_{n+1} = y_{n} + 1/6 k_{1} + 1/3 k_{2} + 1/3 k_{3} + 1/6 k_{4} + O( h^{5} ) |
z_{n+1} = z_{n} + 1/6 l_{1} + 1/3 l_{2} + 1/3 l_{3} + 1/6 l_{4} + O( h^{5} ) |
k_{1} = h F( x_{n},y_{n}, z_{n} ) |
k_{2} = h F( x_{n} + h/2, y_{n} + k_{1}/2, z_{n} + l_{1}/2 ) |
k_{3} = h F( x_{n} + h/2, y_{n} + k_{2}/2, z_{n} + l_{2}/2 ) |
k_{4} = h F( x_{n} + h, y_{n} + k_{3}, z_{n} + l_{3} ) |
l_{1} = h G( x_{n},y_{n}, z_{n} ) |
l_{2} = h G( x_{n} + h/2, y_{n} + k_{1}/2, z_{n} + l_{1}/2 ) |
l_{3} = h G( x_{n} + h/2, y_{n} + k_{2}/2, z_{n} + l_{2}/2 ) |
l_{4} = h G( x_{n} + h, y_{n} + k_{3}, z_{n} + l_{3} ) |
Consider the coupled differential equations of second order:
where ' denotes differentiation with respect to x.
Assume
then
reducing the second order differential equations to a system of four simultaneous eqations of first order.
A single integration step, h of x, is then given by:
y_{n+1} = y_{n} + 1/6 k_{1} + 1/3 k_{2} + 1/3 k_{3} + 1/6 k_{4} + O( h^{5} ) |
z_{n+1} = z_{n} + 1/6 l_{1} + 1/3 l_{2} + 1/3 l_{3} + 1/6 l_{4} + O( h^{5} ) |
k_{1} = h u_{n} |
k_{2} = h ( u_{n} + m_{1}/2 ) |
k_{3} = h ( u_{n} + m_{2}/2 ) |
k_{4} = h ( u_{n} + m_{3} ) |
l_{1} = h v_{n} |
l_{2} = h ( v_{n} + p_{1}/2 ) |
l_{3} = h ( v_{n} + p_{2}/2 ) |
l_{4} = h ( v_{n} + p_{3} ) |
u_{n+1} = u_{n} + 1/6 m_{1} + 1/3 m_{2} + 1/3 m_{3} + 1/6 m_{4} + O( h^{5} ) |
v_{n+1} = v_{n} + 1/6 p_{1} + 1/3 p_{2} + 1/3 p_{3} + 1/6 p_{4} + O( h^{5} ) |
m_{1} = h F ( x_{n}, y_{n}, z_{n}, u_{n}, v_{n} ) |
m_{2} = h F ( x_{n} + h/2, y_{n} + k_{1}/2 , z_{n} + l_{1}/2 , u_{n} + m_{1}/2 , v_{n} + p_{1}/2 ) |
m_{3} = h F ( x_{n} + h/2, y_{n} + k_{2}/2 , z_{n} + l_{2}/2 , u_{n} + m_{2}/2 , v_{n} + p_{2}/2 ) |
m_{4} = h F ( x_{n} + h, y_{n} + k_{3} , z_{n} + l_{3} , u_{n} + m_{3} , v_{n} + p_{3} ) |
p_{1} = h G ( x_{n}, y_{n}, z_{n}, u_{n}, v_{n} ) |
p_{2} = h G ( x_{n} + h/2, y_{n} + k_{1}/2 , z_{n} + l_{1}/2 , u_{n} + m_{1}/2 , v_{n} + p_{1}/2 ) |
p_{3} = h G ( x_{n} + h/2, y_{n} + k_{2}/2 , z_{n} + l_{2}/2 , u_{n} + m_{2}/2 , v_{n} + p_{2}/2 ) |
p_{4} = h G ( x_{n} + h, y_{n} + k_{3} , z_{n} + l_{3} , u_{n} + m_{3} , v_{n} + p_{3} ) |
Ballistic of the Future, J. M. J. Kooy and J. W. H. Uytenbogaart, McGraw-Hill Book Company, Inc. New York, 1946.
Handbook of Mathematical Functions, Edited by Milton Abramowitz and Irene A. Stegun, Dover Publications, Inc., New York, 1972.