Multivariable Calculus · Undergraduate

Stokes' Theorem

Quick answer

Stokes' theorem is Green's theorem for surfaces that curve through space. The circulation of F around the boundary curve C equals the flux of curl F through the surface S, provided the orientations match by the right-hand rule. Small circulations around tiny patches add up, and the shared inner edges cancel. Any two surfaces with the same boundary give the same flux of the curl, so a hard surface can be swapped for a flat one, and a hard line integral for a surface integral.

What you'll learn

  • State Stokes' theorem with matching orientations
  • Explain why the theorem holds from small circulations
  • Evaluate a line integral as a flux of the curl
  • Replace a surface by a simpler one with the same boundary

Green’s theorem, lifted into space

Green’s theorem says that the circulation around a closed curve in the plane equals the total spin inside it. Stokes’ theorem says the same for a curve in space, using any surface that the curve bounds.

Stokes’ theorem. Let SS be an oriented, piecewise smooth surface whose boundary is a simple closed curve CC, oriented to match SS. If F\mathbf{F} has continuous partial derivatives on an open region containing SS, then

∮CF⋅dr=∬S(∇×F)⋅dS\displaystyle\oint_C \mathbf{F} \cdot d\mathbf{r} = \iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}

Matching orientation follows the right-hand rule: with your thumb along the normal of SS, your fingers curl the way CC runs. Put another way, walk along CC with your head pointing along the normal, and the surface stays on your left. For a flat region in the xyxy-plane with normal k\mathbf{k}, that is counterclockwise, and (∇×F)⋅k=Qx−Py(\nabla \times \mathbf{F}) \cdot \mathbf{k} = Q_x - P_y: Stokes’ theorem becomes Green’s.

A cap and its boundary circle The part of the sphere of radius 2 above the plane z = √3, a small cap, with its boundary circle of radius 1 at height √3. An upward normal vector stands on the cap. Viewed from above, the boundary runs counterclockwise, matching the upward normal by the right-hand rule. x y z n
A cap and its boundary circle

Why the small circulations add up

Cut SS into many tiny patches, each almost flat. Around one patch with unit normal n\mathbf{n} and area ΔS\Delta S, the circulation is about (∇×F)⋅n ΔS(\nabla \times \mathbf{F}) \cdot \mathbf{n}\,\Delta S, since that is what curl measures: circulation per unit area around an axis n\mathbf{n}, as shown in curl and divergence. Orient every patch’s boundary to match n\mathbf{n} and add all the circulations.

An edge shared by two neighboring patches is traversed once in each direction, so its two contributions cancel. Only the edges on the outer boundary of SS survive, and together they make up CC. The sum of the patch circulations is a Riemann sum for ∬S∇×F⋅dS\iint_S \nabla \times \mathbf{F} \cdot d\mathbf{S}, and what survives is ∮CF⋅dr\oint_C \mathbf{F} \cdot d\mathbf{r}. It is the argument for Green’s theorem, with patches that tilt.

Any surface will do

The right side of Stokes’ theorem depends on SS only through its boundary. So if S1S_1 and S2S_2 have the same boundary CC, with orientations matching CC, then

∬S1∇×F⋅dS=∬S2∇×F⋅dS\iint_{S_1} \nabla \times \mathbf{F} \cdot d\mathbf{S} = \iint_{S_2} \nabla \times \mathbf{F} \cdot d\mathbf{S}

In Example 1, the flux of the curl through the hemisphere, through the flat unit disk, and through the paraboloid z=1−x2−y2z = 1 - x^2 - y^2 are all 2π2\pi. For the disk it is quickest: (0,0,2)⋅k=2(0, 0, 2) \cdot \mathbf{k} = 2 times the area π\pi.

Worked examples

Common mistakes

