Logo

Chapter 16: Vector Calculus

16.1 Vector Fields

Vector Field

Let DD be a set in R2\mathbb{R}^{2} (a plane region). A vector field on R2\mathbb{R}^{2} is a function F\mathbf{F} that assigns to each point (x,y)(x,y) in DD a two-dimensional vector F(x,y)\mathbf{F}(x,y).

We can also write F\mathbf{F} as

F(x,y)=P(x,y)i+Q(x,y)jF=Pi+Qj\begin{align*} \mathbf{F}(x,y)&=P(x,y)\,\mathbf{i}+Q(x,y)\,\mathbf{j} \\ \mathbf{F}&=P\,\mathbf{i}+Q\,\mathbf{j} \end{align*}

Where P,QP,Q are scalar functions of two variables and are sometimes called scalar fields.

We can similarly define a vector field on R3,R4,\mathbb{R}^{3},\mathbb{R}^{4},\dots

16.2 Line Integrals

Consider a curve CC given by

x=x(t)y=y(t)atbx=x(t)\qquad y=y(t)\qquad a\leq t\leq b

Or, equivalently,

r(t)=x(t)  i+y(t)  j\mathbf{r}(t)=x(t)\;\mathbf{i}+y(t)\;\mathbf{j}

Assume CC is a smooth curve, i.e. r\mathbf{r}' is continuous and r(t)=0\mathbf{r}'(t)=0. Then, the line integral of a function f(x,y)f(x,y) along CC can be written as the limit of a Riemann sum across the interval [a,b][a,b].

Cf(x,y)ds=limni=1nf(xi,yi)  Δsi\underset{ C }{ \int }f(x,y)\,\mathrm{d}s=\lim_{ n \to \infty } \sum_{i=1}^{n} f(x_{i},y_{i})\;\Delta s_{i}

Previously, we found that the arc length of a curve CC is

L=ab(dxdt)2+(dydt)2dtL=\int_{a}^{b} \sqrt{ \left( \frac{\mathrm{d} x }{\mathrm{d} t } \right)^{2}+\left( \frac{\mathrm{d} y }{\mathrm{d} t } \right)^{2} } \, \mathrm{d}t

In other words (by deriving both sides with respect to tt),

ds=(dxdt)2+(dydt)2dt\mathrm{d}s=\sqrt{ \left( \frac{\mathrm{d} x }{\mathrm{d} t } \right)^{2}+\left( \frac{\mathrm{d} y }{\mathrm{d} t } \right)^{2} }\mathrm{d}t

And thus,

Line Integral
Cf(x,y)ds=abf(x(t),y(t))(dxdt)2+(dydt)2dt\underset{ C }{ \int }f(x,y)\,\mathrm{d}s=\int_{a}^{b} f(x(t),y(t))\sqrt{ \left( \frac{\mathrm{d} x }{\mathrm{d} t } \right)^{2}+\left( \frac{\mathrm{d} y }{\mathrm{d} t } \right)^{2} } \, \mathrm{d}t

Of course, the line integral does not depend on the choice of parametrization of the curve, as long as the curve is traversed exactly once.

Consider now a piecewise-smooth curve, i.e. CC is essentially several smooth curves continuously and smoothly connected together. Then the line integral on CC is simply the sum of the line integrals of each individual smooth sub-curve.

We may also take line integrals of a function f(x,y)f(x,y) along CC with respect to either xx or yy.

Cf(x,y)dx=abf(x(t),y(t))x(t)dtCf(x,y)dy=abf(x(t),y(t))y(t)dt\begin{align*} \underset{ C }{ \int } f(x,y)\,\mathrm{d}x &= \int_{a}^{b} f(x(t),y(t))x'(t) \, \mathrm{d}t \\ \underset{ C }{ \int }f(x,y)\,\mathrm{d}y &= \int_{a}^{b} f(x(t),y(t))y'(t) \, \mathrm{d}t \end{align*}

Frequently, line integrals with respect to xx and yy are summed. This is abbreviated as follows:

Cf(x,y)dx+Cg(x,y)dy=Cf(x,y)dx+g(x,y)dy\underset{ C }{ \int }f(x,y)\,\mathrm{d}x + \underset{ C }{\int} g(x,y) \,\mathrm{d}y = \underset{ C }{\int} f(x,y) \,\mathrm{d}x + g(x,y)\,\mathrm{d}y
Vector Equation of a Line Segment

As a reminder, the vector equation for a line segment that starts at r0\mathbf{r}_{0} and ends at r1\mathbf{r}_{1} is given by

r(t)=(1t)r0+tr1,0t1\mathbf{r}(t)=(1-t)\mathbf{r_{0}}+t\mathbf{r}_{1},\qquad 0\leq t\leq 1

Note also that a given parametrization determines the orientation of a curve CC (basically, direction). Thus, C-C denotes the curve that is identical to CC but has opposite orientation. Then,

Cf(x,y)dx=Cf(x,y)dxCf(x,y)dy=Cf(x,y)dy\underset{ -C }{\int} f(x,y) \,\mathrm{d}x =-\underset{ C }{\int} f(x,y) \,\mathrm{d}x \qquad \underset{ -C }{\int} f(x,y) \,\mathrm{d}y = -\underset{ C }{\int} f(x,y) \,\mathrm{d}y

But, if one takes the line integral with respect to arc length, the value of the line integral does not change, i.e.

Cf(x,y)ds=Cf(x,y)ds\underset{ -C }{\int} f(x,y) \,\mathrm{d}s = \underset{ C }{\int} f(x,y) \,\mathrm{d}s

Because, of course, distance is positive.

We may similarly extend 2 dimensional line integrals into 3 dimensional space. In general, we can write the line integral with respect to arc length in nn-dimensional space as follows:

Cf(r(t))ds=abf(r(t))r(t)dt\underset{ C }{\int} f(\mathbf{r}(t)) \,\mathrm{d}s = \int_{a}^{b} f(\mathbf{r}(t))\lvert \mathbf{r}'(t) \rvert \, \mathrm{d}t

And for each variable xix_{i} for 1in1\leq i\leq n,

Cf(r(t))dxi=abf(r(t))xi(t)dt\underset{ C }{\int} f(\mathbf{r}(t)) \,\mathrm{d}x_{i} = \int_{a}^{b} f(\mathbf{r}(t))x_{i}'(t) \, \mathrm{d}t

Now, consider a continuous vector field F\mathbf{F} defined on a smooth curve CC. Let F\mathbf{F} be given by a vector function r(t),  atbr(t),\;a\leq t\leq b. Then the line integral of F\mathbf{F} along CC is

CFdr=abF(r(t))r(t)dt=CFTds\underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}r=\int_{a}^{b} \mathbf{F}(r(t))\cdot \mathbf{r}'(t) \, \mathrm{d}t =\underset{ C }{\int} \mathbf{F}\cdot \mathbf{T} \,\mathrm{d}s

