Julia Set
If you start with and keep squaring, you get , then , and the numbers keep shrinking toward zero. If you start with , you get , , , and they grow without limit. You can drag the ring along the line to try other numbers.
0.5 → 0.25 → 0.0625 → 0.00391 → 0.0000153 → …
Heads toward 0
Everything between and gets drawn in toward , and everything outside grows without limit. The switch is abrupt: heads to , while flies off forever.
We can ask the same question about points on a plane. A point has a horizontal and a vertical coordinate, and together they form a complex number. To square one, you multiply its distance from zero by itself and double its angle from the line pointing right.
As you drag the ring below, the line joins the point to its square, then to the square of that, and so on. We call each step a jump and the whole path the point's orbit, and the chart shows the point's distance from zero after each jump.
Stays for all 300 jumps
Start = (0.8, 0.55)
Inside the circle, every orbit heads toward . Outside, the distance from zero grows without limit, and we say the point escapes. Close to the circle, the orbit takes longer to go either way, because squared is only about . So the circle is the boundary between two groups of points, and that boundary is the simplest Julia set.1
One small change to the rule makes this much more interesting. Start at a point, , then square it and add a fixed number to get . Do the same to , with the same , to get , and keep going:
In coordinates, if the current point is and is , the next point is:
In the demo below, the ring is the starting point and the dot is the number you add, which starts at about .
The old circle no longer separates the two groups. If you drag the ring to , it starts inside the circle and escapes, and at , it starts outside the circle and stays. Points still split into two groups, but you can't tell where the boundary is yet. See if you can find it by dragging the ring around, and then turn on Show the edge.
Stays for all 300 jumps
Start = (−0.3, 0.3)
c = (−0.12, 0.74)
That edge is the Julia set for this . If you drag the dot onto , the rule is plain squaring again and the edge is the circle. As you drag away slowly, the circle at first only bends, then farther out it can pinch, and far enough out it breaks into dust. The buttons move to a few well-known shapes.
The next demo uses . The dark shape is every point that stays, with the Julia set as its edge. If you pick a pixel outside it, the point eventually crosses the dashed circle, two units from zero, and after that every jump takes it farther away.2
If you pick a pixel in the dark shape, the point ends up jumping around three places. A different pixel in the dark shape ends up on the same three places, which is something we'll come back to.
Pick a pixel to start there. Each jump squares the point, then adds c = (−0.12256, 0.74486).
| Jump | Point |
|---|---|
| 0 | (0.3, 0) |
| 1 | (−0.033, 0.745) |
| Jump 1 | x² − y² + a | 2xy + b |
|---|---|---|
| Point | x = 0.3 | y = 0 |
| Square | 0.3² − 0² = 0.09 | 2 × 0.3 × 0 = 0 |
| Add c | 0.09 − 0.12256 = −0.03256 | 0 + 0.74486 = 0.74486 |
| New point | new x = −0.03256 | new y = 0.74486 |
Under the picture, the current jump is worked out by hand and rounded to five decimals, and Next jump feeds the new point back in as the next starting point.
You saw the edge break into dust as moved, so it's natural to ask which values of keep it in one piece. That's what the Mandelbrot set tells you. If you choose in the Mandelbrot set, the Julia set is connected, and if you choose it outside, the Julia set breaks into dust.3
In the demo below, each point of the left picture is one value of . To choose its color, the demo starts at and follows the jumps, coloring the point black if it stays and blue if it crosses the dashed circle. The black shape is the Mandelbrot set.
The right picture shows the Julia set for the under the amber ring. The line is the orbit of one starting point, which ends when the point escapes or repeats, or after 96 jumps, and the repeating part is amber.
The demo starts on , where a point starting at ends up jumping back and forth between and . Moving to on the left gives you the circle again, and moving outside the black shape breaks the Julia set into dust.
Drag the ring in either picture.
Mandelbrot · choose c
c = (-1, 0)
Julia · follow a starting point
(0.5, 0)
Each arrow below starts at a value of on the Mandelbrot picture and points to that value's Julia set. Six of these values lie outside the Mandelbrot set, so their Julia sets are dust, even though you can't always tell from the picture. In some you can see the gaps, as with . In others the gaps are too small to show, as with , where a point starting at takes 252 jumps to cross the dashed circle. The point looks outside too, but it sits on a thread too thin for this picture. Clicking a picture opens it at the top of this page.4
The whole dark shape, edge and inside together, is called the filled Julia set: every starting point that never escapes. With the calculation is plain squaring again, so the Julia set is the circle and the filled Julia set is the solid disk it encloses.
That makes these pictures slightly misleading, because none of them really shows the Julia set. Mathematicians split the starting points of a rule into two groups. A point belongs to the Fatou set if it and all the points close enough to it behave alike, such as a patch of points that all escape, or the points in the dark shape at , which all end up on the same three places. The Julia set is everything else: the points where, however closely you look, the neighbors around them do different things.5
To draw one of these pictures, the computer tests one point for each pixel. If the point escapes, it's in the Fatou set, and at this a point in the dark shape is in the Fatou set too. This Julia set has no area,6 so a test point almost never lands on it, which means what we paint is the Fatou set, and we only see where the Julia set is because the pixels on either side of it disagree. The bands of color aren't part of it either, since they only record how many jumps it took to cross the dashed circle, and a bigger circle would move every band while the edge stayed exactly where it is.
The computer can only test a limited number of steps, so dark pixels are only the ones that haven't escaped yet, and some may escape later. Take . From 100 steps to 300 steps, this picture barely changes and shows a solid dark shape, so you'd probably assume it's finished. Try moving the slider to 320.
Most of the shape changes color between 310 and 330 steps. Every colored pixel has escaped, so the pale area is outside the filled Julia set, and its pixels look alike because they escape at about the same step. Black and white drops the colors, so only the pixels left over stay black.
Why would so many points escape at nearly the same step? Almost all of them must pass close to , and that takes about 300 steps. With , the point would never move, because . With , it moves by only , so jumps near are very small. The point at the center of the picture spends 274 of its 315 steps within of .
Some points land near again and repeat the slow trip, which is why you can see more of them change color at about 650 and 1000 steps. The shape above is dust too, since lies just outside the Mandelbrot set.
Where the orbits go
Earlier, different pixels in the dark shape ended up on the same three places. With , a point can do two things: it can escape, or it can join one repeating orbit, which goes , then , then , then again. The point goes round that orbit forever and never stops at any of the three places. This repeating orbit is called the attractor. The one exception is a point exactly on the edge of the dark shape, which stays on the edge forever.5
The demo below colors each starting point by its turn on the orbit, so points of one color reach the same place on the same jump and then move on together, while gray points escape. When you play it, each color bunches together and joins the orbit. It stops once every dot has joined or escaped, but the dots would go round forever.
Mandelbrot · choose c
c = (−0.123, 0.745)
Where each point starts
Where the points are now
Orbit: (0, 0) → (−0.12256, 0.74486) → (−0.66236, 0.56228) → (0, 0) → …
| On the orbit | 0 |
| Escaped | 0 |
| Still on the way | 4117 |
You can see why this happens in the dark shape, which is made of rounded pieces called lobes, with one color for each lobe. A jump moves a whole lobe onto another lobe, so its points stay together, and after enough jumps every lobe has landed on one of the three lobes that hold the orbit's places.5
Notice that the orbit passes through : if you start at , you land on , then on , then back on .7 This is why points settle so quickly, because squaring makes small numbers much smaller, as when becomes . Each time a point comes back near , its distance from shrinks fast, so a point from is away three jumps later, then , then . The gap keeps shrinking forever, though after about 30 jumps it is too small for the computer to store, and the numbers repeat exactly.
You might ask whether the same could have a second attractor. It can't, because Pierre Fatou and Gaston Julia proved that if a has an attractor, falls into it.5 The point has only one orbit, so it can fall into only one attractor. This also gives you a direct way to find the attractor: start at and follow the jumps, which is exactly what the Mandelbrot test does.
That means the Mandelbrot picture also tells you how long the orbit is, which you can check by dragging the ring in the demo. Inside the heart-shaped body, the orbit has one place, called a fixed point: one jump lands it on itself, so here the points really do end up in one spot. Inside the round bulb on the left, it has two places, as sends to and back, and inside the big bulbs above and below the heart, it has three.8 The numbers on the Mandelbrot picture mark more bulbs. Outside the black shape, escapes, so there is no attractor and all the dots escape.
You can also read that number straight off the picture of the Julia set. Count the colors that meet at a joint of the dark shape, and for a bulb that touches the heart, that count is the number of places. The lines that meet at the main fork of the bulb's largest antenna give the same count.8
Not every in the Mandelbrot set has an attractor, though. With , lands on a two-place orbit that pushes nearby points away, and the picture of its Julia set has no dark area, because every point that doesn't escape lies on the Julia set itself.5 And close to a bulb's rim, the points need far more jumps, so the demo may not find the attractor.
Further exploring
Videos
- Filled Julia Set — Numberphile2
- What’s so special about the Mandelbrot Set? — Numberphile
- Beyond the Mandelbrot set, an intro to holomorphic dynamics — 3Blue1Brown
- Julia Set in Processing — The Coding Train
Reading
- Julia set — Wikipedia
- Julia set — MathWorld
- The Mandelbrot Set — Mathigon
- Understanding Julia and Mandelbrot Sets — Karl Sims
- How to Fold a Julia Fractal — Steven Wittens
- The Julia Set — Complex Analysis
Sources and notes
- Introduction to Complex Dynamics.
- Calculation: if and , then . Here .
- Local Connectivity of Julia Sets and Bifurcation Loci: Three Theorems of J.-C. Yoccoz.
- Diagram idea: Julia Set Fractal (2D).
- Dynamics in One Complex Variable: Introductory Lectures. Section 3 defines the two sets, Lemma 14.2 covers the two futures and the lobes, Lemma 3.1 the edge, Lemmas 10.2 and 10.4 and Remark 10.5 the attractor and , and Figure 1c the case .
- Quadratic Julia Sets with Positive Area. Values of with positive area do exist, but this is not one of them.
- Calculation: this is rounded to five decimals, so the third jump lands about from , and the attractor's place sits that close to . Distances are measured from that place.
- Rotation Numbers and Internal Angles of the Mandelbrot Bulbs.