# 4.4: Surface Integrals and the Divergence Theorem

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

In Section 4.1, we learned how to integrate along a curve. We will now learn how to perform integration over a *surface* in \(\mathbb{R}^3\) , such as a sphere or a paraboloid. Recall from Section 1.8 how we identified points \((x, y, z)\) on a curve \(C\) in \(\mathbb{R}^3\) , parametrized by \(x = x(t), y = y(t), z = z(t), a ≤ t ≤ b\), with the terminal points of the position vector

\[\nonumber \textbf{r}(t)= x(t)\textbf{i}+ y(t)\textbf{j}+ z(t)\textbf{k} \text{ for }t \text{ in }[a,b].\]

The idea behind a parametrization of a curve is that it “transforms” a subset of \(\mathbb{R}^ 1\) (normally an interval \([a,b]\)) into a curve in \(\mathbb{R}^ 2\) or \(\mathbb{R}^ 3\) (Figure \(\PageIndex{1}\)).

**Figure \(\PageIndex{1}\):** Parametrization of a curve \(C\) in \(\mathbb{R}^ 3\)

Similar to how we used a parametrization of a curve to define the line integral along the curve, we will use a parametrization of a surface to define a *surface integral*. We will use two variables, \(u \text{ and }v\), to parametrize a surface \(Σ\) in \(\mathbb{R}^ 3\) : \(x = x(u,v), y = y(u,v), z = z(u,v), \text{ for }(u,v)\) in some region \(R\) in \(\mathbb{R}^ 2\) (Figure \(\PageIndex{1}\) ).

**Figure \(\PageIndex{2}\):** Parametrization of a surface \(Σ\) in \(\mathbb{R}^ 3\)

In this case, the position vector of a point on the surface \(Σ\) is given by the vector-valued function

\[\nonumber \textbf{r}(u,v) = x(u,v)\textbf{i} + y(u,v)\textbf{j} + z(u,v)\textbf{k} \text{ for }(u,v) \text{ in }R.\]

Since \(\textbf{r}(u,v)\) is a function of two variables, define the partial derivatives \(\dfrac{∂r}{ ∂u} \text{ and }\dfrac{∂r }{∂v}\) for \((u,v) \text{ in }R\) by

\[\nonumber \begin{align}&\dfrac{∂\textbf{r}}{ ∂u }(u,v)=\dfrac{∂x }{∂u} (u,v)\textbf{i}+\dfrac{∂y}{ ∂u} (u,v)\textbf{j}+\dfrac{∂z }{∂u} (u,v)\textbf{k},\text{ and} \\ \nonumber & \dfrac{∂\textbf{r}}{ ∂v }(u,v) = \dfrac{∂x }{∂v} (u,v)\textbf{i}+\dfrac{∂y}{ ∂v} (u,v)\textbf{j}+\dfrac{∂z }{∂v} (u,v)\textbf{k} \\ \end{align}\]

The parametrization of \(Σ\) can be thought of as “transforming” a region in \(\mathbb{R}^2\) (in the \(uv\)-plane) into a 2-dimensional surface in \(\mathbb{R}^3\) . This parametrization of the surface is sometimes called a *patch*, based on the idea of “patching” the region \(R\) onto \(Σ\) in the grid-like manner shown in Figure \(\PageIndex{2}\).

In fact, those gridlines in \(R\) lead us to how we will define a surface integral over \(Σ\). Along the vertical gridlines in \(R\), the variable \(u\) is constant. So those lines get mapped to curves on \(Σ\), and the variable \(u\) is constant along the position vector \(\textbf{r}(u,v)\). Thus, the tangent vector to those curves at a point \((u,v)\) is \(\dfrac{∂r}{ ∂v}\) . Similarly, the horizontal gridlines in \(R\) get mapped to curves on \(Σ\) whose tangent vectors are \(\dfrac{∂r}{ ∂u}\) .

