I want to applying the 4th order Runge-Kutta method on a system of first order ODE's.
So first I write the system of first order ODEs which is $$\begin{align}x'&=v\\ x''&=v'=f(t,x,v)\end{align}$$ with initial condition $$x(t_0)=x_0,\quad x'(t_0)=v_0$$
Then I compute the first $v_1$ by using the Runge Kutta method on the second ODE $f(t,x,v)$ starting with $x_0$
Then I compute the first $x_1$ (position) by using the Runge-Kutta method on the first ODE $f(v)=v$ with $v_0$.
Then I do step 2 again but with $x_1$ and then step 3 with $v_1$ and so on I keep repeating. The resulting $x$ vector is then the values for $x(t)$.
Is that correct?
No, you should use Runge-Kutta on both equations at the same time.
$$\eqalign{ k_{1x} &= v_0 \cr k_{1v} &= f(x_0)\cr k_{2x} &= v_0 + h k_{1v}/2\cr k_{2v} &= f(x_0 + h k_{1x}/2)\cr k_{3x} &= v_0 + h k_{2v}/2\cr k_{3v} &= f(x_0 + h k_{2x}/2)\cr k_{4x} &= v_0 + h k_{3v}\cr k_{4v} &= f(x_0 + h k_{3x})\cr x_1 &= x_0 + h (k_{1x} + 2k_{2x} + 2k_{3x} + k_{4x}) /6\cr v_1 &= v_0 + h (k_{1v} + 2k_{2v} + 2k_{3v} + k_{4v}) /6\cr }$$