Duffing equation

Duffing oscillator plot, containing phase plot, trajectory, strange attractor, Poincare section, and double well potential plot. The parameters are α=−1, β=0.25, δ=0.1, γ=2.5, and ω=2.
A Poincaré section of the forced Duffing equation suggesting chaotic behaviour (α=1, β=5, δ=0.02, γ=8, and ω=0.5).
The strange attractor of the Duffing oscillator, through 4 periods (8π time). Coloration shows how the points flow. (α=−1, β=1, δ=0.02, γ=3, ω=1. The animation has time offset so driving force is sin⁡(ωt) rather than cos⁡(ωt).)

The Duffing equation (or Duffing oscillator), named after Georg Duffing (1861–1944), is a non-linear second-order differential equation used to model certain damped and driven oscillators. The equation is given by x¨+δx˙+αx+βx3=γcos⁡(ωt), where the (unknown) function x=x(t) is the displacement at time t, x˙ is the first derivative of x with respect to time, i.e. velocity, and x¨ is the second time-derivative of x, i.e. acceleration. The numbers δ, α, β, γ and ω are given constants.

The equation describes the motion of a damped oscillator with a more complex potential than in simple harmonic motion (which corresponds to the case β=δ=γ=0 and α>0); in physical terms, it models, for example, an elastic pendulum whose spring's stiffness does not exactly obey Hooke's law.

The Duffing equation is an example of a dynamical system that exhibits chaotic behavior. Moreover, the Duffing system presents in the frequency response the jump resonance phenomenon that is a sort of frequency hysteresis behaviour.

Parameters

The parameters in the above equation are:

The Duffing equation can be seen as describing the oscillations of a mass attached to a nonlinear spring and a linear damper. The restoring force provided by the nonlinear spring is then αx+βx3.

When α>0 and β>0 the spring is called a hardening spring. Conversely, for β<0 it is a softening spring (still with α>0). Consequently, the adjectives hardening and softening are used with respect to the Duffing equation in general, dependent on the values of β (and α).

The number of parameters in the Duffing equation can be reduced by two through scaling (in accord with the Buckingham π theorem), e.g. the excursion x and time t can be scaled as: τ=tα and y=xα/γ, assuming α is positive (other scalings are possible for different ranges of the parameters, or for different emphasis in the problem studied). Then: y¨+2ηy˙+y+εy3=cos⁡(στ), where

The dots denote differentiation of y(τ) with respect to τ. This shows that the solutions to the forced and damped Duffing equation can be described in terms of the three parameters (ε, η, and σ) and two initial conditions (i.e. for y(t0) and y˙(t0)).

Methods of solution

In general, the Duffing equation does not admit an exact symbolic solution. However, many approximate methods work well:

In the special case of the undamped (δ=0) and undriven (γ=0) Duffing equation, an exact solution can be obtained using Jacobi's elliptic functions.

Boundedness of the solution for the unforced oscillator

Undamped oscillator

Multiplication of the undamped and unforced Duffing equation, γ=δ=0, with x˙ gives: x˙(x¨+αx+βx3)=0⟹ddt[12(x˙)2+12αx2+14βx4]=0⟹12(x˙)2+12αx2+14βx4=H, with H a constant. The value of H is determined by the initial conditions x(0) and x˙(0).

The substitution y=x˙ in H shows that the system is Hamiltonian: x˙=+∂H∂y,y˙=−∂H∂x⟹H=12y2+12αx2+14βx4.

When both α and β are positive, the solution is bounded: |x|≤2H/α and |x˙|≤2H, with the Hamiltonian H being positive. This bound on x comes from dropping the term with β. Including it gives a smaller but more complicated bound, by solving (β/4)x4+(α/2)x2−H=0, a quadratic equation for x2.

Damped oscillator

Similarly, the damped oscillator converges globally, by Lyapunov function method x˙(x¨+δx˙+αx+βx3)=0⟹ddt[12(x˙)2+12αx2+14βx4]=−δ(x˙)2⟹dHdt=−δ(x˙)2≤0, since δ≥0 for damping. Without forcing the damped Duffing oscillator will end up at (one of) its stable equilibrium point(s). The equilibrium points, stable and unstable, are at αx+βx3=0. If α>0 the stable equilibrium is at x=0. If α<0 and β>0 the stable equilibria are at x=+−α/β and x=−−α/β.

Frequency response

The forced Duffing oscillator with cubic nonlinearity is described by the following ordinary differential equation: x¨+δx˙+αx+βx3=γcos⁡(ωt).

