§ 01The Unifying Idea
Every one of these three theorems says the same thing in a different dimension: an integral over a region can be converted into an integral over its boundary: or vice versa.
This principle is already familiar from single-variable calculus. The Fundamental Theorem of Calculus states that ∫ab f′(x) dx = f(b) − f(a): an integral over an interval equals the difference of values at the two endpoints (the boundary of the interval). Green's, Stokes', and the Divergence Theorem are multi-dimensional generalisations of exactly this idea.
Before diving into each theorem, make sure you are comfortable with line integrals and surface integrals, these are the boundary integrals that appear on the right-hand side of every formula here. Also recall the partial derivatives that build the curl and divergence operators.
The Three Theorems at a Glance
| Theorem | Interior Integral | Boundary Integral | Dimension |
|---|---|---|---|
| Green's | ∬D (∂Q/∂x − ∂P/∂y) dA | ∮C P dx + Q dy | 2D region → 1D curve |
| Stokes' | ∬S (∇×F)·dS | ∮∂S F·dr | 3D surface → 1D curve |
| Divergence | ∭V (∇·F) dV | ∬S F·dS | 3D volume → 2D surface |
§ 02Green's Theorem
where C is a simple closed curve traversed counterclockwise (positive orientation) enclosing a simply-connected region D, and P, Q have continuous partial derivatives on an open set containing D.
The left-hand side is a line integral around the closed boundary. The right-hand side is a double integral over the enclosed region. The integrand ∂Q/∂x − ∂P/∂y is the scalar curl (also called the 2D curl) of the vector field F = ⟨P, Q⟩.
Physical Interpretation
Imagine a fluid flowing in the plane with velocity field F = ⟨P, Q⟩. The line integral ∮C F·dr measures the total circulation: how much the fluid rotates around the curve C. The scalar curl ∂Q/∂x − ∂P/∂y measures the local rotation density at each interior point. Green's theorem says that total circulation equals the sum of all local rotations across the region: a boundary measurement equals an interior measurement.
Two Ways to Use It
Line integral → double integral: When the line integral around a complicated closed curve is hard to compute directly, replace it with a (often simpler) double integral over the interior.
Double integral → line integral: When computing area or a double integral, rewrite it as a line integral. Notably, the area of D is: A = ½ ∮C (x dy − y dx).
Conservative Fields and Green's Theorem
If P and Q satisfy ∂Q/∂x = ∂P/∂y everywhere in D (the scalar curl is zero), then Green's theorem tells us the line integral around any closed curve in D is zero. This is exactly the condition for F = ⟨P, Q⟩ to be a conservative vector field with a potential function f where ∇f = F.
§ 03Stokes' Theorem
where S is an oriented surface with boundary curve ∂S (traversed with positive orientation consistent with the surface normal), and F has continuous partial derivatives on an open set containing S.
Stokes' theorem generalises Green's theorem from flat regions in the plane to curved surfaces in 3D space. The right-hand side involves the curl of F, the full 3D vector curl, dotted with the surface element dS.
The Curl of a Vector Field
For F = ⟨P, Q, R⟩, the curl is the vector:
The curl measures the local rotation of the field at each point. If you imagine a tiny paddle wheel placed in the fluid, the curl tells you how fast it spins and around which axis. Stokes' theorem says the total circulation around the boundary curve equals the total "spinning" integrated over the surface.
Right-Hand Rule for Orientation
The orientation of ∂S must be consistent with the choice of normal on S. Use the right-hand rule: curl the fingers of your right hand in the direction of traversal along ∂S; your thumb points in the direction of the surface normal. Reversing either the orientation of S or the direction of ∂S changes the sign of the integral.
Green's Theorem as a Special Case
When S is a flat region D in the xy-plane with the upward-pointing normal k, the surface integral becomes ∬D (∇×F)·k dA = ∬D (∂Q/∂x − ∂P/∂y) dA, recovering exactly Green's theorem. Stokes' theorem is the 3D parent of Green's theorem.
§ 04The Divergence Theorem
where V is a solid region with closed boundary surface S (oriented with the outward-pointing normal), and F has continuous partial derivatives on an open set containing V.
This theorem links a surface integral over a closed surface to a triple integral over the enclosed volume. The integrand on the right is the divergence of F.
The Divergence of a Vector Field
For F = ⟨P, Q, R⟩, the divergence is the scalar:
The divergence measures how much the field is spreading out from each point. Positive divergence at a point means there is a local source of flux there (fluid is being created); negative divergence means a sink (fluid is being absorbed). A field with ∇·F = 0 everywhere is incompressible (or solenoidal), no sources or sinks.
Physical Interpretation
Think of F as the velocity field of a fluid. The surface integral ∬S F·dS measures the total flux, the net volume of fluid per unit time flowing out through the surface S. The Divergence Theorem says this net outward flux equals the sum of all local sources and sinks throughout the volume.
Outward normals on closed surface S bounding volume V: net outward flux = total divergence inside
§ 05Worked Examples
Examples 1–4 use Green's theorem, 5–7 use Stokes', and 8–10 use the Divergence theorem. For each, identify which theorem applies before computing.
Evaluate ∮C (y² dx + x dy) where C is the triangle with vertices (0,0), (1,0), (0,1) traversed counterclockwise.
Use Green's theorem to find the area enclosed by the ellipse x = a cos t, y = b sin t, 0 ≤ t ≤ 2π.
Show that ∮C (2xy dx + x² dy) = 0 for any simple closed curve C using Green's theorem.
Note: Q = x² has potential f = x²y, so this is a conservative field. The zero line integral is expected.
∮ = 0 for any closed CEvaluate ∮C (−y³ dx + x³ dy) where C is the unit circle x²+y²=1, counterclockwise.
Evaluate ∬S (∇×F)·dS for F = ⟨−y, x, 0⟩ where S is the paraboloid z = 1−x²−y², z ≥ 0, with upward normal. Use Stokes' theorem.
Find ∮C F·dr where F = ⟨xz, xy, yz⟩ and C is the boundary of the triangle with vertices (1,0,0), (0,1,0), (0,0,1) traversed counterclockwise when viewed from above.
Evaluate ∮C F·dr for F = ⟨y², z², x²⟩ where C is the intersection of the cylinder x²+y²=1 and the plane z = y+2, traversed counterclockwise from above. Use Stokes' with the flat disk inside C rather than the cylinder.
Find the flux of F = ⟨x³, y³, z³⟩ outward through the sphere x²+y²+z²=a².
Compute ∬S F·dS for F = ⟨x+sin y, y+sin z, z+sin x⟩ over the surface of the cube [0,1]³.
Note how the sin terms all vanish in the divergence, the Divergence Theorem saves considerable work compared to computing all six face integrals separately.
Evaluate ∬S F·dS outward for F = ⟨x, y, z⟩ over the closed surface between the sphere x²+y²+z²=4 (outer) and the sphere x²+y²+z²=1 (inner), with outward pointing normal on each.
§ 06Common Mistakes
§ 07Practice Quiz
Test your grasp of all three theorems. Answer each question and use the hints and worked solutions if you get stuck.
Green's theorem converts ∮C P dx + Q dy into which expression?
Use Green's theorem to evaluate ∮C (x² dx + xy dy) where C is the unit square [0,1]×[0,1] traversed counterclockwise.
Answer:
- P = x², Q = xy → ∂Q/∂x − ∂P/∂y = y − 0 = y
- ∬[0,1]² y dA = ∫₀¹ ∫₀¹ y dy dx = ∫₀¹ ½ dx = 1/2
What does the Divergence Theorem convert ∬S F·dS into?
Compute ∬S F·dS for F = ⟨2x, 3y, z⟩ outward through the unit sphere x²+y²+z²=1.
Answer:
- ∇·F = ∂(2x)/∂x + ∂(3y)/∂y + ∂(z)/∂z = 2+3+1 = 6
- ∭V 6 dV = 6 · (4π/3)(1)³ = 8π ≈ 25.133
Stokes' theorem relates a line integral around ∂S to a surface integral involving which quantity?
Use Green's area formula to find the area enclosed by the ellipse x = 3cos t, y = 2sin t. Give your answer as a multiple of π (enter the coefficient).
Area = × π
- A = πab = π·3·2 = 6π so coefficient = 6
If ∇·F = 0 throughout a volume V, then the net flux of F through the closed boundary S of V is:
Evaluate ∮C(−y² dx + x² dy) where C is the circle x²+y²=4 (radius 2), counterclockwise. Give exact answer in terms of π (enter the coefficient).
Answer = × π
- P = −y², Q = x². ∂Q/∂x = 2x, ∂P/∂y = −2y
- Scalar curl = 2x − (−2y) = 2x + 2y
- ∬D (2x+2y) dA over disk radius 2. By symmetry, ∬2x dA = 0 and ∬2y dA = 0.
- Answer = 0.
Which of these is the correct formula for the divergence of F = ⟨P, Q, R⟩?
Green's theorem is a special case of which more general theorem?
§ 08Related Pages
These theorems sit at the pinnacle of vector calculus. Each one depends on concepts covered elsewhere on this site, explore them to fill any gaps and deepen your understanding.