Practice problems

  1. Find the curl of F=(z, x, y)\mathbf{F} = (z,\ x,\ y).

    Answer

    (1, 1, 1)(1,\ 1,\ 1)

    Full solution

    Ry−Qz=1−0R_y - Q_z = 1 - 0, Pz−Rx=1−0P_z - R_x = 1 - 0, Qx−Py=1−0Q_x - P_y = 1 - 0.

  2. Use Stokes’ theorem to find ∮Cz dx+x dy+y dz\oint_C z\,dx + x\,dy + y\,dz around the unit circle in the xyxy-plane, counterclockwise from above.

    Answer

    π\pi

    Full solution

    Take SS to be the unit disk with normal k\mathbf{k}. The curl (1,1,1)(1, 1, 1) dotted with k\mathbf{k} is 11, and the area is π\pi.

  3. Find ∮CF⋅dr\oint_C \mathbf{F} \cdot d\mathbf{r} for F=(y, −x, z)\mathbf{F} = (y,\ -x,\ z) around the circle x2+y2=4x^2 + y^2 = 4, z=1z = 1, counterclockwise from above.

    Answer

    −8π-8\pi

    Full solution

    The curl is (0,0,−2)(0, 0, -2). Through the flat disk of radius 22 at z=1z = 1, with normal k\mathbf{k}, the flux is −2⋅4π-2 \cdot 4\pi.

  4. Explain why the flux of ∇×F\nabla \times \mathbf{F} through the upper hemisphere and through the paraboloid z=1−x2−y2z = 1 - x^2 - y^2, z≥0z \ge 0, both oriented upward, must be equal.

    Answer

    Both surfaces have the unit circle in the xyxy-plane as their boundary, with the same orientation.

    Full solution

    By Stokes’ theorem each flux equals the circulation of F\mathbf{F} around that circle, counterclockwise from above.

  5. Find the circulation of F=(yz, xz, xy)\mathbf{F} = (yz,\ xz,\ xy) around any closed curve.

    Answer

    00

    Full solution

    Its curl is 0\mathbf{0} everywhere, so the flux of the curl through any surface the curve bounds is 00. The field is ∇(xyz)\nabla(xyz).

  6. Let SS be the upper unit hemisphere, oriented upward, and F=(−y, x, exz)\mathbf{F} = (-y,\ x,\ e^{xz}). Find ∬S∇×F⋅dS\iint_S \nabla \times \mathbf{F} \cdot d\mathbf{S}.

    Hint

    Integrate around the boundary, where z=0z = 0.

    Answer

    2π2\pi

    Full solution

    On the unit circle in the xyxy-plane, r(t)=(cos⁡t,sin⁡t,0)\mathbf{r}(t) = (\cos t, \sin t, 0) and r′(t)\mathbf{r}'(t) has zz-component 00, so the third component of F\mathbf{F} never contributes. The integrand is sin⁡2t+cos⁡2t=1\sin^2 t + \cos^2 t = 1, giving 2π2\pi.

  7. Use Stokes’ theorem to show that the circulation of F=(−y, x, 0)\mathbf{F} = (-y,\ x,\ 0) around a circle of radius aa in the xyxy-plane is twice the area it encloses.

    Answer

    (∇×F)⋅k=2(\nabla \times \mathbf{F}) \cdot \mathbf{k} = 2, so the circulation is 2πa22\pi a^2.

    Full solution

    Through the flat disk with normal k\mathbf{k}, the integrand is the constant 22, and the area is πa2\pi a^2.

  8. Find the circulation of F=(z2, y2, x)\mathbf{F} = (z^2,\ y^2,\ x) around the triangle of Example 4 traversed in the opposite order, from (1,0,0)(1, 0, 0) to (0,0,1)(0, 0, 1) to (0,1,0)(0, 1, 0).

    Answer

    16\tfrac{1}{6}

    Full solution

    Reversing the curve reverses the sign of the line integral, from −16-\tfrac{1}{6} to 16\tfrac{1}{6}.

  9. A student applies Stokes’ theorem to the whole unit sphere and the field F=(x,y,z)\mathbf{F} = (x, y, z), concluding that the outward flux of F\mathbf{F} is 00. What went wrong?

    Answer

    Stokes’ theorem concerns the flux of the curl, not of F\mathbf{F}; the flux of F\mathbf{F} is 4π4\pi.

    Full solution

    For a closed surface, Stokes’ theorem gives 00 for the flux of ∇×F\nabla \times \mathbf{F}, which here is 0\mathbf{0} anyway. The flux of F\mathbf{F} itself is 4π4\pi, as computed in surface integrals.

Frequently asked questions

What does Stokes' theorem say?

If S is an oriented surface with boundary curve C, oriented to match, then the line integral of F · dr around C equals the surface integral of curl F · dS over S.

How do the orientations of S and C match?

By the right-hand rule: with the thumb along the normal of S, the fingers curl in the direction of C. Equivalently, walking along C with your head pointing along the normal, the surface stays on your left.

How is Stokes' theorem related to Green's theorem?

Green's theorem is the special case where S is a flat region in the xy-plane with upward normal. Then curl F · k = Q_x − P_y, and Stokes' theorem becomes Green's.

Why do different surfaces with the same boundary give the same answer?

Both fluxes equal the same line integral around the shared boundary, so they are equal to each other.

When is Stokes' theorem useful?

When the line integral is hard and the curl is simple, or when the flux of a curl through a complicated surface can be replaced by the flux through a flat disk with the same edge.

What to learn next