Where T(t)=r(t)r(t)\mathbf{T}(t)=\frac{\mathbf{r}'(t)}{\lvert \mathbf{r}'(t) \rvert}, which you may recall from [[#Curvature|the curvature section of 13.3]]. This integral is commonly used to calculate the work WW done by a force vector field F\mathbf{F}, i.e.

W=CFTdsW=\underset{ C }{\int} \mathbf{F}\cdot \mathbf{T} \,\mathrm{d}s

In general, we can say

info
CFdr=CPdx+Qdy+Rdz\underset{ C }{\int} F\cdot \,\mathrm{d}\mathbf{r}=\underset{ C }{\int} P \,\mathrm{d}x + Q\,\mathrm{d}y + R\,\mathrm{d}z

Where F=Pi+Qj+RkF=P\mathbf{i}+Q\mathbf{j}+R\mathbf{k}

16.3 The Fundamental Theorem for Line Integrals

Recall the Fundamental Theorem of Calculus:

abF(x)dx=F(b)F(a)\int_{a}^{b} F'(x) \, \mathrm{d}x = F(b)-F(a)

Where FF' is continuous on the interval [a,b][a,b]. We can similarly define the Fundamental Theorem for Line Integrals:

Fundamental Theorem for Line Integrals

Let CC be a smooth curve given by the vector function r(t)\mathbf{r}(t), atba\leq t\leq b. Let ff be a differentiable function of two or three variables whose gradient vector f\nabla f is continuous on CC. Then

Cfdr=f(r(b))f(r(a))\underset{ C }{\int} \nabla f\cdot \,\mathrm{d}\mathbf{r}=f(\mathbf{r}(b))-f(\mathbf{r}(a))

Now, consider two piecewise-smooth curves (commonly denoted paths) C1,C2C_{1},C_{2} with the same initial point AA and terminal point BB. Then, by the fundamental theorem

C1fdr=C2fdr\underset{ C_{1} }{\int} \nabla f \cdot \,\mathrm{d}\mathbf{r} =\underset{ C_{2} }{\int} \nabla f\cdot \,\mathrm{d}\mathbf{r}

Whenever f\nabla f is continuous. That is, the line integral of a conservative vector field depends only on the initial point and terminal point of a curve.

If FF is a continuous vector field with domain DD, the line integral CFdr\underset{ C }{\int} F\cdot \,\mathrm{d}\mathbf{r} is independent of path if the above is satisfied for any two paths C1C_{1} and C2C_{2}.

Closed Curve

A closed curve is a curve whose terminal point coincides with its initial point. Let A,BA,B be points on a closed curve CC. Let C1C_{1} be the curve from ABA\to B and C2C_{2} be the curve BAB\to A. Then

CFdr=C1Fdr+C2Fdr=C1FdrC2Fdr=0\underset{ C }{\int} F\cdot \,\mathrm{d}\mathbf{r}=\underset{ C_{1} }{\int} F\cdot \,\mathrm{d}\mathbf{r} + \underset{ C_{2} }{\int} F\cdot \,\mathrm{d}\mathbf{r} = \underset{ C_{1} }{\int} F\cdot \,\mathrm{d}\mathbf{r}-\underset{ -C_{2} }{\int} F\cdot \,\mathrm{d}\mathbf{r} = 0

The following theorem can be trivially shown.

info

CFdr\underset{ C }{\int} F\cdot \,\mathrm{d}\mathbf{r} is independent of path in DD if and only if CFdr=0\underset{ C }{\int} F\cdot \,\mathrm{d}\mathbf{r}=0 for every closed path CC in DD.

Let an open domain DD be a domain such for every point PDP\in D, there is a disk with center PP that lies entirely in DD. Additionally, let a connected domain DD be a domain such that any two points in DD can be connected via a path that lies entirely in DD.

info

Suppose FF is a vector field that is continuous on an open connected region DD. If CFdr\underset{ C }{\int} F\cdot \,\mathrm{d}\mathbf{r} is independent of path in DD, then FF is a conservative vector field on DD, i.e. there exists a function ff such that f=F\nabla f=F.

See the textbook for a proof of this theorem.

We do, however, still need to determine if a vector field FF is conservative. Suppose F=Pi+QjF=P\mathbf{i}+Q\mathbf{j} is conservative, where P,QP,Q have continuous first-order partial derivatives. Then there exists a function ff such that F=fF=\nabla f such that

P=fxQ=fyP=\frac{ \partial f }{ \partial x } \qquad Q=\frac{ \partial f }{ \partial y }

By Clairaut's Theorem

Py=2fy x=2fx y=Qx\frac{ \partial P }{ \partial y } = \frac{ \partial^{2}f }{ \partial y\ \partial x } =\frac{ \partial^{2}f }{ \partial x\ \partial y } = \frac{ \partial Q }{ \partial x }

Thus,

info

If F(x,y)=P(x,y)i+Q(x,y)jF(x,y)=P(x,y)\mathbf{i}+Q(x,y)\mathbf{j} is a conservative vector field, where P,QP,Q have continuous first-order partial derivatives on a domain DD, then throughout DD it must be true that Py=Qx\frac{ \partial P }{ \partial y }=\frac{ \partial Q }{ \partial x }.

The converse of this is only true for certain regions. Let a simple curve denote a curve that doesn't intersect itself anywhere between its endpoints. Then, let a simply-connected region DD be a region such that every simple closed curve in DD encloses only points that are in DD. Intuitively, this means DD contains no holes and is one contiguous region. Then,

info

Let F=Pi+QjF=P\mathbf{i}+Q\mathbf{j} be a vector field on an open simply-connected region DD. Suppose P,QP,Q have continuous first-order partial derivatives and Py=Qx\frac{ \partial P }{ \partial y }=\frac{ \partial Q }{ \partial x } throughout DD. Then FF is conservative.

The ideas derived in this chapter can be applied to a continuous force field FF (i.e. physics).

Using the fact that F(r(t))=mr(t)F(\mathbf{r}(t))=m\mathbf{r}''(t), where r(t)\mathbf{r}(t) is the position function (this is the familiar equation F=maF=ma), we can derive, from endpoints aba\to b.

W=12mr(b)212mr(a)2=K(B)K(A)\begin{align*} W&=\frac{1}{2}m\lvert \mathbf{r}'(b) \rvert ^{2}-\frac{1}{2}m\lvert \mathbf{r}'(a) \rvert ^{2} \\ &= K(B)-K(A) \end{align*}

Or, in other words, the change in kinetic energy of the object.

Meanwhile, if we assume FF is a conservative force field, i.e. we can write F=fF=\nabla f for some function ff, we can use the equation P(x,y,z)=f(x,y,z)P(x,y,z)=-f(x,y,z), where PP is the potential energy function. This naturally leads to F=PF=-\nabla P, from which we easily derive, from endpoints aba\to b.

W=P(r(a))P(r(b))=P(A)P(B)\begin{align*} W&=P(\mathbf{r}(a))-P(\mathbf{r}(b)) \\ &= P(A)-P(B) \end{align*}

Thus,

K(B)K(A)=P(A)P(B)P(A)+K(A)=P(B)+K(B)\begin{align*} K(B)-K(A)&=P(A)-P(B) \\ P(A)+K(A) &= P(B)+K(B) \end{align*}

In other words, we just derived the Law of Conservation of Energy!

16.4 Green's Theorem

Green's Theorem helps relate a line integral around a simple closed curve CC and a double integral over the plane region DD bounded by CC (the interior of CC, essentially).

warning

For these notes, we will follow the convention of the textbook, i.e. the positive orientation of CC refers to a single counterclockwise traversal of CC.

Green's Theorem

Let CC be a positively oriented, piecewise-smooth, simple closed curve in the plane and let DD be the region bounded by CC. If P,QP,Q have continuous partial derivatives on an open on an open region that contains DD, then

CPdx+Qdy=DQxPydA=DPdx+Qdy\underset{ C }{\int} P \,\mathrm{d}x + Q\,\mathrm{d}y=\underset{ D }{\iint} \frac{ \partial Q }{ \partial x } -\frac{ \partial P }{ \partial y } \, \mathrm{d}A = \underset{ \partial D }{\int} P \,\mathrm{d}x+Q\,\mathrm{d}y
Positive Orientation Line Integrals

The expression

CPdx+Qdy\underset{ C }{ \oint }P\,\mathrm{d}x+Q\,\mathrm{d}y

also denotes a line integral on curve CC calculated using the positive orientation.

Green's theorem is essentially the analogue of the Fundamental Theorem of Calculus for double integrals.

The proof is left out for brevity. As food for thought, consider that, to prove Green's Theorem when DD is a simple region, it's only necessary to show

CPdx=DPydACQdy=DQxdA\underset{ C }{\int} P \,\mathrm{d}x =-\underset{ D }{\iint} \frac{ \partial P }{ \partial y } \, \mathrm{d}A \qquad \qquad \underset{ C }{\int} Q \,\mathrm{d}y =\underset{ D }{\iint} \frac{ \partial Q }{ \partial x } \, \mathrm{d}A

Then, consider that proving Green's Theorem for a nonsimple region DD that is a finite union of simple regions is equivalent to dividing DD into simple regions and consider each simple region separately. (Hint: you will get some cancellation integrating along the boundary of the two simple curves).

tip

Green's Theorem can be used in both ways. Sometimes, you convert from a single integral to a double integral. And other times, you convert from a double integral to a single integral. The book has many examples to consider.

For instance, consider trying to compute the area of a region DD. We have that A(D)=D1dA    QxPy=1A(D)=\underset{ D }{\iint} 1 \, \mathrm{d}A\implies \frac{ \partial Q }{ \partial x }-\frac{ \partial P }{ \partial y }=1. There are many different possibilities for P(x,y)P(x,y) and Q(x,y)Q(x,y) for this to be true. In general, we can write, by Green's Theorem,

A=Cxdy=Cydx=12CxdyydxA=\underset{ C }{ \oint }x\,\mathrm{d}y=-\underset{ C }{\oint} y \, \mathrm{d}x =\frac{1}{2}\underset{ C }{\oint} x \, \mathrm{d}y -y\,\mathrm{d}x

Figuring out the values of P(x,y)P(x,y) and Q(x,y)Q(x,y) that produce this formula is left as an exercise to the reader.

Consider the ellipse x2a2+y2b2=1\frac{x^{2}}{a^{2}}+\frac{y^{2}}{b^{2}}=1. Find the area enclosed by the ellipse.

Parametrically, x=acostx=a\cos t and y=bsinty=b\sin t, with 0t2π0\leq t\leq2\pi. We can then write

A=12Cxdyydx=1202π(acost)(bcost)dt(bsint)(asint)dt=ab202πdt=πab\begin{align*} A &= \frac{1}{2}\underset{ C }{\oint} x \, \mathrm{d}y-y\,\mathrm{d}x \\ &= \frac{1}{2}\int_{0}^{2\pi} (a\cos t)(b\cos t) \, \mathrm{d}t-(b\sin t)(-a\sin t)\,\mathrm{d}t \\ &= \frac{ab}{2}\int_{0}^{2\pi} \, \mathrm{d}t \\ &= \boxed{ \pi ab } \end{align*}

Recall the ideas given for the proof of Green's Theorem for nonsimple regions that are the finite union of simple regions. This idea frequently be applied to solve problems for such regions using Green's Theorem (i.e., dividing the nonsimple region into it simple regions and applying Green's Theorem individually).

example

Consider two curves CC and CC'. Let D(C)D(C) denote the region enclosed by CC, and analogously for CC'. Let D(C)D(C)D(C)\subset D(C'). Then, D(CC)D(C-C') is a nonsimple region with a hole.

The positively oriented boundary of this region is C(C)C\cap(-C'). (This follows from CCC-C'). Then, by Green's Theorem, we can write

CPdx+Qdy+CPdx+Qdy=DQxPydA\underset{ C }{\int} P \, \mathrm{d}x +Q\,\mathrm{d}y+\underset{ -C' }{\int} P \, \mathrm{d}x+Q\,\mathrm{d}y = \underset{ D }{\iint} \frac{ \partial Q }{ \partial x } -\frac{ \partial P }{ \partial y } \, \mathrm{d}A

16.5 Curl and Divergence

Curl

We begin with a discussion of the property of a vector field known as the curl. The curl vector is named as such because it describes the rotational motion of particles. Particles at (x,y,z)(x,y,z) in this vector field will tend to rotate around the axis aligned with the direction of the curl, and at a rate proportional to the curl vector's magnitude.

If F=Pi+Qj+Rk\mathbf{F}=P\mathbf{i}+Q\mathbf{j}+R\mathbf{k} is a vector field on R3\mathbb{R}^{3} and the partial derivatives of P,Q,RP,Q,R all exist, then the curl of F\mathbf{F} is the vector field on R3\mathbb{R}^{3} defined by

  curl  F=(RyQz)i+(PzRx)j+(QxPy)k\mathrm{\;curl\;}\mathbf{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}

It is easier to remember this using operator notation. We define the following as the vector differential operator \nabla:

=ix+jy+kz\nabla=\mathbf{i}\frac{ \partial }{ \partial x } +\mathbf{j}\frac{ \partial }{ \partial y } +\mathbf{k}\frac{ \partial }{ \partial z }

We have seen this before in the notation of the gradient of some vector function ff:

f=ifx+jfy+kfz\nabla f=\mathbf{i}\frac{ \partial f }{ \partial x } +\mathbf{j}\frac{ \partial f }{ \partial y } +\mathbf{k}\frac{ \partial f }{ \partial z }

Knowing this, we may now write

  curl  F=×F=ijkxyzPQR\mathrm{\;curl\;}\mathbf{F}=\nabla \times \mathbf{F}=\begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{ \partial }{ \partial x } & \frac{ \partial }{ \partial y } & \frac{ \partial }{ \partial z } \\ P & Q & R \end{vmatrix}

There are a few nice facts about the curl of a vector field.

Curl Properties
  1. If f(x,y,z)f(x,y,z) has continuous second-order partial derivatives, then   curl  (f)=0\mathrm{\;curl\;}(\nabla f)=\mathbf{0}.
  2. If F\mathbf{F} is a conservative vector field, by definition, F=f\mathbf{F}=\nabla f. Thus, a conservative vector field F\mathbf{F} has curl  F=0\mathrm{curl\;}\mathbf{F}=0.
  3. If F\mathbf{F} is a vector field defined on all of R3\mathbb{R}^{3} whose component functions have continuous partial derivatives and curl  F=0\mathrm{curl\;}\mathbf{F}=\mathbf{0}, then F\mathbf{F} is a conservative vector field.

The proof of property 11 is easy, and is left as an exercise to the reader. The proof of property 33 require topics we have yet to discuss—in particular, Stokes' Theorem—and so will not be shown.

Note also the following ideas:

tip
  • If   curl  F=0\mathrm{\;curl\;}\mathbf{F}=\mathbf{0} at a point PP, then the fluid is free from rotations at PP and F\mathbf{F} is called irrotational at PP. Note that particles still move with this fluid, but do not rotate around its axis.
  • If   curl  F0\mathrm{\;curl\;}\mathbf{F} \neq \mathbf{0}, then particles do in fact rotate about its axis.

Divergence

The divergence of a vector field is again related to fluid dynamics. In particular, if F(x,y,z)\mathbf{F}(x,y,z) is the velocity of a fluid, then its divergence is the net rate of change with respect to time of the mass of fluid flowing from point (x,y,z)(x,y,z) per unit volume. That is, it measures the fluid's tendency to diverge from the point.

If F=Pi+Qj+Rk\mathbf{F}=P\mathbf{i}+Q\mathbf{j}+R\mathbf{k} is a vector field on R3\mathbb{R}^{3} and Px,Qy,Rz\frac{ \partial P }{ \partial x },\frac{ \partial Q }{ \partial y },\frac{ \partial R }{ \partial z } all exist, then the divergence of F\mathbf{F} is described by

  div  F=Px+Qy+Rz\mathrm{\;div\;}\mathbf{F}=\frac{ \partial P }{ \partial x } +\frac{ \partial Q }{ \partial y } +\frac{ \partial R }{ \partial z }

Note that the divergence of F\mathbf{F} is in fact a scalar field, and not a vector field like curl  F\mathrm{curl\;}\mathbf{F}.

We can also represent the divergence of FF in operator notation.

div  F=F\mathrm{div\;}\mathbf{F}=\nabla\cdot \mathbf{F}

Since the curl of F\mathbf{F} is also a vector field on R3\mathbb{R}^{3} if F\mathbf{F} is a vector field on R3\mathbb{R}^{3}, we can compute the divergence of curl  F\mathrm{curl\;}\mathbf{F} as well. In fact,

info

If F=Pi+Qj+Rk\mathbf{F}=P\mathbf{i}+Q\mathbf{j}+R\mathbf{k} is a vector field on R3\mathbb{R}^{3} and P,Q,RP,Q,R have continuous second-order partial derivatives, then div  curl  F=0\mathrm{div\;}\mathrm{curl\;}\mathbf{F}=0.

The proof of this is fairly straightforward, and is left as an exercise to the reader.

Note also the following ideas:

tip
  • If div  F=0\mathrm{div\;}\mathbf{F}=0, F\mathbf{F} is said to be incompressible.

We may also compute the divergence of a gradient vector field.

div  (f)=2fx2+2fy2+2fz2\mathrm{div\;}(\nabla f)=\frac{ \partial^{2}f }{ \partial x^{2} } + \frac{ \partial^{2} f }{ \partial y^{2} }+\frac{ \partial^{2} f }{ \partial z^{2} }

This expression occurs frequently, and is thus abbreviated as 2f\nabla^{2}f. It is also denoted as the Laplace operator because of its relation to Laplace's Equation:

2f=2fx2+2fy2+2fz2=0\nabla^{2}f=\frac{ \partial^{2} f }{ \partial x^{2} } +\frac{ \partial^{2} f }{ \partial y^{2} } +\frac{ \partial^{2} f }{ \partial z^{2} } =0

Vector Forms of Green's Theorem

Using the curl and divergence operators, we can rewrite Green's Theorem in vector form.

Curl

Consider the plane region DD, its boundary curve CC, and the functions P,QP,Q that satisfy the previously stated hypotheses of Green's Theorem. Consider also the vector field F=Pi+Qj\mathbf{F}=P\mathbf{i}+Q\mathbf{j}. Then, its line integral is

CFdr=CPdx+Qdy\underset{ C }{\oint} \mathbf{F}\cdot \, \mathrm{d}\mathbf{r}=\underset{ C }{\oint} P \, \mathrm{d}x +Q\,\mathrm{d}y

Considering F\mathbf{F} as a vector field on R3\mathbb{R}^{3} with third component 00, we derive

curl  F=ijkxyzP(x,y)Q(x,y)0=(QxPy)k\mathrm{curl\;}\mathbf{F}= \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{ \partial }{ \partial x } & \frac{ \partial }{ \partial y } & \frac{ \partial }{ \partial z } \\ P(x,y) & Q(x,y) & 0 \end{vmatrix} =\left( \frac{ \partial Q }{ \partial x } -\frac{ \partial P }{ \partial y } \right)\mathbf{k}

That is,

(curl  F)k=QxPy(\mathrm{curl\;}\mathbf{F})\cdot k=\frac{ \partial Q }{ \partial x } -\frac{ \partial P }{ \partial y }

Which allows us to express Green's Theorem in vector form:

info
CFdr=D(curl  F)kdA\underset{ C }{\oint} \mathbf{F} \, \mathrm{d}\mathbf{r} =\underset{ D }{\iint} (\mathrm{curl\;}\mathbf{F})\cdot \mathbf{k} \, \mathrm{d}A

That is, the line integral of the tangential component of F\mathbf{F} along CC is equivalent to the double integral of the vertical component of curl  F\mathrm{curl\;}\mathbf{F} over the region DD enclosed by CC.

Divergence

We can derive a similar formula involving the normal component of F\mathbf{F}.

Let CC be given by

r(t)=x(t)i+y(t)j,atb\mathbf{r}(t)=x(t)\mathbf{i}+y(t)\mathbf{j},\quad a\leq t\leq b

Then, we can write expressions for the unit tangent vector

T(t)=x(t)r(t)i+y(t)r(t)j\mathbf{T}(t)=\frac{x'(t)}{\lvert \mathbf{r}'(t) \rvert }\mathbf{i}+\frac{y'(t)}{\lvert \mathbf{r}'(t) \rvert}\mathbf{j}

and the outward unit normal vector

n(t)=y(t)r(t)ix(t)r(t)j\mathbf{n}(t)=\frac{y'(t)}{\lvert \mathbf{r}'(t) \rvert }\mathbf{i}-\frac{x'(t)}{\lvert \mathbf{r}'(t) \rvert }\mathbf{j}

It follows that

CFnds=ab(Fn)(t)r(t)dt=ab[P(x(t),y(t))y(t)r(t)Q(x(t),y(t))x(t)r(t)]r(t)dt=abP(x(t),y(t))y(t)dtQ(x(t),y(t))x(t)dt=CPdyQdx=D(Px+Qy)dA=Ddiv  F(x,y)dA\begin{align*} \underset{ C }{\oint} \mathbf{F}\cdot \mathbf{n} \, \mathrm{d}s&=\int_{a}^{b} (\mathbf{F}\cdot \mathbf{n})(t)\lvert \mathbf{r}'(t) \rvert \, \mathrm{d}t \\ &= \int_{a}^{b} \left[ \frac{P(x(t),y(t))y'(t)}{\lvert \mathbf{r}'(t) \rvert }-\frac{Q(x(t),y(t))x'(t)}{\lvert \mathbf{r}'(t) \rvert } \right]\lvert \mathbf{r}'(t) \rvert \, \mathrm{d}t \\ &= \int_{a}^{b} P(x(t),y(t))y'(t) \, \mathrm{d}t-Q(x(t),y(t))x'(t)\,\mathrm{dt} \\ &= \underset{ C }{\int} P \,\mathrm{d}y-Q\,\mathrm{d}x = \underset{ D }{\iint} \left( \frac{ \partial P }{ \partial x } +\frac{ \partial Q }{ \partial y } \right) \, \mathrm{d}A \\ &= \underset{ D }{\iint} \mathrm{div\;}\mathbf{F}(x,y) \, \mathrm{d}A \end{align*}

Thus,

info
CFnds=Ddiv  F(x,y)dA\underset{ C }{\oint} \mathbf{F}\cdot \mathbf{n} \, \mathrm{d}s = \underset{ D }{\iint} \mathrm{div\;}\mathbf{F}(x,y) \, \mathrm{d}A

That is, the line integral of the normal component of F\mathbf{F} along CC is equal to the double integral of the divergence of F\mathbf{F} over the region DD enclosed by CC.

16.6 Parametric Surfaces and Their Areas

Parametric surfaces are the analogues of parametric functions in 3 dimensions. They can be described by a vector function r(u,v)\mathbf{r}(u,v):

r(u,v)=x(u,v)i+y(u,v)j+z(u,v)k\mathbf{r}(u,v)=x(u,v)\mathbf{i}+y(u,v)\mathbf{j}+z(u,v)\mathbf{k}

This is a vector-valued function defined on a region DD in the uvuv-plane, and the parametric surface SS is created by (u,v)(u,v) varying throughout DD. The equations

x=x(u,v)y=y(u,v)z=z(u,v)x=x(u,v)\qquad y=y(u,v)\qquad z=z(u,v)

Are known as the parametric equations of SS.

For a parametric surface SS, there are two useful families of curves that lie on SS: constant uu and constant vv, i.e. the curves that correspond to the vertical and horizontal lines in the uvuv-plane. These curves are known as grid curves, which naturally follows from the curves' display in the uvuv-plane.

Surfaces of revolution can be expressed parametrically, e.g. the surface generated by rotating a curve y=f(x)y=f(x) around the xx-axis. Let θ\theta be the angle of rotation of some point on the surface. Then, we can describe a point (x,y,z)(x,y,z) on SS as

x=xy=f(x)cosθz=f(x)sinθx=x\qquad y=f(x)\cos\theta \qquad z=f(x)\sin\theta

It may help to verify this for yourself with an example function f(x)f(x).

We can also describe the tangent planes to a parametric surface SS. Let SS be traced out by the vector function

r(u,v)=x(u,v)i+y(u,v)j+z(u,v)k\mathbf{r}(u,v)=x(u,v)\mathbf{i}+y(u,v)\mathbf{j}+z(u,v)\mathbf{k}

at a point P0P_{0} with position vector r(u0,v0)\mathbf{r}(u_{0},v_{0}). Now, consider the grid curve C1C_{1} lying on SS that occurs when uu is constant, i.e. u=u0u=u_{0}. Then, the tangent vector to C1C_{1} at P0P_{0} is obtained by taking the partial derivative of r\mathbf{r} with respect to vv:

rv=xv(u0,v0)i+yv(u0,v0)j+zv(u0,v0)k\mathbf{r}_{v}=\frac{ \partial x }{ \partial v } (u_{0},v_{0})\mathbf{i}+\frac{ \partial y }{ \partial v } (u_{0},v_{0})\mathbf{j}+\frac{ \partial z }{ \partial v } (u_{0},v_{0})\mathbf{k}

Similarly, when vv is kept constant, i.e. v=v0v=v_{0}, then the tangent vector to the grid curve C2C_{2} at P0P_{0} is

ru=xu(u0,v0)i+yu(u0,v0)j+zu(u0,v0)k\mathbf{r}_{u}=\frac{ \partial x }{ \partial u } (u_{0},v_{0})\mathbf{i}+\frac{ \partial y }{ \partial u } (u_{0},v_{0})\mathbf{j}+\frac{ \partial z }{ \partial u } (u_{0},v_{0})\mathbf{k}
info

If ru×rv0\mathbf{r}_{u}\times \mathbf{r}_{v} \neq \mathbf{0}, then the surface SS is smooth.

For a smooth surface, the tangent plane is the plane that contains these two tangent vectors, and ru×rv\mathbf{r}_{u}\times \mathbf{r}_{v} is a normal vector to the tangent plane.

Finally, we can consider calculating the surface area of a general parametric surface. The derivation is essentially a Riemann sum over the surface areas of sections of the tangent plane approximations of the surface, and thus will be skipped. The following theorem describes the formula succinctly:

info

Let a smooth parametric surface SS be given by

r(u,v)=x(u,v)i+y(u,v)j+z(u,v)k,(u,v)D\mathbf{r}(u,v)=x(u,v)\mathbf{i}+y(u,v)\mathbf{j}+z(u,v)\mathbf{k},\qquad(u,v)\in D

Let SS be covered only once as (u,v)(u,v) range throughout DD (no overcounting/overlapping!). Then, the surface area of SS is simply

A(S)=Dru×rvdAA(S)=\underset{ D }{\iint} \lvert \mathbf{r}_{u}\times \mathbf{r}_{v} \rvert \, \mathrm{d}A

where

ru=xui+yuj+zukrv=xvi+yvj+zvk\mathbf{r}_{u}=\frac{ \partial x }{ \partial u } \mathbf{i}+\frac{ \partial y }{ \partial u } \mathbf{j}+\frac{ \partial z }{ \partial u } \mathbf{k}\qquad \mathbf{r}_{v}=\frac{ \partial x }{ \partial v } \mathbf{i}+\frac{ \partial y }{ \partial v } \mathbf{j}+\frac{ \partial z }{ \partial v } \mathbf{k}

Note that when we have z=f(x,y)z=f(x,y), we can easily derive the surface area formula found in [[#15.5 Surface Area]] by considering the parametrization x=x, y=y, z=f(x,y)x=x,\ y=y,\ z=f(x,y). That is,

A(S)=D1+(zx)2+(zy)2dAA(S)=\underset{ D }{\iint} \sqrt{ 1+\left( \frac{ \partial z }{ \partial x } \right)^{2}+\left( \frac{ \partial z }{ \partial y } \right)^{2} } \, \mathrm{d}A

16.7 Surface Integrals

Surface integrals are the the line integral equivalent in 3 dimensions. That is, surface integrals are to surface area as line integrals are to arc length.

We will soon define the surface integral of the function f(x,y,z)f(x,y,z) over the surface SS. Note that when f(x,y,z)=1f(x,y,z)=1, this is equivalent to the surface area of SS. (Much like how the line integral of f(x,y)=1f(x,y)=1 is simply the arc length). We begin with parametric surfaces.

Parametric Surfaces

Suppose SS is described by

r(u,v)=x(u,v)i+y(u,v)j+z(u,v)k,(u,v)D\mathbf{r}(u,v)=x(u,v)\mathbf{i}+y(u,v)\mathbf{j}+z(u,v)\mathbf{k},\qquad(u,v)\in D

Again, we derive the formula for the surface integral via a Riemann sum. In this case, over infinitesimal subrectangles of the surface (specifically, taken from the tangent plane at each point in the surface), i.e.

Sf(x,y,z)dS=limm,ni=1mj=1nf(Pij) ΔSij\underset{ S }{\iint} f(x,y,z) \, \mathrm{d}S=\lim_{ m,n \to \infty } \sum_{i=1}^{m} \sum_{j=1}^{n} f(P_{ij})\ \Delta S_{ij}

Where PijP_{ij} is the evaluation of ff at some point within the subrectangle and ΔSij\Delta S_{ij} is the area of the the subrectangle with indices (i,j)(i,j). Then, since ΔSij\Delta S_{ij} may be approximated by the area of a parallelogram in the tangent plane, i.e. ΔSijru×rv Δu Δv\Delta S_{ij}\approx \lvert \mathbf{r}_{u}\times \mathbf{r}_{v} \rvert\ \Delta u\ \Delta v, where the tangent vectors at the point PijP_{ij} are described by ru=xui+yuj+zuk\mathbf{r}_{u}=\frac{ \partial x }{ \partial u }\mathbf{i}+\frac{ \partial y }{ \partial u }\mathbf{j}+\frac{ \partial z }{ \partial u }\mathbf{k} and rv=xvi+yvj+zvk\mathbf{r}_{v}=\frac{ \partial x }{ \partial v }\mathbf{i}+\frac{ \partial y }{ \partial v }\mathbf{j}+\frac{ \partial z }{ \partial v }\mathbf{k}. Thus,

Parametric Surface Integral
Sf(x,y,z)dS=Df(r(u,v))ru×rvdA\underset{ S }{\iint} f(x,y,z) \, \mathrm{d}S=\underset{ D }{\iint} f(\mathbf{r}(u,v))\lvert \mathbf{r}_{u}\times \mathbf{r}_{v} \rvert \, \mathrm{dA}

Note the similarity to the line integral formula: Cf(x,y,z)ds=abf(r(t))r(t)dt\underset{ C }{\int} f(x,y,z) \,\mathrm{d}s=\int_{a}^{b} f(\mathbf{r}(t))\lvert \mathbf{r}'(t) \rvert \, \mathrm{d}t.

Also note that if SS is a piecewise-smooth surface that intersect only on their boundaries, then it naturally follows that

Sf(x,y,z)dS=i=1n[S1f(x,y,z)dS]\underset{ S }{\iint} f(x,y,z) \, \mathrm{d}S = \sum_{i=1}^{n} \left[ \underset{ S_{1} }{\iint} f(x,y,z) \, \mathrm{d}S \right]

Surface integrals may be applied to the same real-world ideas we have previously discussed. For instance, the total mass of a surface SS whose density is described by ρ(x,y,z)\rho(x,y,z) is

m=Sρ(x,y,z)dSm=\underset{ S }{\iint} \rho(x,y,z) \, \mathrm{d}S

And the center of mass is (x,y,z)(\overline{x},\overline{y},\overline{z}), where

x=1mSxρ(x,y,z)dSy=1mSyρ(x,y,z)dSz=1mSzρ(x,y,z)dS\overline{x}=\frac{1}{m}\underset{ S }{\iint} x\rho(x,y,z) \, \mathrm{d}S \qquad \overline{y}=\frac{1}{m}\underset{ S }{\iint} y\rho(x,y,z) \, \mathrm{d}S \qquad \overline{z}=\frac{1}{m}\underset{ S }{\iint} z\rho(x,y,z) \, \mathrm{d}S

Moments of inertia, etc. can similarly be derived for surfaces.

Graphs of Functions

Now, consider a surface SS with equation z=g(x,y)z=g(x,y). Then, it is a parametric surface with the following equations:

x=xy=yz=g(x,y)x=x\qquad y=y\qquad z=g(x,y)

Thus,

rx=i+(qx)kry=j+(gy)k\mathbf{r}_{x}=\mathbf{i}+\left( \frac{ \partial q }{ \partial x } \right)\mathbf{k}\qquad \mathbf{r}_{y}=\mathbf{j}+\left( \frac{ \partial g }{ \partial y } \right)\mathbf{k}

And taking the cross product,

rx×ry=gxigyj+k    rx×ry=(zx)2+(zy)2+1\mathbf{r}_{x}\times \mathbf{r}_{y}=-\frac{ \partial g }{ \partial x } \mathbf{i}-\frac{ \partial g }{ \partial y } \mathbf{j}+\mathbf{k}\implies \lvert \mathbf{r}_{x}\times \mathbf{r}_{y} \rvert =\sqrt{ \left( \frac{ \partial z }{ \partial x } \right)^{2}+\left( \frac{ \partial z }{ \partial y } \right)^{2} +1 }

Substituting into our previously derived formula, we get

Surface Integral when z=g(x,y)z=g(x,y)
Sf(x,y,z)dS=Df(x,y,g(x,y))(zx)2+(zy)2+1dA\underset{ S }{\iint} f(x,y,z) \, \mathrm{d}S = \underset{ D }{\iint} f(x,y,g(x,y))\sqrt{ \left( \frac{ \partial z }{ \partial x } \right)^{2}+\left( \frac{ \partial z }{ \partial y } \right)^{2} + 1 } \, \mathrm{d}A

Oriented Surfaces

Like oriented line integrals, we have oriented surfaces. The purpose is to define surface integrals of vector fields.

warning

A slight caveat with oriented surfaces, though, is that there do actual exist nonorientable surfaces! Consider, for example, the Möbius strip. Pick any point PP, and choose a side of the Möbius strip. Now, walk around the Möbius strip until you reach PP again for the first time. If you do it right, you shouldn't end up back on the same side! This is because the Möbius strip really only has one side.

Thus, we will consider only orientable (two-sided) surfaces.

Consider a surface SS that has a tangent plane at every point (x,y,z)(x,y,z) on SS, disregarding boundary points. There exist two unit normal vectors n1,n2\mathbf{n}_{1},\mathbf{n}_{2} with n2=n1\mathbf{n}_{2}=-\mathbf{n}_{1} at (x,y,z)(x,y,z).

Choose one of the two unit normal vectors. Let n\mathbf{n} denote this chosen unit vector. Then, if n\mathbf{n} varies continuously over the entirety of SS, then SS is an oriented surface and the given choice of n\mathbf{n} provides SS with an orientation. (Also, note that if your initial choice of n\mathbf{n} doesn't vary continuously over, the other choice of n\mathbf{n} wouldn't work either, since n2=n1\mathbf{n}_{2}=-\mathbf{n}_{1}).

For a surface SS described by z=g(x,y)z=g(x,y), we can describe n\mathbf{n} using the cross product of the tangent vectors described previously and repeated below for the reader's convenience.

rx×ry=gxigyj+k\mathbf{r}_{x}\times \mathbf{r}_{y}=-\frac{ \partial g }{ \partial x } \mathbf{i}-\frac{ \partial g }{ \partial y } \mathbf{j}+\mathbf{k}

This is a vector function that describes the normal vector at every point in the surface. So, it suffices to normalize this expression to find n\mathbf{n}.

n=gxigyj+k1+(gx)2+(gy)2\mathbf{n}=\frac{-\frac{ \partial g }{ \partial x } \mathbf{i}-\frac{ \partial g }{ \partial y } \mathbf{j}+\mathbf{k}}{\sqrt{ 1+\left( \frac{ \partial g }{ \partial x } \right)^{2}+\left( \frac{ \partial g }{ \partial y } \right)^{2} }}

Note that the upward orientation of the surface is given by this expression since the k\mathbf{k}-component is positive, and the downward orientation is given by n\mathbf{-n}.

And if SS is a smooth orientable surface given parametrically by the vector function r(u,v)\mathbf{r}(u,v), then it is simply

n=ru×rvru×rv\mathbf{n}=\frac{\mathbf{r}_{u}\times \mathbf{r}_{v}}{\lvert \mathbf{r}_{u}\times \mathbf{r}_{v} \rvert }

Surface Integrals of Vector Fields

Consider an oriented surface SS with unit normal vector n\mathbf{n}. Now, let there exist a fluid with density ρ(x,y,z)\rho(x,y,z) and velocity field v(x,y,z)\mathbf{v}(x,y,z) that is flowing through SS. The rate of flow per unit area may be described by ρv\rho \mathbf{v}.

If we consider infinitesimal subsections of SS denoted SijS_{ij}, then SijS_{ij} is approximately planar. Thus, the mass of fluid per unit time crossing SijS_{ij} in the direction of the unit normal vector n\mathbf{n} is

(ρvn)(A(Sij))(\rho \mathbf{v}\cdot \mathbf{n})(A(S_{ij}))

Where A(Sij)A(S_{ij}) denotes the area of SijS_{ij} and ρ,v,n\rho,\mathbf{v},\mathbf{n} are all evaluated at some point on SijS_{ij}. (For clarity, consider that ρvn\rho \mathbf{v}\cdot \mathbf{n} is the magnitude of the component of the vector ρv\rho \mathbf{v} in the direction of the unit vector n\mathbf{n}). By performing a Riemann sum over these infinitesimal SijS_{ij}'s, we get

SρvndS=Sρ(x,y,z)v(x,y,z)n(x,y,z)dS\underset{ S }{\iint} \rho \mathbf{v}\cdot \mathbf{n} \, \mathrm{d}S=\underset{ S }{\iint} \rho(x,y,z)\mathbf{v}(x,y,z)\cdot \mathbf{n}(x,y,z) \, \mathrm{d}S

And if we write F=ρv\mathbf{F}=\rho \mathbf{v}, then F\mathbf{F} is a vector field on R3\mathbb{R}^{3} and the integral becomes

SFndS\underset{ S }{\iint} \mathbf{F}\cdot \mathbf{n} \, \mathrm{d}S

This is a very common integral, particularly in physics, even when F\mathbf{F} is not ρv\rho \mathbf{v}, and thus is denoted as the surface integral or flux integral of F\mathbf{F} over SS. It's also called the flux of F\mathbf{F} across SS.

Flux

If F\mathbf{F} is a continuous vector field defined on an oriented surface SS with unit normal vector n\mathbf{n}, then the surface integral of F\mathbf{F} over SS is

SFdS=SFndS\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}S = \underset{ S }{\iint} \mathbf{F}\cdot \mathbf{n} \, \mathrm{d}S

When SS is parametrized by a vector function r(u,v)\mathbf{r}(u,v), then

SFdS=SFru×rvru×rvdS=DF(r(u,v))ru×rvru×rvru×rvdA\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}S = \underset{ S }{\iint} \mathbf{F}\cdot \frac{\mathbf{r}_{u}\times \mathbf{r}_{v}}{\lvert \mathbf{r}_{u}\times \mathbf{r}_{v} \rvert } \, \mathrm{d}S = \underset{ D }{\iint} \mathbf{F}(\mathbf{r}(u,v))\cdot \frac{\mathbf{r}_{u}\times \mathbf{r}_{v}}{\lvert \mathbf{r}_{u}\times \mathbf{r}_{v} \rvert }\cdot \lvert \mathbf{r}_{u}\times \mathbf{r}_{v} \rvert \, \mathrm{d}A

That is,

SFdS=DF(ru×rv)dA\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}S = \underset{ D }{\iint} \mathbf{F}\cdot (\mathbf{r}_{u}\times \mathbf{r}_{v}) \, \mathrm{d}A

Meanwhile, if the surface SS is given by z=g(x,y)z=g(x,y), then x,yx,y can be considered the parameters and we can write

F(rx×ry)=(Pi+Qj+Rk)(gxigyj+k)=PgxQgy+R\mathbf{F}\cdot (\mathbf{r}_{x}\times \mathbf{r}_{y})=(P\mathbf{i}+Q\mathbf{j}+R\mathbf{k})\cdot \left( -\frac{ \partial g }{ \partial x }\mathbf{i}-\frac{ \partial g }{ \partial y } \mathbf{j}+\mathbf{k} \right)=-P\frac{ \partial g }{ \partial x } -Q\frac{ \partial g }{ \partial y } +R

Thus, we can write

SFdS=D(PgxQgy+R)dA\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}S = \underset{ D }{\iint} \left( -P\frac{ \partial g }{ \partial x } -Q\frac{ \partial g }{ \partial y } +R \right) \, \mathrm{d}A
This formula assumes upward orientation of ss. For downward orientation, simply multiply by 1-1.

Finally, let's consider some applications of the surface integral of a vector field to physics.

Consider an electric field E\mathbf{E}. Then the surface integral SEdS\underset{ S }{\iint} \mathbf{E}\cdot \, \mathrm{d}S is called the electric flux of E\mathbf{E} through the surface SS. One important law of electrostatics is Gauss's Law, which states that the net charge enclosed by a closed surface SS is Q=ϵ0SEdSQ=\epsilon_{0}\underset{ S }{\iint} \mathbf{E}\cdot \, \mathrm{d}S, for some constant ϵ0\epsilon_{0} known as the permittivity of free space.

Consider now the scalar field u(x,y,z)u(x,y,z) that describes the temperature at a point (x,y,z)(x,y,z) within a substance. Then the heat flow is defined by the vector field F=K u\mathbf{F}=-K\ \nabla u, where KK is the conductivity of the substance (and is typically experimentally determined). Then, the rate of heat flow across a surface SS in the substance is SFdS=KSudS\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}S=-K\underset{ S }{\iint} \nabla u\cdot \, \mathrm{d}S.

16.8 Stokes' Theorem

It's helpful to think of Stokes' Theorem as a higher-dimensional version of Green's Theorem. Green's Theorem relates a double integral over a plane region DD to a line integral around its plane boundary curve. Similarly, Stokes' Theorem relates a surface integral over a surface SS to a line integral around the boundary curve of SS, a space curve.

In other words, Stokes' Theorem is a more generalized analogue of Green's Theorem.

Like Green's Theorem, Stokes' Theorem also includes the notion of orientation. In particular, as described in the last section, an oriented surface SS possesses a unit normal vector n\mathbf{n} at every point. (Either upwards or downwards). Then, we define the positive orientation of the boundary curve CC for a chosen orientation of SS. Essentially, if you walk in the positive direction around the CC with your head pointing in the direction of n\mathbf{n}, then the surface SS will always be on your left.

Stokes' Theorem

Let SS be an oriented piecewise-smooth surface that is bounded by a simple, closed, piecewise-smooth boundary curve CC with positive orientation. Let F\mathbf{F} be a vector field whose components have continuous partial derivatives on an open region in R3\mathbb{R}^{3} that contains SS. Then

CFdr=Scurl  FdS\underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r}=\underset{ S }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S}