Now take a point \((u,v)\) in \(R\) as, say, the lower left corner of one of the rectangular grid sections in \(R\), as shown in Figure \(\PageIndex{2}\). Suppose that this rectangle has a small width and height of \(∆u \text{ and }∆v\), respectively. The corner points of that rectangle are \((u,v), (u + ∆u,v), (u +∆u,v +∆v)\) and \((u,v +∆v)\). So the area of that rectangle is \(A = ∆u∆v\). Then that rectangle gets mapped by the parametrization onto some section of the surface \(Σ\) which, for \(∆u \text{ and }∆v\) small enough, will have a surface area (call it \(dσ\)) that is very close to the area of the parallelogram which has adjacent sides \(\textbf{r}(u+∆u,v)−\textbf{r}(u,v)\) (corresponding to the line segment from \((u,v) \text{ to }(u + ∆u,v) \text{ in }R\)) and \(\textbf{r}(u,v + ∆v) − \textbf{r}(u,v)\) (corresponding to the line segment from \((u,v) \text{ to }(u,v + ∆v) \text{ in }R\)). But by combining our usual notion of a partial derivative (Definition 2.3 in Section 2.2) with that of the derivative of a vector-valued function (Definition 1.12 in Section 1.8) applied to a function of two variables, we have

\[\nonumber \begin{align} &\dfrac{∂\textbf{r}}{ ∂u} \approx \dfrac{\textbf{r}(u +∆u,v)−\textbf{r}(u,v)}{∆u},\text{ and } \\ \nonumber &\dfrac{∂\textbf{r}}{ ∂v} \approx \dfrac{\textbf{r}(u,v+∆v)−\textbf{r}(u,v)}{∆v}, \\ \end{align}\]

and so the surface area element \(dσ\) is approximately

\[\nonumber \lVert (\textbf{r}(u +∆u,v)−\textbf{r}(u,v))\times (\textbf{r}(u,v+∆v)−\textbf{r}(u,v)) \rVert \approx \Big \lVert (∆u \dfrac{∂\textbf{r}}{ ∂u} )\times (∆v \dfrac{∂\textbf{r}}{ ∂v} ) \Big \rVert = \Big \lVert \dfrac{∂\textbf{r}}{ ∂u}\times \dfrac{∂\textbf{r}} {∂v} \Big \rVert \,∆u\,∆v\]

by Theorem 1.13 in Section 1.4. Thus, the total surface area \(S \text{ of }Σ\) is approximately the sum of all the quantities \(\lVert \dfrac{ ∂\textbf{r}}{ ∂u} \times \dfrac{∂\textbf{r}}{ ∂v} \rVert \,∆u\,∆v\), summed over the rectangles in \(R\). Taking the limit of that sum as the diagonal of the largest rectangle goes to 0 gives

\[S = \iint\limits_R \Big \lVert \dfrac{∂\textbf{r}} {∂u} \times \dfrac{∂\textbf{r}} {∂v} \Big \rVert \,du \,dv.\label{Eq4.26}\]

We will write the double integral on the right using the special notation

\[\iint\limits_Σ dσ = \iint\limits_R \Big \lVert \dfrac{∂\textbf{r}}{ ∂u} \times \dfrac{∂\textbf{r}} {∂v} \Big \rVert \,du \,dv .\label{Eq4.27}\]

This is a special case of a *surface integral* over the surface \(Σ\), where the surface area element \(dσ\) can be thought of as \(1dσ\). Replacing 1 by a general real-valued function \(f (x, y, z)\) defined in \(\mathbb{R}^ 3\) , we have the following:

Definition: Surface Integral

Let \(Σ\) be a surface in \(\mathbb{R}^ 3\) parametrized by \(x = x(u,v), y = y(u,v), z = z(u,v), \text{ for }(u,v)\) in some region \(R\) in \(\mathbb{R}^ 2\). Let \(\textbf{r}(u,v) = x(u,v)\textbf{i} + y(u,v)\textbf{j} + z(u,v)\textbf{k}\) be the position vector for any point on \(Σ\), and let \(f (x, y, z)\) be a real-valued function defined on some subset of \(\mathbb{R}^ 3\) that contains \(Σ\). The **surface integral** of \(f (x, y, z) \text{ over }Σ\) is

