Anharmonic Pendulum and Amplitude Dependence
Legend has it that a bored Galileo, timing a swinging lamp in the Pisa cathedral against his own pulse, discovered that every swing took the same time whether the arc was wide or narrow. That claim — isochronism, the amplitude-independence of the period — became the founding principle of the pendulum clock. It is also, strictly speaking, false. The restoring torque on a pendulum goes as , not , and the two agree only for small angles. Push the amplitude up and the period stretches: by one part in a thousand at , by one percent at , by eighteen percent at — and without bound as the swing approaches the inverted position. Clockmakers knew this "circular error" a lifetime before anyone could compute it. Computing it is the business of this article, and the payoff is bigger than pendulums. Because the system conserves energy, the period reduces to a single integral over a quarter swing — and that integral is the complete elliptic integral , with the amplitude hiding inside the modulus . One dial, running from to , carries you from Galileo's perfect isochronism to the logarithmic blow-up at the separatrix, where swinging gives way to going over the top. The waveform itself stops being a sine and becomes a Jacobi elliptic function, sprouting odd harmonics as it flattens. Every step of the method — energy first integral, quarter-period quadrature, frequency expanded in powers of amplitude — works for any oscillator beyond the parabolic approximation. The pendulum is simply the cleanest place to learn nonlinearity honestly.
- The pendulum equation is nonlinear; only for small does reduce it to simple harmonic motion with an amplitude-independent period.
- Energy conservation turns the period into a quadrature, and the quadrature is exact: with modulus — the complete elliptic integral of the first kind.
- The period grows monotonically with amplitude: . A swing already runs slow; runs slow.
- As the bob loiters near the inverted equilibrium and the period diverges — but only logarithmically: even at it is just .
- The waveform is the Jacobi elliptic function , whose flattened peaks carry odd harmonics () of relative size .
- The same machinery — first integral, quarter-period integral, amplitude-dependent frequency — governs every conservative one-dimensional anharmonic oscillator, from clock escapements to transmon qubits.
- Key idea: for a conservative 1D system the period is a quadrature; for the pendulum that quadrature is the complete elliptic integral , which makes the period an explicit, monotonically increasing function of amplitude that diverges at the separatrix .
Where this lives today
The most consequential anharmonic pendulum of the 2020s is a few hundred nanometres across and has no bob. A superconducting transmon qubit is electrically a Josephson junction shunted by a capacitor, and its phase variable obeys exactly equation (1) — the Josephson cosine potential is the pendulum well. That is not a loose analogy; it is the design principle. A perfectly harmonic circuit would have equally spaced quantum levels, and a microwave pulse tuned to the transition would climb the whole ladder indiscriminately. The pendulum's anharmonicity — the same physics as equation (7) — spaces the levels unequally, typically by an anharmonicity of – below a – transition, so the bottom two levels can be addressed as a clean two-level qubit. Every gate fired on today's superconducting quantum processors leans on the pendulum's refusal to be isochronous. Driven harder, the same junctions reproduce this article's other landmarks: past the critical current the phase crosses the separatrix and "rotates," which is precisely the junction switching into its voltage state. The classical story is equally alive. Precision pendulum gravimetry always needed the finite-amplitude correction of equation (6) subtracted before quoting ; modern MEMS resonators are engineered into or out of the Duffing regime on purpose — amplitude-frequency pulling is a bug in gyroscope scale factors and a feature in bifurcation-point amplifiers that sense attonewton forces from the fold of a bent resonance curve.
The physical picture
Picture the potential energy . Near the bottom it is a parabola, and a parabola means a perfect spring: restoring torque proportional to displacement, period blind to amplitude. But climb the well and it flares out wider than a parabola — the true torque falls ever further short of the linear estimate , and a weaker-than-linear pull means a lazier return. The higher you swing, the more of each cycle you spend in the flared, weak-torque region near the turning points. That is the whole physics of the anharmonic pendulum; everything else is making it quantitative.
The single most useful mental device is the modulus dial. Define . At the swing is infinitesimal, the elliptic integral collapses to , and Galileo is exactly right. At the amplitude is , the bob creeps asymptotically toward balancing upside-down, and . Everything in between — clocks, playground swings, ship roll — is one smooth function interpolating between those poles. Learn to read amplitude through and every formula in this article becomes one line. The waveform tells the same story in the time domain. Because the well is wider than parabolic, the bob lingers near the turning points and rushes through the bottom. The peaks of flatten; the zero crossings steepen. A flattened sine is no longer a sine:
Finally, zoom out to the phase plane, where the whole family of motions is visible at once. Small energies trace nested ovals around the bottom of the well — librations. Crank the energy past (measured from the bottom, exactly enough to reach the top) and the pendulum stops turning back: it circulates over the top forever, and the phase curve runs unbounded in . The boundary between the two families is the separatrix, the infinite-period orbit that approaches the inverted equilibrium but never arrives.
From restoring force to elliptic integral
Write Newton's second law for a point mass on a massless rigid rod of length : the only torque about the pivot is gravity's, , and the moment of inertia is . Dividing out leaves an equation with a single parameter — and no linearization anywhere:
where: — angular displacement from the downward vertical; — the small-amplitude natural frequency; — gravitational acceleration; — pendulum length. Note what is and is not: it is a fixed parameter built from and , but it is the actual oscillation frequency only in the limit. The whole subject lives in the gap between and the true frequency. To see the anharmonicity explicitly, expand the potential energy about the bottom of the well. The Taylor series of the cosine delivers the parabola first, then the correction that drives everything in this article:
where: — gravitational potential energy, zero at the bottom; the quadratic term alone would give simple harmonic motion; the negative quartic term widens the well and weakens the restoring force. In the language of nonlinear oscillators, equation (1) truncated at cubic order, , is a softening Duffing oscillator — the pendulum is the canonical physical realization of that textbook abstraction, and the sign of the term is why the period gets longer, never shorter.
We are deriving the exact period of the pendulum, equation (5), valid at any amplitude, starting from nothing but energy conservation. The strategy is the universal one for conservative 1D systems: use the energy first integral to express as a function of , separate variables, and integrate over a quarter swing — the period becomes a quadrature, a single definite integral. The move that unlocks the pendulum specifically is the half-angle identity, which converts a difference of cosines into a difference of squared sines and puts the integral into the classical Legendre normal form. Watch two things: the constant of integration must be evaluated at the turning point, and the substitution in the final step must map the quarter swing onto exactly — get either wrong and the elliptic integral acquires spurious factors.
Step 1. Multiply equation (1) by and recognize both terms as exact time derivatives: . Why this works: multiplying by is the mechanical way of dotting force with velocity — it converts the equation of motion into the statement that energy flows nowhere.
Step 2. Evaluate the conserved quantity at the turning point , where :
Why the turning point: the amplitude is the one place where we know the velocity exactly — it vanishes — so the constant is fixed by a single measurable number, .
Step 3. Solve for the angular velocity and apply the half-angle identity to both cosines:
Why half-angles: is awkward under a square root, but is a difference of squares — precisely the algebraic shape that elliptic integrals are built from. This identity is the pendulum's one indispensable trick.
Step 4. Separate variables and integrate over a quarter period — from the bottom to the turning point , taking the positive root: . Why a quarter: the four legs of a full cycle — out, back, out the other side, back — take equal times by the symmetry of the potential.
Step 5. Substitute with modulus . Differentiating gives ; the radical becomes , which cancels the upstairs, while migrates into the denominator. As runs , runs exactly . Why this substitution: it is engineered so the turning-point singularity of the integrand is absorbed into a clean trigonometric boundary — the integral's endpoints become universal, and all amplitude dependence retreats into .
Step 6. What remains is the complete elliptic integral of the first kind:
where: — the exact period at amplitude ; — a tabulated, monotonically increasing function with and as . Every property of the pendulum's period is now a property of one classical special function. Verified: at , gives , the small-angle result; at , gives , matching the tabulated handbook value.
Which formula answers which question
| you want | use | notes |
|---|---|---|
| the exact period at any amplitude | , eq. (5) | evaluate numerically or from tables |
| the period at moderate amplitude, fast | Borda series, eq. (6) | keep below ; add term to |
| the actual oscillation frequency | , eq. (7) | softening: decreases with amplitude |
| the full waveform | , eq. (8) | Jacobi elliptic sine, quarter period |
| harmonic content of the waveform | third-harmonic ratio , eq. (9) | odd harmonics only |
| behavior near | , eq. (10) | logarithmic divergence — use this, not the series |
The period grows with amplitude
Equation (5) is exact but opaque: nobody's intuition speaks elliptic integrals natively. For amplitudes short of a right angle, the working formula is the series expansion — historically associated with Jean-Charles de Borda's precision pendulum measurements of gravity in the 1790s, which needed exactly this correction:
where: — the small-angle period; — the amplitude in radians. The leading rule of thumb is worth memorizing: the fractional period increase is one-sixteenth of the squared amplitude. At () that is ; at it is ; at the series (through ) gives against the exact .
Go deeper · Derivation B · 1 minThe Borda series and the one-sixteenth rule
The goal is the amplitude expansion (6) — in particular its famous leading coefficient — extracted from the exact result (5) with nothing heavier than the binomial series. The strategy has two independent expansions that must not be conflated: first expand in powers of the modulus , then expand the modulus in powers of the amplitude . The watch-out is at second order and beyond: the coefficient receives contributions from both expansions, so truncating one of them too early silently corrupts the series even though the leading term survives.
Step 1. Binomial-expand the integrand of in the small quantity : Why this converges: for libration , so the expansion parameter is genuinely small everywhere on the integration range.
Step 2. Integrate term by term using the Wallis integrals and :
Why the coefficients look familiar: the general term is — the squared central binomial coefficients that fingerprint in any formula collection.
Step 3. Expand the modulus in the amplitude: , hence Why this second expansion is mandatory: the physics dial is , not ; quoting a series "in amplitude" while secretly meaning the modulus is a classic source of wrong fourth-order coefficients.
Step 4. Substitute and collect powers of . The term comes only from : . The term collects :
Why the cancellation pattern matters: the two fourth-order contributions carry opposite signs, so both expansions must be kept to consistent order — exactly the trap flagged in the goal paragraph. *Verified: at rad the series gives ; the exact — agreement to six decimal places, the next term being .*
Since frequency is , the softening reads directly off the series. This one-line corollary is the bridge to driven, nonlinear, and quantum oscillators:
where: — the true oscillation frequency at amplitude . The frequency falls as the amplitude grows — a softening anharmonicity. Drive a pendulum near resonance and this is the term that bends the response curve toward lower frequencies, producing the hysteresis and amplitude jumps of nonlinear resonance: as the swing builds up, the oscillator detunes itself downward, away from the drive that created it.
The exact waveform
What does actually look like when it is not a sine? The separation of variables that gave us the period, pushed one step further, gives the full time dependence — and introduces the elliptic generalization of the sine function:
where: — the Jacobi elliptic sine, a periodic function of with quarter period that reduces exactly to at ; time is measured from an equilibrium crossing. As grows, flattens at its extremes — the loitering near the turning points made analytic.
Go deeper · Derivation C · 2 minThe motion as a Jacobi elliptic function
We are deriving the exact waveform (8) by inverting the quadrature — the same integral that gave the period, now with a free upper limit. The strategy: separate variables in the velocity equation (4), change variables to so the integral lands in a standard normal form, and then invert — recognizing that the resulting integral is, by definition, the inverse of the Jacobi function . Nothing here is harder than the period derivation; the only new idea is that a definite integral defines a function worth naming. The watch-out is bookkeeping: with time started at the bottom of the swing, the motion follows ; started at the turning point it would be the cousin function — mixing up the initial condition swaps the function.
Step 1. Separate variables in (equation (4) with ): . Why the positive root suffices: we follow the first quarter swing, bottom to turning point, where ; the other legs follow by symmetry.
Step 2. Substitute , so and :
Why and not : the variable runs from 0 to 1 over the quarter swing regardless of amplitude, and the two-factor radical on the right is precisely the defining integrand of the incomplete elliptic integral of the first kind.
Step 3. Integrate from the equilibrium crossing ( at ) and invert. The integral defines , so , i.e. and . Why inversion is legitimate: on the quarter swing the integral is strictly increasing in , so the inverse exists — the same logic by which inverts to , one modulus up the ladder.
Step 4. Check the clock: the quarter swing takes , so the full period is — the waveform derivation independently reproduces equation (5). Why this is a real check and not circularity: the period came from a definite integral, the waveform from an indefinite one; their agreement confirms the bookkeeping. *Verified: at , and (8) collapses to , the SHM solution with the correct amplitude and phase convention.*
A flattened periodic waveform has a spectrum, and symmetry dictates its structure. Because the pendulum's potential is even, the motion obeys — flip the sign after half a period and the trajectory repeats. Any Fourier component at an even multiple of the fundamental would violate that antisymmetry, so only odd harmonics survive. Perturbation theory on the softening Duffing equation (expand , insert , and collect the that the cubic term generates) gives their leading size:
where: — the Fourier amplitudes at and at the fundamental. The anharmonic contamination is quadratic in amplitude and numerically meek: at () a direct numerical integration of equation (1) puts the third harmonic at of the fundamental, against from the leading-order formula — perturbation theory earning its keep even at a radian. If you strobe a real pendulum and Fourier-analyze the angle, this faint line is the cleanest laboratory signature that you have left the harmonic world.
The separatrix
Every formula so far treats as a wall. Walk up to it. A pendulum released ever closer to the inverted position takes ever longer to complete a cycle — not because it moves slowly everywhere, but because it spends almost all its time creeping near the top, where the restoring torque dwindles to nothing. The divergence law is worth deriving because its form — logarithmic — explains why the wall is so hard to feel in practice:
where: — the release angle's shortfall from fully inverted, in radians. Logarithms grow with legendary reluctance: even at the period is only .
Go deeper · Derivation D · 1 minLogarithmic divergence at the separatrix
We are deriving the near-separatrix period law (10) from the standard large-modulus asymptotics of . The strategy: as the modulus , where diverges; the divergence is controlled by the complementary modulus , which for the pendulum has a beautifully simple geometric meaning. The watch-out is a widespread error in the literature of this very topic: carelessly "simplifying" into — the two are not equal (logarithms do not trade prefactors for arguments that way), and only the first matches the exact integral.
Step 1. Quote the standard asymptotic expansion of the complete elliptic integral near unit modulus: as , where . Why a logarithm appears: near the integrand of develops a singularity at the upper endpoint, and integrating is what manufactures logarithms.
Step 2. Compute the complementary modulus for the pendulum: , so exactly. Why this is elegant: the complementary modulus is just the cosine of the half-amplitude — the modulus and its complement are the sine and cosine of one angle.
Step 3. Write for small shortfall : . Why we may linearize: the log's argument only needs leading order in ; corrections shift by , invisible against a divergence.
Step 4. Assemble the period: , which is equation (10). Why the prefactor must stay 4: each of the four quarter-swings independently spends its logarithm of time near the top; halving the prefactor by fiat would claim the bob loiters only on two of them. *Verified: at ( rad), formula (10) gives ; the exact elliptic integral gives and — the asymptotic form is accurate to four significant figures already one degree from the top.*
Past the wall, the physics changes branch rather than ending. With energy above , never vanishes: the bob circulates, advancing by each finite period, described by the same elliptic functions with inverted modulus. On the phase portrait the two families — closed librations inside, running rotations outside — are walled off by the separatrix, the infinite-period orbit through the inverted equilibrium. Every swing pumped over the top and every Josephson junction driven past critical current crosses that wall.
Limiting cases
| Case | Result | Meaning |
|---|---|---|
| , waveform sine | , , : SHM and Galilean isochronism recovered exactly | |
| isochronism good to — why small-swing clocks work | ||
| ( rad) | the landmark; one-sixteenth rule: | |
| exactly, from | the series through gives — still honest at a right angle | |
| the divergence is only logarithmic; even near-inverted release is a few | ||
| separatrix: the bob asymptotically approaches the inverted equilibrium | ||
| rotation: advances per period, no turning points | over-the-top branch, same elliptic functions with inverted modulus |
Worked examples
1 · A playground swing at 60 degrees (confidence builder)
A child on a swing of effective length swings with amplitude . Find the small-angle period, the exact period, and the error a stopwatch-wielding parent makes by trusting the small-angle formula.
Step 1. Small-angle period: .
Step 2. Modulus: . From tables (or the AGM algorithm), .
Step 3. Exact period: — the swing runs slower than the small-angle formula predicts.
Step 4. Cross-check with the series: , so — within parts in of the exact factor. The one-sixteenth rule alone already captures of the .
2 · The circular error of a pendulum clock (exam level)
A seconds pendulum (, one second per swing) in a wall clock normally runs at amplitude . After a cleaning, the escapement delivers more impulse and the amplitude settles at . How does the clock's daily rate change?
Step 1. The clock's gearing counts swings, so the timekeeping error is the fractional period excess (radians!).
Step 2. At : . At : . (The exact elliptic values are and — at these amplitudes the one-sixteenth rule is essentially exact.)
Step 3. The change in rate is . Over a day: — each swing now takes longer, so the clock falls behind.
Step 4. Read the design lesson. The error scales as , so halving the amplitude quarters the circular error — which is why precision regulators swung tiny arcs of a degree or two, and why Huygens tried to cancel the effect entirely with cycloidal cheeks that make the effective pendulum isochronous. An amplitude stability of about changes the rate by — about , which is why constancy of drive mattered more to clockmakers than smallness itself.
Origins · 1 minGeorg Duffing and how this was discovered
Georg Duffing was not a professor. A German industrial engineer preoccupied with vibrating machinery, he spent his evenings studying why real oscillators refuse to obey the linear textbook — and in 1918 published a slim monograph, Erzwungene Schwingungen bei veränderlicher Eigenfrequenz (Forced oscillations with variable natural frequency), that gave nonlinear vibration its canonical equation. The "Duffing oscillator," , is the pendulum's Taylor expansion with a drive attached: (the pendulum's case) softens the spring and bends resonance curves toward low frequency; hardens and bends them the other way. The bent curves overhang, giving two stable amplitudes at one drive frequency — the jumps and hysteresis engineers had seen in machines and could not explain. A century later his equation is the standard model of nonlinear resonance in MEMS gyroscopes, nanomechanical sensors, and superconducting circuits: an amateur's evening project that outlived nearly all the professional mechanics of its decade.
Going further
References. Morin, Introduction to Classical Mechanics, ch. on oscillations (exact pendulum, elliptic-integral period) · Goldstein, Poole & Safko, Classical Mechanics 3rd ed., §6 (oscillations and the pendulum) · Landau & Lifshitz, Mechanics, Vol. 1, §11–12 (anharmonic oscillations) and §11 problems · Taylor, Classical Mechanics, ch. 5 (oscillations) and problems on the large-amplitude pendulum · Abramowitz & Stegun, Handbook of Mathematical Functions, ch. 17 (elliptic integrals and functions)
Provenance. A verifier should reproduce: (1) the energy first integral and quarter-period quadrature giving (Morin, Taylor, Landau-Lifshitz §11); (2) the Borda series coefficients by expanding and the modulus (Abramowitz & Stegun ch.17, eq. 17.3.11); (3) the small-modulus expansion and large-modulus form ; (4) numeric checks: so at ; rad gives ; (5) the Jacobi-sn solution and quarter-period (Goldstein §6, Landau-Lifshitz). All numbers are standard textbook/handbook values. Additional numbers on this page (the period at , the circular error, the third-harmonic content at rad, and all SVG curves) were recomputed directly from equations (5), (6), (9), (10) by AGM evaluation of and Runge-Kutta integration of equation (1).
Builds on: The Simple Pendulum · Simple Harmonic Motion · Energy in Simple Harmonic Motion · Small Oscillations About Equilibrium Leads to: The Physical Pendulum · Driven Oscillations · Resonance
Why does the period get longer with amplitude rather than shorter — the bob is moving faster, after all?
Both effects are real; the weak-torque effect wins. At larger amplitude the bob does gain speed through the bottom, but it must also travel farther, and — decisively — it enters territory near the turning points where the restoring torque falls increasingly short of the linear . Out there the bob is barely being pushed home, so it dawdles. Quantitatively the well is wider than its parabolic approximation (the quartic correction in equation (2) is negative), and a wider well at the same curvature always means a longer period. In the extreme case the effect is total: released near , the bob hangs almost motionless near the top for most of its cycle.
At what amplitude does the small-angle formula actually start to matter in a real experiment?
Use the one-sixteenth rule: the fractional error is with in radians. A lab pendulum at is off by — invisible with a stopwatch. At it is , marginal. At you cross the line, which a hundred timed swings resolve easily; at the error is and unmissable; at it is . So the folklore rule "keep it under ten degrees" is a -accuracy statement. If your timing precision is , the isochronous approximation is defensible up to about rad .
Where does the sin(θ0/2) — the half-angle — in the modulus come from?
From the half-angle identity, and it is less mysterious than it looks. The velocity-squared is proportional to , and the identity converts that difference of cosines into — a difference of squares, which is the algebraic mold elliptic integrals are cast from. The substitution then maps the swing onto a standard quarter-circle of , and the amplitude survives only inside . Geometrically, runs from to as the amplitude runs from to — the natural "how nonlinear are we" dial, saturating exactly at the separatrix.
My software's elliptic-integral function gives me the wrong period. What convention trap did I hit?
Almost certainly the modulus-versus-parameter trap. This article writes with modulus ; many references and most numerical libraries use the parameter — SciPy's `ellipk(m)`, Mathematica's `EllipticK[m]`, and Abramowitz & Stegun all take . Feeding where is expected effectively takes a square root of the argument and underestimates the period; the reverse overestimates it. Sanity check before trusting any output: at you must get , i.e. from or equivalently .
Does a pendulum released just below the top really take forever to swing?
No — and the slowness of the divergence is the surprise. The period grows only logarithmically, : at it is , and even one arcsecond from inverted only about . A period of ten demands release-angle control near rad, far below mechanical repeatability — the logarithm eats your experimental heroism, which is why "infinitely slow pendulum" demonstrations always disappoint. True infinite period exists only exactly on the separatrix, a measure-zero orbit destroyed by any friction anyway.
What actually happens past 180 degrees — is there a period at all?
Yes, but of a different kind of motion. Amplitude beyond is not a bigger swing — it is no swing at all. With energy above , never vanishes: the pendulum circulates, advancing by every period instead of oscillating. The rotation period is finite and decreases with energy, given by the same elliptic machinery with the modulus replaced by its reciprocal; the separatrix through the inverted equilibrium walls the two families apart in phase space. A child pumping a swing over the bar and a Josephson junction pushed past critical current both cross from libration to rotation.
Why do the corrections start at θ0² — why is there no linear-in-amplitude correction to the period?
Symmetry. The potential is even, , so the dynamics cannot know the sign of the amplitude: the period must be an even function of , and its expansion can contain only The same evenness kills the even harmonics in the waveform. A linear-in-amplitude period shift can occur, but only in asymmetric wells — a pendulum with a magnet pulling sideways, or the cubic anharmonicity of interatomic potentials, whose asymmetry is what produces thermal expansion. The pendulum's perfectly symmetric well is precisely why its leading anharmonic effects are so tidy: quadratic in amplitude, odd in harmonics.