The positively oriented boundary curve of the oriented surface SS is denoted S\partial S, so Stokes' Theorem can also be written as

SFdr=Scurl  FdS\underset{ \partial S }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r} =\underset{ S }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S}

There are some equivalencies here that should be noted. In particular,

CFdr=CFTdsandScurl  FdS=Scurl  FndS\underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r}=\underset{ C }{\int} \mathbf{F}\cdot \mathbf{T} \,\mathrm{d}s \qquad\text{and}\qquad \underset{ S }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S}=\underset{ S }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \mathbf{n} \, \mathrm{d}\mathbf{S}

Substituting these into Stokes' Theorem reveals that the line integral around the boundary curve of SS of the tangential component of F\mathbf{F} is equal to the surface integral over SS of the normal component of the curl of F\mathbf{F}.

The existence of Stokes' Theorem as a "generalized Green's Theorem" now becomes clear when SS lies entirely in the xyxy-plane with upward orientation. In this case, the unit normal is k\mathbf{k} and the surface integral becomes a double integral of the area in the xyxy-plane, i.e.

CFdr=Scurl  FdS=S(curl  F)kdA\underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r}=\underset{ S }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S} = \underset{ S }{\iint} (\mathrm{curl\;}\mathbf{F})\cdot \mathbf{k} \, \mathrm{d}A

