← SciSim / Physics

Chaos Theory & Nonlinear Dynamics

Section 01
Interactive Simulation
Chaos Theory & Nonlinear Dynamics — SciSim
Ready
θ₁
°
θ₂
°
ω₁
rad/s
ω₂
rad/s
E_total
J
Lyapunov
Controls
Parameters
Length L₁1.00m
Length L₂1.00m
Mass m₁1.00kg
Mass m₂1.00kg
Init. θ₁120°
Gravity g9.81m/s²
Display
Grid
Vectors
Trail
Labels
Section 02
The Idea, Step by Step

Start simple: a tiny nudge, a wildly different future

Picture pushing a friend on a swing and trying to repeat the exact same push twice. A normal swing forgives you — a slightly different shove just gives a slightly different swing. Now imagine a second swing hinged onto the bottom of the first, free to whip all the way around. Release it from almost the same spot twice and within a few seconds the two motions look totally unrelated. Nothing random happened and the rules never changed; the system simply magnifies the smallest difference in the start until it takes over everything. That magnification is the whole idea of chaos — and it is why perfectly lawful equations can still be impossible to predict for long.

Build it up: how a small gap grows

Let's put a number on "tiny difference." Call the gap between two nearly-identical starting points $\delta_0$. In an ordinary system that gap stays small. In a chaotic one it grows by the same factor every second, so after a time $t$ it is roughly:

Exponential growth of a small error
$$\delta(t)\approx\delta_0\,e^{\lambda t}$$

The growth rate $\lambda$ is the Lyapunov exponent. Worked number: if $\lambda=1\text{ s}^{-1}$ and you know the start to one part in a million ($\delta_0=10^{-6}$), the gap balloons to order $1$ after only $t\approx\ln(10^{6})\approx14$ seconds. Measure a thousand times more precisely and you buy just $\ln(1000)\approx7$ extra seconds. Your prediction window grows with the logarithm of your effort — which is exactly why better weather data helps so painfully slowly.

Go deeper (AP / intro-college): exponents, attractors, and the route in

Precisely, $\lambda=\lim_{t\to\infty}\frac{1}{t}\ln\!\big(|\delta(t)|/|\delta_0|\big)$, and $\lambda>0$ is the mathematical signature of chaos. A chaotic trajectory never settles onto a point or a repeating loop, yet it stays bounded — it winds forever across a fractal strange attractor like the Lorenz set. Even the one-line logistic map $x_{n+1}=r\,x_n(1-x_n)$ reaches chaos, through a period-doubling cascade whose intervals shrink by the universal Feigenbaum ratio $\delta\approx4.669$. In the simulation, the $L_1,L_2,m_1,m_2,\theta_1$ and $g$ sliders set the double pendulum's starting state; the logistic and Lorenz views run with their parameters fixed.

Try this in the simulation above

In Double Pendulum, leave $\theta_1$ near its default $120°$ and just watch — the bright tracer curve never repeats. Then nudge a single slider (say mass $m_2$) by one step and press Reset: the new path is unrecognisable within seconds, sensitive dependence made visible. Open Logistic Map to watch the population value at $r=3.7$ hop around endlessly without settling, then switch to Bifurcation to see the whole route in — one stable value splits to two, then four, then dissolves into a chaotic spray past $r\approx3.57$. Finally open Lorenz to meet a strange attractor: bounded and beautifully structured, yet never once retracing its own loop.

Section 03
Equations & Derivation
Double Pendulum — Equations of Motion (Lagrangian)
$$\ddot\theta_1 = \frac{-g(2m_1+m_2)\sin\theta_1 - m_2 g\sin(\theta_1-2\theta_2) - 2m_2\sin(\theta_1-\theta_2)(\dot\theta_2^2 L_2+\dot\theta_1^2 L_1\cos(\theta_1-\theta_2))}{L_1(2m_1+m_2-m_2\cos(2\theta_1-2\theta_2))}$$
Logistic Map
$$x_{n+1} = r\,x_n(1-x_n),\quad 0\leq x_n\leq 1$$
Lyapunov Exponent (sensitivity measure)
$$\lambda = \lim_{t\to\infty}\frac{1}{t}\ln\frac{|\delta\mathbf{x}(t)|}{|\delta\mathbf{x}(0)|},\quad \lambda>0\Rightarrow\text{chaos}$$

Key Concepts