\[\iint\limits_Σ f (x, y, z)\,dσ = \iint\limits_R f (x(u,v), y(u,v), z(u,v)) \Big \lVert \dfrac{∂\textbf{r}}{∂u}\times \dfrac{∂\textbf{r}}{ ∂v} \Big \rVert \,du \,dv.\label{Eq4.28}\]

In particular, the surface area \(S\) of \(Σ\) is

\[S = \iint\limits_Σ 1\,dσ .\label{Eq4.29}\]

Example 4.9

A *torus* \(T\) is a surface obtained by revolving a circle of radius \(a\) in the \(yz\)-plane around the \(z\)-axis, where the circle’s center is at a distance \(b\) from the \(z\)-axis \((0 < a < b)\), as in Figure \(\PageIndex{3}\). Find the surface area of \(T\).

**Figure \(\PageIndex{3}\)**

**Solution:**

For any point on the circle, the line segment from the center of the circle to that point makes an angle \(u\) with the \(y\)-axis in the positive \(y\) direction (Figure \(\PageIndex{3}\)(a)). And as the circle revolves around the \(z\)-axis, the line segment from the origin to the center of that circle sweeps out an angle \(v\) with the positive \(x\)-axis (Figure \(\PageIndex{3}\)(b)). Thus, the torus can be parametrized as:

\[\nonumber x = (b + a\cos u)\cos v ,\quad y = (b + a\cos u)\sin v ,\quad z = a\sin u,\quad 0 ≤ u ≤ 2π ,\quad 0 ≤ v ≤ 2π\]

So for the position vector

\[\nonumber \begin{align} \textbf{r}(u,v) &= x(u,v)\textbf{i} + y(u,v)\textbf{j} + z(u,v)\textbf{k} \\ \nonumber &= (b + a\cos u)\cos v\textbf{i} + (b + a\cos u)\sin v\textbf{j} + a\sin u\textbf{k} \\ \end{align}\]

we see that

\[\nonumber \begin{align}\dfrac{∂\textbf{r}}{ ∂u} &=−a\sin u \cos v\textbf{i} − a\sin u \sin v\textbf{j} + a\cos u\textbf{k} \\ \nonumber \dfrac{∂\textbf{r}}{ ∂v} &= −(b + a\cos u)\sin v\textbf{i} + (b + a\cos u)\cos v\textbf{j} + 0\textbf{k} , \\ \end{align}\]

and so computing the cross product gives

\[\nonumber \dfrac{∂\textbf{r}}{ ∂u}\times \dfrac{∂\textbf{r}}{ ∂v} = −a(b + a\cos u)\cos v \cos u\textbf{i} − a(b + a\cos u)\sin v \cos u\textbf{j} − a(b + a\cos u)\sin u\textbf{k} ,\]

which has magnitude

\[\nonumber \Big \lVert \dfrac{∂\textbf{r}}{ ∂u}\times \dfrac{∂\textbf{r}}{ ∂v} \Big \rVert = a(b + a\cos u) .\]

Thus, the surface area of \(T\) is

\[\nonumber \begin{align} S&= \iint\limits_Σ 1\,dσ \\ \nonumber &=\int_0^{2\pi} \int_0^{2\pi} \Big \lVert \dfrac{∂\textbf{r}}{ ∂u}\times \dfrac{∂\textbf{r}}{ ∂v} \Big \rVert \,du\, dv \\ \nonumber &=\int_0^{2\pi}\int_0^{2\pi} a(b + a\cos u)\,du \,dv \\ \nonumber &=\int_0^{2\pi} \left (abu + a^2 \sin u \Big |_{u=0}^{u=2\pi} \right ) \,dv \\ \nonumber &=\int_0^{2\pi} 2πab\, dv \\ \nonumber &=4π ^2 ab \\ \end{align}\]