This should look familiar, since it's just the formula from [[#Vector Forms of Green's Theorem]].

Also, note the following key fact about Stokes' Theorem.

tip

If S1,S2S_{1},S_{2} are oriented surfaces with the same oriented boundary curve CC and both satisfy the hypotheses of Stokes' Theorem, then

S1curl  FdS=CFdr=S2curl  FdS\underset{ S_{1} }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S} = \underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r}=\underset{ S_{2} }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S}

This is helpful whenever it's easier to integrate over another surface with the same boundary curve.

Stokes' Theorem is challenging to prove for all pairs of a surface SS and a boundary curve CC satisfying its requirements, and thus there will be no proof provided. The textbook does include a proof of a special case of Stokes' Theorem; give it a read if you're interested!

Stokes' Theorem enables us to interpret the physical meaning of the curl vector. Let CC be an oriented closed curve and v\mathbf{v} represent the velocity field in fluid flow. Consider the line integral Cvdr=CvTds\underset{ C }{\int} \mathbf{v}\cdot \,\mathrm{d}\mathbf{r}=\underset{ C }{\int} \mathbf{v}\cdot \mathbf{T} \,\mathrm{d}s. Note that vT\mathbf{v}\cdot \mathbf{T} is the component of v\mathbf{v} in the direction of the unit tangent vector T\mathbf{T}. That is, the closer the directions of v\mathbf{v} and T\mathbf{T}, the larger the value of vT\mathbf{v}\cdot \mathbf{T}. In other words, Cvdr\underset{ C }{\int} \mathbf{v}\cdot \,\mathrm{d}\mathbf{r} is a measure of the tendency of the fluid to move around CC in the positive orientation, a quantity known as the circulation of v\mathbf{v} around CC. (When Cvdr\underset{ C }{\int} \mathbf{v}\cdot \,\mathrm{d}\mathbf{r} is negative, that means the fluid tends to circulate around CC in the other direction).

