Multivariable Calculus Chapter 9 of 9

Chapter 9: Surface Integrals, Stokes and Divergence Theorems

Divergence and curl, parametrised surfaces, flux, Stokes' theorem and the divergence theorem.

All chapters
On this page
9.1

Divergence and curl

Imagine standing in a rushing river of air or water, represented by a three dimensional vector field. If you drop a tiny balloon into the flow, does it expand or shrink? If you drop a tiny paddle wheel into the flow, does it spin? Divergence and curl are the mathematical instruments that measure these two distinct behaviors at any single point in space.

Divergence measures whether a vector field is spreading out from a point or compressing into it. Picture a tiny volume element around a point. If more fluid is flowing out of the volume than is flowing in, the field has a positive source at that point, and the divergence is positive. If the fluid compresses inward, the divergence is negative.

Curl measures the tendency of a vector field to rotate a tiny paddle wheel. Place a tiny cross with four blades at a point. If the surrounding flow pushes the blades unequally so that the cross spins, the curl is non zero. The direction of the curl vector points along the axis of rotation given by the right hand rule, and its length tells you the speed of the spin.

Definition: Divergence and Curl

Let \(F = \langle P, Q, R \rangle\) be a continuously differentiable vector field in three dimensional space. The divergence of \(F\), denoted \(\text{div } F\) or \(\nabla \cdot F\), is the scalar function defined by

\[\text{div } F = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y} + \frac{\partial R}{\partial z}\]

The curl of \(F\), denoted \(\text{curl } F\) or \(\nabla \times F\), is the vector field defined by

\[\text{curl } F = \left( \frac{\partial R}{\partial y} - \frac{\partial Q}{\partial z} \right) \mathbf{i} + \left( \frac{\partial P}{\partial z} - \frac{\partial R}{\partial x} \right) \mathbf{j} + \left( \frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y} \right) \mathbf{k}\]

9.2

Parametric surfaces

Think of a curved sheet of paper floating in space. We can describe it by stretching and bending a flat, two dimensional region from the parameter plane. A parametric surface is given by a vector function of two variables, say \(u\) and \(v\), which maps each point in a domain \(D\) to a point \((x,y,z)\) in space.

If you fix \(v\) and let \(u\) vary, you trace out a curve on the surface. The derivative vector with respect to \(u\), denoted \(r_u\), is tangent to this curve. Similarly, fixing \(u\) and varying \(v\) gives a tangent vector \(r_v\). Together, these two vectors span a tiny tangent parallelogram at any point on the surface. The cross product \(r_u \times r_v\) is perpendicular to this parallelogram, and its length equals the area of the parallelogram.

To find the total surface area, we chop the parameter domain into tiny rectangles, map them to tiny tangent parallelograms on the surface, and sum their areas using a double integral.

Definition: Parametric Surface Area

Let \(S\) be a smooth parametric surface defined by \(r(u,v) = \langle x(u,v), y(u,v), z(u,v) \rangle\) for \((u,v)\) in a domain \(D\), such that the cross product \(r_u \times r_v\) is never zero on the interior of \(D\). The surface area of \(S\) is given by

\[\text{Area}(S) = \iint_D \|r_u \times r_v\| \,dA\]

Example 9.1: Sphere Area

Find the surface area of the sphere of radius \(a\) using spherical parameters.

Solution.

The parametric equation of the sphere is \(r(\theta, \phi) = \langle a \sin\phi \cos\theta, a \sin\phi \sin\theta, a \cos\phi \rangle\) where \(0 \le \theta \le 2\pi\) and \(0 \le \phi \le \pi\).

Compute the partial derivative with respect to \(\theta\): \(r_\theta = \langle -a \sin\phi \sin\theta, a \sin\phi \cos\theta, 0 \rangle\).

Compute the partial derivative with respect to \(\phi\): \(r_\phi = \langle a \cos\phi \cos\theta, a \cos\phi \sin\theta, -a \sin\phi \rangle\).

Compute the cross product \(r_\theta \times r_\phi\):

\(r_\theta \times r_\phi = \langle -a^2 \sin^2\phi \cos\theta, -a^2 \sin^2\phi \sin\theta, -a^2 \sin\phi \cos\phi (\sin^2\theta + \cos^2\theta) \rangle\)

Simplify the cross product components to get \(r_\theta \times r_\phi = \langle -a^2 \sin^2\phi \cos\theta, -a^2 \sin^2\phi \sin\theta, -a^2 \sin\phi \cos\phi \rangle\).

Calculate the length of the cross product vector:

