If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

2d curl formula

Here we build up to the formula for computing the two-dimensional curl of a vector field, reasoning through what partial derivative information corresponds to fluid rotation. Created by Grant Sanderson.

Want to join the conversation?

  • leafers tree style avatar for user CH
    Wouldn't curl be a vector despite the dimensions as it's defined by cross product?
    (12 votes)
    Default Khan Academy avatar avatar for user
    • winston baby style avatar for user Andrew
      Excellent question. Yes, curl indeed is a vector. In the x,y plane, the curl is a vector in the z direction. When you think of curl, think of the right hand rule. It should remind you of angular momentum, who's vector direction is in the direction perpendicular to the plane of rotation.
      (9 votes)
  • blobby green style avatar for user Akshat Jha
    Around , How do you know which vector to start from like P>0 to P<0 , because if we start from top and go counter clockwise we get positive dP/dy
    (7 votes)
    Default Khan Academy avatar avatar for user
    • leaf green style avatar for user Harsh Bhardwaj
      No Akshat even if we reverse the order of the vectors the partial derivative remains the same. Grant has taken the convention of taking the derivative of P along increasing y. In the case of anticlockwise rotation, when you go from the bottom to top P decreases and change in P (i.e. the final value minus the initial value) is negative. But the change in y is positive and therefore the ratio (Delta P / Delta y) is negative. If you do the same in your way, Delta P is positive and Delta y is negative because you climb down the ladder of y. And the resulting derivative is still negative.
      Some numbers would help you imagine better.
      Let's say P goes from 8 at y = 2 to -4 at y = 4.
      Going from y = 2 to 4 : Delta y = (4 - 2) = +2
      and Delta P = (-4 - 8) = - 12
      and the derivative is -12/+2 = -6.
      In the opposite way i.e. going from y = 4 to y = 2
      Delta y = (2 - 4) = -2
      and Delta X = (8 - (-4)) = +12
      and the derivative remains equal to +12/-2 = -6.
      (4 votes)
  • male robot hal style avatar for user Sean
    Is the number for curl have any physical meaning beside its sign- i.e, can we assing units to it?
    (5 votes)
    Default Khan Academy avatar avatar for user
  • piceratops sapling style avatar for user akiilessh
    at i couldn't understand why partial(P)/partial(y) is subtracted from partial(Q)/partial(x)
    (4 votes)
    Default Khan Academy avatar avatar for user
    • piceratops ultimate style avatar for user noah applegate
      We want our formula for curl to give us a positive value when there is counterclockwise rotation around a point. One of the conditions that Grant described in the video as giving counterclockwise rotation is when Partial(P)/Partial(y) is less than 0.

      To get positive values for curl when we have counterclockwise rotation we take the negative of (subtract) Partial(P)/Partial(y), which is negative if we have clockwise rotation. We end up subtracting a negative giving us a positive value which is what we want by definition when we have counterclockwise rotation.
      (4 votes)
  • male robot donald style avatar for user Meer Mehran
    If curl of a vector field is 0, how is it conservative in nature? is there any proof?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • aqualine ultimate style avatar for user Miguel Pagador
    Doesn't the formula of the Curl look like the Cross Product of nabla and the vector that the function corresponds to?
    (2 votes)
    Default Khan Academy avatar avatar for user
    • leaf green style avatar for user Arthur Benson
      Exactly! That is a "trick" for remembering how to compute the curl. In this video, the result is not a vector, but the components of the vector would be 0i + 0j + (∂Q/∂x - ∂P/∂y)k. You can imagine that for 2-dimensional curl, the vector describing the rotation is pointing straight up, parallel to the z-axis. Grant describes 3-dimensional curl in another video, which I would recommend watching.
      (1 vote)
  • blobby green style avatar for user 16sanchitsharma
    at he says that the curl of the field will be a scalar value in this case because at every point we gonna get a value(positive or negative) telling about the curl but will not the curl be a vector in z direction? i understand that the final value of curl will tell weather its in +ve Z direction or -ve and will give the magnitude too but will not it still be a vector? then why its said that it will be a scalar value? please reply.
    (1 vote)
    Default Khan Academy avatar avatar for user
    • leaf green style avatar for user Arthur Benson
      Yes, curl is a 3-D concept, and this 2-D formula is a simplification of the 3-D formula. In this case, it would be 0i + 0j + (∂Q/∂x - ∂P/∂y)k. Imagine a vector pointing straight up or down, parallel to the z-axis. That vector is describing the curl. Or, again, in the 2-D case, you can think of curl as a scalar value.
      (1 vote)
  • leafers ultimate style avatar for user jjakow
    Why does he take the partial derivative of p with respect to y instead of x and the partial derivative of q with respect to x instead of y?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user amith.adiraju
    Around , I can't seem to understand why Dp / Dy should be < 0. From my perspective,

    If P > 0 , it has no y component, it's vector could be 
    (+ve x, 0 )

    If P < 0, it's vector could be (-ve x, 0 )


    By that logic, if an increase in y-direction to the p-vector , causes x component of the vector to turn negative, shouldn't Dp / Dy be > 0 ?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user visheshsinghal2001
    even if the derivative of q is zero and the other is negative,won't curl still come out to be a positive number despite there being no actual rotation?
    (1 vote)
    Default Khan Academy avatar avatar for user