Since \(\dfrac{∂\textbf{r}}{ ∂u}\text{ and }\dfrac{∂\textbf{r}}{ ∂v}\) are tangent to the surface \(Σ\) (i.e. lie in the tangent plane to \(Σ\) at each point on \(Σ\)), then their cross product \(\dfrac{∂\textbf{r}}{ ∂u}\times \dfrac{∂\textbf{r}}{ ∂v}\) is perpendicular to the tangent plane to the surface at each point of \(Σ\). Thus,

\[\nonumber \iint\limits_Σ f (x, y, z)\,dσ = \iint\limits_R f (x(u,v), y(u,v), z(u,v))\lVert \textbf{n} \rVert \,dσ ,\]

where \(\textbf{n} = \dfrac{∂\textbf{r}}{ ∂u} \times \dfrac{∂\textbf{r}}{ ∂v}\) . We say that **n** is a **normal vector** to \(Σ\).

Recall that normal vectors to a plane can point in two opposite directions. By an **outward unit normal vector** to a surface \(Σ\), we will mean the unit vector that is normal to \(Σ\) and points away from the “top” (or “outer” part) of the surface. This is a hazy definition, but the picture in Figure \(\PageIndex{4}\) gives a better idea of what outward normal vectors look like, in the case of a sphere. With this idea in mind, we make the following definition of a surface integral of a 3-dimensional *vector field* over a surface:

**Figure \(\PageIndex{4}\)**

Definition

Let \(Σ\) be a surface in \(\mathbb{R}^ 3\) and let \(\textbf{f}(x, y, z) = f_1(x, y, z)\textbf{i}+ f_2(x, y, z)\textbf{j}+ f_3(x, y, z)\textbf{k}\) be a vector field defined on some subset of \(\mathbb{R}^ 3\) that contains \(Σ\). The **surface integral** of **f** over \(Σ\) is

\[\iint\limits_Σ \textbf{f}\cdot d\textbf{σ} = \iint\limits_Σ \textbf{f}\cdot \textbf{n}\,dσ,\label{Eq4.30}\]

where, at any point on \(Σ\), **n** is the outward unit normal vector to \(Σ\).

Note in the above definition that the dot product inside the integral on the right is a real-valued function, and hence we can use Definition 4.3 to evaluate the integral.

Example \(\PageIndex{1}\)

Evaluate the surface integral \(\iint\limits_Σ \textbf{f}\cdot d\textbf{σ}\), where \(\textbf{f}(x, y, z) = yz\textbf{i}+xz\textbf{j}+x y\textbf{k}\text{ and }Σ\) is the part of the plane \(x+ y+z = 1 \text{ with }x ≥ 0, y ≥ 0, \text{ and }z ≥ 0\), with the outward unit normal **n** pointing in the positive \(z\) direction (Figure \(\PageIndex{5}\)).

**Figure \(\PageIndex{5}\)**

**Solution: **

Since the vector **v** \(= (1,1,1)\) is normal to the plane \(x+ y+ z = 1\) (why?), then dividing **v** by its length yields the outward unit normal vector **n** \(= \left ( \dfrac{ 1 }{\sqrt{ 3}} , \dfrac{1}{\sqrt{ 3}} , \dfrac{1}{ \sqrt{ 3}}\right ) \) . We now need to parametrize \(Σ\). As we can see from Figure \(\PageIndex{5}\), projecting \(Σ\) onto the \(x y\)-plane yields a triangular region \(R = {(x, y) : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1 − x}\). Thus, using \((u,v)\) instead of \((x, y)\), we see that

\[\nonumber x = u, y = v, z = 1−(u + v),\text{ for }0 ≤ u ≤ 1,0 ≤ v ≤ 1− u\]

is a parametrization of \(Σ\) over \(R\) (since \(z = 1−(x+ y)\) on \(Σ\)). So on \(Σ\),

