## Archive for **September 20th, 2007**

## Newton’s method and fractals

Many of you would have come across the Newton-Raphson iterative technique of finding the root of a *single non-linear equation*, in high-school.

The iterative method of solution is essentially given by,

Newton’s method can also be extended to find solutions to a set of *simultaneous non-linear equations* for functions of many variables.

For example, let’s say you need to find a solution to the equations,

with an initial guess,

The recursion which is used to find the solution is now given by

That is,

Note that you’ll have to evaluate the Jacobian matrix at during each iteration. For a proof of when the method converges, and some modifications to make it converge faster, check the references which are given at the end of this post.

There’s something interesting which happens when you apply this technique to an equation in the complex plane. For a complex number , any polynomial equation can be written as two equations in the variables x and y. For example, if , then,

,

which means

and

Also, note that for every (x,y) we have a corresponding point in the complex plane.

Now consider this question. Let’s say we have a polynomial equation . Given an arbitrary *initial guess* of the root to this equation

a) Will the algorithm converge to give a solution for that particular initial guess?

b) If so, how long does it take to converge to a solution for that particular initial guess?

An attempt to answer to these questions leads to fractal patterns. In the color scheme I’ve used, the *bluer* regions correspond to where the initial guesses converge faster. The *yellow/red* regions is where the initial guesses converge slowly or do not converge.

– __z^3+1=0,__

– __z^4+1=0__

– __z^5+1=0__

As you can see, while some initial guesses converge without much fuss (the basin regions), others can show remarkable behavior (guesses near the “boundary”) and can lead to a number of intricate patterns for various functions. I’ve linked to some websites which contain a gallery of such images for various functions. Some of them are truly remarkable!

__References and External Links__

– A Class of Methods for Solving Nonlinear Simultaneous Equations, C. G. Broyden, Mathematics of Computation, Vol. 19, No. 92 (Oct., 1965), pp. 577-593

– An Introduction to Numerical Analysis, Endre Suli and David Mayers, Cambridge University Press,Pg 104-125

– Fractals from Newton’s Method

– Newton Basins

– Newton’s method and Newton basin fractals

– Newton’s Method gallery

– Another Newton’s Method Gallery