Buddhabrot
A Buddhabrot runs the calculation of the Mandelbrot set: choose a number, start at zero, square, add your chosen number, and repeat. The Mandelbrot picture then colors the pixel you chose. A Buddhabrot instead records the places the calculation visits along the way. If the results escape, it puts a faint dot at each saved position, and if they don't, it leaves that route out.1
The gray shape below is the Mandelbrot set, turned on its side. Move over the left picture to try a number, and click or tap to keep one, and its route appears in amber, one dot for each saved position. Press Record this route twice and the same squares brighten. A number inside the gray shape never escapes, so it has nothing to record.
Test 100 million numbers does the same thing for every number it tries. Each one that escapes adds its faint dots, and a picture fades in over a few seconds.
Chosen numbers
Visits
0.300 + 0.600i · escapes after 15 steps · adds 13 visits
Long routes start on the edge
Bright pixels were visited often, and the bright parts of this picture are of two kinds: a soft cloud and thin, sharp lines. Sorting the routes by length shows which routes make which.
Press Up to 20 steps. These are 89% of the numbers, and they make only the cloud. Press 201 to 2,000 steps, and the cloud is gone while the lines remain. Only one number in 900 takes that long, yet those routes lay down a quarter of all the dots.
The left picture shows where each group starts, so watch it as you switch. Short routes start anywhere well outside the gray shape, and long routes start in a thin line around its edge.2 Of those long routes, 99% start within of a number that never escapes, and almost none of the short routes do.3 You can check this on the left picture: move just outside the gray shape and the step count climbs into the tens or hundreds.
One outline, bent again and again
This picture follows the long routes together, one step at a time.4
The first step of a route lands on its own number, because plus the number is the number. So step 1 draws the outline of the gray shape.
At step 2, each dot moves to its position squared plus its number, and the whole outline bends. Take the round bulb at the top, centered on . Since , it lands around , inside the big round body. On step 3, , so it hops back, bent into a heart. Click through the steps and watch it hop.
Each later step bends the outline again, and by step 20 it has become a tangle of thin curves in the shape of the finished picture.
Those 20 steps hold only 4% of a long route's dots. The rest come later, as the route keeps returning to its own number.2 About one step in ten lands within of it, where a route spread evenly over the circle of radius 2 would do that once in 1,600 steps. From there, its next steps land close to its first steps, so it draws the same bent outlines again.5 Compare step 2 with Every step: the oval and the circle in the middle are still there.
The full explorer's Fractal Studio Controls choose the same groups with Maximum iterations and Minimum orbit length. It opens with a maximum of 20, which shows the cloud, so set the maximum to 2,000 and the minimum to 201 for the long routes.
Melinda Green developed this method in 1993, and Lori Gardi later supplied the name.1
A branching diagram inside
What happens if we keep the routes that don't escape? This is the Anti-Buddhabrot idea, and Green found a connection to the logistic map by changing which coordinates she plotted.6
The next picture puts these routes into a three-dimensional cloud, where each later answer becomes a dot. Two coordinates place the dot at the chosen number in the Mandelbrot picture, and its depth comes from the answer's horizontal coordinate.
Seen from the front, all those answers overlap at the number that produced them, so the cloud has to turn sideways to separate them. Press Play turn and follow the amber dots.
All the answers from one chosen number overlap at its position. Together they show the Mandelbrot shape. Press Play turn to see what is behind it.
At a quarter turn, only the amber slice remains: numbers chosen along the Mandelbrot picture's horizontal center line.7 Each column now shows the answers one calculation keeps approaching, so one answer makes one branch and an alternating pair makes two.
Choose Logistic map, and the same dots move to that map's usual coordinates, with branches splitting toward the right. This view covers its growth values from to .
The two calculations are connected by a change of coordinates. Writing the logistic rule as , set
The rule becomes , the square-and-add calculation we began with, and starting at in one is starting at in the other.8
Further exploring
- Buddhabrot — Wikipedia
- Buddhabrot — MathWorld
- Rendering a Buddhabrot at 4K and Other Bad Ideas — Benedikt Bitterli
- The Buddhabrot — Paul Bourke
Sources and notes
- The Buddhabrot Technique
- Buddhabrot — Mu-Ency
- Calculation. A route's length is the step on which it leaves the circle of radius 2. That last position is not recorded. The figure tests random numbers in mirror-image pairs, because a number's mirror image has the mirrored route. It waits up to 2,000 steps, so "never escapes" means staying that long. Of 100,000,000 numbers, 89.2% have routes of up to 20 steps and 110,588 have routes of 201 steps or more, which hold 26% of the visits inside the picture. For the distance, points on circles around 1,500 numbers from each group were tested: 99.3% of the long routes and none of the short routes have a number within that never escapes.
- Diagram construction. To save time, this figure tests only numbers in small squares near the edge. These are 3.4% of the squares and hold 99.6% of the long routes. It keeps 60,000 numbers and their mirror images. Each picture is brightened on its own, because one step holds far fewer dots than all of them.
- Calculation. From 6,000 long routes, the first 20 steps hold 3.9% of the dots. After step 1, 10.0% of steps land within of the route's own number. A disk of radius has of the area of the circle of radius 2. From 2,000 of those routes, after such a return, each of the next six steps lands a median of to from the route's matching early step. Dots after step 11 land within of the route's own first six positions 9.5% of the time, and within of another long route's first six positions 0.16% of the time.
- The Logistic Connection
- Diagram construction. All routes start at zero. The figure tests 864 steps, omits the first 768, and plots later positions from routes that pass the test. This finite test approximates nonescape. The real slice uses 1,100 parameters strictly between −2 and ¼. The front view plots parameter coordinates, rather than the orbit coordinates of a standard Anti-Buddhabrot.
- Math 5260 Dynamical Systems (Homework Set 5, problem 9).