WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:02.134
This is the mandelbrot set.

00:00:02.166 --> 00:00:05.476
Known for its beauty at all resolutions and scales,

00:00:05.533 --> 00:00:07.931
and its stunning self-similarity,

00:00:07.966 --> 00:00:11.012
it is the cornerstone example of a fractal.

00:00:11.066 --> 00:00:17.040
What's more, if we just change our perspective, or, rather, spin our viewpanel through the fourth dimension,

00:00:17.100 --> 00:00:20.722
we get a similar fractal called a Julia set.

00:00:20.766 --> 00:00:26.524
The Mandelbrot sets and the Julia sets are in planes orthogonal to each other in a certain 4d-space.

00:00:26.566 --> 00:00:31.652
This much is well-understood. And don't worry, I'll explain how all of that works in a sec.

00:00:31.699 --> 00:00:37.338
But before that, I wanna twist our perspective once more, into yet another orthogonal 2d-plane.

00:00:37.894 --> 00:00:41.627
This is another natural extension of the Mandelbrot Set which I found.

00:00:41.760 --> 00:00:45.797
But, let's take it from the start.

00:00:45.800 --> 00:00:47.748
The original mandelbrot set.

00:00:47.799 --> 00:00:50.222
It lives in the complex plane.

00:00:50.266 --> 00:00:54.272
The equation which generates it is surprisingly simple.

00:00:54.333 --> 00:00:57.259
It tells us how to update this variable Z.

00:00:57.299 --> 00:01:02.121
Let's let C be 1 just for now. We'll try other values in a sec.

00:01:02.166 --> 00:01:04.780
And let's let Z start at 0.

00:01:04.833 --> 00:01:08.479
To get the next Z value, we plug 0 into the formula.

00:01:08.533 --> 00:01:10.187
We do some arithmetic,

00:01:10.233 --> 00:01:12.607
and we find the updated value of Z.

00:01:12.666 --> 00:01:14.632
We then take that updated value,

00:01:14.666 --> 00:01:16.704
plug it into the equation,

00:01:16.766 --> 00:01:18.516
and do the math again.

00:01:18.566 --> 00:01:21.132
We want to keep repeating this over and over.

00:01:21.166 --> 00:01:23.348
Just square, and add one.

00:01:24.400 --> 00:01:26.582
Over and over.

00:01:30.633 --> 00:01:34.015
In our case, Z is blowing up towards infinity.

00:01:34.066 --> 00:01:36.416
Let's try that again.

00:01:36.466 --> 00:01:41.312
This time, let's let C be negative 1 instead of positive 1.

00:01:41.366 --> 00:01:43.596
Plug in 0 to start off Z,

00:01:43.633 --> 00:01:45.719
iterate,

00:01:49.799 --> 00:01:53.278
and this time, we fall into a cyclic trap.

00:01:54.299 --> 00:01:58.162
Remember, we're working with Complex numbers here, not just real numbers.

00:01:58.233 --> 00:02:01.015
C can be a number like i.

00:02:01.066 --> 00:02:05.480
Running our simulation again, in this case it ends up stuck as well.

00:02:05.533 --> 00:02:09.083
The differences in behavior here are the key.

00:02:09.133 --> 00:02:13.715
Depending on what value of C we choose, sometimes Z will stay close to zero,

00:02:13.766 --> 00:02:16.020
and sometimes it won't.

00:02:16.066 --> 00:02:20.408
That is the difference between a point inside the mandelbrot set, and outside it.

00:02:20.433 --> 00:02:23.911
If we make a plot of C in the complex plane,

00:02:23.966 --> 00:02:26.868
we'll paint points white if they blow up,

00:02:26.933 --> 00:02:29.211
and black if they don't.

00:02:29.266 --> 00:02:31.136
Do that for all the points...

00:02:31.166 --> 00:02:35.460
That gives us the characteristic shape of the Mandelbrot set.

00:02:35.533 --> 00:02:39.803
We can additionally add color to show how long it takes for the number to blow up.

00:02:39.833 --> 00:02:42.855
And that's how you get these pretty pictures.

00:02:42.900 --> 00:02:45.514
But let's look back at our equation.

00:02:45.566 --> 00:02:50.268
We not only had the free choice of what C can be, which is what we're plotting on screen,

00:02:50.333 --> 00:02:54.123
but also the option to choose a starting value of Z.

00:02:54.166 --> 00:02:57.236
Before, we always started Z at 0...

00:02:57.300 --> 00:02:59.938
But let's start at 1 and see what happens.

00:03:01.690 --> 00:03:04.162
Woah! That's a totally different fractal.

00:03:04.437 --> 00:03:08.024
We can play around with different values of Z all day, just like with C.

00:03:08.064 --> 00:03:09.636
Which makes you think...

00:03:09.066 --> 00:03:11.992
we started by fixing Z at zero,

00:03:12.033 --> 00:03:15.031
and making C vary as a function of the pixel.