The frequency response of this oscillator describes the amplitude z of steady state response of the equation (i.e. x(t)) at a given frequency of excitation ω. For a linear oscillator with β=0, the frequency response is also linear. However, for a nonzero cubic coefficient β, the frequency response becomes nonlinear. Depending on the type of nonlinearity, the Duffing oscillator can show hardening, softening or mixed hardening–softening frequency response. Anyway, using the homotopy analysis method or harmonic balance, one can derive a frequency response equation in the following form: [(ω2−α−34βz2)2+(δω)2]z2=γ2.

For the parameters of the Duffing equation, the above algebraic equation gives the steady state oscillation amplitude z at a given excitation frequency.

Derivation of the frequency response

Using the method of harmonic balance, an approximate solution to the Duffing equation is sought of the form: x=acos⁡(ωt)+bsin⁡(ωt)=zcos⁡(ωt−ϕ), with z2=a2+b2 and tan⁡ϕ=ba.

Application in the Duffing equation leads to: (−ω2a+ωδb+αa+34βa3+34βab2−γ)cos⁡(ωt)+(−ω2b−ωδa+34βb3+αb+34βa2b)sin⁡(ωt)+(14βa3−34βab2)cos⁡(3ωt)+(34βa2b−14βb3)sin⁡(3ωt)=0.

Neglecting the superharmonics at 3ω, the two terms preceding cos⁡(ωt) and sin⁡(ωt) have to be zero. As a result, −ω2a+ωδb+αa+34βa3+34βab2=γand−ω2b−ωδa+34βb3+αb+34βa2b=0.

Squaring both equations and adding leads to the amplitude frequency response: [(ω2−α−34βz2)2+(δω)2]z2=γ2, as stated above.

Graphically solving for frequency response

We may graphically solve for z2 as the intersection of two curves in the (z2,y) plane:{y=(ω2−α−34βz2)2+(δω)2y=γ2z2For fixed α,δ,γ, the second curve is a fixed hyperbola in the first quadrant. The first curve is a parabola with shape y=916β2(z2)2, and apex at location (43β(ω2−α),δ2ω2). If we fix β and vary ω, then the apex of the parabola moves along the line y=34βδ2(z2)+δ2α.

Graphically, then, we see that if β is a large positive number, then as ω varies, the parabola intersects the hyperbola at one point, then three points, then one point again. Similarly we can analyze the case when β is a large negative number.

Jumps

Jumps in the frequency response. The parameters are: α=γ=1,, β=0.04, and δ=0.1.

For certain ranges of the parameters in the Duffing equation, the frequency response may no longer be a single-valued function of forcing frequency ω. For a hardening spring oscillator (α>0 and large enough positive β>βc+>0) the frequency response overhangs to the high-frequency side, and to the low-frequency side for the softening spring oscillator (α>0 and β<βc−<0). The lower overhanging side is unstable – i.e. the dashed-line parts in the figures of the frequency response – and cannot be realized for a sustained time. Consequently, the jump phenomenon shows up:

  • when the angular frequency ω is slowly increased (with other parameters fixed), the response amplitude z drops at A suddenly to B,
  • if the frequency ω is slowly decreased, then at C the amplitude jumps up to D, thereafter following the upper branch of the frequency response.

The jumps A–B and C–D do not coincide, so the system shows hysteresis depending on the frequency sweep direction.

Transition to chaos

The above analysis assumed that the base frequency response dominates (necessary for performing harmonic balance), and higher frequency responses are negligible. This assumption fails to hold when the forcing is sufficiently strong. Higher order harmonics cannot be neglected, and the dynamics become chaotic. There are different possible transitions to chaos, most commonly by successive period doubling.

Examples

Time traces and phase portraits
period-1 oscillation at γ=0.20
period-2 oscillation at γ=0.28
period-4 oscillation at γ=0.29
period-5 oscillation at γ=0.37
chaos at γ=0.50
period-2 oscillation at γ=0.65

Some typical examples of the time series and phase portraits of the Duffing equation, showing the appearance of subharmonics through period-doubling bifurcation – as well chaotic behavior – are shown in the figures below. The forcing amplitude increases from γ=0.20 to γ=0.65. The other parameters have the values: α=−1, β=+1, δ=0.3 and ω=1.2. The initial conditions are x(0)=1 and x˙(0)=0. The red dots in the phase portraits are at times t which are an integer multiple of the period T=2π/ω.