We can in fact approximate the circulation at a point with the following equation:

curl  v(P0)n(P0)=lima01πa2Cavdr\mathrm{curl\;}\mathbf{v}(P_{0})\cdot \mathbf{n}(P_{0})=\lim_{ a \to 0 } \frac{1}{\pi a^{2}}\underset{ C_{a} }{\int} \mathbf{v}\cdot \,\mathrm{d}\mathbf{r}

Where CaC_{a} is the boundary circle of a small disk SaS_{a} with radius aa and center P0P_{0}. That is, curl  vn\mathrm{curl\;}\mathbf{v}\cdot \mathbf{n} measures the rotating effect of the fluid about the axis n\mathbf{n}. And thus the curling effect is greatest about the axis parallel to curl  v\mathrm{curl\;}\mathbf{v}.

Finally, armed with Stokes' Theorem, we can now (mostly) prove one of the statements we made in [[#16.5 Curl and Divergence#Curl|16.5 Curl and Divergence]]: If F\mathbf{F} is a vector field defined on all of R3\mathbb{R}^{3} whose component functions have continuous partial derivatives and curl  F=0\mathrm{curl\;}\mathbf{F}=\mathbf{0}, then F\mathbf{F} is a conservative vector field.

We know that F\mathbf{F} is conservative if CFdr=0\underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r}=0 for every closed path CC. Note that we can guarantee that CC bounds an orientable surface SS. (However, proving this statement requires more advanced techniques, hence why this is only a mostly complete proof). Assuming we know this is true, though, Stokes' Theorem states

