Skip to main content
Sandbox Physics

Double Pendulum

How long do two nearly identical releases of a double pendulum follow the same path? It depends on the release. Small coupled swings can stay close, while a sensitive large-angle release can amplify a tiny difference rapidly. Compare finite-time growth with a regular release and check energy error separately; a positive value over one window does not prove chaos forever.

Drag either bob to compare nearby releases, finite-time growth and energy error, from small coupled swings to full overturning.

Interactive modelDouble Pendulum

Two nearby releases, three different checks

BackgroundA second pendulum makes the inertia depend on both angles. The resulting nonlinear motion can amplify tiny release errors even while energy remains nearly constant.

Why it mattersSeparate physical sensitivity from numerical error: a large distance between solutions is not itself an error estimate.

Focus question
How long do nearby releases of the same double pendulum agree?
One-sentence intuition
Compare actual separation, growth with repeated rescaling and the energy balance. They measure different things.

Core mathematical model

Both rods contribute to the same kinetic energy

KmL2=ω12+12ω22+ω1ω2cos⁡(θ1−θ2)\begin{aligned}\frac K{mL^2}&=\omega_1^2+\tfrac12\omega_2^2\\&\quad+\omega_1\omega_2\cos(\theta_1-\theta_2)\end{aligned}

Angles are measured from downward vertical. Each mass and rod length is one in SI units; the rods have no mass and the bobs have no spin inertia.

Gravity and energy use the same configuration

U=−(m1+m2)gL1cos⁡θ1−m2gL2cos⁡θ2,E=K+U\begin{aligned}U={}&-(m_1+m_2)gL_1\cos\theta_1\\&-m_2gL_2\cos\theta_2,\qquad E=K+U\end{aligned}

Without damping the physical equations conserve this energy. The numerical trajectory has a separately reported defect; energy is never projected back onto a desired value.

The state gap includes velocities

d2=∑j=12wrap⁡(Δθj)2+∑j=12(Δωj/ωg)2,ωg=g/L1\begin{aligned}d^2={}&\sum_{j=1}^{2}\operatorname{wrap}(\Delta\theta_j)^2\\&+\sum_{j=1}^{2}(\Delta\omega_j/\omega_g)^2,\quad\omega_g=\sqrt{g/L_1}\end{aligned}

Angles differing by a full turn are equivalent. Scaling velocities by the natural clock makes this a declared dimensionless metric, rather than mixing radians with radians per second.

Rescaling avoids separation saturation

ΛT=1T∑kln⁡dkε\Lambda_T=\frac1T\sum_k\ln\frac{d_k}{\varepsilon}

A third nearby solution is restored to a radius of one ten-millionth every tenth of a second. The final partial interval is included. This is a finite-perturbation rate in one evolving direction, not an exact tangent or an asymptotic largest exponent.

Damping heat and integration error differ

Q˙=2bK,RE=E+Q−E03mgL+∣E0∣\dot Q=2bK,\qquad R_E=\frac{E+Q-E_0}{3mgL+|E_0|}

The damping force is proportional to the generalized mass matrix times angular velocity. Exact velocity-damping half steps accumulate removed kinetic energy; the undamped RK4 step supplies an independent numerical balance defect.

Small swings provide an independent reference

ω±2=gL(2±2)\omega_\pm^2=\frac gL(2\pm\sqrt2)

For equal masses and lengths, the low-frequency small-angle mode has the lower angle equal to square root of two times the upper angle. The high-frequency mode has the opposite sign. These are limiting references, not formulas for large overturning motion.

Common difficulties

A large gap is not a numerical error

Typical misconceptionTwo nearby solutions disagree, so the integrator must be wrong.

Better mental modelThey have different initial conditions. Check energy balance and half steps separately, while allowing long sensitive trajectories to decorrelate.

Positive finite growth is not a theorem

Typical misconceptionOne positive number proves chaos for all future time.

Better mental modelA chosen direction can grow during a finite transient or near an unstable state. Change the window and resolution and compare regular releases.

Damping can reduce energy correctly

Typical misconceptionAny loss of mechanical energy means bad integration.

Better mental modelPhysical damping transfers kinetic energy into the separately accumulated heat. Only the balance after including that heat is a numerical defect.

Run the experiment

  1. 01

    Choose a regular comparison

    Compare the low- and high-frequency normal-mode presets.

    What to observe: Small coupled swings stay close to their independent linear references.
  2. 02

    Prepare a nearby release

    Choose Sensitive release and drag either gold bob.

    What to observe: Both independent records are recomputed from rest, with a declared angular perturbation.
  3. 03

    Extend and refine

    Open Other parameters, increase the record duration, then halve the integration step.

    What to observe: Energy error should shrink with refinement. Long-time state separation and growth must be read with their finite window.
  4. 04

    Include the heat

    Choose Damping removes energy and inspect the collapsed energy readouts.

    What to observe: Mechanical energy decreases while heat grows; the energy-balance residual remains small.
Equations, growth and limits

Each bob is a point mass of one kilogram, each massless rigid rod is one metre. Both angles are measured from downward vertical. The two pendulums are independent. Velocity damping removes mechanical energy; its heat is accumulated separately.

The growth diagnostic rescales a third nearby trajectory every 0.1 seconds in a declared angle–velocity metric. It is a finite-time estimate for one direction, with a finite perturbation; a positive result alone does not certify asymptotic chaos. Compare record length and half steps.

Harvey Mudd: double pendulum and sensitivity

Something broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy