Skip to main content
Sandbox Physics

M069 · Vibration design

Duffing Oscillator Laboratory

A cubic spring and force actuator create hardening, local softening and double-well experiments. Drag the cart to choose a release basin, acquire phase portraits and fixed-phase samples, compare the measured fundamental with a single-harmonic approximation, and run both directions of a state-carrying frequency sweep.

Interactive modelDuffing Oscillator Laboratory
Acquired time0 s0\,\mathrm{s}
Primary displacement0 m0\,\mathrm{m}
Primary velocity0 m s−10\,\mathrm{m\,s^{-1}}
Mechanical energy0 J0\,\mathrm{J}
Integrated signed actuator work0 J0\,\mathrm{J}
Independent viscous dissipation0 J0\,\mathrm{J}
Independent energy ledger defect0 J0\,\mathrm{J}
Position change with half step · first four cycles0 m0\,\mathrm{m}
Actual integration step0 ms0\,\mathrm{ms}
Model domain / record statusReady\text{Ready}
Retained eight-cycle fundamental amplitude00
Nonharmonic residual RMS00
Acquired mean displacement00
Approximate centered harmonic amplitudes00
Acquired retained strobes00
Continuation frequency records00
Continuation status00
Absolute displacement domain limit00

Physics tutorial

A spring that remembers the sweep direction

BackgroundCubic stiffness makes frequency depend on amplitude. Dissipative forcing can support different finite responses for different histories.

Why it mattersThe University of Maryland nonlinear-oscillator tutorial develops the Duffing phase portrait and forcing. This workbench adds explicit projection, local escape and finite state-carrying continuation.

Start with the essentials

Focus question
Is a sweep-direction difference a stable branch or a finite acquisition effect?
One-sentence intuition
Measure the fundamental, its mean and its nonharmonic residual separately; compare state-carrying sweeps at identical drive phase.

Core mathematical model

Cubic spring dynamics

mx¨+cx˙+kx+αx3=F0cos⁡ωtm\ddot x+c\dot x+kx+\alpha x^3=F_0\cos\omega t

The linear sign and cubic stiffness distinguish hardening, local softening and double wells.

Potential and energy

U(x)=12kx2+14αx4,E=12mx˙2+U(x)U(x)=\tfrac12kx^2+\tfrac14\alpha x^4,\quad E=\tfrac12m\dot x^2+U(x)

The potential is not replaced by its local quadratic approximation.

Single-harmonic amplitude relation

A2[(k−mω2+34αA2)2+(cω)2]=F02A^2\left[\left(k-m\omega^2+\tfrac34\alpha A^2\right)^2+(c\omega)^2\right]=F_0^2

This centered approximation neglects the mean and higher harmonics; root stability is not assigned.

Local softening saddle

xb=−k/α(k>0, α<0)x_b=\sqrt{-k/\alpha}\quad(k>0,\ \alpha<0)

The polynomial potential is unbounded outside this local well; recording stops at the saddle.

Independent power ledger

W˙=F0cos⁡(ωt)x˙,Q˙=cx˙2,E−E0=W−Q\dot W=F_0\cos(\omega t)\dot x,\quad \dot Q=c\dot x^2,\quad E-E_0=W-Q

The signed drive work and positive heat are integrated alongside motion.

Common difficulties

A root is not an attractor certificate

Typical misconceptionEvery harmonic-balance root is a stable measured response.

Better mental modelThe approximation drops harmonics; numerical releases select basins and retain transients.

History has a finite protocol

Typical misconceptionA direction gap proves an adiabatic bifurcation.

Better mental modelEach point uses only 48 cycles; sweep spacing and settling can affect the result.

Irregular points need stronger evidence

Typical misconceptionA scattered Poincaré record proves chaos.

Better mental modelFinite transient records and sampling alone do not establish a positive asymptotic exponent.

Run the experiment

  1. 01

    Check the linear limit

    Acquire the linear benchmark and compare harmonic amplitude.

    What to observe: The nonlinear model converges to the independently known linear response.
  2. 02

    Measure direction dependence

    Choose hardening and run the full up/down sweep.

    What to observe: The endpoint carries history into the next run at a matching force phase.
  3. 03

    Inspect the potential boundary

    Compare local softening with a double-well release.

    What to observe: An escape boundary differs from a confining quartic well.
  4. 04

    Acquire a finite section

    Use the irregular preset, acquire the full record and inspect residuals.

    What to observe: Mean, fundamental and retained fixed-phase points describe different parts of the signal.