I have given a system of differential equations of order two which I want to solve numerically using a Runge-Kutta method. However, I don't know how to transform the system into a system of order one.
Here is the system of equations:
$$\phi{_1}'' +g\sin{\phi_1} + \frac{m_2}{m_1+m_2}\frac{l_2}{l_1}\left(\cos(\phi{_1}-\phi{_2})\phi{_2}''+\sin(\phi{_1}-\phi{_2})(\phi{_2}')^2 \right)=0$$
$$\phi{_2}'' +g\sin{\phi_2} + \frac{l_1}{l_2}\left(\cos{(\phi_1}-\phi_2)\phi{_1}''+\sin(\phi_1-\phi_2)(\phi{_1}')^2 \right)=0$$
Would appreciate help. Thanks