MULTIVARIABLE CALCULUS • INTEGRAL THEOREMS

Stokes' Theorem — Apply Stokes' theorem

Convert difficult surface integrals into simpler line integrals around a boundary curve.

Historical Context & Motivation

Throughout the 1800s, mathematicians and physicists wrestled with a fundamental challenge: how to relate what happens on a surface to what happens along the edge of that surface. Imagine you want to know the total "swirl" of a fluid flowing across a curved sheet of metal—do you really need to measure every tiny patch, or can you learn the same information just by walking around the boundary? Stokes' theorem answers this question with a resounding yes: a surface integral of a curl can be replaced by a single line integral around the boundary curve.

The theorem is named after Sir George Gabriel Stokes, an Irish-born physicist at Cambridge, although he was not the first to state it. The result grew out of work by several brilliant minds who were trying to unify the laws of electricity, magnetism, and fluid dynamics into a coherent mathematical language.

1813
Gauss's Divergence Ideas
Carl Friedrich Gauss develops early versions of the divergence theorem, linking volume integrals to surface integrals—an important precursor showing that boundary information can capture interior behavior.
1850
Lord Kelvin's Letter
William Thomson (Lord Kelvin) writes a letter to Stokes containing the statement of what we now call Stokes' theorem. This is the first known written formulation of the result.
1854
Stokes' Exam Problem
Stokes includes the theorem as a problem on the Smith's Prize exam at Cambridge. Students must prove it, cementing its name in mathematical history even though Stokes did not originally discover it.
1861
Maxwell's Equations
James Clerk Maxwell uses Stokes' theorem as a key tool in formulating his equations of electromagnetism, showing the theorem's enormous practical power in physics.
1899
Élie Cartan & Generalization
Élie Cartan begins developing differential forms, eventually leading to a generalized Stokes' theorem that unifies Green's theorem, the divergence theorem, and the classical Stokes' theorem into one elegant statement.

The central question Stokes' theorem addresses is this: can we trade a complicated integral over every point of a surface for a simpler integral that only involves the boundary curve? Understanding when and how to make this trade is the key skill you will develop in this lesson.

Core Principles & Definitions

Before we can apply Stokes' theorem, we need to understand the building blocks. The theorem connects three objects: a vector field (think of wind blowing through space), a surface sitting in that space, and the boundary curve that forms the edge of that surface. The mathematical glue binding them together is the curl of the vector field.

1

Vector Field F

A rule that assigns a vector (arrow with magnitude and direction) to every point in space. Written as F = ⟨P, Q, R⟩ where P, Q, and R are functions of x, y, and z.
2

Curl of F (∇ × F)

A new vector field that measures the local rotational tendency—how much the field "swirls" around each point. If curl is zero everywhere, the field has no rotation.
3

Oriented Surface S

A smooth, bounded surface in 3D space with a chosen normal direction (pointing "up" or "down"). The orientation determines which side counts as positive.
4

Boundary Curve C = ∂S

The closed loop forming the edge of the surface. Its direction (clockwise or counterclockwise) is linked to the surface orientation via the right-hand rule.
5

Right-Hand Rule

Curl the fingers of your right hand in the direction you traverse C; your thumb points in the direction of the surface normal n. This ensures the orientations are consistent.
KEY TAKEAWAY
Think of Stokes' theorem like checking a fence around a field. Instead of inspecting every square foot of the field for spinning sprinklers (the curl on the surface), you can just walk along the fence and measure how much the water pushes you forward. The total push along the fence equals the total spin inside—boundary information captures interior behavior.

Visual Explanation

The diagram below shows how Stokes' theorem works geometrically. A smooth surface S sits in three-dimensional space, bounded by a closed curve C. Small rotation arrows on the surface represent the curl of the vector field, while the large arrow along the boundary represents the line integral. Stokes' theorem says these two quantities are equal.

The surface S (violet shading) is bounded by curve C (cyan). Pink spirals show the curl of F at various points on S. The gold arrow is the unit normal. Stokes' theorem equates the sum of all those tiny curls (the surface integral) with the net circulation around C (the line integral).

Notice how the cyan arrows along C travel counterclockwise when viewed from above—this is consistent with the right-hand rule, since the normal points upward. If you curl the fingers of your right hand in the direction of C, your thumb points in the direction of . Getting this orientation correct is essential when applying the theorem.

Mathematical Framework

Let's translate the geometric picture into precise formulas. The theorem involves two integrals, and the key operation connecting them is the curl of a vector field.

