---
title: 'This Fractal Is More Complex Than the Mandelbrot Set'
source: 'https://youtube.com/watch?v=0OP9guFmWfs'
video_id: '0OP9guFmWfs'
date: 2026-07-26
duration_sec: 1138
---

# This Fractal Is More Complex Than the Mandelbrot Set

> Source: [This Fractal Is More Complex Than the Mandelbrot Set](https://youtube.com/watch?v=0OP9guFmWfs)

## Summary

In this video, Matt Parker explores the Mandelbrot and Julia sets through interactive visualizations, explaining the mathematics of complex squaring and the 'complex sumo' game. He demonstrates how Julia sets are related to the Mandelbrot set and highlights their intricate beauty.

### Key Points

- **Self-Squaring Effect** [00:28] — Matt demonstrates applying complex squaring to his own video image, creating a fractal effect by repeatedly transforming pixel positions.
- **Complex Coordinates and Squaring** [02:37] — Every pixel coordinate is converted into a complex number. Squaring a complex number moves it in a 2D space, with behavior depending on distance from the origin.
- **Inside vs. Outside the Unit Circle** [04:26] — Inside the unit circle, repeated squaring converges to zero; outside, it diverges. Crossing the unit circle is the key behavior.
- **Mandelbrot Set as Complex Sumo** [05:21] — The Mandelbrot set is defined by iterating z = z² + c starting from 0. If the orbit stays bounded (inside the circle), c is in the set; otherwise, it's not.
- **Julia Sets vs Mandelbrot Set** [09:25] — Julia sets use a fixed c and vary the starting point z0. The Mandelbrot set maps all c for which the origin remains bounded, while Julia sets show all starting points for a given c.
- **Connection Between Julia and Mandelbrot** [12:29] — Plotting Julia sets for different c values and zooming out reveals the Mandelbrot set shape, showing that the Mandelbrot set is a 'map' of Julia set behavior.
- **Reverse Process with Square Root** [13:41] — Matt's initial effect used the inverse operation (square root) to show where points could come from, playing the 'game' backwards.
- **Inspired by Matt Henderson Tweet** [14:05] — The video was inspired by a 2020 tweet from Matt Henderson showing a similar animation applied to a circle. Matt Parker wanted to apply it to video footage.
- **Interactive Mandelbrot-Julia Explorer** [16:35] — Christian Lawson Perfect created an interactive tool where moving the mouse on the Mandelbrot set updates the corresponding Julia set, showing continuous transitions.

### Conclusion

The video reveals the deep connection between the Mandelbrot set and Julia sets, showing how one can be seen as a 'map' of the other, and encourages viewers to explore these beautiful fractals interactively.

## Transcript

Well, that's a joke. I mean I'm squared, but it wasn't accidental. I don't know how to point at anything
No time to explain now - I need to unsquare&nbsp;myself and very gradually I'll reduce that power until... Ah I lied again! I'm now square rooting myself.
Up&nbsp;until now I've been always using the original pixels from every frame and then moving them I've moved them. I'm going&nbsp;to move them again,
I'm going to repeat that again, and again, and again. And again. Look at me now, I'm a fractal! I'm the "Matt"-elbrot set. Wonderful&nbsp;fractal. Hugely overrated. [Mandelbrot set makes deflating sound]
Forget it, we're going to get away from that. There are much better fractals out there and I was one of them. I was a Julia set, but&nbsp;I was the boring one - the one right in the middle.
Instead, this time: square root myself, duplicate. But, before we do it again slide to the left; or the right, your left (I forget which way I did it&nbsp;in the code.) Slide somewhere, do it again. Slide, do it again. Repeat, repeat, repeat, repeat.
Look at me&nbsp;now! It's Julia set Matt. Check that out. Uh here's a fun game, follow the mug. Where is it now? Could&nbsp;be anywhere. I apologise for making you see this.
[Stand-Up Maths theme] but first we have to deal with the coordinates of where a pixel is in a video frame.
It's measured&nbsp;from the top-left corner. Ridiculous. I'm gonna put a point on the screen in a moment - I don't know&nbsp;where because I'll run the code to put this in afterwards. Okay, I said I was going to mark a point&nbsp;on the screen. Argh! Did I say where? Ah, it doesn't matter. Put it anywhere.
I assume I put it carefully&nbsp;in the, uh, top-left corner over here. (Ah, of course!) So once you've got a point with its coordinates&nbsp; I can convert that into a more useful coordinate system. No! I mean, yes I'm going to do that
but&nbsp;then I'm also going to turn them into a complex coordinate. is equal to two. And complex numbers, they're so great.
You don't need to know&nbsp;about them for the purposes of this video, but the point is you can manipulate them like normal&nbsp;numbers. So, every coordinate in the frame has kind of just got one number instead of two, and if&nbsp;we square them, they move in an unusual way
in the 2D space that is this frame; ah, so there. Here's&nbsp;a bunch of points - I square them. Look at them go! take its coordinates, turn them into a complex number, square that complex number,
see where that corresponds to as a new location and then move the pixel from the original place&nbsp;to the new place. to this. To get a sense of complex squaring we&nbsp;can move complex number z around and you can see it's square, z-squared, over here
move around&nbsp;correspondingly. And as you move z around you get all sorts of crazy behaviour. Now on the real&nbsp;number line that reverts to just regular square numbers. So if I cross two, two squared is four - that makes&nbsp;sense.
as I go around the unit circle z-squared's getting away. It's all the way back over there. I have to do another lap with regular&nbsp;z to catch back up again. but whenever z crosses the unit circle - watch this -
z-squared crosses at exactly the same time. Look at that. So anywhere out here, z-squared's further away from the origin than z is and that doesn't matter. Like we can be wildly apart, opposite sides and still when I come in this way they cross simultaneously.
And then inside, doesn't&nbsp;matter where z is, z-squared's always closer to the origin. so inside the unit circle squaring&nbsp; gets you towards zero and if you were to repeat this square and square and square and square and&nbsp; square you'd end up right in the middle
and then outside if you square it gets further away and&nbsp; further away and further away. That's all you really need to know about squaring complex&nbsp; numbers. Well, the Mandelbrot set is basically a&nbsp; game of complex number sumo wrestling,
where the point has to stay inside the circle despite being&nbsp; repeatedly squared. Although, as we already saw, if you're already inside the circle and you keep&nbsp; getting squared you just go to the middle.
If you step outside though, then you fall away but what's&nbsp; going to make you step outside? Well, your opponent is "plus c", that is a constant which is also a&nbsp; complex number. So every time you're squared you get bumped by "plus c"
the game now is: can you stay inside the circle? And whether&nbsp;or not you're successful entirely depends on what that "plus c" is. [Wilhelm scream as wrestler falls from ring]
So in this game one wrestler is&nbsp; at the origin, which we're going to have as a complex number, and here comes their opponent "plus&nbsp;c" equals 0.35 plus 0.21i. Now the very first move, when plus c comes into the ring, because squaring&nbsp; zero does nothing;
the first thing that will happen is a shove in the "plus c" direction, which is why&nbsp;we're now at 0.35, 0.21; we square that result, we add on plus c again, we move to a new location.
Now, I'm&nbsp;not going to animate them moving every single time we update the position. Well, it just stays inside the circle. the other wrestler wins.
Time for a new game with a new "plus c" opponent. And, actually, this&nbsp;time "plus" c will win. The point will get pushed far, far away from the arena. And I have cheated&nbsp;slightly by referring to the arena as a circle,
it's actually a more complicated shape and that's&nbsp; the shape we're working towards: it's the Mandelbrot set. It's all the points such that the game goes&nbsp; one way or the other. And my mate, Ben Sparks, did a Numberphile video about this a while ago. In it&nbsp;he has a phenomenal GeoGebra file
"Thanks Matt. The basic idea, as you know, is pretty simple: if you start at the origin and square that number, you'll get zero. But, if you add a constant then you'll get&nbsp; that constant;
you'll get that point, if you square that point and add the constant, you'll get that point. And if you&nbsp;keep going you'll follow this nice spirally path, in this case. Obviously depends which constant you add&nbsp; each time and that's why I can drag the c around
and you see the different paths start happening: so we get a tighter spiral, or we get different sort of spirals over here depending on what c you&nbsp; use in iteration. But sometimes it's unstable, it doesn't come back. Stable - unstable. And that's what&nbsp;these splodges in the background are doing.
Black for stable, blue for unstable - where you've kind of&nbsp; pushed it out of the arena. Uh, and we can just find out which is which, so I'm just colouring in&nbsp; the screen. I'm actually going to try and see if I can find the boundary between stable and unstable,
Um, and, I mean, if I can go slowly you can see the&nbsp; spirals, inside, and the unstable bits, outside. We're getting a nice little visualisation of a shape,
which I think is familiar to a lot of&nbsp; mathematicians, or at least it is now. But imagine being the first person to see this shape, this is The Mandelbrot Set. The points inside are&nbsp; stable and the points outside are unstable:
stable, unstable, stable, unstable, stable, unstable. Nice." It's called a set because it's the set of all the values of c, such that&nbsp; you lose or win the complex sumo game.
It depends slightly on how you define things and to explain&nbsp; that, future Matt is going to write some more code to visualize it. I'm not going to do that, my code&nbsp; is so slow this would take forever.
Instead, check this out this is a very low-resolution Mandelbrot set, but there's a slider at the top there this is just for dramatic reveal: so as we reduce the grid size we get a better and better resolution Mandelbrot set.
And I'm going to refer to this as a&nbsp;The Mandelbrot Set. I use the word set a lot; but I'm saying set&nbsp; to mean all of the inside. If you're wondering where the colours come from, they're technically&nbsp;artificial.
- You can add colours as a measure of how fast does the game end, like how fast can you&nbsp;get to the middle or how fast can you get thrown out of the complex sumo ring. whoever's made it has put them on there.
In this case it's my&nbsp;friend, Christian Lawson Perfect, who coded this up such that it responds as I move that slider&nbsp;around. So, if that's The Mandelbrot Set, what are&nbsp;Julia sets?
The Mandelbrot Set assumes you start at&nbsp; the origin, at value zero, then you play the game. A Julia set is exactly the same idea, but you can&nbsp; start anywhere you want on the complex plane.
So, your player starts at some complex value; then you&nbsp; play complex sumo see if you end up in or out of the circle eventually. So, this is the trivial Julia&nbsp; Set, this is all the places where you can start
and safely remain within the circle when you're&nbsp; adding a "c" value of zero. And I can change the "c" value, thanks to Christian's incredible coding, by just moving the mouse around. So wherever the mouse is, that's the new starting "c" value
and all the&nbsp;points you can see on the screen are the places where, if you start there, you'll stay within the&nbsp;circle forever. And I occasionally mix these up when I'm saying them because the Mandelbrot Set are all the "c" values for the one starting central point -
as opposed to the Julia Set, which&nbsp; is a fixed "c" value showing you all the starting points, Now, for some "c" values,&nbsp;you can see that all the starting points that are safe and you'll win the game
are in one big connected,&nbsp;albeit a fractally, region; but for other "c" values, like out here (look!) They become these disconnected... Like, fractal dust. Oh, that! I love the ones here like the spiral effects - look at that, isn't that&nbsp;phenomenal;
actually, if I zoom in a bit... Okay, I'm going to&nbsp;see if I can get that middle bit so we watch it join, so the two ends come in, scoop around. Oh! look at that isn't that phenomenal?
I could spend hours exploring this and you can too - because we'll link it in the description below. And if you find any fun ones, as you can see in the bottom&nbsp; lefthand corner, you can read off what "c" value you're looking at
and you can then share those! So put them in the comments below and, other people, you can just type them in Ah! Julia Sets they're incredible! Exploring by moving the mouse around is a lot of&nbsp; fun; but, what if we want to see a couple different Julia Sets at once and categorize them in a&nbsp;sensible way?
Well, we could plot the pictures according to what their starting value of "z" is: we could then add on the starting positions +1 and -1,
We could add in +i and -i, that works as well. so you've got "1 + i", "-1 + i" and so on... We could push that by going out&nbsp; to two in each direction.
We could increase how many we can see at once by - let's say we do the&nbsp;half values, [In fact, we can do loads! And if we want we can change the grid&nbsp;size to fit more in at once.
Yes it's me again, in the future, messing with Christian's phenomenal&nbsp;code. I'm going to make the grid size smaller and smaller so we see more and more of them at once. We&nbsp;still got the boring circle in the middle but look at all these other interesting ones coming in,
and&nbsp;if you make them incredibly small it's the Mandelbrot set! It's true: the limit of plotting&nbsp; Julia sets according to their "c" values is, indeed, the Mandelbrot Set!
But the Mandel Set, of course, was just a plot of "c" values. And it kind of makes sense because, if you're starting at the origin and&nbsp; you're adding "c", So the Mandelbrot Set's, it's not all&nbsp;"the Julia Sets,"
but basically; you know what, let's-let's increase the samples per grid, make it a bit&nbsp;bigger, let's actually fade across a bit and this is, um, actually the image I was showing you before...
The Julia Sets are just the Mandelbrot Set that we're trying to get away from, In fact, I've squared myself!]
Now, if these fractals are all about squaring a complex&nbsp;number; why, when I fractaled myself on camera at the beginning of the video did I use a square root? Why was I going in the other direction?
Well, I was literally playing&nbsp; the game of complex sumo in reverse! Because, to win the game, to be in the set, you have to stay inside&nbsp; the unit circle.
and then play the&nbsp;game backwards to see where you could have been the move before? Or the move before that? Or the move before that? And still ultimately end up in the circle.
That's what I was doing. This is what&nbsp;it looks like if you just apply it to a circle. This video was partly inspired by a Matt Henderson&nbsp; tweet, from 2020, that I saw where they've got this phenomenal animation showing, basically, that effect.
I was like, "well I want to do that but I want to apply it to video footage." So I sat down and wrote&nbsp; my own code, which is why it's terrible. Humankind&nbsp;have put a phenomenal amount of effort into this stuff because that's how we do visual effects
I was doing it so inefficiently. I mean, there&nbsp;are shaders and all sorts of things you can use, and that's how Christian Lawson Perfect was&nbsp;able to make such a great interactive Julia set explorer -
highly recommend you check that out. But I wanted to do it myself. Much like&nbsp;the sponsor of this video: Jane Street. They use mathematics to solve complex problems in The&nbsp; Financial World,
You can't&nbsp;give them money, they don't want it. They want to either, well they want you to either apply for&nbsp;a job And this time I'd like to mention, in addition&nbsp; to their exciting maths and programming and trading roles,
they do employ people in other&nbsp; fields which you may not have considered: The Infrastructure Teams form the backbone of Jane&nbsp;Street, keeping the day-to-day operations of the firm running seamlessly. they deal with the taxes and the finances, which are non-trivial.
They manage their offices, the human resources, they help direct their creative&nbsp;projects - Now, they are hiring people for all of those&nbsp;teams in their offices Now, I visited these offices: they are amazing spaces!
They've been designed with people in mind and, between you and me, very mathsy people&nbsp;in mind. So if you're interested in finding out more - do check out the link in the description&nbsp;below.
the many, many opportunities you could have to work at&nbsp;Jane Street. And huge thanks to Jane Street for&nbsp;sponsoring this,
The video is over but I'm still here because&nbsp;there's one more cool thing that Christian made for me that I wanted to share with you. Before, I moved the mouse around the Julia Set itself to change the "c" value.
Christian did a second one, where I moved the mouse around The Mandelbrot set and that changes the "c" value of the Julia Set. And that means you can see how the "c" value for each Julia Set And if I stay inside the Mandelbrot,
if I go outside Mandelbrot, it's now infinitely many disconnected fractal bits of&nbsp;dust. and the moment I step back&nbsp;inside, even this ridiculous bit of the fractal set,
But, because it's one of&nbsp;the ridiculous bits it's like a crazy connected... I've been meaning to make this video for a very long time five or six videos another video came&nbsp; out covering similar topics
But it's been, it's been several years since that came out (I'll link to it below, more great things about the&nbsp; link between Julia Sets and The Mandelbrot Set, It's just so cool! I, like I say I really could spend ages exploring all of this.
and a reminder I'm going to the&nbsp; Edinburgh Festival Fringe doing all 23, or whatever, shows And then I'm on tour around the UK.
A few people have asked, 'cause they've seen on some, but not all an upgrade to-to VIP, which is a bit of a&nbsp; misnamed type of ticket. come in. watch&nbsp;the sound check when I'm setting up the stage.
and you get some exclusive merch. And I'll do the kind of meet and greet for you before the&nbsp;show: So, if you're someone who wants to&nbsp;see the sound check and wants to leave straight after the show you can do that.
I look forward to seeing you all there hopefully, we'll announce more dates soon. And finally, I'd like to apologise for starting the video with&nbsp;squared Matt as a jump scare. He's behind me, isn't he? "Hi!
Why would you do that? "I want to say like and subscribe!" Just... Oh my goodness, haunting. Good! I'm sorry.
