Loading
Calibrating instruments…
Loading
Classical Mechanics · Chaos
Two pendulums, four dimensions of phase space, infinite surprise.
Energy budget
Phase portrait
Trajectory divergence (log scale)
The Physics
Rather than chase the tension forces in each rod, we write one scalar — the Lagrangian L = kinetic minus potential energy in terms of the two angles — and turn the Euler–Lagrange machinery. It delivers the equations of motion automatically, the elegance of analytical mechanics: geometry of energy in, dynamics out.
The result is two equations locked together through the cos(θ₁−θ₂) coupling — fully nonlinear, with no small-angle approximation anywhere. That nonlinearity is precisely what makes the motion so rich. They are integrated here with fourth-order Runge–Kutta at Δt = 0.5 ms, small enough that the numerical error sits far below the physics.
The ghost pendulum starts just 10⁻⁴ radians away — an invisible difference. On the log-scale divergence plot their separation grows along a straight line whose slope is the leading Lyapunov exponent λ, the quantitative fingerprint of chaos. A positive λ means prediction has a horizon: every extra digit of accuracy in the starting angle buys only a fixed extra span of foresight. This is the butterfly effect, made measurable.
The state lives in a four-dimensional phase space; the portrait shows its (θ₂, ω₂) slice. At low energy the trajectory winds around invariant tori and traces closed loops — regular, quasi-periodic motion protected by the KAM theorem. Raise the energy and those tori break up, the orbit begins to fill whole regions, and the motion turns chaotic. The same apparatus is integrable in one regime and chaotic in another.
Chaos is not sloppiness. With no friction the Hamiltonian is conserved exactly, and the measured relative drift |ΔE/E₀| stays near 10⁻⁸ — that is numerical round-off, not physics — even while the motion itself is utterly unpredictable. Determinism and unpredictability coexist: the future is fixed by the present, yet no finite-precision measurement can pin it down.
Numerically verified
Scientific references