Mathwords logoMathwords

Duffing Equation — Definition, Formula & Example

The Duffing equation is a differential equation for an oscillator whose spring force includes a cubic term, so the spring gets stiffer or softer as it stretches. Because of that cubic term, its behavior can include amplitude-dependent frequency, sudden jumps, and even chaos.

The Duffing equation is the nonlinear, second-order ordinary differential equation x¨+δx˙+αx+βx3=γcos⁡(ωt)\ddot{x} + \delta\dot{x} + \alpha x + \beta x^3 = \gamma\cos(\omega t), where x(t)x(t) is the unknown function and δ,α,β,γ,ω\delta, \alpha, \beta, \gamma, \omega are real constants. When δ=γ=0\delta = \gamma = 0, it is conservative with energy E=12x˙2+V(x)E = \tfrac{1}{2}\dot{x}^2 + V(x), where V(x)=α2x2+β4x4V(x) = \tfrac{\alpha}{2}x^2 + \tfrac{\beta}{4}x^4.

Key Formula

x¨+δx˙+αx+βx3=γcos⁡(ωt)\ddot{x} + \delta\dot{x} + \alpha x + \beta x^3 = \gamma\cos(\omega t)
Where:
  • xx = Displacement from the reference position, a function of time t
  • δ\delta = Damping coefficient (friction or air resistance)
  • α\alpha = Linear stiffness coefficient, the ordinary Hooke's-law part of the spring force
  • β\beta = Cubic stiffness coefficient: β > 0 gives a hardening spring, β < 0 a softening spring, and β = 0 reduces the equation to a linear oscillator
  • γ\gamma = Amplitude of the periodic driving force
  • ω\omega = Angular frequency of the driving force

Worked Example

Problem: The unforced, undamped Duffing equation x¨−4x+x3=0\ddot{x} - 4x + x^3 = 0 (so α=−4\alpha = -4, β=1\beta = 1) models a buckled beam. Find its equilibrium positions, decide which are stable, and find the angular frequency of small oscillations about each stable one.
Step 1: At an equilibrium, x does not change, so set both derivatives to zero and solve the resulting algebraic equation.
−4x+x3=x(x−2)(x+2)=0  ⟹  x=−2, 0, 2-4x + x^3 = x(x-2)(x+2) = 0 \implies x = -2,\ 0,\ 2
Step 2: Linearize. Near an equilibrium x∗x^*, write x=x∗+ux = x^* + u with u small. The equation becomes u¨+k u≈0\ddot{u} + k\,u \approx 0, where k=α+3β(x∗)2k = \alpha + 3\beta (x^*)^2. If k > 0 the motion oscillates (stable). If k < 0 it grows (unstable).
k(0)=−4+3(0)2=−4,k(±2)=−4+3(2)2=8k(0) = -4 + 3(0)^2 = -4, \qquad k(\pm 2) = -4 + 3(2)^2 = 8
Step 3: For each stable point, the small-oscillation angular frequency is the square root of k.
ω0=8=22≈2.83\omega_0 = \sqrt{8} = 2\sqrt{2} \approx 2.83
Answer: The equilibria are x = −2, 0, and 2. The point x = 0 is unstable (k = −4), and x = ±2 are stable (k = 8), with small oscillations at angular frequency 2√2 ≈ 2.83 radians per unit time. This is the classic double-well shape, which needs α < 0 and β > 0.

Why It Matters

Engineers use the Duffing equation to model stiffening springs, vibrating beams, and tiny MEMS resonators such as those in phone gyroscopes. In a nonlinear dynamics course, it is a standard first example of a driven system that can become chaotic. It also shows how a resonance curve can bend and jump between two amplitudes.

Common Mistakes

Mistake: Trying to solve the Duffing equation with a characteristic equation, or adding two solutions to get a new one.
Correction: The x3x^3 term makes the equation nonlinear, so superposition fails and the characteristic-equation method does not apply. Usually you analyze equilibria and energy, use approximation methods, or solve numerically.

Related Terms