Fundamentals / Physics / Classical mechanics

Nonlinear stiffness and amplitude-dependent period

Derive the leading frequency shift of a symmetric nonlinear oscillator and test whether a measured amplitude shift is consistent with a cubic spring.

From first principles

Derive the first amplitude correction to a spring’s frequency

A symmetric elastic restoring force has no quadratic displacement term; the first correction to a linear spring can therefore be cubic. Suppose a conservative oscillator satisfies \(m\ddot x+kx+\alpha x^3=0\) with \(k>0\) and \(|\alpha A^2/k|\ll1\) at measured peak amplitude \(A\). Leading motion is approximately \(A\cos\Omega t\). Cube this motion to find which frequencies enter the perturbing force:

\[x^3\simeq A^3[\tfrac34\cos\Omega t+\tfrac14\cos3\Omega t] .\]

To maintain a bounded periodic solution, its fundamental component must balance at first order. Otherwise the remaining fundamental force would resonantly grow the correction. Combine the inertia and restoring-force coefficients at \(\cos\Omega t\):

\[-m\Omega^2A+kA+\tfrac34\alpha A^3\simeq0,\qquad \Omega\simeq\sqrt{k/m}\left(1+\frac{3\alpha A^2}{8k}\right).\]

The third-harmonic component also distorts the waveform, but reinserting that order-\(\alpha\) distortion into the cubic force affects the fundamental only at the next perturbative order. Positive \(\alpha\) raises frequency with amplitude; negative \(\alpha\) lowers it within the local range where the stable weakly nonlinear model applies.

Derivation and applications

Find the third harmonic generated by a weak cubic spring

