Virtual laboratory/Mathematics/University-level mathematics/The Newton fractal — basins of attraction

The Newton fractal — basins of attraction

Newton’s method iterates z_{n+1} = z_n − f/f′ to find a root of an equation. For z³ = 1 there are three roots in the complex plane. Colour each starting point by the root it converges to — zoom in and see that the basin boundaries are fractal and self-similar.

The Newton fractal — basins of attraction
Mathematics · Analysis / complex numbers · university level
Zoom1 ×
Number of iterations30
Two very close starting points. Which root will they converge to?
zoom
×1
iterations
30
two close starts
the same
boundaries
fractal
🎯 Challenge: which basin?
streak: 0

I will give you a starting point inside a basin — name the root of z³=1 that Newton’s method will converge to. The roots: z=1, upper (−0.5; +0.87), lower (−0.5; −0.87).

What just happened?

Newton’s method looks for a root of an equation by iterating from a starting point. The equation z3=1z^3 = 1 has three roots in the complex plane. We colour each starting point by the root it converges to. Inside the basins it is smooth — but along the boundaries chaos reigns.

Newton’s iteration:

zn+1=zn−f(zn)f′(zn),f(z)=z3−1z_{n+1} = z_n - \frac{f(z_n)}{f'(z_n)}, \qquad f(z) = z^3 - 1

The three roots (colours) have their own “basins of attraction”. Trouble starts where the basins meet.

Invariant — self-similar boundaries:

The basin edges are fractal: infinitely jagged and self-similar at every scale. What is more — between any two basins you will always find a piece of the third. That is why two nearby starts can end up in completely different places.

Why this matters:

This is a university-level extension of the derivative and of methods for approximate equation solving. Newton’s method is everywhere in numerical analysis — and the way it “gets lost” on boundaries is a beautiful example of chaos and fractals.

Remember: zn+1=zn−f/f′z_{n+1}=z_n - f/f'. The basins of attraction of the three roots have fractal, self-similar boundaries.

Illustrative model · NexTutor Virtual Laboratory

Enjoyed the experiment? Share it.

It's free — send it to friends from school.

Theory & formulas

Newton’s method in the complex numbers

For f(z)=z3−1f(z)=z^3-1 we iterate: zn+1=zn−zn3−13zn2z_{n+1}=z_n-\frac{z_n^3-1}{3z_n^2} The equation has three roots (the cube roots of unity) spaced 120∘120^\circ apart on a circle.

Basins of attraction

We colour each starting point by the root it converges to. The interiors of the basins are “smooth”.

The fractal boundary

The basin boundaries are self-similar, and between any two basins there is always a piece of the third wedged in — no amount of zooming can smooth it out.

Notation: znz_n the iteration point, f(z)=z3−1f(z)=z^3-1 the equation, 120∘120^\circ the spacing of the roots.

Frequently asked questions

›

Why does Newton’s method “get lost”?

Near the boundaries between basins of attraction, successive iterations can “jump” between the neighbourhoods of different roots before settling on one. Two almost identical starts can fall into different basins — hence the chaotic, jagged boundary.

›

What is a basin of attraction?

The set of all starting points from which Newton’s method converges to a given root. Each of the three roots of z³=1 has its own basin (colour). Inside a basin it is “smooth”; all the complexity sits on the boundaries.

›

Why is the boundary a fractal?

Because it is self-similar — it looks equally jagged at every zoom level — and it has a striking property: between any two basins there is always a piece of the third wedged in. Such a boundary cannot be “smoothed out” by any magnification.

Teaching? Embed this experiment on your site.

Free widget — paste it on your school site, blog or notes. It links to the full version.

Teaching a class or tutoring? Guide students in NexTutor →