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

Green's and Stokes' theorem relationship

Seeing that Green's Theorem is just a special case of Stokes' Theorem. Created by Sal Khan.

Want to join the conversation?

  • blobby green style avatar for user ladee_fiesta
    I'm a bit lost when to use the divergens, greens and stokes theorem. As I see it is that you can use any of this 3 theorems but some are more easy to solve with then the other two. Is it correct?
    (3 votes)
    Default Khan Academy avatar avatar for user
    • aqualine ultimate style avatar for user Aaron Williams
      The divergence theorem is useful when one is trying to compute the flux of a vector field F across a closed surface F ,particularly when the surface integral is analytically difficult or impossible. In such cases, one uses the divergence theorem to convert a problem of computing a difficult surface flux integral to one of computing a relatively simple triple integral. Similarly, Stokes Theorem is useful when the aim is to determine the line integral around a closed curve without resorting to a direct calculation.
      As Sal discusses in his video, Green's theorem is a special case of Stokes Theorem. By applying Stokes Theorem to a closed curve that lies strictly on the xy plane, one immediately derives Green Theorem.
      In principle, you can apply these formulas whenever the conditions for using them are met, but what makes these formulas convenient to know is that it converts a difficult problem(finding a surface flux integral, line integral) to a relatively simple one(finding triple integral throughout a volume, adding the flux across a surface).
      (13 votes)
  • blobby green style avatar for user Mark Stevenson
    I'm a little lost when he broke down the curl of F at ish, is there a good video on vector calculus?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • duskpin ultimate style avatar for user elenast997
    I was wondering, are there any plans on making a video for Gauss's law?
    (4 votes)
    Default Khan Academy avatar avatar for user
  • piceratops ultimate style avatar for user Red Lion
    Is there anyway you could create Mastery Challenge program for Multivariable Calculus like you have for Differential and Integral Calculus? Or is there any website that has anything like that?
    (3 votes)
    Default Khan Academy avatar avatar for user
  • piceratops ultimate style avatar for user Kenny Singh
    What exactly is a matrix?
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user sabra.maghraby2015
    what is the application on this all theorems stoke , green and divergence??
    (1 vote)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Andrew
    At , Sal says specified that the vector field has to be a function only of x and y, and have a zero k component: F= P(x,y)i + Q(x,y)j + 0k

    Is this constraint even necessary to get the same result at the end? If you instead say F = P(x,y,z)i + Q(x,y,z)j + R(x,y,z)k. Then you get
    curl(F) = (∂R/∂y - ∂Q/∂z)i + (∂P/∂z - ∂R/∂x)j + (∂Q/∂x - ∂P/∂y)k
    Notice the k component of the curl is still the same as in the video!

    Then for a surface parallel to the x-y plane, the normal vector n = k. You'll always get: curl(F)·n = (∂Q/∂x - ∂P/∂y)k. So shouldn't this work with any vector field?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • male robot johnny style avatar for user ricyuka
    "At , over the surface R", how is this surface R defined? the special surface on xy plane enclosed by the closed curve C ,or any other spacial surfaces that the closed curve C is on these spacial surfaces. Notice the closed curve C might also be a spacial closed curve. And then the unit norm vector n is determined with regard to this surface R?
    "At ", intuitively, the 2 dimentional divergence is a part of 3 dimentional curl?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user mage2846
    At , why is the unit normal vector equal to k-hat. Is it because k-hat is normal to the surface, since k-hat is in the z-direction? To find the normal vector in the case of a region on the xy-plane, where z = 0, we didn't need to calculate the cross product to find out that k-hat was normal to the region right?
    (1 vote)
    Default Khan Academy avatar avatar for user
    • male robot hal style avatar for user Yamanqui García Rosales
      Yes, any upward looking surface in the xy plane will have a normal vector straight up with magnitude 1, with is the exact definition of the unit vector .

      And not only is this the normal vector of any surface on the xy plane, but also of any surface parallel to the xy plane, so any (upwards looking) surface with a constant z-coordinate will also have as it's normal vector.
      (2 votes)
  • spunky sam blue style avatar for user Akshay
    how is k component dotted with unit normal vector itself (i.e the unit normal vector) doesn't a vector dotted with itself give you vector magnitude^ (squared)
    (1 vote)
    Default Khan Academy avatar avatar for user
    • piceratops tree style avatar for user Adam MacGregor
      That is correct, but it just so happens that because i-hat, j-hat and k-hat are UNIT vectors, their magnitude is 1. We therefore know that our normal vector equals our k-hat vector, thus 1*1=1, so that whole part can just be removed.
      I personally just remember it as i*i=j*j=k*k=1. With those all hatted, of course.
      (1 vote)

