The equation
Z = Z2 + C
is an iterative equation which generates a series of numbers. It says that each successive number is simply the square of the previous one plus a constant C. The sequence begins by setting Z to zero, so that the next Z has the value C (i.e. 02 + C). The following Z will be C2 + C, and so on.
The complication is that the numbers in this equation are not the ordinary numbers everyone is familiar with. The Zs and C are ‘complex numbers’ which can be represented not as a point on a line or linear scale but as one on a two-dimensional graph. Though most of us do not think of numbers in this way, mathematicians do and have no trouble working with them. Just as with ordinary numbers the usual rules of arithmetic – like addition and multiplication – work for complex numbers.
It is apparent that the series of numbers this simple equation generates depend on the choice of C. If we were working with ordinary numbers, for most Cs the Zs will get bigger and bigger. For example, if we begin with C = 1, the first Z will simply be 1, the second 12 + 1 = 2, the third 22 + 1 = 5, the fourth 26, etc. The sixth Z is already very big at 45,8330. However, there is a small range of values of C which result in the Zs being confined or bounded within a narrow limit. Starting with a value between negative 2 and positive 0.25, the successive values of Z will be trapped between -2 and +2.
The same thing happens with complex numbers. Depending on where the first point on the graph is (i.e. C), the Zs either shoot off to infinity or become bounded. The beautiful patterns generated by the simple iterative equation simply show where numbers (the initial point, C) will get bigger or become bounded as it generates successive numbers. Numbers represented by a point on or within the black shapes will get trapped within them (this set of numbers is the Mandelbrot set). Points outside the black shapes will get bigger.
What of the colours? Surely Z and C are colourless? The colours are indeed artificial. They are used in a way analogous to how colours can be used on maps to represent different heights. Here the colours represent how rapidly numbers outside the black shapes will accelerate toward infinity. Clearly this too depends on the starting point. To illustrate using just ordinary numbers: if we choose the first point, C, to be 1, then the third point in the sequence will be 5, But if we start with 5, then the first number will be 30 and the third 905. So the acceleration to infinity is far faster if we begin with 5 rather than 1.
Measuring the speed with which the Zs expand and then attaching a colour to them is easy in theory, but in practice it is only possible with a computer, as the patterns we witness require the generation of many hundreds of numbers (or points) every second. The discovery of the Mandelbrot set required the invention of the computer so that it could be said: yes, a computer is useful but it can yield beauty.