📘 CodingMarble Learn

Chaos Theory: Order That Cannot Be Predicted

In chaos, the rules are exact (deterministic) but the future cannot be predicted for long, because a tiny change at the start grows very fast. This is the butterfly effect. Phase space draws the state of a system as one point; its path often settles on an attractor, and chaotic attractors are fractals.

🎬 Step-by-step story

  1. A simple pendulum swings the same way each time. Its phase-space graph (angle against speed) is a closed loop. We can predict it.
  2. Now a double pendulum: two rods joined. The rules are the same kind, but the motion is tangled. The graph keeps going to new places.
  3. Two identical double pendulums. They differ only by a tiny start angle, 0.001 radian. They begin together.
  4. Let time run. After a short while the gap between them jumps up. Their paths become completely different. This is the butterfly effect.
  5. A fractal: the Koch curve. Each time, every straight line is replaced by a pointed bump. Zoom in and the same shape appears again.
  6. Free play: change the start difference and restart. However tiny it is, the two pendulums drift apart.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Is the simple pendulum chaotic?

No. Its graph is a closed loop and the motion repeats. Watch the loop in the 3D.

Why does the double pendulum look messy?

Its two joints push on each other, so the motion never repeats and the graph path never closes.

Why do the twins start together?

Because their start differs by only 0.001 radian. Early on the tiny gap is invisible.

Why do they separate suddenly?

The gap roughly doubles again and again, so it looks small for a while and then jumps. That is the butterfly effect.

What is special about a fractal?

It looks similar when zoomed in. Raise the Koch level and see the same bump pattern appear on each small line.

Does a smaller start difference stop it?

It only delays it. Try 0.0001: the pendulums still separate, a little later.

Determinism and predictability

A system is deterministic when its rules are exact: if you know the start exactly, the future is fixed. A swinging pendulum, a falling stone and a planet orbit are like this.

For many such systems we can also predict the future far ahead. A small error at the start stays small. That is why we know eclipse times years before.

Determinism and unpredictability

Some deterministic systems are chaotic. The rules are exact, yet a very small error at the start doubles again and again. After a while the error is as big as the whole motion, and the prediction is useless.

This is the butterfly effect: a tiny flap of wings could, in a model, change the weather weeks later. Chaos is not randomness. If you restart from exactly the same start you get exactly the same motion. But we can never measure the start exactly.

A chaotic system has three signs: exact rules, strong sensitivity to the start, and motion that does not repeat.

Phase space and attractors

Phase space is a graph where one point shows the complete state of a system. For a pendulum, the state is its angle and its speed. As time passes the point moves and draws a path.

Fractal geometry

A fractal is a shape that looks similar at every zoom. Strange attractors are fractals, and so are coastlines, ferns and clouds.

The Koch curve is made like this: take a line, cut it into 3 equal parts, and replace the middle part with two sides of a small triangle. Repeat on every new line. At level n there are 4ⁿ lines, each 1/3 as long as before, so the total length grows by 4/3 each time and has no limit. See also Fractals and the Sierpinski triangle.

Why chaos matters

Chaos teaches us a limit of science: knowing the rules is not always enough to know the future.

Try it

Hang a small weight from a pendulum string, and tie a second small weight to the first. Release it twice from almost the same position. Watch how the two runs differ. In the 3D, set the start difference to 0.0001 and press Restart. Does the gap still grow?

Key formulas and definitions

Worked examples

1. A gap between two double pendulums starts at 0.001 and doubles every second. What is it after 10 s?

0.001 × 2¹⁰ = 0.001 × 1024 = 1.024. The gap is now bigger than a whole rod.

2. How many lines does the Koch curve have at level 3?

4³ = 64 lines.

3. The first Koch line is 9 cm long. How long is the curve at level 2?

Length = 9 × (4/3)² = 9 × 16/9 = 16 cm.

4. A pendulum loses energy to friction. What does its phase-space path do?

It spirals in towards the centre point (angle 0, speed 0). That point is the attractor.

5. Say whether this is chaos: a dice roll. Give a reason.

A dice roll is called random in daily life, but physically it is deterministic and very sensitive to tiny changes in the throw. We cannot measure it well enough, so we treat it as random.

6. A weather model has 1% error today and the error doubles every 2 days. After how many days is the error about 16%?

1% → 2% → 4% → 8% → 16% needs 4 doublings = 8 days.

Common mistakes

Practice quiz

1. A deterministic system is one that:
2. The butterfly effect means:
3. The phase space of a simple pendulum draws:
4. A point or shape that the path is pulled towards is a(n):
5. A fractal looks:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

Is chaos the same as randomness?

No. Chaotic systems follow exact rules. They only look random because tiny start differences grow fast.

Why can we not forecast weather for a month?

The atmosphere is chaotic. We cannot measure today's weather perfectly, and the small errors double again and again.

What is a strange attractor?

It is the tangled fractal shape that the path of a chaotic system draws in phase space. The path stays on it but never repeats.

Learn first

Learn next

Related lessons

All Physics lessons