\[\nonumber \begin{align} \textbf{f}\cdot \textbf{n} &=(yz, xz, x y)\cdot \left ( \dfrac{ 1 }{\sqrt{ 3}} , \dfrac{1}{\sqrt{ 3}} , \dfrac{1}{ \sqrt{ 3}} \right ) = \dfrac{1}{\sqrt{3}}(yz + xz + x y) \\ \nonumber &=\dfrac{1}{\sqrt{3}}((x+ y)z + x y) = \dfrac{1}{\sqrt{3}}((u + v)(1−(u + v))+ uv) \\ \nonumber &=\dfrac{1}{\sqrt{3}}((u + v)−(u + v)^2 + uv) \\ \end{align}\]

for \((u,v)\) in \(R\), and for \(\textbf{r}(u,v) = x(u,v)\textbf{i}+ y(u,v)\textbf{j}+ z(u,v)\textbf{k} = u\textbf{i}+ v\textbf{j}+(1−(u + v))\textbf{k}\) we have

\[\nonumber \dfrac{∂\textbf{r}}{ ∂u} \times \dfrac{∂\textbf{r}}{ ∂v}=(1,0,−1)\times (0,1,−1) = (1,1,1)\, \Rightarrow \, \Big \lVert \dfrac{∂\textbf{r}}{ ∂u} \times \dfrac{∂\textbf{r}}{ ∂v} \Big \rVert = \sqrt{3}.\]

Thus, integrating over \(R\) using vertical slices (e.g. as indicated by the dashed line in Figure \(\PageIndex{5}\)) gives

\[\nonumber \begin{align} \iint\limits_Σ \textbf{f}\cdot d\textbf{σ} &= \iint\limits_Σ \textbf{f}\cdot \textbf{n}\,dσ \\ \nonumber &=\iint\limits_R (\textbf{f}(x(u,v), y(u,v), z(u,v))\cdot \textbf{n}) \Big \lVert \dfrac{∂\textbf{r}}{ ∂u} \times \dfrac{∂\textbf{r}}{ ∂v} \Big \rVert \,dv\, du \\ \nonumber &=\int_0^1 \int_0^{1-u} \dfrac{1}{\sqrt{3}}((u + v)−(u + v)^2 + uv) \sqrt{ 3}\,dv\, du \\ \nonumber &=\int_0^1 \left ( \dfrac{(u + v)^2}{ 2}-\dfrac{(u + v)^3}{ 3}+\dfrac{uv^2}{ 2} \Big |_{v=0}^{v=1-u} \right )\,du \\ \nonumber &=\int_0^1 \left ( \dfrac{1}{6}+\dfrac{u}{2} -\dfrac{3u^2}{2}+\dfrac{5u^3}{6} \right )\,du \\ \nonumber &=\dfrac{u}{6} +\dfrac{u^2}{4}-\dfrac{u^3}{2}+\dfrac{5u^4}{24} \Big |_0^1 =\dfrac{1}{8} \\ \end{align}\]

Computing surface integrals can often be tedious, especially when the formula for the outward unit normal vector at each point of \(Σ\) changes. The following theorem provides an easier way in the case when \(Σ\) is a **closed surface**, that is, when \(Σ\) encloses a bounded solid in \(\mathbb{R}^ 3\) . For example, spheres, cubes, and ellipsoids are closed surfaces, but planes and paraboloids are not.

Divergence Theorem

Let \(Σ\) be a closed surface in \(\mathbb{R}^ 3\) which bounds a solid \(S\), and let \(\textbf{f}(x, y, z) = f_1(x, y, z)\textbf{i}+ f_2(x, y, z)\textbf{j}+ f_3(x, y, z)\textbf{k}\) be a vector field defined on some subset of \(\mathbb{R}^ 3\) that contains \(Σ\). Then

\[\iint\limits_Σ \textbf{f}\cdot d\textbf{σ} = \iiint\limits_S \text{div}\,\textbf{f}\,dV,\label{Eq4.31}\]

where

\[\text{div}\,\textbf{f} = \dfrac{∂f_1}{ ∂x}+\dfrac{∂f_2}{ ∂y}+\dfrac{∂f_3}{ ∂z}\label{Eq4.32}\]

