BM · 06 Beauty of Math

The Lorenz Attractor: The Shape of Chaos

The Lorenz Attractor: The Shape of Chaos

Three simple rules about a rolling fluid, and a point that follows them traces this: a shape that loops around two eyes and never repeats. Start a second point a millionth away, and soon they have nothing in common. We follow Edward Lorenz from a coffee break around 1960 to his 1963 paper: rolling fluid as three numbers, the three rules, following a point step by step, the two eyes, why the path can never cross itself (an infinite complex of surfaces, a fractal of dimension about 2.06), why almost every start ends up on the same shape, the butterfly effect, why weather forecasts run out after about two weeks, turning up the heat from rest to chaos and back to order, and last episode's one-dimensional rule hiding inside it.

Chapters

Cheat sheet

Sources

Transcript

Three simple rules, about a rolling fluid. Follow them, and a point traces this. It loops around one eye, then the other, and it never, ever repeats. Start a second point a millionth away. For a while, they fly together.

Then they split, and go their separate ways. This is chaos, and it has a shape. By the end of this video, you'll know why this path can never cross itself, why almost every start ends up on the same shape, why weather forecasts run out after about two weeks, and how last episode's simple rule is hiding inside it.

This is Just Known. From unknown, to known. Beauty of Math, episode six: the Lorenz attractor, the shape of chaos. Around nineteen sixty, the meteorologist Edward Lorenz was running a toy weather model on a desk-sized computer at MIT. He wanted to see one run again, so he restarted it from the middle, typing in numbers from the printout.

Then he went for coffee. When he came back, about an hour later, the new run had matched the old one at first. Then it drifted apart, until the two forecasts had nothing in common. The printout had shown three decimal places; the computer kept six. A difference of less than one part in a thousand had grown into completely different weather.

In a nineteen sixty-three paper, Lorenz boiled the idea down even further, using a model of convection by Barry Saltzman. Picture a layer of fluid, like water in a pan, heated from below and cooled from above. Warm fluid rises, cool fluid sinks, and the layer starts to roll. Lorenz kept just three numbers. x is how fast the fluid rolls, and which way.

y is the temperature difference between the rising and the sinking fluid. And z measures how far the temperature, from bottom to top, is bent away from a straight line. Each rule says how fast one number is changing, right now. The roll follows the temperature difference: x changes by ten times y minus x. The temperature difference is driven by the rolling and the heating, called rho, held back by z, and fades on its own.

And z grows when the rolling and the temperature difference work together, and relaxes back by eight thirds of itself. Lorenz used ten, twenty-eight, and eight thirds. Only two terms multiply the numbers together: x times z, and x times y. That's all it takes. To follow the rules, put a point in space, at x, y and z.

The rules give it an arrow: which way to move, and how fast. Take a tiny step along the arrow, work out the new arrow, and step again. Thousands of tiny steps later, a path appears. It circles one point, spiralling outward, then suddenly swings across and circles another. Then back.

Watch x: positive on the right, negative on the left. It flips with no pattern you can find. The two points it circles are the eyes of the shape. At each one, the fluid would roll steadily, one way or the other, with x and y about plus or minus eight and a half, and z at twenty-seven. At the origin there's a third: no rolling at all.

All three are unstable. Near an eye, the path spirals outward, about fifteen percent wider each loop, until it's flung toward the other eye, which throws it back. Turn it around, and you see the shape in three dimensions: two wings, almost flat, meeting in the middle. Here's a puzzle. The rules give exactly one arrow at every point, so the path can never cross itself: at a crossing, it would have two different futures.

It can't come back to a point it has already visited, either, or it would repeat that loop forever. And yet, it stays in this small region, forever. Where the wings meet, two sheets seem to merge into one. They can't. So each sheet is really two sheets, very close together, and each of those is two, without end.

Lorenz called it an infinite complex of surfaces. Today we call it a fractal. Its dimension is about two point oh six: a little more than a surface. It isn't just this one path. Scatter a thousand starting points anywhere you like.

Within a few loops, almost every one of them lands on the same shape, and rides it. That's why it's called an attractor. The rules squeeze space. Any blob of starting points shrinks to about a millionth of its volume in every unit of time. But the points never stop moving, so they get pressed into this thin, layered sheet.

It took until two thousand two for Warwick Tucker to prove, with the help of a computer, that the shape is really there, and not an accident of rounding. Start two points a millionth apart. For a while, they fly together. Then they split, and soon they're on different wings. Plot the gap on a log scale, and it climbs in a rough straight line: the gap roughly doubles with every loop.

So make the start a million times more accurate, and you only buy about twenty more loops. In nineteen seventy-two, Lorenz gave a talk with the title: does the flap of a butterfly's wings in Brazil set off a tornado in Texas? The image stuck, as the butterfly effect. It helps that the shape itself looks like a butterfly. This is why weather forecasts run out.

You can never measure today's weather perfectly. So forecasters don't run one start, they run a cloud of them, each slightly different. Here's a cloud of a thousand starts, closer together than the width of this line. For a while, it stays a tight blob: a confident forecast. Then it stretches into a thread, folds, and smears across both wings.

Now the best you can say is: about half are on the left. Real weather services run dozens of these forecasts at once, and for day-to-day weather, the limit seems to be about two weeks. Lorenz's twenty-eight isn't special. Rho is how hard the layer is heated. Below one, the heat just seeps through, and every path dies away to rest: no rolling.

Above one, the fluid rolls, and paths spiral into one of the eyes: steady rolling. Past about twenty-four, the eyes can't hold on any more, and it's chaos. Turn it much higher, and order comes back. At one hundred sixty, the path settles into a loop, twice around each eye, repeating forever. At three hundred fifty, a simple loop, once around each.

The same three rules, with other numbers, also describe a simple laser, and a leaky waterwheel that spins one way, then the other. Lorenz found one more thing in nineteen sixty-three. Watch z, and mark each of its peaks. Now plot each peak against the next one. The points fall on a thin curve, a pointed hump, like a tent.

So the whole three-dimensional tangle hides a one-dimensional rule, just like last episode's logistic map: this peak decides the next. And the tent is steeper than one everywhere, so every small difference gets stretched, peak after peak. That's the chaos again, in a single line. You can draw it yourself in about ten lines. Start at one, one, one.

Work out the three rates from the rules, take a small step, drop a dot at x across and z up, and repeat forty thousand times. That's the Lorenz attractor. The code is in the description. Let's recap. Three simple rules for a rolling fluid.

Follow them, and a point loops around two eyes, never crossing its own path, never repeating, pulled onto a shape with endless layers. Two starts a hair apart split, the gap roughly doubling with every loop: that's why forecasts run out. And inside the tangle, a one-dimensional rule, like last episode's. Next time, from chaos to order in nature: one angle, repeated, and how a sunflower packs its seeds. The golden angle.

This is Just Known. From unknown, to known.

Note: every path, cloud and plot is computed from Lorenz's three rules. Pictures marked "illustration" (the 1960 computer and printout, the coffee break, the flow in the box, the layered sheets, the laser and waterwheel icons) are schematic; the printout numbers 0.506 and 0.506127 are the well-known example from James Gleick's Chaos, not Lorenz's actual printout.
Narration voice generated with Google Gemini text-to-speech.