Primitives
SaveLabExperimentsApproach

Instruments

Time0.00 s
Bodies0
Kinetic E0.00 J
Excess KE0.00 J
Potential E0.00 J
Total E0.00 J
Momentum0.00
Ang. mom.0.00
Max speed0.00 m/s
Gravity9.81 m/s²
FPS60
Gravity9.81m/s²
Speed1.00×
built on founden.ai
Experiments/Fundamentals

Double pendulum simulation: chaos you can perturb

Two pendulums, one hanging from the other. The rules are simple and fully deterministic, yet the motion is chaotic: change it slightly and the path soon becomes unrecognisable.

Deterministic chaos

Δθ(t) ≈ Δθ₀·e^(λt), λ > 0

Δθ(t)
angular separation between two nearly identical runs at time t
Δθ₀
the tiny initial separation
e
the base of natural logarithms, about 2.718
λ
Lyapunov exponent: the rate at which the separation grows (1/s)
t
time since the start (s)

What you are watching

Two equal steel bobs are joined by rigid, massless links of equal length (2 m on most screens), the first hung from a fixed pivot. Both arms start horizontal and at rest. The lower bob soon whips around, sometimes flipping right over the top, and its trail never settles into a repeating pattern.

The solver is deterministic: reset and the same run plays out exactly. Change anything, however small, and it does not.

Why it happens

The two angles are coupled nonlinearly: each arm's motion changes the forces on the other. For tiny swings that gives two coupled oscillations; from a large start like this one there is no closed-form solution and the motion is chaotic.

Chaos is sensitive dependence on initial conditions. Two runs starting Δθ₀ apart separate roughly as Δθ₀·e^(λt), with λ > 0: the gap is multiplied by a fixed factor every second, so an unmeasurably small difference becomes a different motion within tens of seconds.

Chaotic is not random: the same start gives the same result. Energy is still conserved, as the joints have no friction (Total E drifts down only slowly, from the numerical solver). What is lost is long-term predictability, the reason weather forecasts have a horizon.

Try this

  1. Reset twice and watch the first twenty seconds each time. The runs are identical: same equations, same fixed time step.
  2. Reset, then within the first second move the gravity slider one notch (to 9.8 or 9.9 m/s²). Nothing looks different at first, but ten to twenty seconds in, the lower bob is somewhere else entirely.
  3. Lower the speed slider to 0.1× to follow each flip. Only the playback rate changes, not the physics.
  4. Watch Kinetic E and Potential E swing wildly while Total E barely moves. Chaos rearranges energy; it does not create it.

Questions

Why is the double pendulum chaotic?

Its arms exchange energy through nonlinear coupling, so small differences in angle or speed compound. Nearby trajectories separate roughly exponentially, making long-term prediction impossible in practice even though the equations are deterministic.

Is a chaotic system random?

No. From exactly the same starting state it does exactly the same thing, as resetting this scene shows. It is unpredictable only because any uncertainty in the start grows exponentially.

More fundamentals experiments

  • SandboxNewton's laws
  • ProjectileProjectile motion
  • PendulumEnergy exchange
  • Newton's cradleConservation of momentum
  • Elastic collisionConservation of momentum
  • TowerCentre of mass
  • Ramp & frictionFriction
  • OrbitInverse-square gravity
  • SpringsHooke's law
  • Pendulum waveSimple harmonic motion
  • RopeTension
  • Rope vs rodBending stiffness

All 57 experiments

Primitives logoPrimitives

A real-time physics engine you experiment with directly. Real Newtonian mechanics, in SI units, in your browser.

Product

  • Engine
  • Experiments
  • Lab sheets
  • Lab
  • Approach
  • Notes

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • support@primitives.im
© 2026 Primitives. All rights reserved.