This is my first time asking on StackExchange, so forgive me for any mishaps on this question. I saw this post by Paul Manta on "Solving coupled 2nd order ODEs with Runge-Kutta 4" that shows basically the steps to calculate $x, y, x'$ and $y'$ given two coupled second-ordered ODEs of the form: $$x'' = f(t, x, y, x', y')$$ $$y'' = g(t, x, y, x', y')$$ Link to Paul's post: https://math.stackexchange.com/questions/146823/solving-coupled-2nd-order-odes-with-runge-kutta-4\
I implemented the algorithm on Python, and it worked, but I'd like to learn more about how his algorithm was derived. Are there any books or academic papers that show or use the aforementioned algorithm? All I could find are about RK4 for first order ODEs.