yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Harmonic Functions


9m read
·Nov 11, 2024

Hello everyone. So, here I'd like to talk about harmonic functions. Now, harmonic functions are a very special kind of multivariable function, um, and they're defined in terms of the Laplacian, which I've been talking about in the last few videos.

So, the Laplacian, which we denote with this upper right side up triangle, um, is an operator that you might take on a multivariable function. So, it might have two inputs; it could have, you know, 100 inputs; just some kind of multivariable function with a scalar output. I talked about it in the last few videos, but as a reminder, it's defined as the divergence of the gradient of F, and it's kind of like the second derivative. It's sort of the way to extend the idea of the second derivative into multiple dimensions.

Now, what a harmonic function is, is one where the Laplacian is equal to zero, and it's equal to zero at every possible input point. Sometimes the way that people, uh, write this to distinguish it, they'll make it kind of a triple equal sign, maybe saying equivalent to zero. This is really just a way of emphasizing that it's equal to zero at all possible input points. It's, you know, not an equation that you're solving for the specific x and y where it equals zero. It's a statement about the function.

To get our head around this, because it's kind of a, you know, as you're just starting to learn about the Laplacian, it's hard to just immediately see the intuition for what this means, um, let's think about what it means for a single variable function. If you just have some single variable function of x and you're looking at its second derivative, which is kind of the analog of the Laplacian, what does it mean if that's equal to zero?

Well, we can integrate it. We can take the anti-derivative and say that means that the single derivative of F... Well, let's see what functions have a derivative that's zero. The only functions are the constant ones, so C is just going to mean some constant here. If you integrate that again and say what function has as its derivative a constant, well, it's going to be that constant times x plus some other constant, some other constant K. So, basically linear functions.

If you're thinking of a graph, it's just something that's got a line passing through it like that. This should kind of make sense if you think of the geometric interpretation for the second derivative because if you're just looking at a random, you know, arbitrary function that's kind of curving, as it does, the second derivative is, uh, negative when this concavity is down. So, this right here would be a point where the second derivative is not zero; it's negative. And over here, when the concavity is up and it's got a sort of bow shape, that's where the second derivative is positive.

So, if we're saying that the second derivative has to always be zero, then it can't curve down, and it can't curve up, and it can't do that anywhere. So, basically, there's no curving allowed. So whatever direction it starts at, it's not allowed to curve. So, it just sticks straight like that.

But once we extend this to the idea of a multivariable function, things can get a lot more interesting than just a straight line. So, an example I've got—the graph here of a multivariable function that happens to be harmonic. So, the graph that you're looking at, this is of a two-variable function, and the function specifically is f of x,y = e^x * sin(y).

As we're looking at the graph here, um, hopefully it makes a little bit of sense why this is sort of an e^x * sin(y) pattern because as we're moving in the positive x direction, this here is the positive x direction, you have this exponential shape. This corresponds with the fact that over here we've got an e^x, so as you move x, it kind of looks like e^x, and it's being multiplied by something that is a function of y.

So, if you're holding y constant, this just looks like a constant. But notice, if that was a negative constant, if sin(y) at some point happens to be negative, then your whole exponential function actually kind of goes down. It's sort of like a negative e^x, look.

Um, but if you imagine moving in the y direction—so instead of the pure x direction like that... if we imagine ourselves moving, um, with the input going along—let's see what it would be. It would be this way, positive y direction. You have this sort of sinusoidal shape, and that should make sense because you've got the sin(y), and depending on what e^x is, the amplitude of that sine wave is going to get, you know, really high at some points. Here, it's going way up and way down, um, but if e^x was really small, you know, it hardly even looks like it's wiggling. Over here, it pretty much looks flat.

So, that's the graph that we're looking at, and I'm telling you right now, I claim that this is harmonic. This is a function whose Laplacian is equal to zero, and what that would mean is that as we go over here and we say we evaluate the Laplacian of f, which, um, just to remind you, there's a different formula. Rather than thinking divergence of gradient, that turns out to be completely the same as saying you take the second derivative of that function with respect to x, its first input, and you add that... let's see... second derivative with respect to x; you add that to the second derivative of your function with respect to the next variable, and you keep doing this for all of the different variables that there are.

But this is just a two-variable function, so you do this twice. The claim is that this is always equal to zero. So, I might say kind of equivalent at every possible input; it's equal to zero. Um, and I think I'll leave that as something for you to compute. It might be kind of good practice to kind of get a feel for, uh, computing the Laplacian.

But what I want to do is interpret what does this actually mean, right? Because you can plug it through, and you can see, ah yes, at all possible inputs it will be zero, but what does that mean? Because in the single-variable context, once we started thinking about the geometric interpretation of a second derivative as this concavity, it sort of made sense that forcing it to be zero will give us a straight line, but clearly that's not the case. This is much more complicated than a straight line.

For that, I want to give a kind of a different way that you can think about the single-variable second derivative. On the one hand, you can think of a negative second derivative as being this concavity where it's kind of frowning down. But another way you could maybe think about this is saying that all of the neighbors of your point—if you go a little bit to the left, right—you're... you've got an input point here, and if you go a little bit to the left, the neighbor is less than it. And if you go a little bit to the right, that other neighbor is also less than it.

So, it's kind of a way of saying, hey, if you look at the neighbors of your input, so if you happen to be making the claim that f' at some particular input like x_0 is less than zero, it's saying that all of the neighbors of x_0, all of the neighbors of that point, are less than it.