SymbolQuantitySI Unit
$\lambda$Lyapunov exponent — measures sensitivity to initial conditionsbits/s or nats/s
$r$Logistic map growth parameterdimensionless
$x_n$Population fraction in logistic map0 to 1
$T$Poincaré section periods
1
Deterministic chaos. A chaotic system is fully governed by Newton's laws (no randomness), yet is practically unpredictable. Tiny differences in initial conditions grow exponentially: $|\delta x(t)|=|\delta x_0|e^{\lambda t}$ with $\lambda>0$.
2
Double pendulum. Coupled nonlinear ODEs — no closed-form solution for large amplitudes. At small angles it behaves regularly; above ~30° it becomes chaotic. The Lagrangian approach gives the equations of motion from energy, not forces.
3
Logistic map. $x_{n+1}=rx_n(1-x_n)$. For $r<3$: stable fixed point. For $3
4
Strange attractors. In the Lorenz system, trajectories are attracted to a fractal set in phase space — the Lorenz attractor. It is bounded but never periodic, with Lyapunov exponent $\lambda\approx0.9$ bits/s.
Ref: Strogatz — Nonlinear Dynamics and Chaos (2014), Ch. 1, 6, 9; Taylor — Classical Mechanics, Ch. 11; Lorenz (1963), J. Atmos. Sci. 20, 130.
Section 04
Frequently Asked Questions
No. A chaotic system is fully deterministic — its future is completely determined by its present state through Newton's laws. Chaos arises from extreme sensitivity to initial conditions: tiny measurement uncertainties grow exponentially, making long-term prediction impossible in practice. True randomness (quantum noise) is fundamentally different.
Key takeaway: Chaos is deterministic unpredictability — not randomness. Perfect knowledge would give perfect prediction.
As the logistic map parameter $r$ increases, stable fixed points give way to 2-cycles, then 4-cycles, 8-cycles... This cascade of period doublings converges to chaos at $r\approx3.57$. The ratio of successive doubling intervals converges to the Feigenbaum constant $\delta\approx4.669$, universal across all smooth maps — one of the deepest results in chaos theory.
Key takeaway: Period doubling cascade converges to chaos at the Feigenbaum universal ratio ≈ 4.669.
Weather prediction (butterfly effect — Lorenz 1963), population dynamics (logistic model), cardiac arrhythmias (chaotic heart rhythms), dripping faucets, planetary orbital resonances (asteroid belt gaps), turbulent fluid flow, brain wave patterns, and double pendulums in robotics and biomechanics.
Key takeaway: Chaos governs weather, populations, heartbeats, and fluid turbulence.
$\lambda=\lim_{t\to\infty}\frac{1}{t}\ln|\delta x(t)/\delta x_0|$ measures the exponential rate of divergence of nearby trajectories. $\lambda>0$ indicates chaos; $\lambda<0$ indicates stability; $\lambda=0$ indicates periodic or quasiperiodic motion. The "predictability horizon" $t^*\approx\frac{1}{\lambda}\ln(\Delta x/\delta_0)$ is finite for any non-zero initial uncertainty $\delta_0$.
Key takeaway: $\lambda>0$ is the mathematical signature of chaos: nearby trajectories diverge exponentially.
Resources: Khan Academy; HyperPhysics (hyperphysics.phy-astr.gsu.edu); MIT OCW 8.01/8.02.
Section 05
Common Misconceptions
❌ A chaotic system is unpredictable because it is random.
✅ A chaotic system is fully deterministic — no randomness involved. Unpredictability arises from exponential amplification of tiny initial uncertainties. With perfect initial knowledge, the system is perfectly predictable. The "butterfly effect" is about sensitivity, not randomness.
📖 Strogatz — Nonlinear Dynamics and Chaos (2014), Ch. 1 & 9.
❌ Chaos means disorder — chaotic systems have no structure.
✅ Chaotic systems have rich geometric structure. The Lorenz attractor is a fractal with Hausdorff dimension ≈ 2.06. Poincaré sections of chaotic systems reveal intricate, structured patterns. "Chaos" is a technical term meaning sensitive dependence on initial conditions, not disorder.
📖 Strogatz — Nonlinear Dynamics and Chaos, Ch. 9; Mandelbrot — The Fractal Geometry of Nature.
❌ The double pendulum is unpredictable because its equations are unknown.
✅ The equations of motion for the double pendulum are completely known — derived from the Lagrangian. Chaos arises because small-angle approximations break down; the full nonlinear equations have no closed-form solution and show sensitive dependence on initial conditions.
📖 Taylor — Classical Mechanics, Ch. 11; Strogatz, Ch. 6.
Misconception research: Strogatz — Nonlinear Dynamics and Chaos; Gleick — Chaos: Making a New Science (1987).