Расшифровка видео
Intro
0:00
When I was in school, I wondered, like many others: what happens in between the different forms of graphs of elementary functions? How does this, become this, become this, or become this?
0:12
And what’s the deal with the Pac-Man like behavior around division by zero? It made no sense to me
0:17
that these wildly different shapes and features have nothing to do with each other. There had to be some hidden metamorphosis between the integer powers. And there was! Extending the domain and
0:28
range of these functions to Complex numbers does give us a much deeper insight. But we no longer
0:33
have the luxury of graphing two values against each other in two dimensions. We’re stuck with either abstract algebraic answers, or slices of the story akin to taking x-ray images of a
0:44
cocooned caterpillar turning into a butterfly. I was never quite satisfied with that. So today’s video
0:50
will be taking a somewhat unorthodox approach to indulge the intuition of my younger self.
0:55
We’ll introduce complex arithmetic as it’s needed, and draw almost everything in glorious
1:01
uncomplicated 2D. The goal is to watch the wings of the butterfly form and grow. I hope you enjoy!
1:07
Let’s first just see what happens if we start with f(x) = x, the simplest possible
The Messy Powers
1:20
linear graph. Make the first power of x explicit, and vary that power up to 2 in discrete steps.
1:27
The negative side seems to be jumping up and down and disappearing in between. Let’s look at
1:32
a few specific examples. For x to the power of 1.5, we only get a graph in the first quadrant, where
1:39
both x and f(x) are positive. Both the domain and range of this function are Real numbers
1:46
greater than or equal to zero. This is because x to the power of 1.5 is actually x to 3/2, which is
1:53
a square root of x cubed. For negative values of x, x cubed will be negative and when
2:00
that negative ends up under a square root, there won’t be any real valued answers. So right off the bat,
2:06
half of our shape is missing. In this case we can still recover it, because it’s just the other
2:11
square root. There are always two. We can get both by treating our expression as an equation
2:17
instead of as a function. We’ll write y = √x³ and then square both sides. That gives us y² = x³
2:27
and the graph looks like this. It’s just the piece we’ve already had, reflected about the s axis.
2:33
Let’s just take that as it is and move on. What about x^1.4? Again, we make sense of this by
2:41
turning the exponent into a fraction. In this case 14/10, that simplifies to 7/5, which makes f(x)
2:49
the fifth root of x to the 7th power. The power under the root is odd, so it can yield a negative
2:56
but that’s okay since the degree of root is also odd and we just get negative results out. We also
3:04
don’t have to deal with multiple roots since there is only one odd degree root of a number in the Reals.
3:09
This shape does look like a slightly bent line, an intermediary step on the way to a parabola.
3:16
But the left side doesn’t look like it has any intention of bending upwards. Let’s keep exploring.
3:22
What happens at x^1.6? That’s 16/10 or 8/5, so same story with the odd degree root; negatives
3:31
are allowed. But this time it doesn’t really matter, since under the root we are raising all numbers
3:36
to an even power, 8, making them always positive. That gives us a shape similar to a parabola, but it
3:43
came out of the blue without following any pattern from the shapes we’ve seen before. So there isn’t
3:48
really a smooth transition between the first and the second power. The negative arm of the graph jumps erratically between the three remaining quadrants and we didn’t even try to plug in an
3:59
irrational power. That’s a whole other can of worms we won’t be opening today. Why is this so messy?
4:06
And why is all the mess happening when x takes on negative values? It turns out that negativeness
4:12
is a part of a much bigger story, where numbers can shoot off not just away from each other relative to zero, but in all other directions too. I have a whole video about that, a link should pop up in
4:23
the top right corner, and it’s also available in the description. Raising negative numbers to
4:28
non-integer powers can have the effect of “breaking down” negativeness and taking numbers away from the
4:33
Real line altogether. Let’s do a quick rundown of what these so-called Complex numbers are and how
4:39
they work. All the Real numbers can be arranged in an order on a line relative to zero. We get
About Complex Numbers
4:47
Complex numbers when we define another direction for numbers orthogonal to the Reals. This forms a
4:53
two-dimensional plane, and specific complex numbers are points on this plane. All the Reals are
4:59
of course included, but there’s also all these other numbers above and below the Real line. Numbers that
5:06
lie specifically on this new vertical line are called Imaginary, and they are the same as Reals in
5:11
every way except for the direction in which they are spanning, just like negatives are equivalent
5:16
to the positive, except for the direction. And just like a unit of movement for positive Reals is 1
5:23
and for negatives -1, imaginary numbers also have their own version of the number 1, called i,
5:29
that happens to point at a right angle away from the Real line. So any number on the Complex plane
5:35
can be expressed as a combination of Real and Imaginary, like x and y coordinates of a point
5:41
on a regular coordinate system. And we express this combination by adding them together. An example of
5:48
a complex number would be 2 + 3i, and you can think of it as walking away from zero, first by
5:54
2 in the positive direction, and then by 3 more in the Imaginary direction. This also works
6:01
as you would expect in the other quadrants. What can we do with this? Within the regular Reals, we
6:08
have this concept of absolute value, which gives us the magnitude of a number independent from
6:13
its direction. The same thing exists for Complex numbers, but this time we have a whole circle of
6:19
infinitely many complex numbers that are the same distance away from zero, and therefore all
6:25
share the same absolute value or magnitude. And this is what we we’ll need for our journey today.
6:31
Instead of considering just positive and negative numbers, we’ll be plugging in the entire range of
6:36
directions for each magnitude and tracking what happens to them as we vary the power we raise x to
6:42
in our expression. By doing that, we are extending the domain and range of our functions to Complex
6:48
numbers. Two coordinates go in, two coordinates come out. This is not as simple as drawing a line.
6:55
Basically all the points on the plane map to some other points, also on on a plane, and we can’t plot
7:01
them against each other because we can’t draw in four dimensions. This is where the unorthodox part
7:06
comes in. We’re going to compress the behavior of the Complex valued function onto a single Complex plane.
7:12
Let me walk you through it. We’ll start by taking the function f(x) = x², and importing it
Importing a Function into the Complex Plane
7:20
into the Complex plane. We do this by redefining it as all Complex number z of the form z = x + f(x)i,
7:29
so actually x + x²i, and for now we’ll just use Real inputs for x. This keeps the shape exactly
7:39
the same. Only now we have the advantage that we can also plug a Complex number in for x and see
7:45
where the value of z we get ends up. Let’s first see what this looks like, and then we can talk
7:51
about what’s going on behind the scene. First we’ll take all Complex numbers of magnitude 1. We’ll
7:57
start taking them from the Real value of -1 here, going around through the negative Imaginary
8:04
half of the circle to positive 1, and then back to -1 around through the positive Imaginary half.
8:10
All right, now we draw the z values in the same order. Watch the bigger Complex plane on the
8:16
right. The curve we get starts at the regular point of the parabola
8:22
for x = -1, travels to the regular point for positive 1,
8:28
and comes back to x = -1 another way. Let’s do the same for x of magnitude 1/2.
8:35
And now we zoom in a bit, and fill in magnitudes between 0 and 1.
8:43
You’ll notice that for magnitudes of 1 and 1/2, which were drawn twice, the curves appear a
8:53
bit brighter than the rest. In this visualization, curves drawn over each other enhance brightness.
9:00
Let me remove them and dim the axes so we can observe where else this is happening. We have
9:06
a bright spot right here, and it appears exactly where the curve for magnitude 1/2 formed a kink.
9:13
This is the focus of the parabola. We’ll mark it with a white dot. Now remember, we’re getting this
9:20
by plugging the function into our expression for z shown on the left and graphing the values of
9:25
z on the complex plane for chosen ranges of x. The main thicker shape that coincides with the
9:32
graph of the parabola we got from Real values of x, and the colored curves from plugging in a
9:38
series of Complex values of the same magnitude, ranging from 0 to 1. With this established, we
9:45
can play around with the function. I’m going to extend it to a general second degree polynomial.
9:51
By changing the B and C terms, we can move the parabola, so let’s vary them just slightly to see
9:56
what happens. Don’t worry about specific values we’re using for B and C, this doesn’t really matter.
10:01
All right, the shape formed by the colored curves is starting to turn, but the bright spot
10:10
we found still follows the focus. Flipping the parabola by changing the sign of the A
10:15
parameter also doesn’t disturb that property. This gives us an opportunity to vary the A parameter
10:22
gradually back from -1 up to 1 and watch the parabola transform between downward and upward
10:28
facing. In between it will hit zero, making the function linear, so we’ll get our first chance
10:34
to observe a parabola transforming into a line and vice versa. Let’s take the whole screen for
10:40
that. Okay, the focus gets launched out, the curves re-form into concentric circles, and then the focus
10:51
reappears from the other side, reassembling into a mirrored image of the whole setup.
10:56
It may appear as if the focus detaches from the the bright spot phenomenon formed by the curves, but this only happens because we’ve drawn the curves for a very short range. If we increase
11:06
the range, like this, they will follow along longer. If we were to extend them to Infinity, they would
11:12
keep following along. The focus travels along this straight line, aligned with this feature
11:18
that looks like a ray, formed where the curves intersect themselves. We’re seeing a hidden layer
11:24
of the behavior of the parabola pop out. And now that we’re a bit more familiar with this
11:29
way of graphing and how it behaves, we’re ready to go back to the experiment we started at the
11:34
beginning of the video: varying the power we raise a single instance of x to. We’ll start with a simple
11:41
f(x) = x, and for this regular line, the curves formed from Complex values of x would just be
11:47
concentric circles, like we’ve seen before. Let’s remove them and take the power up a notch to 1.1
11:53
Now we have two lines on the negative side. What’s going on here? Let’s draw in just one curve
12:02
for x of magnitude 1, again starting at -1, and going all the way back around to -1.
12:10
We started with -1 and ended with -1, but somehow our curve didn’t connect back to itself.
12:17
How is this possible? I’m sure you’ve heard of the famous Euler’s Identity, the one that states
Overshooting with Euler
12:23
that e^iπ = -1. This is actually a special case of representing a Complex number
12:30
in terms of magnitude and an angle. The full form would look like this. So a Complex number z given
12:37
by this expression would be M distance away from the origin, at a Theta angle in respect to the Real
12:43
axis, which means its Real and Imaginary parts could be obtained trigonometrically like this.
12:50
The famous special form of Euler’s Identity is just a Complex number of magnitude 1 and an angle of
12:56
π radians: halfway around around a circle. And here’s a catch: we can hit that same spot where
13:03
the number -1 lies with an angle of π, but also with an angle of 3π, or any odd number of
13:10
increments of π. And we can go the other way around too. Remember, I’ve shown you that when
13:15
we pick the Complex values of x we put into our function, we start at -1 and travel this
13:22
way around to get back to -1 again. The way these values are generated behind the scene
13:28
is that we’re ranging the angle from -π to π. The round bracket on the left just means that
13:35
we’re only including values strictly larger than -π, because this ensures that every
13:41
point is represented only once. Why this range in particular? It follows certain conventions in
13:48
Complex arithmetic, but long story short, you could say it’s the range that gives us the nearest of
13:53
the infinitely many representations of a Complex number we can get in this form. We reach all angles
14:00
with an overall minimum amount of travel from the angle of zero. Now let’s look at raising a Complex
14:07
number in this form to a power. The exponent is going to distribute. It’s going to affect the
14:12
magnitude normally, like it would any Real number, and it’s going to multiply the angle. Now we can
14:19
finally examine the case of our function. We were raising -1 to the 1.1 power. We’ll do it first
14:27
as the angle of -π. Okay, the magnitude we can get rid of, because 1 to the power of anything is just 1,
14:35
and we bring the 1.1 next to π so the angle is easier to comprehend. Now we do the same for
14:42
the angle of positive π. These two expressions end up in different places on the Complex plane
14:48
and escape our initial constrained range. One overshoots a bit into the positive Imaginary
14:54
side, and one into the negative. Neither of those two numbers are Real, they are both detached from
15:00
the Real line. If we were drawing the graph of the function in an ordinary way, these values, and
15:06
generally all the values for negative inputs of x, would simply not be shown. But we’re not
15:12
drawing the graph of the function. We are instead, remember, showing numbers of the form z = x + f(x)i
15:18
on the Complex plane. And these numbers exist for any input of x we can think of,
15:25
at least for functions we’ve considered so far. In the specific specific case of our function, this
15:30
results in lines on the negative side slightly deflected from each other. All right, enough
15:36
background. Let’s fill in some more curves and slowly crank the power the rest of the way up to 2.
15:41
Okay let’s look at that again, rolling back to 1… and again to 2. We can see the results
15:54
for negative x values rejoin each other as we reach the next integer power,
15:59
and in doing so, wrapping the span between the negative and positive sides over itself to
16:05
form the focal point. Let’s push this model a bit further. How does x² become x³?
16:14
Looks like the focus that already existed survives, and another one forms through the same wrapping back
16:20
onto itself motion. But there’s a problem: there is no such thing as a focus for the graph of x³,
16:26
let alone two such points. This is where the geometric definition of a focus and the behavior
16:33
of our system go their separate ways. But never mind, it looks interesting, so why don’t we crank
16:39
the power up some more. Let’s go to x to the fourth power, and then to the fifth. Right. It’s making less and
16:49
less sense to think of these points as foci. We get them in areas where the graph of the function
16:55
bends, but also elsewhere seemingly unrelated to what the graph is doing. But if we add lower power
17:02
terms to the polynomial, so that we express all the possible extrema, the points will travel to align
17:08
with them. I increased the range and density of the curves so you can better see these features.
17:14
Pause here if you’d like to take a closer look. This phenomenon of curves splitting between integer
17:21
powers and joining at them has to do with roots. Any non-integer power is really a combination
Roots
17:27
of a root and raising to a power, like we’ve seen earlier. Let’s write Real numbers a bit more
17:33
explicitly using Euler’s identity. Positive Real numbers can be represented by any angle that is
17:39
an even multiple of π, because all of those are on the Real line on the positive side of zero.
17:46
2π is one full revolution. Likewise, negative Real numbers can have any angle that is an
17:52
odd multiple of π. Multiplying those angles by a specific integer always yields one definitive
18:00
location on the circle, no matter what choice of K we make. If we multiply an odd number by 3 [i.e.],
18:06
it will always be odd, no matter which odd number we chose. And if we multiply an even number by any
18:12
integer at all, it will stay even, reflecting the fact that positive numbers stay positive under any
18:18
integer power. We have multiple representations of the same numbers, but we get the same result
18:24
under exponentiation with integers. However if we multiply those different angle representations
18:31
by a fraction, we get different results, the most familiar of which is the case of 1/2, the square root.
18:37
The 1/2 will make the period cycle just one π, which means it will sometimes be even and
18:44
positive and sometimes odd and negative. We get the two roots of 1, and the same happens for
18:51
any positive number. There’s quite a lot of nuance here, and we’ll explore it by driving our graphing
18:57
method further down, below the first power. Let’s again first just go down a notch to 0.9. Here we
19:06
see a similar separation happening like before, but this time, the lines are not crossing over
19:12
each other. They are instead opening up a gap between them. Let’s follow this down to 0.5. 1/2.
19:20
The square root, that gives us half of a parabola turned on its side. The lines for negative values
19:28
of x got compressed onto the negative side of the Real axis, with a bit sticking out on the positive side.
19:34
And that bit is exactly touching the focus of this half drawn sideways parabola. The proper focus
19:41
is back. How about we add the negated version of this function in as well, and complete the picture?
19:49
Right the parabola is now fully reconstructed, along with the same shape of curves we got for
19:55
x squared, and we also got this extra bit that looks like the handle of a pitchfork. Of course, this is
20:01
not the actual graph of the function you see on the screen. We’re doing this z-value shenanigans
20:06
and cherry-picking which parts of it to show. I’m going to leave it up to you to ponder on why we get thepPitchfork handle here. Meanwhile, we continue our descent down the powers, and things
20:16
get even more interesting at our next stop: 1/3 or the cube rout. Just doing what we’ve done before,
20:24
we get to this picture. But there’s something off here: this function does actually have Real outputs
20:30
for negative values of x. If we drew it the regular way, it would look like this: a perfect and complete
20:37
inverse of x cubed. That’s because within the Reals, there is only one cube root of a number, and it’s
20:44
always the same sign as the number itself. So why do we get this other picture instead? We have to
20:51
look at Complex exponentiation again to find that out. To keep it simple, we’ll again just consider
20:57
the general positive and negative cases for the number 1, expressed using Euler’s Identity.
21:03
It works the same for other magnitudes. First we have the positive case e the power of 2kπ. We raise that
21:11
to the 1/3 power, which gives us 2/3 K π. As we iterate K, we get the following angles; and then
21:21
they repeat. Only one of them, this one, is a Real number, and it’s positive. For the negative case,
21:28
we’ll get 2/3 K + 1/3, all times π. As we iterate K, that will give us these three angles, of which
21:36
again, only one is Real, this time negative. The way we draw our graph, the positive side gets
21:43
represented by an angle of zero, that stays zero, so we get positive outputs for positive inputs and
21:49
everything just looks normal. But on the negative side, we’re coming in with angles of -π and π,
21:55
which give us the positive and negative 1/3π angles, the two Complex ones. That hints at there being
22:03
two more versions of the graph we could draw to complete the picture, just like we had an extra one to complete the square root sideways parabola. We can get these missing two by multiplying the
22:14
function with a unit turned 1/3 of the way around a circle, like this. And then one more time, like this.
22:21
So let’s draw them, one by one separately at first. This is the one we already saw, and then we
22:32
get this one, which completes the Real valued graph and gives us the continuation of the two negative
22:37
sides. But notice how the curves for Complex values just end up in a vacuum, not connecting to any of
22:44
the thicker lines. Their new home has been defined by the previous stage: here’s both of them together.
22:52
Finally, we get this one, that for some reason just contains the funny separated lines without
22:57
any part of the Real graph. These are in fact the solutions we’ve already seen for Complex values of f(x),
23:03
they just all appear in the opposite order. And here’s all three together. I know, this looks messy.
23:12
There’s too much going on in this picture. But there’s an amazing Elegance hiding behind it
23:17
First let’s just notice that we’ve again fully reconstructed the shape of the colored curves for x³
23:24
And now let’s just focus on the thicker line depicting results for the Real valued inputs.
Flower Pressing
23:31
What we’re actually looking at are three copies of the x³ shape pressed onto the Complex plane
23:37
in a manner similar to what flowers look like when they’re physically pressed onto a page of a book. To show you what I mean by that, we’ll briefly change perspective. Let me hide the graphs
23:49
and we’ll go back to the familiar coordinate system where the horizontal axis represents x,
23:54
and the vertical f(x). Now we slightly upgrade it: we’ll declare the vertical axis to be just the
24:02
Real component of f(x), and add another axis, going directly towards you, for the Imaginary component of f(x).
24:08
We can get away with using three dimensions here because we’re only considering
24:15
Real valued inputs for x, so it’s a mapping of one dimension to two. And now we draw our three graphs again.
24:23
This is what they look like in the space we’ve created. We can
24:31
look at the whole resulting shape as three cubic curves. Turning the coordinate system around to face straight down the x axis, we reveal the three
24:52
planes these curves occupy. We see that these planes are offset from each other by a third
24:58
of the way around a circle. Note that we were measuring the angles going from the positive
25:04
side of one curve to the positive side of another. Now when we look at our simplified model again,
25:10
we have a better idea what the shapes we’re seeing actually represent. We’ve just compressed these
25:15
rotations into a visual deformation, a sort of fake perspective in two dimensions. We’re not
25:22
seeing the true picture, but there’s an amazing amount of symmetry preserved. These three curves,
25:27
when inverted, represent graphs of three regular cubic functions, and all three of these functions,
25:34
when run through the same z expression we’ve used this whole time, yield the exact same shape,
25:39
with the quasi-focus points appearing in the same places. So we’ve made a long pit stop at
25:46
the third root, but it’s time to move on. We’re going to put multivaluedness behind us again to
Down to and Around Zero
25:52
have a simpler image to look at, and make our way towards the next interesting power: zero. Of course,
25:58
that’s just a straight line through 1. Let’s look at the journey between the power of 1 and
26:04
zero again: two simple straight lines separated by the thick woods of multivalued roots inbetween them.
26:10
And as we approach the power of zero, we can see a discontinuity form: the dreaded zero
26:17
the power of zero. Going even just the tiniest bit under zero power results in values approaching
26:23
the vertical axis exploding to Infinity. So we have this situation right over the power of zero,
26:28
and this right under it. There is something remarkable happening at the singularity when
26:36
both values are exactly zero, and to understand it, we’ll consider the limits as we approach it from
26:42
different directions. The most commonly considered ones are x^0, our function itself,
26:49
as x goes to zero from the positive and negative sides, which both work out unsurprisingly to 1.
26:56
The same happens if we simultaneously approach zero in both base and exponent. The negative side
27:02
limit only exists if we allow approaching from Complex numbers, but it’s there. If we fix the
The Big Bang
27:07
base to zero and approach the zero-th power from the positive side, we also unsurprisingly get zero.
27:13
But if we plug any negative number in the exponent, forget the limit, we get this peculiar
27:19
mathematical object called complex Infinity. Its formally used symbol is just the regular Infinity
27:25
we’re used to, but I find this confusing because it can easily be mistaken for positive Infinity.
27:32
Wolfram Alpha uses a notation with a tilde over it to make it more distinct and I will adopt that.
27:37
So what is this beast? To understand it, we need to consider how zero works in the Complex world.
27:44
In the Reals, zero is the only number that isn’t either positive or negative.
27:50
And in the Complex world, since there are infinitely many directions, this ambiguity encompasses all of them.
27:55
Zero is basically a circle of radius zero in the Complex plane, its direction is undetermined. Which
28:04
in some sense means we need to consider them all when operating on it. Raising this number
28:09
to any negative power turns it into division by zero, which is commonly left undefined, but within
28:15
a special set called the Extended Complex Numbers, that is, Complex numbers with this omnidirectional
28:21
Infinity added to it, this operation is actually allowed since it yields a single definitive answer.
28:28
That means that our Singularity goes through a kind of Big Bang; the infinitely small circle of
28:34
zero instantly becomes an infinitely large circle, a place where all Complex numbers, regardless of
28:41
the direction they were headed out in, will meet. Keep that in mind as we travel down to the -1 power.
28:50
At the end of this journey, we get a familiar function, x to the -1 power, better known as 1/x,
28:55
which has this property of looping back from Infinity around the x value of zero. Well now
29:02
you know where Pac-Man went and where he’s coming back from. Along the way, we’re passing multivalued
29:08
roots, just like we did on the positive side, and finally we form the two foci of the hyperbola
29:14
in a similar way like the single focus showed up for the parabola. There’s a lot more to say
29:19
about these phenomena, but I’m going to leave that for another time. This inverted version of
29:25
the behavior we’ve seen on the positive side continues on down to the lower powers, like this.
Enjoy!
29:34
I suspect all this stopping and restarting we’ve done might have felt a bit frustrating
29:39
so what I want to do now is to just let the animation run from -4 where we currently stand, back up to 5, so you can see the whole story come together. And since we’re
29:49
done explaining, we’ll crank up the range and resolution to make it more pretty. Here we go:
30:34
I hope you liked this journey! If you’d like to play around with this model,
30:45
I’ve included links to Desmos graphs where you can fiddle around with the parameters to get a feeling for how this model behaves. Links in the description. As a bonus,
Bonus Functions
30:54
let me show you some other notable examples visualized this way. The exponential function;
31:05
x to its own power
31:11
and back over constant 1 to my favorite: Gaussian function, the normal distribution.
31:19
And let’s enhance it a bit. and then we go back over the exponential function, and we draw e^ix.
31:31
Which we remember to be cos x + i sin x, so if we just take out the i-sine, we get the cosine on its own.
31:44
Thank you so much for watching. I hope you enjoyed and learned something new.
31:49
I’m curious to know what you think of the approach taken here, what questions it inspires, so please leave a comment and let me know. Here are some other videos
31:57
of mine, and consider subscribing if you haven’t already. Have a lovely day. Bye!