# Pictures of Julia and Mandelbrot Sets/Julia and Mandelbrot sets for non-complex functions

That our mapping from the plane into itself is differentiable as a complex function, means that it is differentiable as a real function - that is, that its two components and are differentiable - and that these two components satisfy the *Cauchy-Riemann differential equations*:

- and

if so, these two numbers are the real and imaginary part of , respectively.

It is this condition that causes the characteristic features of the Mandelbrot and Julia sets for complex iteration. The usual family of iterations can (in coordinate form) be written → (if *c = u + iv*), and if we here replace the *y*-coordinate of the function, that is *2xy*, by *1.95×xy*, the shapes in the Sea Horse Valley become distorted.

This thread-like and tattered look is typical for the *real* - or *non-complex* - fractals. For a function which is not, as in this case, the result of a mild interference in a complex function, the picture is often very chaotic, and the colouring can be impossible at most places, because our method of colouring presupposes that the sequences of iteration converge to a finite cycle, and for a non-complex iteration the terminus need not be a finite set. The terminal set is now called an *attractor*, and attractors can have very surprising shapes. Because of this, such an attractor is known as a *strange attractor*.

The fact that the two coordinate functions are not presupposed to be connected (by the Cauchy-Riemann equations) implies partly that a point of a Julia set is no longer necessarily a point of accumulation for *each* of the Fatou domains, and partly that a Julia set can have different character of connectedness along two directions orthogonal to one another. For instance the Julia set can consist of a system of threads lying infinitely close. If so, it is connected when one goes along the threads, and disconnected when one goes across this direction. Within each of the Fatou domains the sequences of iteration will converge to - be attracted by - one and the same attractor. The interesting attractors are relatively rare and most attractors are - as in the complex case - only finite cycles, or they consist merely of a number of separated pieces of curves, or they are quite the opposite and completely confused, filling up almost all the Fatou domain.

### The Mandelbrot setEdit

In order to find interesting Julia sets and attractors, we must construct a Mandelbrot set. We assume here that our function is composed of two real second-degree polynomials and : . We have first to choose two critical points. In the complex case, these are the solutions to the equation (or *z* = ∞), and *if* our mapping (being composed of second-degree polynomials) were complex differentiable, there would only have been a single (finite) critical point, which could be calculated automatically. But if the function is not complex differentiable, there can be an infinity of points satisfying the condition of being a critical point.

For a general differentiable mapping from the plane into itself, the derivative is a 2x2 matrix (see the section *Terminology*), namely composed of these four numbers:

That the Cauchy-Riemann equations are satisfied, means that this matrix corresponds to multiplication by a complex number, namely . That is regarded as degenerated, means that its determinant vanishes:

.

For our function , composed of two second-degree polynomials, is a second-degree polynomial, and therefore its zeros form a conic section: an ellipse, a parabola or a hyperbola. Besides this curve of critical points, the point ∞ also satisfies the condition of being a critical point. We choose ∞ as the first of the critical points, and a point on the conic section as the other.

The Mandelbrot set for the family of iterations *(x, y) → f(x, y) + (u, v)* is the set of points *(u, v)* such that if we iterate , the sequence does not grow towards ∞. The domain outside the Mandelbrot set can be coloured in the same way as before. In this simple case, where the iterations are towards a fixed point (namely ∞), we can (by means of matrix calculations) colour smoothly and draw the boundary. Let us set and , then the determinant of the derivative is , so that the critical system is the parabola . If we choose , the Mandelbrot set looks like this:

### The Julia setsEdit

In our simple case, where ∞ is a critical point, the colouring of the Fatou domain containing ∞ is, like the colouring outside the Mandelbrot set, without problems, and we can also draw the boundary of this Fatou domain. But besides this Fatou domain, there can now be an infinity of Fatou domains and these are not necessarily open sets. A Fatou domain is a set of points having the same attractor, and each Fatou domain contains a critical point. If we therefore iterate all the points of the conic section, we get all the attractors.

If the attractor of a Fatou domain is not a finite cycle, we cannot colour the domain in a natural way, we colour it black and draw its attractor. This is done by iterating each point of the Fatou domain: first a large number of times without drawing, and then a large number of times where the pixel is coloured white, for instance. As the attractors for the different points in the same Fatou domain are the same, we can stop this drawing after the attractors for few points are drawn.

If in the above Mandelbrot set we choose a point in the upper part a good distance from the centre line and a little bit inside the Mandelbrot set, we get this Julia set (first picture).

