Courses · Calculus 3 · Unit guide
Calculus 3: Surface integrals, Stokes’ theorem and the Divergence Theorem
How to integrate over surfaces, measure flux, and use the two big theorems to shortcut it
This unit covers: Parametric surfaces, flux, curl and divergence, and the two big theorems.

Did you know that flipping a surface's orientation silently flips the sign of your answer? That's the mistake that costs the most points in this unit of vector calculus. We'll build up parametric surfaces, flux, curl and divergence, then Stokes' theorem and the Divergence Theorem.
Parametric Surfaces
A parametric surface is a vector function r of two parameters, u and v, which gives x, y and z each as a function of u and v. For a sphere of radius a, we use two angles: x equals a sine phi cosine theta, y equals a sine phi sine theta, and z equals a cosine phi. The cross product of the partial derivatives, r sub u cross r sub v, gives a normal vector.
r(u,v) = ⟨x(u,v), y(u,v), z(u,v)⟩ x = a sinφ cosθ, y = a sinφ sinθ z = a cosφ n = ru × rv
Key points.
- A surface is a vector function r(u,v) of two parameters
- Sphere of radius a uses angles φ and θ
- The cross product ru × rv is a normal vector
Surface Area and Scalar Surface Integrals
The length of that normal vector tells you how much a tiny parameter rectangle gets stretched, so dS equals the magnitude of r sub u cross r sub v, times du dv. Integrating that over the parameter domain gives surface area. To integrate a function f over the surface, you multiply f by the same factor. And for a graph z equals g of x and y, dS becomes the square root of one plus g sub x squared plus g sub y squared, times dA.
dS = |ru × rv| du dv Area = ∬D |ru × rv| dA ∬S f dS = ∬D f(r(u,v)) |ru × rv| dA graph z = g(x,y): dS = √(1 + gx² + gy²) dA
Key points.
- Area element dS is the length of ru × rv times du dv
- Scalar integrals weight each patch by f
- Graphs z = g(x,y) use the square root formula
Scalar Integrals vs Flux Integrals
Here's the distinction students blur most. A scalar surface integral, like finding the mass of a thin shell, uses only the length of the normal, so direction doesn't matter. A flux integral measures how much of a vector field passes through the surface, so you must pick an orientation, meaning a consistent choice of unit normal. Closed surfaces point outward by convention, and a Möbius strip can't be oriented at all.
Scalar: ∬ f dS
- Integrates a function over the surface
- Uses |ru × rv|, a length
- No orientation needed
- Example: mass of a thin shell
Flux: ∬ F · dS
- Integrates the normal part of a vector field
- Uses ru × rv itself, a vector
- Needs a chosen orientation
- Reversing orientation flips the sign
Computing a Flux Integral
The flux of F through S is the integral of F dotted with the unit normal n, times dS. In parameter form, that becomes F evaluated on the surface, dotted with r sub u cross r sub v, integrated over the domain. Try F equals x, y, z through the unit sphere, oriented outward, where n is also x, y, z. Then F dot n is x squared plus y squared plus z squared, which is one, so the flux is just the area, four pi.
∬S F·dS = ∬S F·n dS = ∬D F(r(u,v))·(ru × rv) dA F = ⟨x,y,z⟩, unit sphere, n = ⟨x,y,z⟩ F·n = x² + y² + z² = 1 flux = area = 4π
Key points.
- Flux is the integral of F dotted with the unit normal
- In parameters, dot F with ru × rv directly
- Radial field through the unit sphere gives 4π
Divergence and Curl
Both operators come from the del operator, the vector of partial derivatives. Divergence is del dot F, which is P sub x plus Q sub y plus R sub z, and it's a scalar. Curl is del cross F, and it's a vector. Take F equals x y, y z, z x. The divergence is y plus z plus x. Working the cross product carefully, the curl comes out to negative y, negative z, negative x.
∇ = ⟨∂/∂x, ∂/∂y, ∂/∂z⟩ div F = ∇·F = Px + Qy + Rz curl F = ∇ × F F = ⟨xy, yz, zx⟩ div F = y + z + x curl F = ⟨−y, −z, −x⟩
Key points.
- Divergence is del dot F, a scalar
- Curl is del cross F, a vector
- Example: F = ⟨xy, yz, zx⟩
What Curl and Divergence Mean
Divergence measures net outflow per unit volume at a point, so a source has positive divergence and a sink has negative divergence. Curl measures how the field makes things spin: picture a tiny paddle wheel, which turns fastest when its axis lines up with the curl. Two identities come up constantly. The curl of a gradient is always zero, so conservative fields are irrotational, and the divergence of a curl is always zero.
Key points.
- Divergence measures net outflow per unit volume
- Curl measures rotation, like a tiny paddle wheel
- Curl of a gradient is zero; divergence of a curl is zero
Stokes' Theorem
Stokes' theorem says the circulation of F around a closed curve C equals the flux of the curl of F through any oriented surface S that has C as its boundary. The orientations must match by the right-hand rule: point your thumb along the normal, and your fingers curl in the direction of C. When S is a flat region in the plane, this is exactly Green's theorem.
∮C F · dr = ∬S curl F · dS, where C is the positively oriented boundary of the oriented surface S Stokes' theorem
Key points.
- Circulation around the boundary equals flux of the curl
- Orientation follows the right-hand rule
- Generalizes Green's theorem to surfaces in space
Stokes' Theorem in Action
Let F be negative y, x, z, so the curl is zero, zero, two. Say S is the upper hemisphere, whose boundary is the unit circle. Because only the boundary matters, you can swap the hemisphere for the flat unit disk with normal k. Then the integral is just two times the disk's area, which is two pi. Checking with the line integral, F dot r prime equals one, and integrating from zero to two pi also gives two pi.
F = ⟨−y, x, z⟩ curl F = ⟨0, 0, 2⟩ S = hemisphere → use disk, n = k ∬ curl F·dS = ∬ 2 dA = 2π check: ∮ F·dr = ∫0^2π 1 dt = 2π
Key points.
- F = ⟨−y, x, z⟩ has constant curl ⟨0, 0, 2⟩
- Any surface with the same boundary gives the same answer
- Swap the hemisphere for a flat disk: result 2π
The Divergence Theorem
The Divergence Theorem says the outward flux through a closed surface S equals the triple integral of the divergence over the solid E inside. The surface must be closed and oriented outward. Let's redo our sphere example: F equals x, y, z has divergence three, so the flux is three times the ball's volume, four thirds pi, which is four pi again. If a surface isn't closed, close it with a lid and subtract.
∬S F·dS = ∭E div F dV S closed, n outward F = ⟨x,y,z⟩ → div F = 3 ∭ 3 dV = 3 · (4/3)π = 4π
Key points.
- Flux out of a closed surface equals the integral of div F inside
- Requires a closed surface with outward orientation
- Radial field: 3 times the ball's volume gives 4π
Remember this
Remember the pattern: a boundary curve points you to Stokes' theorem, a closed surface points you to the Divergence Theorem, and orientation decides the sign. Now quiz yourself with a few flux and curl problems.
Practice this unit
- Calculus 3: Surface Integrals, Stokes’ Theorem and the Divergence Theorem quiz15 multiple-choice questions with explanations · no account needed
- Calculus 3: Vectors and the Geometry of Space quiz15 multiple-choice questions with explanations · no account needed
- Calculus 3: Vector Functions and Motion in Space quiz15 multiple-choice questions with explanations · no account needed
- Calculus 3: Surface Integrals, Stokes’ Theorem and the Divergence Theorem35 flashcards · study free
- Calculus 3: Vectors and the Geometry of Space36 flashcards · study free
- Calculus 3: Vector Functions and Motion in Space32 flashcards · study free
- Calculus 3: Partial Derivatives30 flashcards · study free
Every Calculus 3 deck and quiz: the Calculus 3 page.
Other Calculus 3 unit guides
- Vectors and the geometry of spaceStudy guide
- Vector functions and motion in spaceStudy guide
- Partial derivativesStudy guide
- Gradient and directional derivativesStudy guide
- Optimization and Lagrange multipliersStudy guide
- Double integralsStudy guide
- Triple integrals and coordinate changesStudy guide
- Vector fields and line integralsStudy guide
- Green’s theoremStudy guide
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.