00:03:15.099 --> 00:03:19.466
What if we fix C, and make Z start where the pixel is?

00:03:19.500 --> 00:03:21.729
We get a Julia set!

00:03:21.800 --> 00:03:26.598
So, we have 2 variables which we use to seed the iterated procedure.

00:03:26.633 --> 00:03:31.047
We get to choose C, and what Z should start at.

00:03:31.099 --> 00:03:37.961
Since each of these has a real and imaginary component, that's 4 degrees of choice- a 4D shape.

00:03:38.000 --> 00:03:42.390
Parameterizing the pixels of the screen as C yields a Mandelbrot set,

00:03:42.466 --> 00:03:46.400
whereas parameterizing Z yields a Julia set.

00:03:46.433 --> 00:03:49.956
Now, since we are looking at the space of Z right now, we can 

00:03:49.956 --> 00:03:53.653
also watch what happens to Z over time throughout our simulation.

00:03:53.766 --> 00:03:56.956
Let's let this be our starting point.

00:03:57.000 --> 00:04:01.342
Iterate z^2 + c once, and we get this new point.

00:04:01.400 --> 00:04:04.758
Iterate again, and again, and again...

00:04:04.800 --> 00:04:08.662
We can see how Z changes across iterations.

00:04:08.699 --> 00:04:11.001
Moving the point around a little,

00:04:11.066 --> 00:04:14.640
you can tell the difference between when it converges inside the set,

00:04:14.699 --> 00:04:17.673
and when it explodes off to infinity.

00:04:18.699 --> 00:04:24.290
When we start near the border, it dances around for a bit and then decides to explode.

00:04:24.366 --> 00:04:28.492
Looking back at the original equation, there's a knob we've left unturned.

00:04:28.533 --> 00:04:33.907
This exponent- what if, instead of squaring Z, we cube it?

00:04:33.966 --> 00:04:35.164
Here's what we get.

00:04:37.199 --> 00:04:40.269
This is a third-degree Julia set!

00:04:44.333 --> 00:04:47.307
We can look at its mandelbrot counterpart too.

00:04:51.333 --> 00:04:53.971
We can experiment with the exponent all day.

00:04:54.033 --> 00:04:55.999
Here's an exponent of 4.

00:05:00.033 --> 00:05:01.879
We can even make it a non-integer.

00:05:02.933 --> 00:05:06.243
Heck, we can even make it a complex number too!

00:05:19.300 --> 00:05:24.362
With a purely imaginary exponent, you get these alien tendrily figures.

00:05:24.399 --> 00:05:30.997
To be clear- this is still fundamentally a mandelbrot set! All I've done is change the exponent.

00:05:31.066 --> 00:05:35.624
So, in some sense, I guess we really had 3 knobs to turn after all!

00:05:35.666 --> 00:05:38.304
And that, to me, raises another question.

00:05:38.366 --> 00:05:42.660
What if we now change the pixel to represent the exponent?

00:05:42.699 --> 00:05:49.322
So, this is the third orthogonal plane in a six-dimensional shape. I call it the X-Set.

00:05:49.366 --> 00:05:53.972
We are now fixing Z and C, and letting X vary with the pixel.

00:05:54.033 --> 00:05:58.639
I'll add panels on the right which parameterize each of the 3 variables.

00:05:58.699 --> 00:06:04.218
These are the 3 orthogonal 2-D planes corresponding to Z, X, and C.

00:06:04.266 --> 00:06:09.664
Here's a tour of the X-Set, by moving the origin around in 6-space. Enjoy!

00:06:44.699 --> 00:06:50.913
There's one more thing which I thought was too cool not to share. Spinning back into Mandelbrot territory,

00:06:50.966 --> 00:06:54.924
if we zoom into the armpit of this miniature mandelbrot...

00:06:54.966 --> 00:06:58.996
It's a mini Julia set, inside the Mandelbrot set!

00:06:59.066 --> 00:07:02.184
Now, burn this shape into your mind and watch,

00:07:02.233 --> 00:07:04.391
as I spin into Julia land...

00:07:04.433 --> 00:07:10.143
it's a carbon copy of the Julia set for the mandelbrot C value which we were zoomed in on!

00:07:10.199 --> 00:07:15.813
The takeaway here is that these fractals are not only self-similar, but also similar among one-another.

00:07:15.866 --> 00:07:19.608
I don't know what I was expecting when I parameterized the Mandelbrot exponent,

00:07:19.633 --> 00:07:21.791
but it sure wasn't _more julia spirals_,

00:07:21.866 --> 00:07:24.672
and _more mandelbrot bulbs_!

00:07:24.699 --> 00:07:29.617
This degree of cross-parameter self-similarity totally took me by surprise.

00:07:31.666 --> 00:07:33.176
I hope you enjoyed!

00:07:33.233 --> 00:07:35.367
This has been 2swap.

