Skip to content
ihateDesmos

The Lorenz attractor

In 1963 the meteorologist Edward Lorenz simplified a model of convection to three differential equations and found that their solutions never settle down and never repeat. The path they trace, the Lorenz attractor, became the emblem of chaos theory.

The Lorenz attractor, a double spiral resembling butterfly wings, drawn in 3D from the Lorenz equationsThe Lorenz attractor, a double spiral resembling butterfly wings, drawn in 3D from the Lorenz equations
One trajectory of the Lorenz system starting at (1, 1, 1), integrated with adaptive Runge–Kutta.

Equations to type

The Lorenz system (σ = 10, ρ = 28, β = 8/3)
dx/dt = 10(y - x), dy/dt = x(28 - z) - y, dz/dt = x y - 8/3 z
Open
Two nearby starting points
dx/dt = 10(y - x), dy/dt = x(28 - z) - y, dz/dt = x y - 8/3 z
Open

At a glance

Equations
dx/dt = σ(y − x), dy/dt = x(ρ − z) − y, dz/dt = xy − βz
Classic parameters
σ = 10, ρ = 28, β = 8/3
Fractal dimension
About 2.06

The equations

x measures the rate of convection, y the temperature difference between rising and falling currents, and z the distortion of the vertical temperature profile. σ, ρ and β are physical constants; Lorenz used σ = 10, ρ = 28 and β = 8/3. Below ρ ≈ 24.74 trajectories settle to a steady state; above it, chaos.

The butterfly effect

Lorenz discovered the system’s sensitivity by accident: restarting a run from rounded numbers, he found the new solution diverged completely from the old one after a while. Two starting points 0.001 apart separate roughly exponentially, doubling their distance roughly every 0.8 time units on average, until they are on opposite wings. In 1972 he titled a talk “Does the flap of a butterfly’s wings in Brazil set off a tornado in Texas?”, and the name stuck. Open the second equation above to watch two trajectories from nearly identical starts part ways.

A strange attractor

Every trajectory is pulled onto the same butterfly-shaped set, the attractor, and then circles one wing a few times before jumping unpredictably to the other. The set has zero volume but is more than a surface: its fractal dimension is about 2.06. In 2002 Warwick Tucker proved with a computer-assisted argument, using interval arithmetic, that the attractor really exists and is not a numerical artefact.

How it is computed here

The calculator integrates the system with the Dormand–Prince Runge–Kutta method, adjusting the step size to keep the local error tiny. Because the system is chaotic, any method’s small errors eventually grow, so the exact path after a long time depends on the method. The shape of the attractor, though, is robust: every accurate method fills in the same butterfly.

Frequently asked questions

What are the Lorenz equations?
dx/dt = σ(y − x), dy/dt = x(ρ − z) − y, dz/dt = xy − βz, usually with σ = 10, ρ = 28 and β = 8/3.
What is the butterfly effect?
Sensitive dependence on initial conditions: in a chaotic system, tiny differences in the starting state grow until the outcomes are completely different.
Why is the Lorenz attractor called strange?
Because it is a fractal: trajectories are confined to it but never repeat, and it has a non-integer dimension of about 2.06.
How do I graph the Lorenz attractor?
Switch to 3D and type dx/dt = 10(y - x), dy/dt = x(28 - z) - y, dz/dt = x y - 8/3 z, then add a starting point such as (1, 1, 1).

More curves

Make it your own

Every equation on this page opens in the calculator, where you can add sliders and watch the curve change.

Open the calculator