Video transcript

- [Voiceover] So after introducing the idea of fluid rotation in a vector field like this, let's start tightening up our grasp on this intuition to get something that we can actually apply formulas to. So a vector field like the one that I had there, that's two-dimensional, is given by a function that has a two-dimensional input and a two-dimensional output. And it's common to write the components of that output as the functions p and q. So, each one of those p and q, takes in two different variables as it's input. P and q. And what I want to do here, is talk about this idea of curl and you might write it down as just curl, curl of v, the vector field. Which takes in the same inputs that the vector field does. And because this is the two-dimensional example, I might write, just to distinguish it from three-dimensional curl, which is something we'll get later on, two d curl of v. So you're kind of thinking of this as a differential thing, in the same way that you have, you know, a derivative, dx is gonna take in some kind of a function. And you give it a function and it gives you a new function, the derivative. Here, you think of this 2d curl, as like an operator, you give it a function, a vector field function, and it gives you another function, which in this case will be scalar valued. And the reason it's scalar valued, is because at every given point, you want it to give you a number. So if I look back at the vector field, that I have here, we want, that at a point like this, where there's a lot of counter-clockwise rotation happening around it, for the curl function to return a positive number. But at a point like this, where there's some, where there's clockwise rotation happening around it, you want the curl to return a negative number. So, let's start thinking about what that should mean. And a good way to understand this two-dimensional curl function and start to get a feel for it, is to imagine the quintessential 2d curl scenario. Well let's say you have a point and this here's going to be our point, xy, sitting of somewhere in space. And let's say there's no vector attached to it, as in the values, p and q, and x and y, are zero. And then let's say that to the right of it, you have a vector pointing straight up. Above it, in the vector field, you have a vector pointing straight to the left, to it's left, you have one pointing straight down, and below it, you have one pointing straight to the right. So in terms of the functions, what that means, is this vector, to it's right, whatever point it's evaluated at, that's gonna be q is greater than zero. So this function q, that corresponds to the y component, the up and down component of each vector, when you evaluate it at this point, to the right of our xy point, q's gonna be greater than zero. Where as if you evaluate it to the left over here, q would be less than zero, less than zero, in our kind of, perfect curl will be positive example. And then these bottom guys, if you start thinking about what this means for, you'd have a rightward vector below, and a leftward vector above, the one below it, whatever point you're evaluating that at, p, which gives us the kind of, left right component of these vectors, since it's the first component of the output, would have to be positive. And then above it, above it here, when you evaluate p at that point, would have to be negative. Where as p, if you did it on the left and right points, would be equal to zero because there's no x component. And similarly q, if you did it on the top and bottom points, since there's no up and down component of those vectors, would also be zero. So this is just the, the very specific, almost contrived scenario that I'm looking at. And I want to say, hey if this should have positive curl, maybe if we look at the information, the partial derivative information to be specific, about p and q, in a scenario like this, it'll give us a way to quantify the idea of curl. And first let's look at p. So p starts positive, and as y increases, as the y value of our input increases, it goes from being positive to zero, to negative. So we would expect, that the partial derivative of p, with respect to y, so as we change that y component, moving up in the plane, and look at the x component of the vectors, that should be negative. That should be negative in circumstances where we want positive curl. So all of this we're looking at cases, you know the quintessential case where curl is positive. So evidently, this is a fact, that corresponds to positive curl. Where as q, let's take a look at q. It starts negative, when you're at the left. And then becomes zero, then it becomes positive. So here, as x increases, q increases. So we're expecting that a partial derivative of q, with respect to x, should be positive. Or at the very least, the situations where, the partial derivative of q with respect to x is positive, corresponds to positive two-dimensional curl. And in fact, it turns out, these guys tell us all you need to know. We can say as a formula, that the 2d curl, 2d curl, of our vector field v, as a function of x and y, is equal to the partial derivative of q with respect to x. Partial derivative of q, with respect to x, and then I'm gonna subtract off the partial of p, with respect to y. Because I want, when this is negative, for that to correspond with more positive 2d curl. So I'm gonna subtract off, partial of p, with respect to y. And this right here, is the formula for two-dimensional curl. Which basically, you can think of it as a measure, at any given point you're asking, how much does the surrounding information to that point, look like this set-up, like this perfect counter-clockwise rotation set-up? And the more it looks like this set-up, the more this value will be positive. And if it was the opposite of this, if each of the vectors was turned around and you have clockwise rotation, each of these values will become the negative of what it had been before. So 2d curl would end up being negative. And in the next video, I'll show some examples of what it looks like to use this formula.