CFdr=Scurl  FdS=S0dS=0\underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r}=\underset{ S }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S} = \underset{ S }{\iint} \mathbf{0}\cdot \, \mathrm{d}\mathbf{S} = 0

And if CC is not simple, it can be divided into multiple simple curves, and the integrals around these simple curves are all 00. Hence, the equality holds for nonsimple curves too.

16.9 The Divergence Theorem

Recall that, in [[#Vector Forms of Green's Theorem|this section of 16.5]], we rewrote Green's Theorem in vector form using curl and divergence. In particular, the divergence formula was

CFnds=Ddiv  F(x,y)dA\underset{ C }{\oint} \mathbf{F}\cdot \mathbf{n} \, \mathrm{d}s = \underset{ D }{\iint} \mathrm{div\;}\mathbf{F}(x,y) \, \mathrm{d}A

Just like how Stokes' Theorem was essentially an extension to R3\mathbb{R}^{3} of the vector form of Green's Theorem using curl, the Divergence Theorem is an extension to R3\mathbb{R}^{3} of the other vector form of Green's Theorem displayed above.

In particular, we shall consider regions EE that are simultaneously type 1, 2, and 3. Such regions are called simple solid regions. The boundary of EE is a closed surface, and we shall denote the positive orientation of the surface as outward (away from EE), i.e. the unit normal vector n\mathbf{n} is directed outward.

The Divergence Theorem

Let EE be a simple solid region and let SS be the boundary surface of EE, given with positive (outward) orientation. Let F\mathbf{F} be a vector field whose component functions have continuous partial derivatives on an open region that contains EE. Then

SFdS=Ediv  FdV\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}\mathbf{S} = \underset{ E }{\iiint} \mathrm{div\;}\mathbf{F}\cdot \, \mathrm{d}V

In other words, the flux of F\mathbf{F} across the boundary surface of EE is equal to the triple integral of the divergence of F\mathbf{F} over EE.

Too lazy to write a proof... so you'll have to imagine it (i.e., read the textbook for the proof).

Example of using the Divergence Theorem

Evaluate SFdS\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}\mathbf{S}, where