\(\|r_\theta \times r_\phi\| = \sqrt{a^4 \sin^4\phi \cos^2\theta + a^4 \sin^4\phi \sin^2\theta + a^4 \sin^2\phi \cos^2\phi}\)

Factor out terms inside the square root:

\(\|r_\theta \times r_\phi\| = \sqrt{a^4 \sin^4\phi + a^4 \sin^2\phi \cos^2\phi} = \sqrt{a^4 \sin^2\phi (\sin^2\phi + \cos^2\phi)} = a^2 \sin\phi\) since \(\sin\phi \ge 0\) on the interval.

Set up the double integral for surface area over the domain \(D\):

\(\text{Area} = \int_0^{2\pi} \int_0^\pi a^2 \sin\phi \,d\phi \,d\theta\).

Integrate with respect to \(\phi\):

\(\int_0^\pi a^2 \sin\phi \,d\phi = a^2 [-\cos\phi]_0^\pi = 2a^2\).

Integrate the result with respect to \(\theta\):

\(\int_0^{2\pi} 2a^2 \,d\theta = 2a^2 (2\pi) = 4\pi a^2\).

9.3

Surface integrals and flux

Imagine a thin sheet of metal shaped like a curved surface. If you know the temperature at every point on the sheet, how do you find the total thermal energy? You integrate a scalar function over the surface by weighting small patches of area by the local function value.

Now imagine a net submerged in a flowing river. How much water passes through the net per second? This is flux, and it requires a vector field and an orientation. A surface is orientable if it has two distinct sides, allowing us to choose a continuous unit normal vector \(n\) at every point. The choice of \(n\) defines the positive side of the surface. Flux measures the net volume of fluid crossing the surface per unit time in the direction of the chosen normal.

Definition: Surface Integrals and Flux

Let \(S\) be a smooth oriented surface with unit normal vector \(n\). The surface integral of a continuous scalar function \(f\) over \(S\) is defined as

\[\iint_S f \,dS = \iint_D f(r(u,v)) \|r_u \times r_v\| \,dA\]

The flux of a continuous vector field \(F\) across the oriented surface \(S\) is defined as

\[\iint_S F \cdot dS = \iint_S F \cdot n \,dS = \iint_D F(r(u,v)) \cdot (r_u \times r_v) \,dA\]

9.4

Stokes' theorem

Imagine a soap film stretched across a curved wire loop. Stokes' theorem connects what happens on the two dimensional film to what happens strictly along its one dimensional boundary wire. It states that the total microscopic rotation of a fluid across the surface equals the macroscopic circulation of the fluid around the boundary wire.

For this equality to hold, the orientations of the surface and its boundary must be linked by the right hand rule. If you walk along the boundary curve in the positive direction with your head pointing along the surface normal vector \(n\), the surface must always be on your left hand side.

Theorem: Stokes' Theorem

Let \(S\) be a piecewise smooth oriented surface bounded by a simple, closed, piecewise smooth boundary curve \(C\). Let \(F\) be a vector field with continuous partial derivatives on an open region containing \(S\). If the orientation of \(C\) is induced by the orientation of \(S\), then

\[\int_C F \cdot dr = \iint_S (\text{curl } F) \cdot dS\]

Example 9.2: Stokes Line Integral

Use Stokes' theorem to evaluate \(\oint_C F\cdot dr\) for \(F = \langle z, x, y \rangle\) where \(C\) is the boundary of the triangle with vertices \((1,0,0)\), \((0,1,0)\), \((0,0,1)\), oriented anticlockwise seen from above.

Solution.

Find the curl of the vector field \(F = \langle z, x, y \rangle\):

\(\text{curl } F = \left( \frac{\partial y}{\partial y} - \frac{\partial x}{\partial z} \right) \mathbf{i} + \left( \frac{\partial z}{\partial z} - \frac{\partial y}{\partial x} \right) \mathbf{j} + \left( \frac{\partial x}{\partial x} - \frac{\partial z}{\partial y} \right) \mathbf{k} = \langle 1-0, 1-0, 1-0 \rangle = \langle 1, 1, 1 \rangle\).

The triangle lies in the plane \(x + y + z = 1\), which can be written as \(z = 1 - x - y\) over the projection domain \(D\) in the \(xy\) plane where \(x \ge 0\), \(y \ge 0\), and \(x + y \le 1\).

Parameterize the surface using \(x\) and \(y\): \(r(x,y) = \langle x, y, 1 - x - y \rangle\).

