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
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.