01 / 20

Computing Integrals via
Stokes' Theorem

Transform difficult line integrals into simpler surface integrals and vice versa, using one of the most powerful tools in vector calculus.

Calculus 3

What is Stokes' Theorem?

Stokes' Theorem relates a surface integral of the curl of a vector field over a surface \(S\) to a line integral of the vector field around the boundary curve \(C = \partial S\). It generalizes Green's Theorem to three dimensions.

The Key Ingredients

\(\mathbf{F}\): Vector Field
A continuously differentiable vector field \(\mathbf{F} = \langle P, Q, R \rangle\) defined on a region containing \(S\).
\(S\): Oriented Surface
A smooth, oriented surface with a chosen unit normal \(\hat{\mathbf{n}}\). The orientation of \(S\) determines the direction of \(C\).
\(C\): Boundary Curve
The positively oriented boundary \(\partial S\) of the surface, traversed so that the surface is on your left when walking along \(C\) with head pointing in the direction of \(\hat{\mathbf{n}}\).

Surface, Boundary, and Orientation

\(S\)
\(C = \partial S\)
\(\hat{\mathbf{n}}\)
Right-hand rule: curl fingers along \(C\), thumb points in \(\hat{\mathbf{n}}\) direction

The Formal Statement

where \(\mathbf{F}\) is a \(C^1\) vector field on an open region containing \(S\), the surface \(S\) is piecewise smooth and oriented, and \(C = \partial S\) is traversed positively (consistent with the right-hand rule relative to \(\hat{\mathbf{n}}\)).

Computing the Curl

Expanding the determinant:

Master this computation: it is the critical first step in every Stokes' Theorem problem.

Stokes' vs. Green's vs. Divergence

Stokes' Green's Divergence
Dimension 3D surface in space 2D region in the plane 3D solid region
Relates Line integral ↔ Surface integral Line integral ↔ Double integral Surface integral ↔ Triple integral
Operator \(\nabla \times \mathbf{F}\) (curl) \(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\) \(\nabla \cdot \mathbf{F}\) (div)
Special case? Generalizes Green's Stokes' with \(S\) flat in the \(xy\)-plane Different theorem entirely

Step-by-Step Application

1
Identify the goal: Are you given a line integral to convert to a surface integral, or vice versa?
2
Choose a surface \(S\): Pick the simplest surface whose boundary is \(C\). Common choices: a flat disk, a portion of a plane, or a paraboloid cap.
3
Compute \(\nabla \times \mathbf{F}\): Use the determinant formula to find all three components of the curl.
4
Parameterize \(S\) and find \(d\mathbf{S}\): If \(S\) is \(z = g(x,y)\), then \(d\mathbf{S} = \langle -g_x, -g_y, 1 \rangle\,dA\) (upward normal).
5
Evaluate: Compute \(\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}\) over the projected region \(D\) in the \(xy\)-plane.
6
Check orientation: Ensure \(\hat{\mathbf{n}}\) is consistent with the direction of traversal of \(C\) via the right-hand rule.

Example 1: Line Integral via Surface Integral

Compute \(\oint_C \mathbf{F} \cdot d\mathbf{r}\) where \(\mathbf{F} = \langle -y^2, x, z^2 \rangle\) and \(C\) is the circle \(x^2 + y^2 = 1\) in the plane \(z = 0\), oriented counterclockwise when viewed from above.

\(S\): disk
\(C\): circle
\(\hat{\mathbf{n}} = \hat{\mathbf{k}}\)
\(z=0\) plane

Example 1: Solution

1
Curl: \(\nabla \times \mathbf{F} = \left\langle \frac{\partial(z^2)}{\partial y} - \frac{\partial(x)}{\partial z}, \frac{\partial(-y^2)}{\partial z} - \frac{\partial(z^2)}{\partial x}, \frac{\partial(x)}{\partial x} - \frac{\partial(-y^2)}{\partial y}\right\rangle = \langle 0, 0, 1 + 2y \rangle\)
2
Surface integral: On \(z=0\), \(d\mathbf{S} = \langle 0,0,1\rangle\,dA\). So \((\nabla \times \mathbf{F}) \cdot d\mathbf{S} = (1 + 2y)\,dA\).
3
Evaluate: \(\iint_D (1 + 2y)\,dA\). By symmetry, \(\iint_D 2y\,dA = 0\). So the integral is \(\iint_D 1\,dA = \text{Area}(D) = \pi(1)^2 = \pi\).

