The Duffing equation, d2x/dt2+beta*dx/dt+x-x3=F cos(omega*t), is called the capsize equation (it describes the rolling motion of a ship in waves). For fixed beta and omega, the numerical integrators like ode23 or ode45 in Matlab fail to work if F exceeds some value. The variable x tends to infinity very rapidly and this means that the ship will capsize. I used my own soft based on Runge-Kutta-Gill algorithm and I observed that different time steps yield solutions up to different F (in the bifurcation diagram, for example). I want to know, if possible, which is the best choice for the method to use and for time step. Thank you in advance for your advice.