Stokes theorem
Stokes's theorem is the last of the three great integral theorems in the vector-calculus unit, and it is the most general: it turns a line integral of a vector field around a closed curve into a surface integral of the field's curl over any surface that curve bounds. It follows Green's theorem (a flat-region special case) and Gauss's divergence theorem (which relates flux to divergence over a volume), and it closes the loop between circulation, rotation, and conservative fields. The theorem lets you replace a hard boundary computation with an easier one over a well-chosen surface, or vice versa. This article restates the theorem precisely, sketches why it is true by reducing it to Green's theorem patch by patch, verifies it on the same unit-disc example used in the Pass-1 note, and extends the reasoning to a triangular surface where choosing the flat patch beats parametrizing three edges by hand.
The circulation of a vector field around a closed curve equals the flux of its curl through any oriented surface bounded by , so for whichever bounding surface is easiest to integrate over.
The core idea
Let be an oriented, piecewise-smooth open surface with unit normal , bounded by a closed curve . The orientation of must match by the right-hand rule: curl the right-hand fingers along 's direction of travel, and the thumb points along . If has continuous first partial derivatives on an open region containing , Stokes's theorem states
where: is the vector field, is the closed boundary curve traversed with orientation tied to , is any oriented surface having as its boundary, and is the curl of , a measure of the field's local rotation. Three consequences make this more than a formula to memorize. First, the right side depends only on the boundary curve , not on which particular surface spans it — a flat disc and a bulging dome sharing the same rim give the same flux integral, so always pick the simplest surface available. Second, setting flat in the -plane with collapses Stokes's theorem exactly to Green's theorem, so Green's theorem is the special case and Stokes's is the general curved-surface statement. Third, if is irrotational () on a simply connected domain, the right side vanishes for every closed , which recovers the earlier path-independence result for conservative fields — Stokes's theorem is the underlying reason that fact holds, not a coincidence.
Derivation
Show that Stokes's theorem for a curved surface follows from applying the already-established Green's theorem to a fine mesh of tiny flat patches covering and summing the results, because the line-integral contributions along every shared internal edge cancel and only the outer boundary survives.
Step 1. Cover with a fine mesh of small, nearly flat patches , each bounded by a small closed curve oriented consistently with the surface normal by the right-hand rule, exactly as a topographic map tiles a curved hillside with small flat tiles.
Step 2. On each patch, treat as flat enough that Green's theorem applies locally in the tangent plane, giving to leading order as the patch shrinks, since Stokes's theorem reduces to Green's theorem for a flat piece.
Step 3. Sum this approximate identity over all patches: . The right side is just the Riemann sum for , so it converges to that integral as the mesh is refined.
Step 4. On the left side, every edge shared between two adjacent patches is traversed once in each direction by the two patches' boundary curves (their orientations are opposite along the shared edge), so those interior contributions cancel exactly in the sum. Only the edges lying on the outer boundary are never shared, so they survive uncancelled.
Step 5. What remains on the left after all interior cancellation is exactly , the line integral around the single outer boundary curve. Combining with Step 3 in the limit of infinitely fine patches gives , which is Stokes's theorem.
Worked example
Problem. Verify Stokes's theorem for , where is the disc with upward normal , and is its boundary circle, oriented counterclockwise (consistent with by the right-hand rule).
Step 1. Compute the curl with . The -component is , the -component is , and the -component is . So , a constant vector.
Step 2. Evaluate the surface-integral side: .
Step 3. Parametrize : for , counterclockwise. Then , and .
Step 4. Evaluate the line-integral side: . Both sides equal , so Stokes's theorem checks out here, and the constant curl means the flux integral is simply twice the disc's area for any flat surface bounded by this circle.
Competitive stretch
Problem. Use Stokes's theorem to evaluate where and is the boundary of the triangle with vertices , oriented counterclockwise when viewed from the positive octant.
Step 1. Rather than parametrizing three separate edges, pick the flat triangular surface itself, part of the plane , as the bounding surface, since Stokes's theorem allows any surface with boundary .
Step 2. Compute the curl with : only the -component is nonzero, , so again.
Step 3. Write as over the triangular region in the -plane. Since the first two curl components are zero, the flux integrand reduces to just , and has legs of length and area .
Step 4. Integrate: , so , obtained entirely from a flat-surface integral without parametrizing any of the triangle's three edges.
Common traps
- Orientation mismatch between and : the right-hand-rule link between the boundary curve's direction and the surface normal must hold, or the sign of one side of the theorem flips.
- Choosing a hard surface when an easier one bounded by the same curve exists — the flux integral does not depend on which surface is used, so always pick the simplest one, as in the triangle example above.
- Confusing Stokes's curl-surface identity with Gauss's divergence-volume identity: Stokes relates a line integral to a surface integral of curl; Gauss relates a closed-surface integral to a volume integral of divergence — they are not interchangeable.
- Forgetting that must have continuous first partial derivatives on a region containing , and that 's boundary must be exactly the single closed curve given, not a surface with an extra hole (like an annulus, which has two boundary curves).
Ask the tutor: Want to try Stokes's theorem on a hemispherical cap instead of a flat disc, or get help choosing the easiest bounding surface for a tricky boundary curve?
Why does it matter that the flux integral does not depend on the choice of surface
Because it turns Stokes's theorem into a practical shortcut, not just a statement of equality. If a line integral around an awkward curve is hard to parametrize directly, you can instead pick any convenient surface bounded by that curve, such as a flat disc or triangle rather than a bulging or twisted one, and compute the curl's flux there. The triangle example above shows this concretely: choosing the flat triangular patch avoided parametrizing three separate edges by hand.
How is Stokes theorem different from the divergence theorem I also study in this unit
They relate different pairs of objects. Stokes's theorem connects a line integral around a boundary curve to a surface integral of the curl over any surface spanning that curve. Gauss's divergence theorem connects a surface integral of flux over a closed surface (no boundary curve, since it seals up) to a volume integral of the divergence inside. Stokes needs an open surface with a rim; Gauss needs a closed surface enclosing a solid region. Mixing the two up is a common exam slip.
Do I have to check both sides every time I use Stokes theorem
No, only when a problem explicitly asks you to verify the theorem, as in the disc example. Most exam problems ask you to evaluate one side using the other because it is easier, exactly as in the triangle example, where computing the surface integral over the flat patch was far quicker than parametrizing three line segments. Verification problems exist mainly to build confidence that both sides genuinely agree.