Math

Newton Fractal

Newton’s method applied to zⁿ − 1 produces fractal basins of attraction. Tiny changes in the starting point can send the iteration to a different root.

7 minLevel 3/3The interactive stage stays ad-free.
Polynomialz^3 − 1Roots3Iterations30Basins3

Each pixel is a starting complex number. Newton’s method iterates toward one of the n roots, and the color shows which basin it lands in. Zooming into any boundary reveals more colors — the boundary is a fractal.

What you are seeing

1

For zⁿ − 1, Newton’s method updates z ← z − (zⁿ − 1) / (n zⁿ⁻¹).

2

The plane is colored by which of the n roots the iteration reaches.

3

The boundaries between colors are fractal: arbitrarily close points can converge to different roots.

Why it matters

Newton fractals reveal how sensitive numerical methods can be to initial conditions, and they connect calculus, complex numbers, and chaos.

Complexity & details

Rendering P pixels with I iterations costs O(PI). Each iteration is O(1) for fixed n.

Frequently asked questions

Why are the boundaries so complicated?+

Near a boundary, the starting point can be arbitrarily close to several basins. The boundary has fractal dimension and infinitely much detail.

Does Newton’s method always converge?+

No. It can cycle, diverge, or land exactly on a derivative-zero point. The fractal shows how intricate the failure set can be.