Loading the engineShared by all simulations, so the next one opens instantly.
The physics

In 1918 the German engineer Georg Duffing published a study of forced oscillations in systems whose restoring force is not proportional to the displacement. His model adds a cubic term to the linear spring, and the resulting equation has become the standard example of a periodically forced nonlinear oscillator. In the sign convention used here, a positive α makes the linear force push away from the center while the cubic force pulls back, which gives a potential with two wells. Francis Moon and Philip Holmes studied this double-well form in 1979 as a model of a steel beam buckled between two magnets, and showed that it can move chaotically.

What you see

The phase plane (x,x˙), both axes running from −3 to 3. The current state is a dot with a trail of the last 600 frames. The inset at the bottom right, labeled Poincaré, is a stroboscopic section: it records (x,x˙) exactly at the times t=2πk/ω, once per forcing period, and keeps the last 3000 points. A motion that repeats after n forcing periods leaves n points there; a chaotic motion leaves a scattered, folded set. At the defaults one forcing period takes a little over a second on screen, so the section fills slowly. The line at the bottom counts the elapsed forcing periods and the points recorded.

All presets keep the initial state set under Initial x₀ and Initial ẋ₀, by default rest at x=0, the top of the barrier between the wells. They share β = 1, δ = 0.3 and ω = 1.2 and differ in the forcing amplitude γ, which leads the double well through a period-doubling cascade: one point in the section at γ = 0.2, two at 0.28, four at 0.29, and chaos from about 0.30, interrupted by periodic windows such as a period-5 orbit at 0.37.

Chaotic attractor: α = 1, γ = 0.5, the same as the defaults. The oscillator hops irregularly between the wells, and the section slowly draws the folded, layered set of the strange attractor. Two states that start 10−8 apart separate at an average rate of about 0.11 per unit time, the largest Lyapunov exponent.

Period-2 orbit: γ = 0.28. After a short transient the oscillator stays in the left-hand well on an orbit that closes only after two forcing periods, and the section shows two points.

Period-4 orbit: γ = 0.29. One more doubling, this time in the right-hand well: the orbit closes after four forcing periods, and the section shows four points close together in pairs.

Single well, period 1: α = −1, γ = 0.3. With α negative both terms pull toward the center, so there is a single well. The oscillator settles into a periodic motion around the origin with the period of the forcing, one point in the section.

Governing equation

x¨+δx˙−αx+βx3=γcos⁡ωt.

Without damping and forcing the motion conserves the energy 12x˙2+V(x) with

V(x)=−α2x2+β4x4.

For α>0 and β>0 this is a symmetric double well with minima at x=±α/β, separated by a barrier of height α2/4β at the origin. Small oscillations at the bottom of either well have the angular frequency 2α. The simulation integrates the two first-order equations for (x,x˙) with fourth-order Runge-Kutta by default, in four substeps per step. The section points are taken from the integrated state by integrating back to the exact section time.

Parameters

α (linear stiffness): −2 to 2, default 1. Positive values give two wells, negative values one.

β (cubic stiffness): 0 to 3, default 1. At β=0 the oscillator is linear: a driven harmonic oscillator with frequency −α for negative α, unbounded for positive α.

δ (damping): 0 to 1, default 0.3. At δ=0 the unforced motion conserves energy.

γ (forcing amplitude): 0 to 2, default 0.5.

ω (forcing frequency): 0.5 to 3, default 1.2. The section samples once every 2π/ω.

Initial x₀, Initial ẋ₀: the starting position and velocity, each −2 to 2, default 0.

Time step dt: 0.005 to 0.05, default 0.02.