The Julia set is the complement to the union of the Fatou domains. In the complex case we have that if there are only few critical points in the Fatou domains, this indicates that the Julia set is "most possible" connected. This rule is also valid for a non-complex iteration: the character of the intersection of the Julia set with the critical system indicates the character of the connectedness of the Julia set. Therefore, when the Julia set and the Fatou domains run as threads, we have that the nearer the angle of intersection with the Julia set is to a right angle, the more regular is the course of the Fatou domains at that locality.

If in the above Mandelbrot set we choose a point near the centre line and just outside the Mandelbrot set, the Julia set becomes disconnected, but as it intersects the critical system in angles that are near the right angle, it does not become a cloud of dust, as in the complex case, but it becomes only disconnected in the one direction, in the other it runs as connected threads (second picture). Even the most disconnected Julia sets consist of threads in this simple case (third picture).

When we have found a usable locality in the Mandelbrot set, it is still rather difficult to find a point whose inner Fatou domain has a fine attractor. The point must not lie too near the boundary, for then the attractor is too chaotic and difficult to draw, and when the point is too far inside the black, the attractor will be more or less trivial. It is only at few places and at a certain distance from the boundary that you can find attractive attractors, and their forms vary swiftly when the point is moved.

If we choose trivial functions, for instance and , we can find trivial Julia sets and extraordinary (strange?) attractors (fourth picture).

### Rational functionsEdit

If the components of our function are *rational* (real) functions and if ∞ is not a super-attracting fixed point, there can be serious "faults" in the colouring outside the Mandelbrot set, and we can be forced to abstain from colouring the Fatou domains and thus only draw the attractors. But on the other hand, we can find very nice attractors. In the first picture below is the function of the form , with , and .

At a locality where the colouring of the Mandelbrot set is tolerable, we can try and draw the Julia set, and instead of drawing the attractor, we can draw the critical system. For such functions the critical system can be as simple or complicated as it pleases us, and in the cases where the Fatou domain can be coloured fairly faultlessly, and where the Julia set intersects the critical system under nearly right angles, we can by sketching the critical system create decorative patterns. In the second and third picture below are the functions of the above form with respectively , , and , , .

### The formula for the distance functionEdit

We can only colour a Fatou domain faultless, when it is associated to a finite attracting cycle, and when this is the case, the procedure is the same as for complex iteration.

Also the formula for the distance estimation used to draw the boundary, presupposes that the iterations are towards finite cycles. However, we ought to have the procedure in the program - at least for iterations towards infinity.

We have defined the distance function by (where is the potential function), and as is a real function defined on the Fatou domain, its derivative (or gradient) is a vector function, namely

- ( , )

(see the section *Terminology*). If the iteration function is complex (differentiable), an element of the sequence is complex differentiable as function of *z*, and therefore is a complex number. But this is not the case for a non-complex iteration function, for then must be replaced by the 2x2-matrix =

And is a 2x2-matrix, namely:

which we denote by

It is calculated successively by , with start in the unit-matrix: .

The formulas for the vector function in the three cases are:

- lim
_{k→∞}{ } (non-super-attraction) - lim
_{k→∞}{ } (super-attraction) - lim
_{k→∞}{ } (*d*≥ 2 and*z**= ∞)

The matrix product { } (for instance) is the row-matrix (vector) { , }. In the derivation we have used that the derivative (gradient) of the real function |*z*| is the vector function {*x/|z|, y/|z|*}.

To find the formula for , we shall divide the expression for by the norm of the corresponding expression for , and we see, that we in the former expressions for only have to replace by *√|det(z' _{k})|*.

For the Julia sets, we need only calculate the determinant of , because . Therefore we calculate the sequence of real numbers , starting in .

For the Mandelbrot set, where the derivative is with respect to *c*, the number 1 in the recursion formula must be replaced by the unit-matrix *I*: , starting in the zero-matrix: .

### Precise calculation of the critical pointEdit

We choose a point on the critical system in the same way as in the complex case: we draw the curve(s) and choose a point with the mouse or the arrows. And then we use Newton iteration to find the nearest point on the curve. For a real function on the plane (which in our case is *det(g'(x, y))*), this Newton iteration is given by *z* → , where is the gradient of , that is, the vector function

- { }

and where the corresponding column-matrix is identified with the complex number formed by these two real numbers.

In our case of the polynomial function, where , we have that the Newton iteration is given by:

*(x + iy)*→