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

Divergence formula, part 2


5m read
·Nov 11, 2024

Hello again. In the last video, we were looking at vector fields that only have an X component, basically meaning all of the vectors point just purely to the left or to the right, with nothing up and down going on. We landed at the idea that the divergence of V— you know, when you take the divergence of this vector-valued function— it should definitely have something to do with the partial derivative of P, that X component of the output, with respect to X.

Here, I want to do the opposite and say, okay, what if we look at functions where that P, that first component, is zero, but then we have some kind of positive Q component, some kind of positive or, not maybe positive, but some kind of nonzero; so, positive or negative Y component? What this would mean, instead of thinking about vectors just left and right, now we're looking at vectors that are purely up or down, kind of up or down.

So, kind of doing the same thing we did last time, if we start thinking about cases where the divergence of our function at a given point should be positive, an example of that, you might be saying nothing is happening at the point itself, so Q itself would be zero, but then below it, things are kind of going away, so they’re pointing down, and above it, things are going up.

So in this case down here, Q is a little bit less than zero; the Y component of that vector is less than zero, and up here, Q is greater than zero. So here we have the idea that as you’re going from the bottom up, so the Y value of your input is increasing, as you’re moving upwards in space, the value of Q, this Y component of the output, should also be increasing because it goes from negative to zero to positive.

So now you're starting to get this idea of partial Q with respect to Y; you know, as we change that Y and move up in space, the value of Q should be positive. So positive divergence seems to correspond to a positive value here, and the thinking is actually going to be almost identical to what we did in the last video with the X component.

Because you can think of another circumstance where maybe you actually have a vector attached to your point, and something’s going on. And there even is some convergence towards it where you have, um, some fluid flow in towards the point, but it’s just heavily outweighed by even higher divergence, even higher flow away from your point, um, above it.

And again you have this idea of Q starts off small; so here it’s kind of Q starts off small, maybe it’s kind of near zero, and then here Q is something positive, and then here it’s even more positive. And, uh, you sort of making up notation here, but I want the idea of kind of small and then medium-sized and then bigger.

And once again, the idea of partial derivative of Q with respect to Y being greater than zero seems to correspond to positive divergence. And if you want, you can sketch out many more circumstances and think about, you know, what if the vector started off pointing down? What would positive and negative and zero divergence all look like?

But the upshot of it all, pretty much for the same reasons I went through in the last video, is this partial derivative with respect to Y corresponds to the divergence. When we combine this with our conclusions about the X component, that actually is all you need to know for the divergence.

So just to write it all out: if we have a vector-valued function of X and Y and it's got both of its components, you've got P as the X component of the output, that first component of the output, and Q, and we're looking at both of these at once, the way that we compute divergence, the definition of divergence of this vector-valued function is to say the divergence of V as a function of X and Y is actually equal to the partial derivative of P with respect to X plus the partial derivative of Q with respect to Y.

And that’s it! That is the formula for divergence. Hopefully, by now, this isn’t just kind of a formula that I’m plopping down for you, but it's something that makes intuitive sense when you see this term, this partial P with respect to X. You’re thinking about, oh yes, yes, because if you have flow that’s kind of increasing, um, as you move in the X direction, that’s going to correspond with movement away.

And this partial derivative of Q with respect to Y term, hopefully, you’re thinking, ah yes, as you’re increasing the Y component of your vector around your point, that corresponds with less flow in than there is out. So both of these correspond to that idea of divergence that we're going for.

And if you just add them up, this gives you everything you need to know. One thing that’s pretty neat and maybe kind of surprising is that the way we just came across this formula and started to think about it was in the simplified case where you have, you know, just pure movement in the X direction or pure movement in the Y direction.

But in reality, as we know, vector fields can look much more complicated, and maybe you have something where, you know, it’s not just in the X direction. There are lots of things going on, and you need to account for all of those. And evidently, just looking at the change in the X component with respect to X, or the change in the Y component of the output with respect to the Y component of the input gives you all the information you need to know.

Basically, what's going on here is that any fluid flow can just be broken down into the X and Y components, where you're just looking at each vector. You know, whatever vector you have, um, it could be broken down into its own X and Y components.

And if you want to think kind of concretely about the fluid flow idea, maybe you’d say that for your point, if you’re looking at a point in space, you picture a very small box around it. The reason you only need to think about X components and Y components is that you’re only really looking at, you know, what's going on on the left and right side.

Then you can kind of calculate what the divergence according to fluid flowing in through those sides is, and then you just look at kind of fluid flowing through the top or the bottom. If you kind of shrink this box down, all you really care about is those two different directions, and anything else, anything that's kind of diagonal into it, is really just broken down into what's the Y component there? What's the— you know— how is it contributing to movement up through that bottom part of the box?

And then what's the X component? How's it contributing to movement through that side part of the box? But anyway, I mean, the upshot here is just that the formula for divergence only involves these two components.

More Articles

View All
Lets talk about Grant Cardone and why I don’t buy 16+ unit properties
What’s up you guys? It’s Graham here. So, I’m not gonna lie. One of the most common questions I’ve been asked on my channel is, “Why aren’t you buying 16 units or more? Grant Cardone says you should buy 16 units. Why are you going against Grant Cardone?” …
Underground Templar Caves | Lost Cities with Albert Lin
Ah! Eliezer? Yes. It’s so nice to meet you. Welcome, welcome. This is beautiful! Yes! This is where the Templars actually hung out? In here? No, no, no. This is not the Templar. We are in the right place, but in the wrong time. Let’s go. If we want to se…
Lesson Planning with Khanmigo Webinar
Welcome, welcome everybody! We are here today to talk about lesson planning and how at KH Academy and with Con Migo we can support you with lesson planning. We know we are all teachers; we have been in the classroom. We have gone through lesson planning.…
Neil deGrasse Tyson on a Dystopic Future | Breakthrough
It’s always been a curious fact to me that the most successful science fiction storytelling involves completely dystopic scenarios or finales, and all of them, essentially all of them. Now maybe at the end they give you some glimmer of hope, but somethin…
How to Keep Your Child Learning & Happy! at Home
Hello! Thank you for joining us today. We know how busy you are as parents of young children, particularly during these times with so much going on in the world. We want to make the session a really valuable use of your time, so we’re going to jump right …
360° Climbing Giants | National Geographic
[Music] [Music] My name is Wendy Baxter, and I have probably one of the coolest jobs on the planet. [Music] I get to climb in and study giant sequoia trees. My name is Anthony Ambrose, and I am a canopy biologist. I’ve loved trees and climbing trees my en…