is called the **divergence** of **f**.

The proof of the Divergence Theorem is very similar to the proof of Green’s Theorem, i.e. it is first proved for the simple case when the solid \(S\) is bounded above by one surface, bounded below by another surface, and bounded laterally by one or more surfaces. The proof can then be extended to more general solids.

Example \(\PageIndex{2}\)

Evaluate \(\iint\limits_Σ \textbf{f}\cdot d\textbf{σ}\), where \(\textbf{f}(x, y, z) = x\textbf{i} + y\textbf{j} + z\textbf{k}\text{ and }Σ\) is the unit sphere \(x^2 + y^2 + z^2 = 1\).

**Solution: **

We see that div **f **= 1+1+1 = 3, so

\[\nonumber \begin{align} \iint\limits_Σ \textbf{f}\cdot d\textbf{σ}&=\iiint\limits_S \text{ div }\textbf{f}\,dV = \iiint\limits_S 3\,dV \\ \nonumber &=3\iiint\limits_S 1\,dV = 3\text{ vol}(S) = 3\cdot \dfrac{4π(1)^3}{3} = 4\pi. \\ \end{align}\]

In physical applications, the surface integral \(\iint\limits_Σ \textbf{f}\cdot d\textbf{σ}\) is often referred to as the **flux** of **f **through the surface \(Σ\). For example, if **f** represents the velocity field of a fluid, then the flux is the net quantity of fluid to flow through the surface \(Σ\) per unit time. A positive flux means there is a net flow *out* of the surface (i.e. in the direction of the outward unit normal vector **n**), while a negative flux indicates a net flow inward (in the direction of −**n**).

The term divergence comes from interpreting div **f** as a measure of how much a vector field “diverges” from a point. This is best seen by using another definition of div **f** which is equivalent to the definition given by Equation \ref{Eq4.32}. Namely, for a point \((x, y, z)\) in \(\mathbb{R}^ 3\) ,

\[\text{div }\textbf{f}(x, y, z) =\lim\limits_{V \to 0} \dfrac{1}{V} \iint\limits_Σ \textbf{f}\cdot d\textbf{σ},\label{Eq4.33}\]

where \(V\) is the volume enclosed by a closed surface \(Σ\) around the point \((x, y, z)\). In the limit, \(V → 0\) means that we take smaller and smaller closed surfaces around \((x, y, z)\), which means that the volumes they enclose are going to zero. It can be shown that this limit is independent of the shapes of those surfaces. Notice that the limit being taken is of the ratio of the flux through a surface to the volume enclosed by that surface, which gives a rough measure of the flow “leaving” a point, as we mentioned. Vector fields which have zero divergence are often called *solenoidal* fields.

The following theorem is a simple consequence of Equation \ref{Eq4.33}.

Theorem

If the flux of a vector field **f** is zero through every closed surface containing a given point, then div **f** = 0 at that point.

*Proof:* By Equation \ref{Eq4.33}, at the given point \((x, y, z)\) we have

\[\nonumber \begin{align}\text{div }\textbf{f}(x, y, z) &= \lim\limits_{V \to 0} \dfrac{1}{V}\iint\limits_Σ \textbf{f}\cdot d\textbf{σ} \text{ for closed surfaces }Σ\text{ containing }(x, y, z),\text{ so} \\ \nonumber &=\lim\limits_{V \to 0}\dfrac{1}{V}(0) \text{ by our assumption that the flux through each }Σ\text{ is zero, so} \\ \nonumber &=\lim\limits_{V \to 0} 0 \\ \nonumber &=0 \\ \end{align}\]

\(\tag{\(\textbf{QED}\)}\)

Lastly, we note that sometimes the notation

is used to denote surface integrals of scalar and vector fields, respectively, over closed surfaces. Especially in physics texts, it is more common to see \(\oint\limits_Σ\) instead.

### Contributors

Michael Corral (Schoolcraft College). The content of this page is distributed under the terms of the GNU Free Documentation License, Version 1.2.