PDF download Download Article
A thorough guide on how to accurately plot the Mandelbrot set
PDF download Download Article

The Mandelbrot set is made up of points plotted on a complex plane to form a fractal: a striking shape or form in which each part is actually a miniature copy of the whole. The incredibly dazzling imagery hidden in the Mandelbrot Set was possible to view in the 1500s thanks to Rafael Bombelli's understanding of imaginary numbers -- but it wasn't until Benoit Mandelbrot and others started exploring fractals with the aid of computers that the secret universe was revealed. [1]


Now that we know it exists, we can approach it in a more primitive manner: by hand. Here is a method of viewing a crude rendering of the set, just for the purpose of understanding how it's done; you will then gain a much deeper appreciation for the renderings that you can make using the many open-source computer programs available, or that you can view on CD-ROM and DVD .

  1. This simply means that, for each point in the Mandelbrot universe we wish to see, we keep calculating z until one of two conditions occur; then we color it to show how many calculations we made. Don't worry! This will become clear in the following steps. [2]
  2. Get 3 different-colored pencils , or crayons , or felt-tipped markers , plus a black pencil or pen to make the outline. The reason we want three colors is because we'll make a first approximation with no more than 3 iterations (passes, or in other words, applying the formula up to 3 times per point):
    Advertisement
  3. With the black marker , draw a large tic-tac-toe board, 3 by 3 squares, on a piece of paper .
  4. . This is the constant ( c ) value of the point in the exact center of the square. Now let's say each square is 2 units wide, so add and/or subtract 2 to/from the x and y values of each square, with x being the first number and y being the second number. When done, it will look like what you see displayed here. Whenever you follow the cells across, the y-values (the second number) should be the same; whenever you follow the cells down, the x-values (the first number) should be the same.
  5. You, as the computer (actually, the original meaning of the word was "a person who computes") can do this yourself. Let's start with these assumptions:

  6. , 9 by 9, but still keeping a maximum of 3 iterations.


  7. until it has escaped, or you have reached the maximum number of iterations (the number of colors you're using: 3 in this example), at which point you color it. Here's how the 9 by 9 matrix looks after 3 iterations on each square...Looks like we're onto something! [4]
  8. Iterate the same matrix again with more colors (iterations) to reveal the next few layers, or better, draw up a much larger matrix for a longer-term project! You get more accurate pictures by:

  9. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Why use the absolute value to find C?
    Community Answer
    C is acquired from Zn+1=(Zn)^2+C. Zn is the starting point, which is (0,0i) in this case, so C is always the value of Zn+1. The absolute value is used to check if the point escapes from the set. When it escapes the first time, it is considered Pass 1.
  • Question
    Why do I obtain the same results while calculating the absolute values of (-1,1) and (1,1), while in the example above (-1,1) escapes after 3rd pass and (1,1) after second?
    Community Answer
    In [-1, 1] (i-1), the absolute value of the third pass is equal to 2, and it escapes on the pass that it's either equal or bigger than 2, and it's equal to 2. So it goes on the third pass. In [1, 1] (1+i) you calculated it incorrectly.
  • Question
    If a cell escapes the second pass, is the cell automatically in the third pass?
    Community Answer
    If the cell escapes (has a value greater than 2) in the second pass, it is colored in. Any cell that does not escape in the second pass automatically gets a third pass.
See more answers
Ask a Question
      Advertisement

      Tips

      • Why does z 2 = (x 2 -y 2 , 2xy)?

        • To multiply two complex numbers like (a, b) with (c, d), use the following formula, explained in this Mathworld article : (a,b)(c,d) = (ac - bd, bc + ad)
        • Keep in mind that a complex number has a "real" and an "imaginary" part, with the latter being a real number multiplied by the square root of negative 1, often referred to as i . The complex number (0, 0), for example, is 0+0i, and (-1, -1) is (-1) + (-1 * i). [5]
        • Still with us? Remember that the a and c terms are real , and the b and d terms are imaginary . So when the imaginary terms are multiplied together, the square root of negative 1 multiplied by itself yields negative 1, negating the result and making it real ; whereas the numbers ad and bc remain imaginary, since the square root of negative 1 is still a term of those products. Therefore, we have ac - bd as the real part, and bc + ad as the imaginary part.
        • Now, since we are squaring the numbers instead of multiplying two different numbers, this can be simplified a bit; since a = c, and b = d, we have the product as (a 2 -b 2 , 2ab). And since we are mapping the "complex plane" to the "Cartesian plane", with the x axis representing "real" and the y axis representing "imaginary", we will also refer to this as (x 2 -y 2 , 2xy) .
      • If you're calculating a cell over and over, and notice a result that is exactly the same as one you already got for that cell, you know you're caught in an endless loop; that cell will never escape! So you can take a shortcut, color that cell with your final color, and skip to the next one. (0, 0) is obviously one of those cells.
      • Want to know more about judging the absolute value of a complex number without laboring through the calculations?

        • The absolute value of a complex number (a, b) is the square root of a 2 + b 2 , the same as the formula for a right triangle , since a and b are represented at right angles to each other on the Cartesian grid (the x and y coordinates, respectively). Therefore, since we know that the Mandelbrot set is bounded by the value of 2, and the square of 2 is 4, we can bypass having to think about square roots just by seeing if x 2 +y 2 >= 4.
        • If either leg of a right triangle has length >=2, then the hypotenuse (diagonal side) must also be longer than 2. If you don't see why this is so, plot a few right triangles on a Cartesian grid and it will become obvious; or just think of it this way: 2 2 =4, and adding another positive number to that (and squaring a negative number always results in a positive) cannot result in something less than 4. Therefore, if either the x or y component of a complex number has a magnitude of 2 or greater, the absolute value of that number is greater than or equal to 2, and has escaped the Mandelbrot set.
      Show More Tips
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Mathematics can become very addictive, like anything else, but it probably won't harm your liver or cause lung cancer.
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 316,547 times.

      Did this article help you?

      Advertisement