Nonlinear driven spring: ẍ + δẋ + αx + βx³ = γ cos(ωt) — tune the forcing to induce chaos, period doubling and strange attractors
α — linear stiffness-1.00
β — cubic stiffness1.00
δ — damping0.30
γ — forcing amp.0.50
ω — forcing freq.1.00
Speed4×
0.0
Time t
0.00
Position x
0.00
Velocity ẋ
0
Poincaré pts
Transient
Regime
How it works: The Duffing oscillator is a nonlinear ODE —
ẍ + δẋ + αx + βx³ = γ cos(ωt). With α < 0 and β > 0 it forms a
double-well potential with two stable equilibria. Periodic forcing can push the
system into period doubling and eventually chaotic motion
(positive Lyapunov exponent). The Poincaré section (right, red dots) samples
the phase space once per drive period T = 2π/ω — a single dot means periodic motion;
a fractal cloud means chaos.
Left panel: Phase portrait (x vs ẋ) with fading trail.
Right panel: Time series x(t) with Poincaré dots overlaid.