The Fixed Point at the origin is unstable (maximum of potential). It becomes interesting to study the trajectories initiating near the origin.
There is a special trajectory going through the origin called homoclinic orbit or separatrix. It separates the inner orbits circling the stable Fixed Points (minimum of potential) from the trajectories circling both wells.
The directions in which the homoclinic orbit spreads out from the origin can be found by analyzing trajectories based on initial conditions distributed on a small circle centered on the origin. The trajectories based on initial conditions near the unstable manifolds will be dragged outward while those based on initial conditions near the stable manifolds will come in toward the unstable point before being dragged outward.
By lengthening the integration time the different trajectories approach the homoclinic orbit.
Use the general modular RK4 ODE solver program
to solve the Duffing system. Use ,
,
,
and
in the code.
Dissipative System
Dissipation drives the trajectories in spirals toward either of the two stable Fixed Points located at the minimum of the potential. The homoclinic orbit also spirals toward both stable Fixed Points.
Feed the initial conditions generated via the 2 wells setup code in the ODE solver code.
Plot a phase space portrait of the solutions.
Michel Vallieres 2014-03-04