If you do a similar thing over at a positive concavity point where it's kind of smiling up, you say, well, its neighbor to the right has a greater value, and its neighbor to the left has a greater value. So, at some point where the second derivative instead of being less than zero happens to be, um, greater than zero, that means that the neighbors tend to be greater than the point itself.

Even if you're looking at a circumstance that isn't this idealized, you know, it happens to be a local minimum, but let's say you're looking at a graph—um, let's say you're looking at a function at a point where it's concave up, right? It's concave up, but, um, it's not this idealized local minimum kind of circumstance. So, instead, you might be looking at a point like this, and if you look at, you know, its neighbor to the left, that'll have some value that's actually less than your original guy.

So, the neighbor looks like it's less than it on the left, but if you move that same distance to the right, its neighbor is greater. But you would say on average, if you took the average value of the neighbors—the neighbor on the right kind of outbalances the neighbor on the left—and you would say on average, its neighbors are greater than the point itself.

So, let's say that input point there was like x_0. That would mean that the second derivative of your function at that point, you know, is greater than zero. So, with this positive concavity, you can also think of it as a measure of on average, are the neighbors greater than your original point or less than it?

The reason I'm saying this is because this idea of kind of comparing your neighbors to the original point is a much better way to contemplate the Laplacian in the multivariable world. So, if we look at a function like this, and let's say we're looking at it kind of from a bird's eye view.

So, we've got our xy-plane, right? This over here is the x-axis, and this up here is the y-axis. And let's say that we're looking at some specific input point with the Laplacian. You want to start thinking about a circle of points around it—all of its neighbors—and, in fact, think of a perfect circle. So, all of the points that are a specified distance away, the question the Laplacian is asking is: hey, are those neighbor points, on average, greater than or less than your original point?

This is actually how I introduced the Laplacian in the original video where I was giving kind of the intuition for the Laplacian. Um, you're asking: do the points around a given input happen to be greater than it or less than it? If you're looking at a point where the Laplacian of your function happens to be greater than zero at some point, that would mean all of the neighbors tend to be, on average, greater than your point.

Whereas if you're looking at a point where the Laplacian of your function is less than zero, then all of those neighbors, on average, would be less than your point. So, in particular, you know, if the Laplacian was less than zero, your point might look like a local maximum; or if the Laplacian was greater than zero, it might look like a local minimum because all of its neighbors would be greater than where it is.

But for harmonic functions, what makes them so special is that you're saying the value of the function itself, or the value of the Laplacian of the function at every possible point, is equal to zero. So, no matter what point you choose, those neighbors are going to be, on average, the same value as this guy.

So, the height of the graph above those neighbors will, on average, be the same. So, if we kind of look around the graph, what that should mean is let's say you're looking at an input point, you know, the output of this guy. If you looked at all of its circle of neighbors and kind of projected them up onto the graph, what it should mean is that the height of all the points on the circle, on average, are the same as that.

No matter where you look, that should kind of average out. And again, I encourage you to, uh, take a look at this function and actually evaluate the Laplacian to see that it's zero. But what's interesting is it's not at all clear just looking at this e^x * sin(y) formula that the average value of a circle of input points is always going to kind of equal the value of the point at the center.

That's not something you can easily tell just looking at that formula. But with what's not that hard of a computation, you can make this conclusion, which is pretty far-reaching, and this comes up all the time in physics. Um, you know, for example, heat is one where maybe you want to describe how the heat at a certain point in a room is related to the average value of the heat of all of the points kind of around it.

In fact, it comes up in all sorts of circumstances where you have some point in physical space, and something about that point, maybe like the rate at which some property of it is changing, corresponds to the average value at points around it.

So, whenever you're sort of relating neighbors to your original point, the Laplacian comes in, and harmonic functions have this tendency to correspond to some notion of stability. I won't go deeper into that now; this really starts to get into the topic of partial differential equations. But at least in the context of just multivariable calculus, I wanted to shed some light on interpreting this operator and kind of interpreting the physical and geometric properties that that implies about a function. And with that, I will see you next video.

More Articles

View All
Space Mountain Fears - Smarter Every Day 12
Intro music Hey. It’s Disney World, and it’s magic hours, which means nobody is here, so we get to ride everything. But we’ve always had this fear of Space Mountain; that if you put your arms up, you’ll get ‘em chopped off. So we got this trick we do, sh…
Astronaut Ron Garan: Anyone Can Achieve an Orbital Perspective | Big Think
What the orbital perspective is, is a slightly different way of looking at our global society and looking at our planet. It’s a perspective that takes a long-term view. It’s a perspective that takes a big picture view. And when we zoom out and see our pla…
Coparenting: A lifestyle innovation from our broke middle class | Alissa Quart | Big Think
So part of why this is such a problem in America right now is the cost of childcare. Right now it can be up to 30 percent, even 38 percent of a middle class family’s salary. We’re talking in New York City or in New York, $10,000 to $30,000 per year. So i…
How did South African Apartheid happen, and how did it finally end? - Thula Simpson
On June 16th, 1976, over 10,000 student protesters flooded the streets of Soweto, South Africa. For 28 years, South Africans had been living under Apartheid, a strict policy of segregation that barred the country’s Black majority from skilled, high-paying…
Empty Space is NOT Empty
One of the most amazing things about atoms is that they’re mainly empty space. If an atom were as wide as your arm span, then the electrons would all be whizzing about inside the volume enclosed by your fingertips. Meanwhile, the nucleus would be sitting …
2016/10/05: Part 3: The PC Game (and some counter-tactics)
Good morning, boys, girls, and interested others. I said a couple of days ago, or last week, that I was going to produce three videos on political correctness and that the third one would be about tactics. So, that’s what I’m doing this morning. I’ll prob…