F(x,y,z)=xyi+(y2+exz2)j+sin(xy)k\mathbf{F}(x,y,z)=xy\mathbf{i}+(y^{2}+e^{ xz^{2} })\mathbf{j}+\sin(xy)\mathbf{k}

and SS is the surface of the region EE bounded by the parabolic cylinder z=1x2z=1-x^{2} and the planes z=0z=0, y=0y=0, and y+z=2y+z=2.

By the Divergence Theorem, SFdS=Ediv  FdV\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}\mathbf{S} = \underset{ E }{\iiint} \mathrm{div\;}\mathbf{F}\cdot \, \mathrm{d}V. Note that div  F=3y\mathrm{div\;}\mathbf{F}=3y. And thus, considering the bounds, we have

SFdS=1101x202z3ydydzdx=18435\underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}\mathbf{S}=\int_{-1}^{1} \int_{0}^{1-x^{2}} \int_{0}^{2-z} 3y \, \mathrm{d}y \, \mathrm{d}z \, \mathrm{d}x =\frac{184}{35}
tip

The Divergence Theorem can be extended to regions that are finite unions of simple solid regions.

Regarding the above tip, consider, for example, a region EE lying between closed surfaces S1S_{1} and S2S_{2} where S1S_{1} is enclosed entirely by S1S_{1}. Let n1\mathbf{n}_{1} and n2\mathbf{n}_{2} be the positive (outward) normal vectors of S1S_{1} and S2S_{2}, respectively. Then, the boundary surface of EE is S1S2S_{1}\cap S_{2} and its normal n\mathbf{n} is given by n=n1\mathbf{n}=-\mathbf{n}_{1} on S1S_{1} and n=n2\mathbf{n}=\mathbf{n}_{2} on S2S_{2}. Applying the Divergence Theorem gives us

