Skip to content
Tutorials Center
My learning

Topics

Lesson 34 of 39 · The Big Theorems

Stokes' Theorem

Stokes' theorem relates the circulation of a field around a closed space curve to the flux of its curl through any surface bounded by the curve.

Green's theorem links a line integral around a curve in the plane to a double integral over the flat region inside. Stokes' theorem lifts it into three dimensions: the curve can twist through space, and the "region inside" becomes any surface that has the curve as its edge.

The statement

Let S be an oriented, piecewise smooth surface whose boundary is a simple closed curve C. Orient C consistently with S by the right-hand rule: if you curl the fingers of your right hand along C, your thumb points to the side of the chosen normal n. Let F have continuous first partial derivatives near S. Then

Text
∮_C F · dr = ∬_S (curl F) · n dS

Circulation of F around the boundary equals the flux of the curl through the surface.

Green's theorem is the special case where S lies flat in the xy-plane with n = k: then (curl F) · k = ∂Q/∂x - ∂P/∂y.

flowchart LR
    A["Circulation around the edge C"] -- "Stokes" --> B["Flux of curl F through S"]
    C["Green (flat S)"] -. "special case" .-> A

Stokes' theorem: tiny rotations over the surface add up to circulation along the edge.

Why any surface works

The surface S is not unique: a soap film, a bowl and a flat disk can all share the same circular rim. Stokes' theorem says the flux of curl F is the same through all of them, because it equals the circulation around the shared edge. This gives you freedom: choose the surface that makes the integral easiest, usually a flat one.

It also matches the identity div(curl F) = 0: the field curl F has no sources, so whatever flux enters through one surface leaves through another with the same boundary.

Example 1: a flat disk

Let F = ⟨-y, x, z⟩ and C the unit circle in the xy-plane, counterclockwise when seen from above.

Line integral. With r(t) = ⟨cos t, sin t, 0⟩: F · r' = (-sin t)(-sin t) + (cos t)(cos t) + 0 = 1. So ∮_C F · dr = 2π.

Surface integral. Take S as the unit disk with n = ⟨0, 0, 1⟩. Here curl F = ⟨0, 0, 2⟩, so (curl F) · n = 2 and

Text
∬_S 2 dS = 2 · π = 2π

The two sides agree.

Example 2: a hemisphere with the same boundary

Use instead the upper hemisphere x² + y² + z² = 1, z ≥ 0, with the outward (upward) normal, so the boundary is the same circle with the same orientation. On the unit sphere, n = ⟨x, y, z⟩, so (curl F) · n = 2z. In spherical coordinates, z = cos φ, dS = sin φ dφ dθ:

Text
∬_S 2z dS = ∫₀^{2π} ∫₀^{π/2} 2 cos φ sin φ dφ dθ = 2π · 1 = 2π

Same result, as Stokes' theorem promises.

Python Stokes' theorem: circle, disk and hemisphere

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Example 3: a harder curve

Let F = ⟨z, x, y⟩ and let C be the triangle with vertices (1, 0, 0), (0, 1, 0), (0, 0, 1), oriented so it looks counterclockwise from above (from +z). Computing three line integrals is tedious. Instead, take S as the flat triangle on the plane x + y + z = 1, with upward normal n = ⟨1, 1, 1⟩/√3.

curl F = ⟨∂y/∂y - ∂x/∂z, ∂z/∂z - ∂y/∂x, ∂x/∂x - ∂z/∂y⟩ = ⟨1, 1, 1⟩. So (curl F) · n = 3/√3 = √3. The triangle's area is (√3)/2 (it is equilateral with side √2), so

Text
∮_C F · dr = √3 · (√3/2) = 3/2
Python Triangle example: line integral vs surface integral

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Orientation is the source of most sign errors. Check with the right-hand rule: the direction of travel around C and the normal n must match. If you reverse one, you must reverse the other.

Consequences

  • If curl F = 0 on a simply connected region, then ∮_C F · dr = 0 for every closed curve C, so F is conservative.
  • Faraday's law of electromagnetic induction in integral form is Stokes' theorem applied to the electric field: the circulation of E around a loop equals the negative rate of change of magnetic flux through any surface bounded by the loop.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Stokes' theorem equates ∮_C F · dr with:

    Circulation around the boundary equals the flux of the curl through the surface.
  2. 2. If two different surfaces share the same boundary curve and orientation, the flux of curl F through them is:

    Both equal the circulation around the common boundary curve.
  3. 3. How do you orient C when the surface normal is n?

    The right-hand rule keeps the boundary orientation consistent with the chosen side of the surface.
  4. 4. For F = ⟨-y, x, z⟩ and the unit circle in the xy-plane, what is the circulation?

    The curl is ⟨0, 0, 2⟩, the unit disk has area π, so the flux is 2π, matching the line integral.

Summary

  • Stokes' theorem: ∮_C F · dr = ∬_S (curl F) · n dS.
  • The boundary orientation follows the right-hand rule relative to n.
  • Any surface with the same boundary gives the same flux of the curl, so choose the simplest.
  • Green's theorem is the flat special case.
  • Zero curl on a simply connected region implies zero circulation and a conservative field.

Next: The Divergence Theorem