Compute the partial derivatives: \(r_x = \langle 1, 0, -1 \rangle\) and \(r_y = \langle 0, 1, -1 \rangle\).

Compute the cross product: \(r_x \times r_y = \langle 1, 0, -1 \rangle \times \langle 0, 1, -1 \rangle = \langle 1, 1, 1 \rangle\), which points upward matching the required orientation.

Evaluate the dot product \((\text{curl } F) \cdot (r_x \times r_y) = \langle 1, 1, 1 \rangle \cdot \langle 1, 1, 1 \rangle = 1 + 1 + 1 = 3\).

Set up the double integral over the triangular domain \(D\):

\(\iint_S (\text{curl } F) \cdot dS = \int_0^1 \int_0^{1-x} 3 \,dy \,dx\).

Integrate with respect to \(y\):

\(\int_0^{1-x} 3 \,dy = 3(1-x)\).

Integrate the result with respect to \(x\):

\(\int_0^1 3(1-x) \,dx = 3 \left[ x - \frac{x^2}{2} \right]_0^1 = 3 \left( 1 - \frac{1}{2} \right) = \frac{3}{2}\).

9.5

The divergence theorem

Imagine a sealed balloon filled with expanding gas. The total amount of gas flowing out through the rubber skin must equal the sum of all microscopic expansion sources inside the balloon. The Divergence Theorem, also known as Gauss's theorem, formalizes this exact balance for any solid region in three dimensions.

Theorem: Divergence Theorem

Let \(E\) be a solid three dimensional region bounded by a closed, smooth, oriented surface \(S\) with unit normal vector \(n\) pointing outward from \(E\). Let \(F\) be a vector field with continuous partial derivatives on an open region containing \(E\). Then

\[\iint_S F \cdot n \,dS = \iiint_E \text{div } F \,dV\]

Example 9.3: Divergence Flux

Find the outward flux of \(F = \langle 2x, y^2, z^2 \rangle\) through the sphere \(x^2 + y^2 + z^2 = 1\) by the divergence theorem.

Solution.

Let \(E\) be the solid unit ball \(x^2 + y^2 + z^2 \le 1\) bounded by the sphere \(S\).

Compute the divergence of the vector field \(F = \langle 2x, y^2, z^2 \rangle\):

\(\text{div } F = \frac{\partial}{\partial x}(2x) + \frac{\partial}{\partial y}(y^2) + \frac{\partial}{\partial z}(z^2) = 2 + 2y + 2z\).

Apply the divergence theorem to convert the surface flux integral to a triple integral over the solid ball \(E\):

\(\iint_S F \cdot n \,dS = \iiint_E (2 + 2y + 2z) \,dV\).

Use spherical coordinates to evaluate the triple integral, where \(dV = \rho^2 \sin\phi \,d\rho \,d\phi \,d\theta\):

\(\int_0^{2\pi} \int_0^\pi \int_0^1 (2 + 2\rho \sin\phi \sin\theta + 2\rho \cos\phi) \rho^2 \sin\phi \,d\rho \,d\phi \,d\theta\).

By symmetry, the integrals of the linear \(y\) and \(z\) terms over the symmetric ball \(E\) evaluate to zero, leaving:

\(\iiint_E 2 \,dV = 2 \times \text{Volume}(E) = 2 \left( \frac{4}{3}\pi (1)^3 \right) = \frac{8\pi}{3}\).

All the major integral theorems of vector calculus share a single grand design. They are higher dimensional generalizations of the fundamental theorem of calculus, which links an integral over an interval to values at its boundary points. Green's theorem relates a double integral over a flat region to a line integral around its boundary curve. Stokes' theorem extends this to curved surfaces in space, linking a surface integral of curl to a boundary line integral. The divergence theorem extends it to three dimensional volumes, linking a volume integral of divergence to a closed surface flux integral. In each case, an operator measuring infinitesimal change inside a domain integrates to yield the accumulated effect across its boundary.

9.6

Practice

Practice 1: try it first

Find \(\operatorname{curl} F\) for \(F = \langle -y, x, 0 \rangle\).

Show the answer

\(\langle 0, 0, 2 \rangle\)

Practice 2: try it first

Find the upward flux of \(F = \langle 0, 0, 3 \rangle\) through the disc \(x^2 + y^2 \le 4\) in the plane \(z = 0\).

Show the answer

\(12\pi\)

Practice 3: try it first

Find the outward flux of \(F = \langle x, 2y, 3z \rangle\) through the surface of the unit cube.

Show the answer

\(6\)

Want a hint instead of an answer? Practise this chapter with the tutor.