Ediv  Fdv=S1FdS+S2FdS\underset{ E }{\iiint} \mathrm{div\;}\mathbf{F} \, \mathrm{d}v = -\underset{ S_{1} }{\iint} \mathbf{F} \, \mathrm{d}\mathbf{S} + \underset{ S_{2} }{\iint} \mathbf{F}\cdot \, \mathrm{d}\mathbf{S}

We can also apply he Divergence Theorem to fluid flow. Let v(x,y,z)\mathbf{v}(x,y,z) be the velocity field with constant density ρ\rho. Then F=pv\mathbf{F}=p\mathbf{v} is the rate of flow per unit area, as defined previously. Let P0(x0,y0,z0)P_{0}(x_{0},y_{0},z_{0}) be a point in the fluid and BaB_{a} be a ball with center P0P_{0} and small radius aa. Then div  F(P)=div  F(P0)\mathrm{div\;}\mathbf{F}(P)=\mathrm{div\;}\mathbf{F}(P_{0}) for all other points PP in BaB_{a} since div  F\mathrm{div\;}\mathbf{F} is continuous. Thus, the flux over the boundary sphere SaS_{a} can be approximated:

SaFdS=Badiv  FdV=Badiv  F(P0)dV=div  F(P0)V(B0)\underset{ S_{a} }{\iint} \mathbf{F} \, \mathrm{d}\mathbf{S} = \underset{ B_{a} }{\iiint} \mathrm{div\;}\mathbf{F} \, \mathrm{d}V = \underset{ B_{a} }{\iiint} \mathrm{div\;}\mathbf{F}(P_{0}) \, \mathrm{d}V = \mathrm{div\;}\mathbf{F}(P_{0})V(B_{0})

Taking the limit as a0a\to0, we derive

div  F(P0)=lima01V(Ba)SaFdS\mathrm{div\;}\mathbf{F}(P_{0})=\lim_{ a \to 0 } \frac{1}{V(B_{a})}\underset{ S_{a} }{\iint} \mathbf{F}\cdot \, \mathrm{d}S

That is, div  F(P0)\mathrm{div\;}\mathbf{F}(P_{0}) is the net rate of outward flux per unit volume at P0P_{0}. In fact, this is the true motivation for the name divergence. If div  F(P)>0\mathrm{div\;}\mathbf{F}(P)>0, the net flow near PP is directed outward, and PP is called a source. Conversely, if div  F(P)<0\mathrm{div\;}\mathbf{F}(P)<0, the net flow near PP is directly inward, and PP is called a sink.

When reading a vector field, it's possible to estimate the divergence of F\mathbf{F} at a point PP by observing the magnitude of the incoming and outgoing arrows. If the incoming arrows are longer than the outgoing arrows, PP is a sink. Vice versa, and PP is a source.

16.10 Summary

Fundamental Theorem of Line Integrals
abF(x)dx=F(b)F(a)\int_{a}^{b} F'(x) \, \mathrm{d}x = F(b)-F(a)
Fundamental Theorem for Line Integrals
Cfdr=f(r(b))f(r(a))\underset{ C }{\int} \nabla f\cdot \,\mathrm{d}\mathbf{r}=f(\mathbf{r}(b))-f(\mathbf{r}(a))
Green's Theorem
D(QxPy)dA=CPdx+Qdy\underset{ D }{\iint} \left( \frac{ \partial Q }{ \partial x } -\frac{ \partial P }{ \partial y } \right) \, \mathrm{d}A = \underset{ C }{\int} P\,\mathrm{d}x+Q\,\mathrm{d} y
Stokes' Theorem
Scurl  FdS=CFdr\underset{ S }{\iint} \mathrm{curl\;}\mathbf{F}\cdot \, \mathrm{d}\mathbf{S} = \underset{ C }{\int} \mathbf{F}\cdot \,\mathrm{d}\mathbf{r}

Where curl  F=×F\mathrm{curl\;}\mathbf{F}=\nabla \times \mathbf{F}.

Divergence Theorem
Ediv  FdV=SFdS\underset{ E }{\iiint} \mathrm{div\;}\mathbf{F}\cdot \, \mathrm{d}V = \underset{ S }{\iint} \mathbf{F}\cdot \, \mathrm{d}\mathbf{S}

Where div  F=F\mathrm{div\;}\mathbf{F}=\nabla\cdot \mathbf{F}.