STOKES' THEOREM
∬_S (∇ × F) · dS = ∮_C F · dr
F = vector field ⟨P, Q, R⟩; S = oriented smooth surface; C = ∂S = boundary curve of S, traversed consistently with the surface normal; ∇ × F = curl of F.
CURL FORMULA
∇ × F = ⟨ ∂R/∂y − ∂Q/∂z , ∂P/∂z − ∂R/∂x , ∂Q/∂x − ∂P/∂y ⟩
This can be remembered using the determinant of a 3×3 matrix with î, ĵ, k̂ in the first row, partial derivatives ∂/∂x, ∂/∂y, ∂/∂z in the second, and P, Q, R in the third.
SURFACE INTEGRAL EXPANSION
∬_S (∇ × F) · dS = ∬_D (∇ × F) · (r_u × r_v) dA
Here r(u, v) is a parametrization of the surface S over a region D in the uv-plane, and r_u × r_v is the cross product of the partial derivatives, giving the normal vector.
LINE INTEGRAL EXPANSION
∮_C F · dr = ∮_C P dx + Q dy + R dz
This integral is evaluated by parametrizing the curve C with a parameter t and substituting x(t), y(t), z(t) along with dx = x′(t) dt, etc.
⚠️ When Can You Use Stokes' Theorem?
Stokes' theorem requires: (1) the vector field F has continuous first partial derivatives on S and its boundary, (2) the surface S is smooth (or piecewise smooth) and oriented, and (3) the boundary curve C is a simple, closed, piecewise-smooth curve traversed in the direction consistent with the surface orientation via the right-hand rule.

Application Strategy & Decision Map

Knowing the formula is one thing—knowing when and how to apply it is the real skill. Stokes' theorem can be used in two directions: you can convert a difficult surface integral into a line integral, or you can convert a tricky line integral into a surface integral. The decision depends on which side is easier to compute.

Decision flowchart for applying Stokes' theorem. Start at the top: determine whether you are given a surface integral or line integral, assess difficulty, and decide whether to convert or evaluate directly. The special shortcut at the bottom applies when the curl is zero.
  1. Step 1 — Compute the curl. Use the determinant formula to find ∇ × F. If the curl is zero, the integral is zero and you're done.
  2. Step 2 — Parametrize. Choose a convenient parametrization for the surface (if evaluating the surface integral) or the curve (if evaluating the line integral).
  3. Step 3 — Check orientation. Verify that the surface normal and curve direction are consistent via the right-hand rule. If not, add a negative sign.
  4. Step 4 — Set up and evaluate. Substitute into the integral and compute. Simplify before integrating whenever possible.

Worked Example

Let's use Stokes' theorem to convert a surface integral into a line integral and evaluate it. Suppose we want to compute ∬_S (∇ × F) · dS where F = ⟨−y, x, z²⟩ and S is the portion of the paraboloid z = 1 − x² − y² above the xy-plane (z ≥ 0), with the normal pointing upward.

Evaluate ∬_S (∇ × F) · dS using Stokes' Theorem
1
Step 1 — Identify the boundary curve CThe surface S is the paraboloid z = 1 − x² − y² for z ≥ 0. Setting z = 0, we get x² + y² = 1. So the boundary curve C is the unit circle in the xy-plane, at height z = 0. By the right-hand rule (normal pointing up), we traverse C counterclockwise when viewed from above.
C: x² + y² = 1, z = 0, counterclockwise
2
Step 2 — Parametrize CUse the standard parametrization for a unit circle: r(t) = ⟨cos t, sin t, 0⟩ for t ∈ [0, 2π]. Then dr = ⟨−sin t, cos t, 0⟩ dt.
r(t) = ⟨cos t, sin t, 0⟩, dr = ⟨−sin t, cos t, 0⟩ dt
3
Step 3 — Evaluate F on CSubstitute x = cos t, y = sin t, z = 0 into F = ⟨−y, x, z²⟩: F(r(t)) = ⟨−sin t, cos t, 0⟩.
F on C = ⟨−sin t, cos t, 0⟩
4
Step 4 — Compute F · drTake the dot product: F · dr = (−sin t)(−sin t) + (cos t)(cos t) + (0)(0) = sin²t + cos²t = 1. So F · dr = 1 dt. This is beautifully simple!
F · dr = dt
5
Step 5 — IntegrateNow evaluate the line integral: ∮_C F · dr = ∫₀²π 1 dt = . By Stokes' theorem, ∬_S (∇ × F) · dS = 2π as well. Notice how we avoided parametrizing the paraboloid entirely!
∬_S (∇ × F) · dS = ∮_C F · dr = 2π
💡 Why Was This Easier?
Directly computing the surface integral would require parametrizing the paraboloid, computing ∇ × F, finding the cross product of partial derivatives, and evaluating a double integral. By using Stokes' theorem, we reduced everything to a single integral of the constant function 1 over [0, 2π]. Always check whether the "other side" of Stokes' theorem is simpler!

Strengths, Limitations & Comparisons

Stokes' theorem is one member of a family of integral theorems that all share the same philosophy: integrating a derivative over a region equals integrating the original function over the boundary. The table below compares these related results so you can see where Stokes' theorem fits in the bigger picture.

