As a little summer project I have tried to make a ballistic calculator for when I play football, (following an example from a book), just to learn some numerical methods while doing so. My problem is that I cant seem to find much on the Runge-Kutta 5 method (method recommended) for systems of second order differential equations.
My equations (simplified a bit) is
$ \cfrac{d^2x}{dt^2} = K_x(y) \cdot \sqrt{\dot{x}^2+\dot{y}^2+\dot{z}^2} \cdot \dot{x} + C_x(y) $
$ \cfrac{d^2y}{dt^2} = K_y(y) \cdot \sqrt{\dot{x}^2+\dot{y}^2+\dot{z}^2} \cdot \dot{y} + C_y(y) $
$ \cfrac{d^2z}{dt^2} = K_z(y) \cdot \sqrt{\dot{x}^2+\dot{y}^2+\dot{z}^2} \cdot \dot{z} + C_z(y) $
With the initial conditions being
$\dot{x}(0)=v_{x0}$,
$\dot{y}(0)=v_{y0}$,
$\dot{z}(0)=v_{z0}$.
$x(0)=x_0$,
$y(0)=y_0$,
$z(0)=z_0$.
So far I have proceeded as I usually do when implementing the Runge-Kutta method up to this point (which is just the first step)
$ \cfrac{d^2x}{dt^2} = f(t, x, y, z, \dot{x}, \dot{y}, \dot{z}) $
$ \cfrac{d^2x}{dt^2} = f(t, x, y, z, \dot{x}, \dot{y}, \dot{z}) $
$ \cfrac{d^2x}{dt^2} = f(t, x, y, z, \dot{x}, \dot{y}, \dot{z}) $
How can I proceed from this point? Bonus if someone knows some good literature on the subject.