The ODE I'm working with is $$\dddot{x} + t^2\ddot{x} + 4x = 0$$ with $$x(0)=1, \dot{x}(0)=0, \ddot{x}=-1$$
I've written a very basic program in C++ to use the RK4 method to approximate a solution to first order ODEs. To get this particular ODE to be compatible with my code, I imagine I have to reduce the order to make this into a first order equation.
However, I don't really know how to go about this as generally I have only encountered this reduction issue with second order ODEs.
Can anyone help me get started or point me to somewhere with a thorough explanation/examples? I must admit my knowledge of ODEs is a bit rusty.