Mathwords logoMathwords

Stokes' Theorem — Definition, Formula & Examples

Stokes' Theorem states that the surface integral of the curl of a vector field over a surface equals the line integral of that vector field around the boundary curve of the surface. It generalizes Green's Theorem from flat regions in the plane to arbitrary oriented surfaces in three dimensions.

Let SS be an oriented, piecewise-smooth surface in R3\mathbb{R}^3 with boundary curve S\partial S oriented consistently (by the right-hand rule), and let F\mathbf{F} be a vector field whose components have continuous partial derivatives on an open region containing SS. Then S(×F)dS=SFdr\displaystyle\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = \oint_{\partial S} \mathbf{F} \cdot d\mathbf{r}.

Key Formula

S(×F)dS=SFdr\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = \oint_{\partial S} \mathbf{F} \cdot d\mathbf{r}
Where:
  • SS = An oriented, piecewise-smooth surface in \mathbb{R}^3
  • S\partial S = The positively oriented boundary curve of S
  • F\mathbf{F} = A vector field with continuously differentiable components
  • ×F\nabla \times \mathbf{F} = The curl of F
  • dSd\mathbf{S} = The vector surface element (outward normal times dA)
  • drd\mathbf{r} = The vector line element along the boundary curve

How It Works

Stokes' Theorem lets you convert between two types of integrals: a surface integral of a curl and a line integral around the surface's boundary. If the line integral is easier to compute, you evaluate that side; if the surface integral is simpler, you use that instead. The key requirement is that the orientation of the boundary curve and the surface normal must be compatible via the right-hand rule: if your right thumb points in the direction of the surface normal, your fingers curl in the direction of the boundary traversal. The theorem applies to any smooth surface, not just flat ones, which is what distinguishes it from Green's Theorem.

Worked Example

Problem: Verify Stokes' Theorem for F = (y, -x, 0) on the upper hemisphere S: x² + y² + z² = 4, z ≥ 0, with upward-pointing normal.
Step 1: Compute the curl: Find ∇ × F.
×F=(0y(x)z,  yz0x,  (x)xyy)=(0,0,2)\nabla \times \mathbf{F} = \left(\frac{\partial 0}{\partial y} - \frac{\partial(-x)}{\partial z},\; \frac{\partial y}{\partial z} - \frac{\partial 0}{\partial x},\; \frac{\partial(-x)}{\partial x} - \frac{\partial y}{\partial y}\right) = (0, 0, -2)
Step 2: Evaluate the surface integral: Since the curl is (0, 0, −2) and the upward normal on the hemisphere gives dS = n̂ dA, project onto the disk x² + y² ≤ 4 in the xy-plane. The dot product (0,0,−2)·(0,0,1) = −2, so the integral becomes −2 times the area of the disk.
S(×F)dS=2π(2)2=8π\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = -2 \cdot \pi(2)^2 = -8\pi
Step 3: Evaluate the line integral: The boundary ∂S is the circle x² + y² = 4, z = 0, traversed counterclockwise. Parameterize as r(t) = (2cos t, 2sin t, 0) for t ∈ [0, 2π].
SFdr=02π(2sint,2cost,0)(2sint,2cost,0)dt=02π(4sin2t4cos2t)dt=8π\oint_{\partial S} \mathbf{F} \cdot d\mathbf{r} = \int_0^{2\pi} (2\sin t,\, -2\cos t,\, 0) \cdot (-2\sin t,\, 2\cos t,\, 0)\, dt = \int_0^{2\pi} (-4\sin^2 t - 4\cos^2 t)\, dt = -8\pi
Answer: Both sides equal 8π-8\pi, confirming Stokes' Theorem.

Why It Matters

Stokes' Theorem is central to electromagnetism, where it converts Maxwell's equations between integral and differential forms. It also appears in fluid dynamics to relate circulation around a curve to the vorticity passing through a surface, and it is a prerequisite for understanding differential forms in advanced mathematics courses.

Common Mistakes

Mistake: Using an inconsistent orientation between the surface normal and the boundary curve.
Correction: Always apply the right-hand rule: if the thumb of your right hand points along the chosen surface normal, your fingers should curl in the direction you traverse ∂S. A mismatch introduces a sign error.