Mathtrace

Fractals in the complex plane

A simple rule repeated over and over: z² + c. Whether the sequence escapes to infinity or stays bounded draws an infinitely intricate boundary. Drag to pan, use the wheel or two fingers to zoom, tap to see a point's orbit.

Mandelbrot Centre −0.5 + 0i Zoom 1×

Set

Drag to pan, use the mouse wheel or two fingers to zoom. Tap to pick a point.

Iteration

At a large zoom add steps - otherwise the fine filaments merge with the black area.

Julia set

Tap into the Mandelbrot set and use the button to show the Julia set for that point c. For c inside it is connected, for c outside it falls apart into dust.

A point's orbit

Tap the picture: the orbit of the picked point appears.

The Mandelbrot set

The points c for which the sequence z₀ = 0, zₙ₊₁ = zₙ² + c stays bounded. The large black cardioid is the c whose iteration settles at one point, the disc on the left the c with a cycle of length 2, further bulbs longer cycles.

Benoît Mandelbrot was among the first to see it on a computer at IBM in 1980.

Julia sets

For a fixed c the starting points z₀ are coloured. If c is in the Mandelbrot set the Julia set is connected (rabbit, dendrite, San Marco); if outside it falls apart into uncountably many points - Cantor dust.

Gaston Julia and Pierre Fatou studied them around 1918, without a computer.

Newton's basins

Newton's method looks for the roots of p(z) = 0. For z³ = 1 there are three roots and the whole plane splits into three basins. Their boundary is a fractal: all three colours meet at each of its points.

Arthur Cayley asked in 1879 what the basins look like - computers gave the answer.

How it is computed

All three pictures come from repeating one map of the complex plane and colouring a point by what happens to it.

When the sequence escapes

Once |zₙ| > 2 (and |c| ≤ 2) the sequence only grows: |zₙ₊₁| ≥ |zₙ|² − |c| > |zₙ|. So it is enough to iterate while |z| ≤ 2 or until the steps run out.

|z| > 2 ⇒ zₙ → ∞

The colour by the number of steps is smoothed: n + 1 − log₂ log|zₙ| instead of the whole n.

Fixed points and cycles

A fixed point z = z² + c attracts when |2z| < 1. The c with an attracting fixed point form the cardioid c = w/2 − w²/4, |w| < 1; a cycle of length 2 attracts in the disc |c + 1| < 1/4. Tap a point to see its orbit spiral into the cycle.

Newton's method in ℂ

zₙ₊₁ = zₙ − p(zₙ)/p′(zₙ)

At a simple root it converges quadratically - the number of correct digits roughly doubles each step. Far from the roots it may jump chaotically, hence the intricate basin boundaries.

Functions of a complex variable, residues and conformal maps are computed with steps in the Mathtrace app; Newton's method is among the numerical methods.