Video transcript

In the last video, we began to explore Stokes' theorem. And what I want to do in this video is to see whether it's consistent with some of what we have already seen. And to do that, let's imagine-- so let me draw my axes. So that's my z-axis. That is my x-axis. And then that is my y-axis. And now let's imagine a region in the xy plane. So let me draw it like this. So let's say this is my region in the xy plane. I will call that region R. And I also have a boundary of that region. And let's say we care about the direction that we traverse the boundary. And let's say we're going to traverse it in a counterclockwise direction. So we have this path that goes around this region. We can call that c. So we'll call that c, and we're going to traverse it in the counterclockwise direction. And let's say that we also have a vector field f. That essentially its i component is just going to be a function of x and y. And its j component is only going to be a function of x and y. And let's say it has no k component. So the vector field on this region, it might look something like this. I'm just drawing random things. And then if you go off that region, if you go in the z direction, it's just going to look the same as you go higher and higher. So that vector, it wouldn't change as you change your z component. And all of the vectors would essentially be parallel to, or if z is 0, actually sitting on the xy plane. Now given this, let's think about what Stokes' theorem would tell us about the value of the line integral over the contour-- let me draw that a little bit neater-- the line integral over the contour c of f dot dr, f dot lowercase dr, Where dr is obviously going along the contour. So if we take Stokes' theorem, then this quantity right over here should be equal to this quantity right over here. It should be equal to the double integral over the surface. Well this region is really just a surface that's sitting in the xy plane. So it should really just be the double integral-- let me write that in that same-- it'll be the double integral over our region, which is really just the same thing as our surface, of the curl of f dot n. So let's just think about what the curl of f dot n is. And then d of s would just be a little chunk of our region, a little chunk of our flattened surface right over there. So instead of ds, I'll just write da. But let's think of what curl of f dot n would actually be. So let's work on curl of f first. So the curl of f-- and the way I always remember it is we're going to take the determinant of this ijk partial with respect to x, partial with respect to y, partial with respect to z. This is just the definition of taking the curl. We're figuring out how much this vector field would cause something to spin. And then we want the i component, which is our function p, which is just a function of x and y, j component, which is just the function q. And there was no z component over here, so 0. And so this is going to be equal to-- well if we look at the i component, it's going to be the partial of y of 0. That's just going to be 0, minus the partial of q with respect to z. Well what's the partial of q with respect to z? Well q isn't a function of z at all. So that's also going to be 0-- let me write this out just so it's not too confusing. So our i component, it's going to be partial of 0 with respect to y. Well that's just going to be 0 minus the partial of q with respect to z. Well the partial of q with respect to z is just going to be 0. So we have a 0 i component. And then we want to subtract the j component. And then the j component partial of 0 with respect to x is 0. And then from that you're going to subtract the partial of p with respect to z. Well once again, p is not a function of z at all. So that's going to be 0 again. And then you have plus k times the partial of q with respect to x. Remember this is just the partial derivative operator. So the partial of q with respect to x. And from that we're going to subtract the partial of p with respect to y. So the curl of f just simplifies to this right over here. Now what is n? What is the unit normal vector. Well we're in the xy plane. So the unit normal vector is just going to be straight up in the z direction. It's going to have a magnitude of 1. So in this case, our unit normal vector is just going to be the k vector. So we're essentially just going to take-- so curl of f is this. And our unit normal vector is just going to be equal to the k. It's just going to be the k unit vector. It's going to go straight up. So what happens if we take the curl of f dot k? If we just dot this with k. We're just dotting this with this. Well, we're just going to end up with this part right over here. So curl of f dot the unit normal vector is just going to be equal to this business. It's just going to be equal to the partial of q with respect to x minus the partial of p with respect to y. And this is neat because using Stokes' theorem in the special case, where we're dealing with a flattened-out surface in the xy plane, in this situation, this just boiled down to Green's theorem. This thing right over here just boiled down to Green's theorem. So we see that Green's theorem is really just a special case-- let me write theorem a little bit neater. We see that Green's theorem is really just a special case of Stokes' theorem, where our surface is flattened out, and it's in the xy plane. So that should make us feel pretty good, although we still have not proven Stokes' theorem. But the one thing that I do like about this is seeing that Green's theorem and Stokes' theorem is consistent is now it starts to make sense of this right over here. When we first learned Green's theorem, we were like, what is this? what's going on over here? But now this is telling us this is just taking the curl in this region along this surface. And now starts to make a lot of sense based on the intuition that we saw in the last video.