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

3d curl formula, part 2


5m read
·Nov 11, 2024

So I'm explaining the formula for three-dimensional curl, and where we left off, we have this determinant of a 3x3 matrix, which looks absurd because none of the individual components are actual numbers. But nevertheless, I'm about to show how, when you kind of go through the motions of taking a determinant, you get a vector-valued function that corresponds to the curl.

Let me show you what I mean by that. If you're computing the determinant of the guy that we have pictured there in the upper right, you start by taking this upper left component and then multiplying it by the determinant of the submatrix. The submatrix whose rows are not the row of I and whose columns are not the row of I.

What that looks like over here is we're going to take that unit vector I and then multiply it by a certain little determinant. What this subd determinant involves is multiplying this partial with respect to y by R, which means taking the partial derivative with respect to y of the multivariable function R and then subtracting off the partial derivative with respect to z of Q. So we're subtracting off the partial derivative with respect to z of the multivariable function Q.

And then, so that's the first thing that we do. As a second part, we take this J and we're going to subtract off, so you're kind of thinking plus minus plus for the elements in this top row. So we're going to subtract off J multiplied by another subd determinant, and then this one is going to involve this column that it's not part of and this column that it's not part of. You imagine those guys as a 2x2 matrix, and its determinant involves taking the partial derivative with respect to x of R. That's kind of the diagonal, partial with respect to x of R, and then subtracting off the partial derivative with respect to z of P, so partial with respect to z of P.

And then, that's just two out of three of the things we need to do for our overall determinant because the last part we're going to add. We're going to add that top right component K multiplied by the submatrix whose columns involve the column it's not part of and whose rows involve the rows that it's not part of. K multiplied by the determinant of this guy is going to be, let's see, partial with respect to x of Q, so that's partial with respect to x of Q minus partial with respect to y of P, so the partial derivative with respect to y of the multivariable function P.

And that entire expression is the three-dimensional curl of the function whose components are P, Q, and R. So here we have our vector-valued function V whose components are P, Q, and R. When you go through this whole process of imagining the cross product between the Del operator, this nabla symbol, and the vector output P, Q, and R, what you get is this whole expression.

Here we're writing it with IJK notation. If you were writing it as a column vector, I guess I didn't erase some of these guys, but if you were writing this as a column vector, it would look like saying the curl of your vector-valued function V as a function of x, y, and z is equal to. And then what I'd put in for this first component would be what's up there. So that would be your partial with respect to y of R minus the partial of Q with respect to z, so partial of Q with respect to z.

I won't copy it down for all of the other ones, but in principle, you know, whatever this J component is, and I guess we're subtracting it, so you'd subtract there. You'd copy that as the next component, and then over here, but often times when you're computing curl, you kind of switch to using this J, JK notation. My personal preference, I typically default to column vectors, and other people will write in terms of I, J, and K. It doesn't really matter as long as you know how to go back and forth between the two.

One really quick thing that I want to highlight before doing an example of this is that the K component here, the Z component of the output is exactly the two-dimensional curl formula. If you kind of look back to the videos on 2D curl and what its formula is, that is what we have here. In fact, all the other components kind of look like mirrors of that, but you're using slightly different operators and slightly different functions.

If you think about rotation that happens purely in the XY plane, just two-dimensional rotation, and how in three dimensions that's described with a vector in the K direction. Again, if that doesn't quite seem clear, maybe look back at the video on describing rotation with a three-dimensional vector and the right-hand rule. But vectors pointing in the pure Z direction describe rotation in the XY plane.

What's happening with these other guys is kind of similar. Right rotation that happens purely in the XZ plane is going to correspond with a rotation vector in the Y direction, the direction perpendicular to the X. Let's see, so the XZ plane over here. Similarly, this first component kind of tells you all the rotation happening in the YZ plane. The vectors in the I direction, the X direction of the output, correspond to rotation in that plane.

Now, when you compute it, you're not always thinking about, oh, you know, this corresponds to rotation in that plane and this corresponds to rotation in that plane. You're just kind of computing it to get a formula out. But I think it's kind of nice to recognize that all the intuition that we put into the two-dimensional curl does show up here.

Another thing I want to emphasize is this is not a formula to be memorized. I would not, if I were you, try to sit down and memorize this long expression. The only thing that you need to remember, the only thing, is that curl is represented as this Del cross V, this nabla symbol cross product with the vector-valued function V. Because from there, whatever your components are, you can kind of go through the process that I just did. The more you do it, the quicker it becomes.

It's kind of long, but it doesn't take that long, and it's certainly much more fault-tolerant than trying to remember something that has as many moving parts as the formula that you see here. In the next video, I'll go through an actual example of that. I'll have functions for P, Q, and R, and walk through that process in a more concrete context. I'll see you then.

More Articles

View All
Keizoku: A Japanese Philosophy to Stop Quitting Everything You Start
You know that feeling when you start something new, maybe it’s reading, working out, or learning a new skill, and you are super excited about it? You buy all the stuff, make all these plans, and then a few weeks later you just stop, and then the guilt set…
15 Gifts That Go Up in Value Over Time (Gift Ideas for Rich People)
Rich people focus on the inner value of a gift, not necessarily on the price tag. But any Master Gift Giver knows that they’ll be better off if you give them an asset instead of a liability. The gifts you give build relationships, so this season be though…
Secrets from Longevity Experts l Transform Your Health and Extend Your Lifespan
I think of all the money I’ve invested in so many businesses over the years, and I didn’t invest enough in myself, which is the most important business I have. So I’m obviously trying to fix that these days. Mr. Wonderful here, back in the United Arab Emi…
Safari Live - Day 138 | National Geographic
This program features live coverage of an African safari and may include animal kills and caucuses. Viewer discretion is advised. Good afternoon everybody and welcome to this, the sunset safari on this glorious Sunday afternoon. I think it’s the 15th of …
Sam Altman on Choosing Projects, Creating Value, and Finding Purpose
Alright, the return of same moment! How’s it going? Nice to be back, right? How are things? Good! This is good. You know YC is gonna be huge next batch. Yeah! Interviewed like more than a thousand companies. I’m saying Open has been going really well. Exc…
YC Fireside: Surbhi Sarna and Tracy Young - Founder of TigerEye and PlanGrid
Hi Tracy, welcome, and welcome to everybody in the audience as well. Tracy, you are such a legend more broadly and a legend in the female founder community. Certainly, I can’t think of anyone better to kick off Women’s History Month with. Thanks for havi…