Family of integral theorems, from 1D to 3D
TheoremDimensionInterior IntegralBoundary Integral
Fundamental Theorem of Calculus1D → 0D (points)∫ₐᵇ f′(x) dxf(b) − f(a)
Green's Theorem2D region → 1D curve (in plane)∬_D (∂Q/∂x − ∂P/∂y) dA∮_C P dx + Q dy
Stokes' Theorem2D surface → 1D curve (in 3D)∬_S (∇ × F) · dS∮_C F · dr
Divergence Theorem3D volume → 2D surface∭_V (∇ · F) dV∬_S F · dS

Notice the pattern: Green's theorem is actually a special case of Stokes' theorem when the surface S lies flat in the xy-plane. Each theorem increases the dimension by one: the FTC goes from an interval to its endpoints, Green's/Stokes' go from a surface to its boundary curve, and the divergence theorem goes from a volume to its boundary surface.

🔗 THE BIG PICTURE
All four theorems are really the same idea wearing different outfits. They all say: "total change inside = net effect on the boundary." Stokes' theorem is the version that works for surfaces with boundary curves in three-dimensional space, using curl as the "derivative" operation.

Connections to Advanced Theory

Stokes' theorem is not just a computational trick—it is a gateway to some of the deepest ideas in mathematics and physics. In advanced courses, all four integral theorems are unified into a single statement using differential forms, a powerful language that generalizes to any number of dimensions.

Classical Stokes' theorem vs. the generalized version
This LessonAdvanced Version
Vector fields F = ⟨P, Q, R⟩Differential 1-forms ω = P dx + Q dy + R dz
Curl ∇ × FExterior derivative dω (a 2-form)
∬_S (∇ × F) · dS = ∮_C F · dr∫_M dω = ∫_∂M ω (Generalized Stokes' Theorem)
Works in ℝ³ with surfaces and curvesWorks on manifolds of any dimension
Used in electromagnetism (Faraday's law)Foundation of gauge theory, general relativity, topology

In physics, Stokes' theorem is used directly in Maxwell's equations. For example, Faraday's law of electromagnetic induction states that a changing magnetic field through a surface creates an electric field that circulates around the boundary. This is literally Stokes' theorem applied to the electric field. If you continue in mathematics or physics, you will encounter these ideas repeatedly in courses on differential geometry, topology, and theoretical physics.

Practice Problems

PROBLEM 1CONCEPTUAL
In your own words, explain what Stokes' theorem tells us about the relationship between the curl of a vector field on a surface and the vector field along the boundary curve. Why must the orientations of S and C be consistent?
PROBLEM 2BASIC CALCULATION
Let F = ⟨z, x, y⟩. Compute ∇ × F. Then use Stokes' theorem to evaluate ∮_C F · dr where C is the triangle with vertices (1, 0, 0), (0, 1, 0), (0, 0, 1), traversed counterclockwise when viewed from the direction of the positive normal to the plane x + y + z = 1.
PROBLEM 3INTERMEDIATE
Let F = ⟨y², −x², z⟩ and let S be the upper hemisphere x² + y² + z² = 4, z ≥ 0, with the outward (upward) normal. Use Stokes' theorem to convert the surface integral ∬_S (∇ × F) · dS into a line integral and evaluate it.
PROBLEM 4APPLIED
A fluid's velocity field is given by v = ⟨−y³, x³, 0⟩. An engineer needs to compute the circulation of the fluid around the boundary of the disk x² + y² ≤ 1 in the xy-plane. Use Stokes' theorem (converting to a surface integral) to find this circulation.
PROBLEM 5CRITICAL THINKING
Suppose F is a vector field such that ∇ × F = ⟨0, 0, 5⟩ everywhere. Let S₁ be the flat disk x² + y² ≤ 9 in the plane z = 0, and let S₂ be the upper hemisphere x² + y² + z² = 9, z ≥ 0. Both surfaces share the same boundary circle. Without computing the integrals directly, explain why ∬_{S₁} (∇ × F) · dS = ∬_{S₂} (∇ × F) · dS. Then find the common value.

Lesson Summary

Stokes' theorem states that the surface integral of the curl of a vector field F over an oriented surface S equals the line integral of F around the boundary curve C: ∬_S (∇ × F) · dS = ∮_C F · dr. The right-hand rule links the orientation of S (via its normal ) to the traversal direction of C.

To apply the theorem: (1) compute the curl of F using the determinant formula, (2) decide whether the surface integral or line integral is simpler, (3) parametrize the chosen side, (4) check orientations, and (5) evaluate the integral. If ∇ × F = 0, the circulation around any closed curve is zero. Stokes' theorem is part of a family that includes Green's theorem and the divergence theorem, all united by the principle: total change inside equals net effect on the boundary.

Varsity Tutors • Multivariable Calculus • Stokes' Theorem — Apply Stokes' theorem