A change in oscillation period is one signature of a nonlinear restoring force. The same nonlinearity also changes the shape of the recorded motion. Let an undamped mass obey \(m\ddot x+kx+\alpha x^3=0\), with \(k>0\). Release it from rest at the measured peak displacement \(A\). Define \(\omega_0=\sqrt{k/m}\), the small signed parameter \(\epsilon=\alpha A^2/k\), and a stretched time \(\tau=\Omega t\). Write \(x/A=\cos\tau+\epsilon u(\tau)\) with \(u(0)=u'(0)=0\) so that \(A\) remains the physical turning point.

Allow the frequency to shift as \(\Omega=\omega_0(1+\epsilon\nu)\). Substitute the expansion into the equation and retain terms only to first order in \(\epsilon\). Primes below denote differentiation with respect to \(\tau\):

\[u''+u=2\nu\cos\tau-\cos^3\tau=(2\nu-3/4)\cos\tau-\tfrac14\cos3\tau .\]

A term driven at the unit frequency would grow proportionally to \(\tau\sin\tau\), contradicting a bounded, periodic correction. Choose \(\nu=3/8\) to remove it. The remaining forcing is at three times the fundamental. A trial \(C\cos3\tau\) has \(u''+u=-8C\cos3\tau\). Add the required homogeneous term to satisfy the turning-point conditions:

\[u(\tau)=\frac{\cos3\tau-\cos\tau}{32}.\]

The predicted displacement therefore contains two lines with linked amplitudes and a shifted fundamental:

\[x(t)\simeq A\!\left[(1-\epsilon/32)\cos\Omega t+(\epsilon/32)\cos3\Omega t\right],\qquad \Omega/\omega_0\simeq1+3\epsilon/8 .\]

The coefficient sign gives the third harmonic relative to the phase of a release at positive displacement. Squaring an amplitude to obtain a power spectrum erases that sign. The approximation assumes \(|\epsilon|\ll1\) and excludes appreciable dissipation during the observation.

Worked example

Estimate a micrometre-scale distortion

Take \(A=12.0\) mm, \(k=20.0\) N/m and \(\alpha=1.00\times10^4\) N/m³. Then \(\epsilon=0.0720\), so the third-harmonic displacement amplitude is

\[12.0(0.0720)/32=0.0270\,\mathrm{mm}.\]

The fundamental frequency should increase by \(2.70\%\). With \(\omega_0=10.0\) rad/s, the third-harmonic line lies close to \(30.8\) rad/s.

Second application

Test whether a measured line comes from the spring

At \(A=6.00\) mm on the same apparatus, \(\epsilon\) falls by four and the third-harmonic amplitude falls by eight to \(3.38\) micrometres. The fractional frequency shift becomes \(0.675\%\). A third-harmonic signal that instead halves with amplitude could arise from an already distorted input or readout. The two amplitude scalings plus an independent frequency measurement test the cubic model more strongly than observing a line at three times the frequency.

Try it · Duffing harmonic

Vary the physical parameters in the derived relation. Use the units and assumptions in the readout to connect the curves to the two worked examples. A parameter study can test the forward prediction; the same relation can then be inverted to infer a parameter from a measurement.

Start from a reversible force law

A spring that looks linear under small deflection can stiffen as it is displaced further. For an oscillator symmetric under \(x\mapsto-x\), the restoring force expanded about equilibrium has no even powers. Keep the leading correction and write \(m\ddot x+kx+\alpha x^3=0\), with \(k>0\) and \(\alpha\) measured in N/m³. Assume the displacement is small enough that neglected fifth-order terms remain unimportant. Positive \(\alpha\) gives a hardening spring. A negative cubic coefficient describes local softening and may need higher-order terms to represent large displacements safely within the model.

The potential is \(kx^2/2+\alpha x^4/4\). Without damping the total energy is conserved and a release at amplitude \(A\) fixes that energy. Unlike a harmonic oscillator, the quadratic curvature at the origin no longer fixes the period for every possible energy. We want a quantitative connection between the amplitude of the motion and its zero-crossing interval.

Obtain the first frequency correction

Try \(x\simeq A\cos\Omega t\) and substitute it into the cubic equation. The identity \(\cos^3 u=(3\cos u+\cos3u)/4\) shows that the nonlinearity introduces a component at the original frequency and a third harmonic. Balance the fundamental coefficient to get \(-m\Omega^2+k+3\alpha A^2/4\simeq0\). Expanding the square root gives

\[\Omega\simeq\omega_0\left(1+\frac{3\alpha A^2}{8k}\right),\]
\[\omega_0=\sqrt{k/m}.\]

The control parameter is \(|\alpha|A^2/k\), the ratio of cubic to linear force at maximum displacement. The small additional third harmonic changes the waveform at first order but only feeds back into this leading frequency result at higher order. Fitting a perfect sinusoid to a high-precision trace may therefore show a residual even when the measured average period follows this formula.

Check the result using the conserved energy

The quarter-period is the time to move from equilibrium to \(A\). Substitution of the energy at the turning point gives an integral over \(dx/\sqrt{2[E-U(x)]/m}\). Let \(x=A\sin u\) to remove the square-root endpoint. The remaining integrand is proportional to \(\{1+[\alpha A^2/(2k)](1+\sin^2u)\}^{-1/2}\). Expanding and averaging over the interval from zero to \(\pi/2\) uses mean \(\sin^2 u=1/2\), yielding \(T\simeq(2\pi/\omega_0)[1-3\alpha A^2/(8k)]\). This agrees with the reciprocal of the harmonic-balance result.

The integral approach generalises to experimentally tabulated conservative forces by integrating them first to obtain a potential. It would need modification for strong damping, where energy varies significantly between the two turning points of one cycle.

The energy integral and its straight-line approximation agree near zero cubic stiffness and separate as amplitude increases.
A positive cubic stiffness shortens the period. The first-order expansion is tangent to the energy-integral curve at zero and gradually loses accuracy away from that limit.
Try it · Duffing

Change the inputs and compare the recalculated curves with the preceding derivation and baseline figure. The axes give the units; the numerical readout states the model assumptions and any limiting cases. Reset the inputs to return to the reference setting.

Infer stiffness from period data

For \(m=0.50\) kg, \(k=200\) N/m and \(\alpha=4.0\times10^4\) N/m³, \(\omega_0=20.0\) rad/s. At \(A=0.020\) m the force ratio is 0.080, giving a leading frequency increase of 3.0% to 20.6 rad/s. At half this amplitude the predicted increase is 0.75%. Measure the period over several cycles at each amplitude, keeping the amplitude change due to loss small. A plot of frequency against the square of amplitude should be approximately straight near the origin. A nonzero intercept shift under a change of temperature could indicate a change in ordinary linear stiffness instead of a new nonlinear coefficient.

Compute the entire amplitude dependence of a pendulum

A cubic expansion is useful near equilibrium. For a pendulum it is possible to carry the energy calculation beyond every finite Taylor approximation. Take a point mass with fixed length \(\ell\), no friction and a release from rest at angle \(0<\theta_0<\pi\). Its conserved energy gives

\[\dot\theta^2=(2g/\ell)(\cos\theta-\cos\theta_0).\]

Use \(\cos\theta=1-2\sin^2(\theta/2)\). Defining \(k=\sin(\theta_0/2)\) reduces the speed magnitude to \(2\sqrt{g/\ell}\sqrt{k^2-\sin^2(\theta/2)}\).

One quarter period is the time to travel between zero angle and the turning point. The reciprocal speed appears to diverge at the latter, but it has an integrable square-root singularity for every ordinary turning angle. To evaluate it stably, set \(\sin(\theta/2)=k\sin u\). The factor \(\cos u\) from differentiating cancels the same factor inside the square root. Four equivalent quarters give

\[T=4\sqrt{\ell/g}\int_0^{\pi/2}\frac{du}{\sqrt{1-k^2\sin^2u}}=4\sqrt{\ell/g}\,K(k).\]

Here \(K\) denotes the complete elliptic integral with modulus \(k\). Expanding the integrand at small \(k\) and integrating the first correction gives

\[T/T_0=1+k^2/4+\cdots=1+\theta_0^2/16+\cdots,\]

where \(T_0=2\pi\sqrt{\ell/g}\). The positive correction is the familiar softening: increasing amplitude lengthens the period because the restoring torque grows more slowly than its linear extrapolation.

Decide when a small-angle clock loses accuracy

A pendulum of length \(0.800\) m has \(T_0=1.794\) s at \(g=9.81\) m/s². At a release of \(60.0^\circ\),

\[k=\sin30^\circ=0.500.\]

Evaluating the integral gives \(K(0.500)=1.68575\) and \(T/T_0=2K/\pi=1.0732\), hence \(T=1.926\) s. The weak-angle approximation gives

\[1+(\pi/3)^2/16=1.0685.\]

It misses the exact period by roughly \(0.008\) s per cycle; a many-cycle timing record resolves the accumulated discrepancy.

As \(\theta_0\) tends to \(\pi\), the integrand near \(u=\pi/2\) approaches the reciprocal of a vanishing cosine. The integral diverges logarithmically, expressing the long time spent close to the unstable upper equilibrium. No finite polynomial in amplitude can reproduce that divergence. A numerical timing experiment should therefore locate regular zero crossings rather than demand a turning-point velocity of exactly zero in sampled data. Comparing the crossing intervals with the regularized integral distinguishes numerical resolution error from the genuine increase in physical period.

A way to evaluate the elliptic integral without a special-function library is to form the arithmetic–geometric mean. Begin with \(a_0=1\) and \(b_0=\sqrt{1-k^2}\), then replace the pair by their arithmetic and geometric means. Both converge rapidly to a common \(M\), and \(K(k)=\pi/(2M)\). For the 60° release the first pair is \(1\) and \(0.86603\), the next pair is approximately \(0.93301\) and \(0.93060\), and the subsequent pair agrees near \(0.93181\). Taking the reciprocal of the common value directly gives the period ratio. This procedure supplies an accurate independent benchmark even when the small-amplitude expansion ceases to converge quickly.

Numerical quadrature and the arithmetic–geometric mean should agree at a fixed amplitude. If a period extracted from actual trajectories differs while these two evaluations agree, examine the dynamical time step, how release angle is measured, and whether the observed oscillations have suffered appreciable damping.