Softening Rayleigh-Duffing oscillator (source code)

= Softening Rayleigh-Duffing oscillator
{title2=$z''+z=-Az'+z^3-(z')^3$}

The <softening Rayleigh-Duffing oscillator> obeys
$$
\ddot z+z=-A\dot z+z^3-(\dot z)^3.
$$
The restoring force $z-z^3$ weakens as displacement grows, while the cubic velocity term dissipates <energy>. Writing $v=\dot z$ gives the planar <autonomous differential equation> $\dot z=v$, $\dot v=-z-Av+z^3-v^3$.

The three <equilibrium points> are $(0,0)$ and $(\pm1,0)$. At the origin, the <characteristic polynomial> is $\lambda^2+A\lambda+1$, so the <eigenvalues> cross the imaginary axis at $A=0$. At either outer equilibrium the <Jacobian matrix> has determinant $-2$, making it a <saddle point> for every real $A$.

The mechanical <energy>
$$
E=\frac12v^2+\frac12z^2-\frac14z^4
$$
has the exact <time derivative> $\dot E=-Av^2-v^4$. For $A>0$ the linear damping removes energy; for $A<0$ it injects energy at small velocities, while cubic damping removes it at larger velocities. Near the origin, averaging over the leading <harmonic oscillator> motion $z=r\cos t$, $v=-r\sin t$ gives
$$
\dot r=-\frac A2r-\frac38r^3+\cdots.
$$
Here the cubic restoring term changes the leading phase evolution but contributes zero average energy input. The negative cubic amplitude coefficient gives a <supercritical Hopf bifurcation> as $-A$ crosses zero, with small stable cycles satisfying $r^2\sim-4A/3$ for $A<0$.

This local calculation does not locate the later global changes in the <softening Rayleigh-Duffing phase portrait>. In particular, a <heteroclinic cycle> and a <saddle-node bifurcation of periodic orbits> are different events. The quartic potential is unbounded below, so the energy formula also does not establish that every initial state has bounded motion.