Driven Damped Duffing Oscillator
What you are seeing: a ball in a double-well potential being pushed back and forth at a fixed frequency. Without the push the ball settles into one of the two wells; with a small push it rattles around in one well; with a strong enough push it occasionally jumps over the barrier between the wells. The Duffing equation is the standard textbook example of a chaotic driven oscillator.
The left panel shows the phase portrait . Dots: vs sampled once per drive period ("strobe", or Poincare section). A clean periodic orbit lays down a single dot; period-2 lays two; chaos sprays a fractal cloud. The right panel is the bifurcation diagram: for each value of on the horizontal axis, we plot the strobed values vertically. You can see the period-doubling cascade as crosses about .
shared/js/engine/ode-rk.js, fixed step
.WHAT TO TRY
- Raise the drive amplitude gamma: the ball in the double well goes from settling in one well, to hopping between them, to chaotic rattling. The strobed phase portrait fills with a fractal attractor.
- Sweep gamma slowly and watch the bifurcation diagram on the right: the strobed positions split, period-double, and smear into chaos, the classic route the Duffing system takes.
- Tune the damping delta: more damping shrinks the attractor toward a simple cycle, less lets the chaos spread. The drive frequency omega sets where the resonances land.