Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to solve the system of two second order differential equations?:

$$x''(t)=f(x',x,y',y,t),\qquad y''(t)=g(x',x,y',y,t)$$

Is there any numerical method, algorithm?

share|cite|improve this question

The usual trick is to write this system as a first-order one by setting $$U=(U_1,U_2,U_3,U_4)=(X,Y,X',Y')$$ and getting $$U'=(U_3,U_4,f(U_3,U_1,U_4,U_2,t),g(U_3,U_1,U_4,U_2,t)) = F(U,t)$$ Then you can use any of the several goods numerical methods, such as Runge–Kutta.

share|cite|improve this answer
I did it, but could not find Runge-Kutta for 4 first order diff equations. Can you help me please to find such an algorithm? – Grigori May 27 '11 at 15:45
@Grigori, just interpret RK as a vector method. – lhf May 27 '11 at 15:51
What it means? In handbook of Abramovits there is RK method only for system of 2 first order diff equations. – Grigori May 27 '11 at 15:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.