🌀 Duffing Oscillator — Phase Portrait & Poincare Section (2D)
2D Canvas companion to the Duffing oscillator: real RK4 integration of ẍ + δẋ + αx + βx³ = γcos(ωt) with a live phase-space plot and Poincaré section showing the transition from periodic motion to chaos.
⚙ Under the hood
A 2D Canvas companion to the 3D Duffing oscillator: real RK4 integration of the driven nonlinear spring equation x'' + delta*x' + alpha*x + beta*x^3 = gamma*cos(omega*t), drawn as a live phase portrait and a stroboscopic Poincare section. Tune damping, stiffness and drive amplitude/frequency to watch the system slide from periodic motion into a chaotic strange attractor.
duffingchaos theorynonlinear dynamicsphase portraitpoincare section2D
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install