Stokes’ theorem: formula, orientation, and worked examples
Stokes’ theorem lets us calculate the same quantity using a surface or its boundary curve. One side may be much easier to integrate than the other, so choosing the setup can save a lot of work. Let’s connect the formula to the orientation, then use it in both directions.
Stokes’ theorem connects curl and circulation
Here S is an oriented surface, C is its closed boundary, F is a vector field, and n is the chosen unit normal. The left side measures circulation around C; the right side is the flux of curl F through S.
For the standard theorem, S is piecewise smooth, C is a simple closed piecewise-smooth boundary with the matching positive orientation, and the components of F have continuous first partial derivatives on an open region containing S.
Match the boundary direction to the normal
Use the right-hand rule: point your right thumb along the surface normal, and your curled fingers give the positive direction around the boundary. For an upward-oriented graph, the boundary is counterclockwise when viewed from above. Reversing the normal reverses the matching boundary direction.
Example 1: Replace a surface integral with a line integral
Let’s use the vector field
Let S be the cap above the plane z = −1, oriented upward. At the boundary, z = −1, so
C is a circle of radius 2. The upward orientation makes its direction counterclockwise as viewed from the positive z-axis. A matching parametrization is
with 0 ≤ t ≤ 2π. Differentiate r and substitute the curve into F.
The dot product simplifies to
Stokes’ theorem turns the surface integral into this integral around the boundary:
Over one complete period, the sine and cosine terms integrate to 0, and the integral of sin²t is π. The result is
Example 2: Replace a line integral with a surface integral
Now use
Let C follow the rectangle with vertices (0, 0, 0), (0, 6, 0), (3, 6, 0), and (3, 0, 0), clockwise as viewed from the positive z-axis. Choose the flat rectangle in z = 0 as S. The matching normal points downward:
The curl is
On the rectangle, z = 0, so the curl becomes ⟨0, 2xy, 2x⟩. Its dot product with the downward unit normal is −2x. Therefore,
The clockwise direction is what makes the downward normal the correct choice here. Using the upward normal would correspond to the opposite traversal of C.
How does this relate to Green’s theorem?
Green’s theorem in circulation form is the planar case of Stokes’ theorem. When S lies in the xy-plane with the upward normal, the surface integral uses the vertical component of curl, giving the familiar two-dimensional relationship.
In either setting, we choose the side of the theorem that gives the simpler integral and keep the boundary direction consistent with the surface normal.