Example 2: Hemisphere Boundary

Evaluate \(\oint_C \mathbf{F} \cdot d\mathbf{r}\) where \(\mathbf{F} = \langle z, x, y \rangle\) and \(C\) is the boundary of the upper hemisphere \(x^2 + y^2 + z^2 = 4\), \(z \ge 0\).

Hemisphere (hard) Flat disk (easy!)
Same \(C\)
\(\hat{\mathbf{n}} = \hat{\mathbf{k}}\)

Example 2: Solution

1
Curl: \(\nabla \times \mathbf{F} = \left\langle \frac{\partial y}{\partial y} - \frac{\partial x}{\partial z}, \frac{\partial z}{\partial z} - \frac{\partial y}{\partial x}, \frac{\partial x}{\partial x} - \frac{\partial z}{\partial y} \right\rangle = \langle 1, 1, 1 \rangle\)
2
Flat disk, upward normal: \(d\mathbf{S} = \langle 0,0,1\rangle\,dA\), so \((\nabla \times \mathbf{F}) \cdot d\mathbf{S} = 1\,dA\).
3
Integrate: \(\iint_D 1\,dA = \text{Area of disk} = \pi(2)^2 = 4\pi\).

Example 3: Non-Trivial Curl

Compute \(\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S}\) where \(\mathbf{F} = \langle y^2 z, xz, x^2 y \rangle\) and \(S\) is the part of the sphere \(x^2 + y^2 + z^2 = 1\) above the plane \(z = 0\), with outward normal.

1
On \(C\): \(\mathbf{F}(\mathbf{r}(t)) = \langle \sin^2 t \cdot 0, \cos t \cdot 0, \cos^2 t \cdot \sin t \rangle = \langle 0, 0, \cos^2 t \sin t \rangle\)
2
\(\mathbf{r}'(t) = \langle -\sin t, \cos t, 0 \rangle\), so \(\mathbf{F} \cdot \mathbf{r}'(t) = 0\).
3
Result: \(\oint_C \mathbf{F} \cdot d\mathbf{r} = \int_0^{2\pi} 0\,dt = \boxed{0}\)

Which Direction to Convert?

Line → Surface
When \(C\) is complicated to parameterize but \(\nabla \times \mathbf{F}\) is simple. Common when \(C\) lies in a coordinate plane.
Surface → Line
When the surface integral of the curl is hard (curved surface, messy integrand) but the boundary curve \(C\) is easy (circle, triangle, rectangle).

Common Mistakes

✕ Wrong Orientation
Forgetting the right-hand rule. If \(\hat{\mathbf{n}}\) points up, \(C\) must go counterclockwise (viewed from above). Getting this wrong flips the sign.
✕ Curl Errors
Sign mistakes in the curl determinant. The \(\hat{\mathbf{j}}\) component has a minus sign: it is \(\frac{\partial P}{\partial z} - \frac{\partial R}{\partial x}\), not \(\frac{\partial R}{\partial x} - \frac{\partial P}{\partial z}\).
✕ Wrong Surface
Choosing a surface that doesn't actually have \(C\) as its boundary. Verify that \(\partial S = C\) before integrating.

Question 1 of 5

Stokes' Theorem equates a line integral of \(\mathbf{F}\) around \(C\) with which of the following?

Question 2 of 5

If \(\mathbf{F} = \langle -y, x, 0 \rangle\), what is \(\nabla \times \mathbf{F}\)?

Question 3 of 5

Using Stokes' Theorem with \(\mathbf{F} = \langle -y, x, 0 \rangle\) and \(C\) the unit circle in the \(z=0\) plane (counterclockwise), what is \(\oint_C \mathbf{F} \cdot d\mathbf{r}\)?

Question 4 of 5

In applying Stokes' Theorem, you pick a different surface \(S'\) that has the same boundary \(C\). How does the result change?

Question 5 of 5

If \(\nabla \times \mathbf{F} = \mathbf{0}\) everywhere, what does Stokes' Theorem tell us about \(\oint_C \mathbf{F} \cdot d\mathbf{r}\) for any closed curve \(C\)?