16
Vector Calculus
16.1 Vetor Fields
This chapter is concerned with applying calculus in the context of vector fields. A two-dimensional vector field is a function f that maps each point (x, y) in R2 to a two-dimensional vector hu, vi, and similarly a three-dimensional vector field maps (x, y, z) to
hu, v, wi. Since a vector has no position, we typically indicate a vector field in graphical
form by placing the vector f(x, y) with its tail at (x, y). Figure 16.1.1 shows a represen-tation of the vector field f(x, y) = h−x/px2+y2+ 4, y/p
x2+y2+ 4i. For such a graph to be readable, the vectors must be fairly short, which is accomplished by using a different scale for the vectors than for the axes. Such graphs are thus useful for understanding the sizes of the vectors relative to each other but not their absolute size.
Vector fields have many important applications, as they can be used to represent many physical quantities: the vector at a point may represent the strength of some force (gravity, electricity, magnetism) or a velocity (wind speed or the velocity of some other fluid).
We have already seen a particularly important kind of vector field—the gradient. Given a function f(x, y), recall that the gradient ishfx(x, y), fy(x, y)i, a vector that depends on
(is a function of) x and y. We usually picture the gradient vector with its tail at (x, y), pointing in the direction of maximum increase. Vector fields that are gradients have some particularly nice properties, as we will see. An important example is
F= −x (x2+y2+z2)3/2, −y (x2+y2+z2)3/2, −z (x2+y2+z2)3/2 , 417
−1.6 −1.8 −2.0 1.6 0.0 −1.2 2.0 y 2.0 1.2 1.0 1.2 −1.2 −1.0 −0.8 0.4 0.6 −0.4 −0.2 x −0.8 0.8 1.8 0.2 −1.6 1.6 0.0 1.4 −2.0 −0.6 −1.4 −0.4 0.8 0.4
Figure 16.1.1 A vector field.
which points from the point (x, y, z) toward the origin and has length p
x2+y2+z2
(x2+y2+z2)3/2 =
1
(px2+y2+z2)2,
which is the reciprocal of the square of the distance from (x, y, z) to the origin—in other words, F is an “inverse square law”. The vector F is a gradient:
F=∇p 1
x2+y2+z2, (16.1.1)
which turns out to be extremely useful.
Exercises 16.1.
Sketch the vector fields; check your work with Sage’s plot_vector_fieldfunction.
1. hx, yi 2. h−x,−yi 3. hx,−yi 4. hsinx,cosyi 5. hy,1/xi 6. hx+ 1, x+ 3i 7. Verify equation 16.1.1.
16.2 Line Integrals 419
16.2 Line Integrals
We have so far integrated “over” intervals, areas, and volumes with single, double, and triple integrals. We now investigate integration over or “along” a curve—“line integrals” are really “curve integrals”.
As with other integrals, a geometric example may be easiest to understand. Consider the function f =x+y and the parabola y =x2 in the x-y plane, for 0≤x ≤2. Imagine that we extend the parabola up to the surface f, to form a curved wall or curtain, as in figure 16.2.1. What is the area of the surface thus formed? We already know one way to compute surface area, but here we take a different approach that is more useful for the problems to come. 2.0 1.5 x 1.0 0.5 0.0 0 1 2 y 3 4 0 1 2 3 z 4 5 6
Figure 16.2.1 Approximating the area under a curve. (AP)
As usual, we start by thinking about how to approximate the area. We pick some points along the part of the parabola we’re interested in, and connect adjacent points by straight lines; when the points are close together, the length of each line segment will be close to the length along the parabola. Using each line segment as the base of a rectangle, we choose the height to be the height of the surface f above the line segment. If we add up the areas of these rectangles, we get an approximation to the desired area, and in the limit this sum turns into an integral.
Typically the curve is in vector form, or can easily be put in vector form; in this example we have v(t) = ht, t2i. Then as we have seen in section 13.3 on arc length, the length of one of the straight line segments in the approximation is approximately
ds=|v′|dt=√1 + 4t2dt, so the integral is Z 2 0 f(t, t2)p1 + 4t2dt= Z 2 0 (t+t2)p1 + 4t2dt= 167 48 √ 17− 1 12 − 1 64ln(4 + √ 17).
This integral of a function along a curve C is often written in abbreviated form as Z C f(x, y)ds. EXAMPLE 16.2.1 Compute Z C
yexdswhereC is the line segment from (1,2) to (4,7). We write the line segment as a vector function: v = h1,2i+th3,5i, 0 ≤ t ≤ 1, or in parametric form x= 1 + 3t, y= 2 + 5t. Then
Z C yexds= Z 1 0 (2 + 5t)e1+3tp32+ 52dt= 16 9 √ 34e4− 1 9 √ 34e.
All of these ideas extend to three dimensions in the obvious way. EXAMPLE 16.2.2 Compute
Z
C
x2z ds where C is the line segment from (0,6,−1) to (4,1,5).
We write the line segment as a vector function: v=h0,6,−1i+th4,−5,6i, 0≤t≤ 1, or in parametric form x = 4t, y= 6−5t, z =−1 + 6t. Then
Z C x2z ds= Z 1 0 (4t)2(−1 + 6t)√16 + 25 + 36dt= 16√77 Z 1 0 − t2+ 6t3dt= 56 3 √ 77.
Now we turn to a perhaps more interesting example. Recall that in the simplest case, the work done by a force on an object is equal to the magnitude of the force times the distance the object moves; this assumes that the force is constant and in the direction of motion. We have already dealt with examples in which the force is not constant; now we are prepared to examine what happens when the force is not parallel to the direction of motion.
16.2 Line Integrals 421
We have already examined the idea of components of force, in example 12.3.4: the component of a force F in the direction of a vector v is
F·v |v|2 v,
the projection of F onto v. The length of this vector, that is, the magnitude of the force in the direction of v, is
F·v |v| ,
the scalar projection of F onto v. If an object moves subject to this (constant) force, in the direction of v, over a distance equal to the length ofv, the work done is
F·v
|v| |v|=F·v.
Thus, work in the vector setting is still “force times distance”, except that “times” means “dot product”.
If the force varies from point to point, it is represented by a vector field F; the dis-placement vector v may also change, as an object may follow a curving path in two or three dimensions. Suppose that the path of an object is given by a vector functionr(t); at any point along the path, the (small) tangent vector r′∆t gives an approximation to its motion over a short time ∆t, so the work done during that time is approximatelyF·r′∆t; the total work over some time period is then
Z t1
t0
F·r′dt.
It is useful to rewrite this in various ways at different times. We start with Z t1 t0 F·r′dt= Z C F· dr,
abbreviating r′dt by dr. Or we can write Z t1 t0 F·r′dt= Z t1 t0 F· r ′ |r′||r ′|dt= Z t1 t0 F·T|r′|dt= Z C F·Tds,
using the unit tangent vector T, abbreviating |r′|dt as ds, and indicating the path of the object byC. In other words, work is computed using a particular line integral of the form
we have considered. Alternately, we sometimes write Z C F·r′dt= Z Ch f, g, hi · hx′, y′, z′idt= Z C fdx dt +g dy dt +h dz dt dt = Z C f dx+g dy+h dz = Z C f dx+ Z C g dy+ Z C h dz,
and similarly for two dimensions, leaving out references to z.
EXAMPLE 16.2.3 Suppose an object moves from (−1,1) to (2,4) along the path r(t) =ht, t2i, subject to the force F=hxsiny, yi. Find the work done.
We can write the force in terms oft as htsin(t2), t2i, and compute r′(t) =h1,2ti, and then the work is
Z 2 −1h tsin(t2), t2i · h1,2tidt= Z 2 −1 tsin(t2) + 2t3dt= 15 2 + cos(1)−cos(4) 2 .
Alternately, we might write Z C xsiny dx+ Z C y dy= Z 2 −1 xsin(x2)dx+ Z 4 1 y dy=−cos(4) 2 + cos(1) 2 + 16 2 − 1 2 getting the same answer.
Exercises 16.2.
1. Compute Z
C
xy2dsalong the line segment from (1,2,0) to (2,1,3). ⇒
2. Compute Z
C
sinx ds along the line segment from (−1,2,1) to (1,2,5). ⇒
3. Compute Z
C
zcos(xy)ds along the line segment from (1,0,1) to (2,2,3). ⇒
4. Compute Z
C
sinx dx+ cosy dy along the top half of the unit circle, from (1,0) to (−1,0). ⇒
5. Compute Z
C
xeydx+x2y dy along the line segmenty= 3, 0≤x≤2. ⇒
6. Compute Z
C
xeydx+x2y dy along the line segmentx= 4, 0≤y ≤4. ⇒
7. Compute Z
C
xeydx+x2y dy along the curve x= 3t,y=t2
, 0≤t≤1. ⇒
8. Compute Z
C
xeydx+x2y dy along the curve het, eti,−1≤t≤1. ⇒
9. Compute Z
Ch
16.3 The Fundamental Theorem of Line Integrals 423
10. Compute Z
Ch
1/xy,1/(x+y)i ·dralong the path from (1,1) to (3,1) to (3,6) using straight line segments. ⇒
11. Compute Z
Ch
1/xy,1/(x+y)i ·dr along the curveh2t,5ti, 1≤t≤4. ⇒
12. Compute Z
Ch
1/xy,1/(x+y)i ·dr along the curveht, t2
i, 1≤t≤4. ⇒
13. Compute Z
C
yz dx+xz dy+xy dz along the curveht, t2
, t3
i, 0≤t≤1. ⇒
14. Compute Z
C
yz dx+xz dy+xy dz along the curvehcost,sint,tanti, 0≤t≤π. ⇒
15. An object moves from (1,1) to (4,8) along the path r(t) = ht2
, t3
i, subject to the force
F=hx2
,sinyi. Find the work done. ⇒
16. An object moves along the line segment from (1,1) to (2,5), subject to the force F = hx/(x2
+y2
), y/(x2
+y2
)i. Find the work done. ⇒
17. An object moves along the parabola r(t) = ht, t2
i, 0 ≤ t ≤ 1, subject to the force F = h1/(y+ 1),−1/(x+ 1)i. Find the work done. ⇒
18. An object moves along the line segment from (0,0,0) to (3,6,10), subject to the force F= hx2
, y2
, z2
i. Find the work done. ⇒
19. An object moves along the curve r(t) = h√t,1/√t, ti 1 ≤ t ≤ 4, subject to the force F = hy, z, xi. Find the work done. ⇒
20. An object moves from (1,1,1) to (2,4,8) along the pathr(t) =ht, t2
, t3
i, subject to the force
F=hsinx,siny,sinzi. Find the work done. ⇒
21. An object moves from (1,0,0) to (−1,0, π) along the path r(t) = hcost,sint, ti, subject to the force F=hy2
, y2
, xzi. Find the work done. ⇒
22. Give an example of a non-trivial force field F and non-trivial path r(t) for which the total work done moving along the path is zero.
16.3 The Fundamental Theorem of Line Integrals
One way to write the Fundamental Theorem of Calculus (7.2.1) is: Z b
a
f′(x)dx=f(b)−f(a).
That is, to compute the integral of a derivative f′ we need only compute the values of f at the endpoints. Something similar is true for line integrals of a certain form.
THEOREM 16.3.1 Fundamental Theorem of Line Integrals Suppose a curve
C is given by the vector functionr(t), with a=r(a) and b=r(b). Then Z
C∇
f ·dr=f(b)−f(a),
Proof. We write r = hx(t), y(t), z(t)i, so that r′ = hx′(t), y′(t), z′(t)i. Also, we know that ∇f =hfx, fy, fzi. Then Z C∇ f·dr= Z b a h fx, fy, fzi · hx′(t), y′(t), z′(t)idt= Z b a fxx′+fyy′+fzz′dt.
By the chain rule (see section 14.4) fxx′ +fyy′ +fzz′ = df /dt, where f in this context
means f(x(t), y(t), z(t)), a function of t. In other words, all we have is Z b
a
f′(t)dt=f(b)−f(a).
In this context,f(a) =f(x(a), y(a), z(a)). Sincea=r(a) =hx(a), y(a), z(a)i, we can write
f(a) =f(a)—this is a bit of a cheat, since we are simultaneously usingf to meanf(t) and
f(x, y, z), and since f(x(a), y(a), z(a)) is not technically the same as f(hx(a), y(a), z(a)i),
but the concepts are clear and the different uses are compatible. Doing the same for b, we get Z C∇ f ·dr = Z b a f′(t)dt=f(b)−f(a) =f(b)−f(a).
This theorem, like the Fundamental Theorem of Calculus, says roughly that if we integrate a “derivative-like function” (f′ or ∇f) the result depends only on the values of the original function (f) at the endpoints.
If a vector fieldFis the gradient of a function, F=∇f, we say thatF is a conserva-tive vector field. If F is a conservative force field, then the integral for work, R
CF·dr,
is in the form required by the Fundamental Theorem of Line Integrals. This means that in a conservative force field, the amount of work required to move an object from point a to point b depends only on those points, not on the path taken between them.
EXAMPLE 16.3.2 An object moves in the force field F= −x (x2+y2+z2)3/2, −y (x2 +y2+z2)3/2, −z (x2+y2+z2)3/2 ,
along the curve r =h1 +t, t3, tcos(πt)ias t ranges from 0 to 1. Find the work done by the force on the object.
The straightforward way to do this involves substituting the components of r into F, forming the dot product F·r′, and then trying to compute the integral, but this integral is extraordinarily messy, perhaps impossible to compute. But sinceF=∇(1/px2+y2+z2) we need only substitute:
Z C F·dr = p 1 x2+y2+z2 (2,1,−1) (1,0,0) = √1 6 −1.
16.3 The Fundamental Theorem of Line Integrals 425
Another immediate consequence of the Fundamental Theorem involvesclosed paths. A pathC is closed if it forms a loop, so that traveling over the C curve brings you back to the starting point. If C is a closed path, we can integrate around it starting at any point a; since the starting and ending points are the same,
Z
C∇
f ·dr =f(a)−f(a) = 0.
For example, in a gravitational field (an inverse square law field) the amount of work required to move an object around a closed path is zero. Of course, it’s only the net amount of work that is zero. It may well take a great deal of work to get from point a to pointb, but then the return trip will “produce” work. For example, it takes work to pump water from a lower to a higher elevation, but if you then let gravity pull the water back down, you can recover work by running a water wheel or generator. (In the real world you won’t recover all the work because of various losses along the way.)
To make use of the Fundamental Theorem of Line Integrals, we need to be able to spot conservative vector fields F and to compute f so that F = ∇f. Suppose that F = hP, Qi=∇f. Then P =fx and Q=fy, and provided that f is sufficiently nice, we know
from Clairaut’s Theorem (14.6.2) that Py = fxy = fyx = Qx. If we compute Py and Qx
and find that they are not equal, then F is not conservative. If Py = Qx, then, again
provided thatF is sufficiently nice, we can be assured that F is conservative. Ultimately, what’s important is that we be able to findf; as this amounts to finding anti-derivatives, we may not always succeed.
EXAMPLE 16.3.3 Find an f so that h3 + 2xy, x2−3y2i=∇f. First, note that
∂
∂y(3 + 2xy) = 2x and
∂
∂x(x
2−3y2) = 2x,
so the desired f does exist. This means that fx = 3 + 2xy, so that f = 3x+x2y+g(y);
the first two terms are needed to get 3 + 2xy, and the g(y) could be any function ofy, as it would disappear upon taking a derivative with respect tox. Likewise, sincefy =x2−3y2,
f = x2y−y3 +h(x). The question now becomes, is it possible to find g(y) and h(x) so that
3x+x2y+g(y) =x2y−y3+h(x),
and of course the answer is yes: g(y) = −y3, h(x) = 3x. Thus, f = 3x+x2y−y3.
We can test a vector field F = hP, Q, Ri in a similar way. Suppose that hP, Q, Ri = hfx, fy, fzi. If we temporarily hold z constant, then f(x, y, z) is a function of x and y,
and by Clairaut’s Theorem Py = fxy = fyx = Qx. Likewise, holding y constant implies
Pz =fxz =fzx=Rx, and withx constant we getQz =fyz =fzy =Ry. Conversely, if we
find that Py =Qx, Pz =Rx, and Qz =Ry then F is conservative.
Exercises 16.3.
1. Find an f so that∇f =h2x+y2
,2y+x2
i, or explain why there is no suchf. ⇒
2. Find an f so that∇f =hx3
,−y4
i, or explain why there is no such f. ⇒
3. Find an f so that∇f =hxey, yexi, or explain why there is no such f. ⇒
4. Find an f so that∇f =hycosx, ysinxi, or explain why there is no such f. ⇒
5. Find an f so that∇f =hycosx,sinxi, or explain why there is no suchf. ⇒
6. Find an f so that∇f =hx2
y3
, xy4
i, or explain why there is no such f. ⇒
7. Find an f so that∇f =hyz, xz, xyi, or explain why there is no suchf. ⇒
8. Evaluate Z C (10x4 −2xy3 )dx−3x2 y2
dywhereC is the part of the curvex5
−5x2
y2
−7x2
= 0 from (0,0) to (3,2). ⇒
9. Let F= hyz, xz, xyi. Find the work done by this force field on an object that moves from (1,0,2) to (1,2,3). ⇒
10. Let F = hey, xey+ sinz, ycoszi. Find the work done by this force field on an object that moves from (0,0,0) to (1,−1,3). ⇒ 11. Let F= −x (x2+y2+z2)3/2, −y (x2+y2+z2)3/2, −z (x2+y2+z2)3/2 .
Find the work done by this force field on an object that moves from (1,1,1) to (4,5,6). ⇒
16.4 Green's Theorem
We now come to the first of three important theorems that extend the Fundamental The-orem of Calculus to higher dimensions. (The Fundamental TheThe-orem of Line Integrals has already done this in one way, but in that case we were still dealing with an essentially one-dimensional integral.) They all share with the Fundamental Theorem the following rather vague description: To compute a certain sort of integral over a region, we may do a computation on the boundary of the region that involves one fewer integrations.
Note that this does indeed describe the Fundamental Theorem of Calculus and the Fundamental Theorem of Line Integrals: to compute a single integral over an interval, we do a computation on the boundary (the endpoints) that involves one fewer integrations, namely, no integrations at all.
16.4 Green’s Theorem 427
THEOREM 16.4.1 Green’s Theorem If the vector fieldF=hP, Qiand the region
D are sufficiently nice, and if C is the boundary of D (C is a closed curve), then Z Z D ∂Q ∂x − ∂P ∂y dA= Z C P dx+Q dy,
provided the integration on the right is done counter-clockwise around C. To indicate that an integral
Z
C
is being done over a closed curve in the counter-clockwise direction, we usually write
I
C
. We also use the notation ∂D to mean the boundary ofDorientedin the counterclockwise direction. With this notation,
I C = Z ∂D . We already know one case, not particularly interesting, in which this theorem is true: If F is conservative, we know that the integral
I
C
F·dr = 0, because any integral of a conservative vector field around a closed curve is zero. We also know in this case that
∂P/∂y =∂Q/∂x, so the double integral in the theorem is simply the integral of the zero
function, namely, 0. So in the case that F is conservative, the theorem says simply that 0 = 0.
EXAMPLE 16.4.2 We illustrate the theorem by computing both sides of Z ∂D x4dx+xy dy= Z Z D y−0dA,
whereD is the triangular region with corners (0,0), (1,0), (0,1). Starting with the double integral:
Z Z D y−0dA= Z 1 0 Z 1−x 0 y dy dx= Z 1 0 (1−x)2 2 dx= − (1−x)3 6 1 0 = 1 6.
There is no single formula to describe the boundary of D, so to compute the left side directly we need to compute three separate integrals corresponding to the three sides of the triangle, and each of these integrals we break into two integrals, the “dx” part and the “dy” part. The three sides are described by y = 0, y = 1−x, and x = 0. The integrals are then Z ∂D x4dx+xy dy= Z 1 0 x4dx+ Z 0 0 0dy+ Z 0 1 x4dx+ Z 1 0 (1−y)y dy+ Z 0 0 0dx+ Z 0 1 0dy = 1 5 + 0− 1 5 + 1 6 + 0 + 0 = 1 6.
Alternately, we could describe the three sides in vector form as ht,0i, h1−t, ti, and h0,1−ti. Note that in each case, ast ranges from 0 to 1, we follow the corresponding side
in the correct direction. Now Z ∂D x4dx+xy dy= Z 1 0 t4+t·0dt+ Z 1 0 − (1−t)4+ (1−t)t dt+ Z 1 0 0 + 0dt = Z 1 0 t4dt+ Z 1 0 − (1−t)4+ (1−t)t dt= 1 6.
In this case, none of the integrations are difficult, but the second approach is some-what tedious because of the necessity to set up three different integrals. In different circumstances, either of the integrals, the single or the double, might be easier to compute. Sometimes it is worthwhile to turn a single integral into the corresponding double integral, sometimes exactly the opposite approach is best.
Here is a clever use of Green’s Theorem: We know that areas can be computed using double integrals, namely,
Z Z
D
1dA
computes the area of region D. If we can findP and Qso that∂Q/∂x−∂P/∂y= 1, then the area is also
Z
∂D
P dx+Q dy.
It is quite easy to do this: P = 0, Q=x works, as do P =−y, Q= 0 and P =−y/2, Q =
x/2.
EXAMPLE 16.4.3 An ellipse centered at the origin, with its two principal axes aligned with the x and y axes, is given by
x2
a2 +
y2
b2 = 1.
We find the area of the interior of the ellipse via Green’s theorem. To do this we need a vector equation for the boundary; one such equation is hacost, bsinti, as t ranges from 0 to 2π. We can easily verify this by substitution:
x2 a2 + y2 b2 = a2cos2t a2 + b2sin2t b2 = cos 2t+ sin2t= 1.
Let’s consider the three possibilities for P and Q above: Using 0 and x gives I C 0dx+x dy = Z 2π 0 acos(t)bcos(t)dt= Z 2π 0 abcos2(t)dt.
16.4 Green’s Theorem 429
Using −y and 0 gives I C − y dx+ 0dy = Z 2π 0 − bsin(t)(−asin(t))dt= Z 2π 0 absin2(t)dt.
Finally, using −y/2 and x/2 gives I C− y 2 dx+ x 2 dy = Z 2π 0 − bsin(t) 2 (−asin(t))dt+ acos(t) 2 (bcos(t))dt = Z 2π 0 absin2t 2 + abcos2t 2 dt= Z 2π 0 ab 2 dt=πab.
The first two integrals are not particularly difficult, but the third is very easy, though the choice ofP and Q seems more complicated.
(0, b) (a,0) • •... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...... ...... ...... ...... ......... ... ... ... ...
Figure 16.4.1 A “standard” ellipse, x2
a2 +
y2
b2 = 1.
Proof of Green’s Theorem. We cannot here prove Green’s Theorem in general, but
we can do a special case. We seek to prove that I C P dx+Q dy = Z Z D ∂Q ∂x − ∂P ∂y dA.
It is sufficient to show that I C P dx= Z Z D −∂P∂y dA and I C Q dy = Z Z D ∂Q ∂x dA,
which we can do if we can compute the double integral in both possible ways, that is, using
For the first equation, we start with Z Z D ∂P ∂y dA= Z b a Z g2(x) g1(x) ∂P ∂y dy dx = Z b a P(x, g2(x))−P(x, g1(x))dx.
Here we have simply used the ordinary Fundamental Theorem of Calculus, since for the inner integral we are integrating a derivative with respect toy: an antiderivative of∂P/∂y
with respect to y is simply P(x, y), and then we substitute g1 andg2 for y and subtract. Now we need to manipulate H
CP dx. The boundary of region D consists of 4 parts,
given by the equations y = g1(x), x = b, y = g2(x), and x = a. On the portions x = b and x =a, dx= 0dt, so the corresponding integrals are zero. For the other two portions, we use the parametric forms x = t, y = g1(t), a ≤ t ≤ b, and x = t, y = g2(t), letting t range from b to a, since we are integrating counter-clockwise around the boundary. The resulting integrals give us
I C P dx= Z b a P(t, g1(t))dt+ Z a b P(t, g2(t))dt= Z b a P(t, g1(t))dt− Z b a P(t, g2(t))dt = Z b a P(t, g1(t))−P(t, g2(t))dt
which is the result of the double integral times −1, as desired.
The equation involvingQ is essentially the same, and left as an exercise.
Exercises 16.4.
1. Compute Z ∂D 2y dx+ 3x dy, whereD is described by 0≤x≤1, 0≤y≤1. ⇒ 2. Compute Z ∂D xy dx+xy dy, whereD is described by 0≤x≤1, 0≤y≤1. ⇒ 3. Compute Z ∂D e2x+3ydx+exydy, whereD is described by −2≤x≤2,−1≤y ≤1. ⇒ 4. Compute Z ∂Dycosx dx+ysinx dy, whereD is described by 0≤x≤π/2, 1≤y≤2. ⇒
5. Compute Z ∂D x2y dx+xy2dy, whereD is described by 0≤x≤1, 0≤y≤x. ⇒ 6. Compute Z ∂D x√y dx+√x+y dy, whereD is described by 1≤x≤2, 2x≤y ≤4. ⇒ 7. Compute Z ∂D
(x/y)dx+ (2 + 3x)dy, whereD is described by 1≤x≤2, 1≤y≤x2
. ⇒
8. Compute Z
∂D
siny dx+ sinx dy, whereD is described by 0≤x≤π/2,x≤y≤π/2. ⇒
9. Compute Z ∂D xlny dx, whereD is described by 1≤x≤2,ex ≤y≤ex 2 . ⇒
16.5 Divergence and Curl 431 10. Compute Z ∂D p 1 +x2dy, whereD is described by−1≤x≤1,x2 ≤y ≤1. ⇒ 11. Compute Z ∂D x2y dx−xy2dy, where Dis described byx2 +y2 ≤1. ⇒ 12. Compute Z ∂D y3dx+ 2x3dy, whereDis described by x2 +y2 ≤4. ⇒ 13. Evaluate I C
(y−sin(x))dx+ cos(x)dy, whereC is the boundary of the triangle with vertices (0,0), (1,0), and (1,2) oriented counter-clockwise. ⇒
14. Finish our proof of Green’s Theorem by showing that I C Q dy= Z Z D ∂Q ∂x dA.
16.5 Divergene and Curl
Divergence and curl are two measurements of vector fields that are very useful in a variety of applications. Both are most easily understood by thinking of the vector field as representing a flow of a liquid or gas; that is, each vector in the vector field should be interpreted as a velocity vector. Roughly speaking, divergence measures the tendency of the fluid to collect or disperse at a point, and curl measures the tendency of the fluid to swirl around the point. Divergence is a scalar, that is, a single number, while curl is itself a vector. The magnitude of the curl measures how much the fluid is swirling, the direction indicates the axis around which it tends to swirl. These ideas are somewhat subtle in practice, and are beyond the scope of this course. You can find additional information on the web, for example at
http://mathinsight.org/curl_idea and http://mathinsight.org/divergence_idea
and in many books includingDiv, Grad, Curl, and All That: An Informal Text on Vector Calculus, by H. M. Schey.
Recall that if f is a function, the gradient of f is given by ∇f = ∂f ∂x, ∂f ∂y, ∂f ∂z .
A useful mnemonic for this (and for the divergence and curl, as it turns out) is to let ∇= ∂ ∂x, ∂ ∂y, ∂ ∂z ,
that is, we pretend that ∇ is a vector with rather odd looking entries. Recalling that
hu, v, wia=hua, va, wai, we can then think of the gradient as
∇f = ∂ ∂x, ∂ ∂y, ∂ ∂z f = ∂f ∂x, ∂f ∂y, ∂f ∂z ,
The divergence and curl can now be defined in terms of this same odd vector ∇ by using the cross product and dot product. The divergence of a vector field F=hf, g, hiis
∇ ·F= ∂ ∂x, ∂ ∂y, ∂ ∂z · hf, g, hi= ∂f ∂x + ∂g ∂y + ∂h ∂z. The curl of F is ∇ ×F= i j k ∂ ∂x ∂ ∂y ∂ ∂z f g h = ∂h ∂y − ∂g ∂z, ∂f ∂z − ∂h ∂x, ∂g ∂x − ∂f ∂y .
Here are two simple but useful facts about divergence and curl. THEOREM 16.5.1 ∇ ·(∇ ×F) = 0.
In words, this says that the divergence of the curl is zero. THEOREM 16.5.2 ∇ ×(∇f) =0.
That is, the curl of a gradient is the zero vector. Recalling that gradients are conser-vative vector fields, this says that the curl of a conserconser-vative vector field is the zero vector. Under suitable conditions, it is also true that if the curl of F is 0 then F is conservative. (Note that this is exactly the same test that we discussed on page 425.)
EXAMPLE 16.5.3 Let F=hez,1, xezi. Then ∇ ×F=h0, ez−ez,0i=0. Thus, F is
conservative, and we can exhibit this directly by finding the corresponding f.
Since fx = ez, f = xez +g(y, z). Since fy = 1, it must be that gy = 1, so g(y, z) =
y+h(z). Thus f =xez+y+h(z) and
xez =fzxez + 0 +h′(z),
so h′(z) = 0, i.e., h(z) =C, and f =xez+y+C.
We can rewrite Green’s Theorem using these new ideas; these rewritten versions in turn are closer to some later theorems we will see.
Suppose we write a two dimensional vector field in the form F = hP, Q,0i, where P
and Q are functions of x and y. Then ∇ ×F= i j k ∂ ∂x ∂ ∂y ∂ ∂z P Q 0 =h0,0, Qx−Pyi,
and so (∇ ×F)·k=h0,0, Qx−Pyi · h0,0,1i=Qx−Py. So Green’s Theorem says
Z ∂D F·dr= Z ∂D P dx+Q dy = Z Z D Qx−PydA= Z Z D (∇ ×F)·kdA. (16.5.1)
16.5 Divergence and Curl 433
Roughly speaking, the right-most integral adds up the curl (tendency to swirl) at each point in the region; the left-most integral adds up the tangential components of the vector field around the entire boundary. Green’s Theorem says these are equal, or roughly, that the sum of the “microscopic” swirls over the region is the same as the “macroscopic” swirl around the boundary.
Next, suppose that the boundary∂D has a vector formr(t), so that r′(t) is tangent to the boundary, andT =r′(t)/|r′(t)|is the usual unit tangent vector. Writingr=hx(t), y(t)i we get T = hx ′, y′i |r′(t)| and then N= hy ′,−x′i |r′(t)|
is a unit vector perpendicular to T, that is, a unit normal to the boundary. Now Z ∂D F·Nds= Z ∂Dh P, Qi · hy ′,−x′i |r′(t)| |r ′(t)|dt= Z ∂D P y′dt−Qx′dt = Z ∂D P dy−Q dx= Z ∂D− Q dx+P dy.
So far, we’ve just rewritten the original integral using alternate notation. The last integral looks just like the right side of Green’s Theorem (16.4.1) except thatP andQhave traded places andQ has acquired a negative sign. Then applying Green’s Theorem we get
Z ∂D− Q dx+P dy = Z Z D Px+QydA= Z Z D ∇ ·FdA.
Summarizing the long string of equalities, Z ∂D F·Nds= Z Z D ∇ ·FdA. (16.5.2)
Roughly speaking, the first integral adds up the flow across the boundary of the region, from inside to out, and the second sums the divergence (tendency to spread) at each point in the interior. The theorem roughly says that the sum of the “microscopic” spreads is the same as the total spread across the boundary and out of the region.
Exercises 16.5.
1. Let F =hxy,−xyi and let D be given by 0 ≤x ≤1, 0 ≤ y ≤ 1. Compute Z ∂D F·dr and Z ∂D F·Nds. ⇒ 2. Let F =hax2 , by2
i and let D be given by 0 ≤x ≤1, 0 ≤ y ≤ 1. Compute Z ∂D F·dr and Z ∂D F·Nds. ⇒ 3. Let F= hay2 , bx2
i and let D be given by 0 ≤ x ≤ 1, 0≤ y ≤ x. Compute Z ∂D F·dr and Z ∂D F·Nds. ⇒
4. Let F = hsinxcosy,cosxsinyi and let D be given by 0 ≤ x ≤ π/2, 0 ≤ y ≤ x. Compute Z ∂D F·drand Z ∂D F·Nds. ⇒
5. Let F =hy,−xi and let D be given by x2
+y2 ≤1. Compute Z ∂D F·dr and Z ∂D F·Nds. ⇒
6. Let F=hx, yiand let Dbe given byx2
+y2 ≤1. Compute Z ∂D F·drand Z ∂D F·Nds. ⇒ 7. Prove theorem 16.5.1. 8. Prove theorem 16.5.2.
9. If ∇ · F = 0, F is said to be incompressible. Show that any vector field of the form
F(x, y, z) =hf(y, z), g(x, z), h(x, y)i is incompressible. Give a non-trivial example.
16.6 Vetor Funtions for Surfaes
We have dealt extensively with vector equations for curves, r(t) = hx(t), y(t), z(t)i. A similar technique can be used to represent surfaces in a way that is more general than the equations for surfaces we have used so far. Recall that when we use r(t) to represent a curve, we imagine the vector r(t) with its tail at the origin, and then we follow the head of the arrow as t changes. The vector “draws” the curve through space ast varies.
Suppose we instead have a vector function of two variables, r(u, v) =hx(u, v), y(u, v), z(u, v)i.
As both u and v vary, we again imagine the vector r(u, v) with its tail at the origin, and its head sweeps out a surface in space. A useful analogy is the technology of CRT video screens, in which an electron gun fires electrons in the direction of the screen. The gun’s direction sweeps horizontally and vertically to “paint” the screen with the desired image. In practice, the gun moves horizontally through an entire line, then moves vertically to the next line and repeats the operation. In the same way, it can be useful to imagine fixing a
16.6 Vector Functions for Surfaces 435
value ofvand lettingr(u, v) sweep out a curve asu changes. Thenvcan change a bit, and r(u, v) sweeps out a new curve very close to the first. Put enough of these curves together and they form a surface.
EXAMPLE 16.6.1 Consider the functionr(u, v) =hvcosu, vsinu, vi. For a fixed value of v, as u varies from 0 to 2π, this traces a circle of radius v at height v above the x-y
plane. Put lots and lots of these together,and they form a cone, as in figure 16.6.1.
−2 0 1 −2 2 z 0 3 x 0 2 y 2 −2 0 1 −2 2 z 0 3 x 0 2 y 2
Figure 16.6.1 Tracing a surface.
EXAMPLE 16.6.2 Let r=hvcosu, vsinu, ui. Ifv is constant, the resulting curve is a helix (as in figure 13.1.1). Ifu is constant, the resulting curve is a straight line at height
uin the direction u radians from the positivex axis. Note in figure 16.6.2 how the helixes and the lines both paint the same surface in a different way.
This technique allows us to represent many more surfaces than previously. EXAMPLE 16.6.3 The curve given by
r=h(2 + cos(3u/2)) cosu,(2 + cos(3u/2)) sinu,sin(3u/2)i
is called a trefoil knot. Recall that from the vector equation of the curve we can compute the unit tangent T, the unit normal N, and the binormal vector B = T×N; you may want to review section 13.3. The binormal is perpendicular to bothT andN; one way to interpret this is thatNandB define a plane perpendicular toT, that is, perpendicular to the curve; since N and Bare perpendicular to each other, they can function just as i and
Figure 16.6.2 Tracing a surface. (AP)
j do for the x-y plane. So, for example, c(v) = Ncosv+Bsinv is a vector equation for a unit circle in a plane perpendicular to the curve described by r, except that the usual interpretation of c would put its center at the origin. We can fix that simply by adding c to the original r: let f = r(u) +c(v). For a fixed u this draws a circle around the point r(u); as u varies we get a sequence of such circles around the curve r, that is, a tube of radius 1 with r at its center. We can easily change the radius; for example r(u) +ac(v) gives the tube radius a; we can make the radius vary as we move along the curve with r(u) +g(u)c(v), where g(u) is a function of u. As shown in figure 16.6.3, it is hard to see that the plain knot is knotted; the tube makes the structure apparent. Of course, there is nothing special about the trefoil knot in this example; we can put a tube around (almost) any curve in the same way.
Figure 16.6.3 Tubes around a trefoil knot, with radius 1/2 and 3 cos(u)/4. (AP)
We have previously examined surfaces given in the form f(x, y). It is sometimes useful to represent such surfaces in the more general vector form, which is quite easy:
16.6 Vector Functions for Surfaces 437
r(u, v) = hu, v, f(u, v)i. The names of the variables are not important of course; instead
of disguising x and y, we could simply write r(x, y) =hx, y, f(x, y)i.
We have also previously dealt with surfaces that are not functions of x and y; many of these are easy to represent in vector form. One common type of surface that cannot be represented as z = f(x, y) is a surface given by an equation involving only x and y. For example, x+y= 1 and y =x2 are “vertical” surfaces. For every point (x, y) in the plane that satisfies the equation, the point (x, y, z) is on the surface, for every value ofz. Thus, a corresponding vector form for the surface is something likehf(u), g(u), vi; for example,
x+y= 1 becomes hu,1−u, vi and y=x2 becomes hu, u2, vi.
Yet another sort of example is the sphere, sayx2+y2+z2 = 1. This cannot be written in the form z = f(x, y), but it is easy to write in vector form; indeed this particular surface is much like the cone, since it has circular cross-sections, or we can think of it as a tube around a portion of thez-axis, with a radius that varies depending on where along the axis we are. One vector expression for the sphere is h√1−v2cosu,√1−v2sinu, vi— this emphasizes the tube structure, as it is naturally viewed as drawing a circle of radius √
1−v2around thez-axis at heightv. We could also take a cue from spherical coordinates, and writehsinucosv,sinusinv,cosui, where in effect u and v are φ and θ in disguise.
It is quite simple in Sage to plot any surface for which you have a vector representation. Using different vector functions sometimes gives different looking plots, because Sage in effect draws the surface by holding one variable constant and then the other. For example, you might have noticed in figure 16.6.2 that the curves in the two right-hand graphs are superimposed on the left-hand graph; the graph of the surface is just the combination of the two sets of curves, with the spaces filled in with color.
Here’s a simple but striking example: the plane x +y +z = 1 can be represented quite naturally as hu, v,1−u−vi. But we could also think of painting the same plane by choosing a particular point on the plane, say (1,0,0), and then drawing circles or ellipses (or any of a number of other curves) as if that point were the origin in the plane. For example, h1−vcosu−vsinu, vsinu, vcosui is one such vector function. Note that while it may not be obvious where this came from, it is quite easy to see that the sum of the
x, y, and z components of the vector is always 1. Computer renderings of the plane using these two functions are shown in figure 16.6.4.
Suppose we know that a plane contains a particular point (x0, y0, z0) and that two vectorsu=hu0, u1, u2iand v=hv0, v1, v2iare parallel to the plane but not to each other. We know how to get an equation for the plane in the form ax+by+cz = d, by first computingu×v. It’s even easier to get a vector equation:
r(u, v) =hx0, y0, z0i+uu+vv.
The first vector gets to the point (x0, y0, z0) and then by varying u andv, uu+vv gets to every point in the plane.
−1 0 1−1 0 1 −1 0 1 2 3 −1.0 −0.5 0.0 0.5 1.0 0 1 2 −1.0 −0.5 0.0 0.5 1.0
Figure 16.6.4 Two representations of the same plane. (AP)
Returning to x+y+z = 1, the points (1,0,0), (0,1,0), and (0,0,1) are all on the plane. By subtracting coordinates we see that h−1,0,1i and h−1,1,0i are parallel to the plane, so a third vector form for this plane is
h1,0,0i+uh−1,0,1i+vh−1,1,0i=h1−u−v, v, ui.
This is clearly quite similar to the first form we found.
We have already seen (section 15.4) how to find the area of a surface when it is defined in the form f(x, y). Finding the area when the surface is given as a vector function is very similar. Looking at the plots of surfaces we have just seen, it is evident that the two sets of curves that fill out the surface divide it into a grid, and that the spaces in the grid are approximately parallelograms. As before this is the key: we can write down the area of a typical little parallelogram and add them all up with an integral.
Suppose we want to approximate the area of the surface r(u, v) near r(u0, v0). The functions r(u, v0) and r(u0, v) define two curves that intersect at r(u0, v0). The deriva-tives of r give us vectors tangent to these two curves: ru(u0, v0) and rv(u0, v0), and then ru(u0, v0)du and rv(u0, v0)dv are two small tangent vectors, whose lengths can be used as the lengths of the sides of an approximating parallelogram. Finally, the area of this parallelogram is |ru×rv|du dv and so the total surface area is
Z b
a
Z d
c |
16.6 Vector Functions for Surfaces 439
EXAMPLE 16.6.4 We find the area of the surface hvcosu, vsinu, ui for 0 ≤ u ≤ π
and 0 ≤ v ≤ 1; this is a portion of the helical surface in figure 16.6.2. We compute ru = h−vsinu, vcosu,1i andrv = hcosu,sinu,0i. The cross product of these two vectors is hsinu,−cosu, vi with length √1 +v2, and the surface area is
Z π 0 Z 1 0 p 1 +v2dv du= π √ 2 2 + πln(√2 + 1) 2 .
Exercises 16.6.
1. Describe or sketch the surface with the given vector function.
a. r(u, v) =hu+v,3−v,1 + 4u+ 5vi b. r(u, v) =h2 sinu,3 cosu, vi c. r(s, t) =hs, t, t2 −s2 i d. r(s, t) =hssin 2t, s2 , scos 2ti
2. Find a parametric representation, r(u, v), for the surface.
a. The plane that passes through the point (1,2,−3) and is parallel to the vectorsh1,1,−1i andh1,−1,1i.
b. The lower half of the ellipsoid 2x2
+ 4y2
+z2
= 1.
c. The part of the sphere of radius 4 centered at the origin that lies between the planes
z=−2 andz= 2.
3. Find the area of the portion of x+ 2y+ 4z= 10 in the first octant. ⇒
4. Find the area of the portion of 2x+ 4y+z= 0 insidex2
+y2
= 1. ⇒
5. Find the area of z=x2
+y2
that lies belowz= 1. ⇒
6. Find the area of z=p
x2+y2 that lies below z= 2. ⇒
7. Find the area of the portion of x2
+y2
+z2
=a2
that lies in the first octant. ⇒
8. Find the area of the portion of x2
+y2
+z2
=a2
that lies abovex2
+y2
≤b2
. ⇒
9. Find the area of z=x2
−y2
that lies insidex2
+y2
=a2
. ⇒
10. Find the area of z=xy that lies insidex2
+y2
=a2
. ⇒
11. Find the area of x2
+y2
+z2
= a2
that lies above the interior of the circle given in polar coordinates by r=acosθ. ⇒
12. Find the area of the cone z =kpx2+y2 that lies above the interior of the circle given in
polar coordinates by r=acosθ. ⇒
13. Find the area of the plane z=ax+by+c that lies over a region Dwith area A. ⇒
14. Find the area of the cone z=kpx2+y2 that lies over a region Dwith area A. ⇒
15. Find the area of the cylinder x2
+z2
=a2
that lies inside the cylinderx2
+y2
=a2
. ⇒
16. The surface f(x, y) can be represented with the vector function hx, y, f(x, y)i. Set up the surface area integral using this vector function and compare to the integral of section 15.4.
16.7 Surfae Integrals In the integral for surface area,
Z b
a
Z d
c |
ru×rv|du dv,
the integrand|ru×rv|du dv is the area of a tiny parallelogram, that is, a very small surface area, so it is reasonable to abbreviate it dS; then a shortened version of the integral is
Z Z
D
1·dS.
We have already seen that if D is a region in the plane, the area of D may be computed with
Z Z
D
1·dA,
so this is really quite familiar, but the dS hides a little more detail than does dA. Just as we can integrate functions f(x, y) over regions in the plane, using
Z Z
D
f(x, y)dA,
so we can compute integrals over surfaces in space, using Z Z
D
f(x, y, z)dS.
In practice this means that we have a vector function r(u, v) =hx(u, v), y(u, v), z(u, v)ifor the surface, and the integral we compute is
Z b
a
Z d
c
f(x(u, v), y(u, v), z(u, v))|ru×rv|du dv.
That is, we express everything in terms ofu andv, and then we can do an ordinary double integral.
EXAMPLE 16.7.1 Suppose a thin object occupies the upper hemisphere of x2+y2+
z2 = 1 and has density σ(x, y, z) = z. Find the mass and center of mass of the object. (Note that the object is just a thin shell; it does not occupy the interior of the hemisphere.)
16.7 Surface Integrals 441
We write the hemisphere as r(φ, θ) = hcosθsinφ,sinθsinφ,cosφi, 0 ≤ φ ≤ π/2 and 0 ≤ θ ≤ 2π. So rθ = h−sinθsinφ,cosθsinφ,0i and rφ = hcosθcosφ,sinθcosφ,−sinφi. Then
rθ×rφ =h−cosθsin2φ,−sinθsin2φ,−cosφsinφi
and
|rθ×rφ|=|sinφ|= sinφ,
since we are interested only in 0 ≤ φ ≤ π/2. Finally, the density is z = cosφ and the integral for mass is
Z 2π
0
Z π/2
0
cosφsinφ dφ dθ =π.
By symmetry, the center of mass is clearly on the z-axis, so we only need to find the
z-coordinate of the center of mass. The moment around the x-y plane is Z 2π 0 Z π/2 0 zcosφsinφ dφ dθ = Z 2π 0 Z π/2 0 cos2φsinφ dφ dθ = 2π 3 , so the center of mass is at (0,0,2/3).
Now suppose that F is a vector field; imagine that it represents the velocity of some fluid at each point in space. We would like to measure how much fluid is passing through a surface D, the flux across D. As usual, we imagine computing the flux across a very small section of the surface, with areadS, and then adding up all such small fluxes overD
with an integral. Suppose that vector N is a unit normal to the surface at a point; F·N is the scalar projection of F onto the direction of N, so it measures how fast the fluid is moving across the surface. In one unit of time the fluid moving across the surface will fill a volume ofF·NdS, which is therefore the rate at which the fluid is moving across a small patch of the surface. Thus, the total flux acrossD is
Z Z D F·NdS = Z Z D F· dS,
defining dS =NdS. As usual, certain conditions must be met for this to work out; chief among them is the nature of the surface. As we integrate over the surface, we must choose the normal vectorsN in such a way that they point “the same way” through the surface. For example, if the surface is roughly horizontal in orientation, we might want to measure the flux in the “upwards” direction, or if the surface is closed, like a sphere, we might want to measure the flux “outwards” across the surface. In the first case we would choose N to have positivez component, in the second we would make sure thatNpoints away from the
origin. Unfortunately, there are surfaces that are notorientable: they have only one side, so that it is not possible to choose the normal vectors to point in the “same way” through the surface. The most famous such surface is the M¨obius strip shown in figure 16.7.1. It is quite easy to make such a strip with a piece of paper and some tape. If you have never done this, it is quite instructive; in particular, you should draw a line down the center of the strip until you return to your starting point. No matter how unit normal vectors are assigned to the points of the M¨obius strip, there will be normal vectors very close to each other pointing in opposite directions.
Figure 16.7.1 A M¨obius strip. (AP)
Assuming that the quantities involved are well behaved, however, the flux of the vector field across the surface r(u, v) is
Z Z D F·NdS = Z Z D F· ru×rv |ru×rv||ru×rv|dA= Z Z D F·(ru ×rv)dA.
In practice, we may have to use rv×ru or even something a bit more complicated to make sure that the normal vector points in the desired direction.
EXAMPLE 16.7.2 Compute the flux of F=hx, y, z4i across the cone z =px2+y2, 0≤z ≤1, in the downward direction.
We write the cone as a vector function: r = hvcosu, vsinu, vi, 0 ≤ u ≤ 2π and 0 ≤ v ≤ 1. Then ru = h−vsinu, vcosu,0i and rv = hcosu,sinu,1i and ru × rv =
16.7 Surface Integrals 443
hvcosu, vsinu,−vi. The third coordinate−v is negative, which is exactly what we desire, that is, the normal vector points down through the surface. Then
Z 2π 0 Z 1 0 h x, y, z4i · hvcosu, vsinu,−vidv du= Z 2π 0 Z 1 0 xvcosu+yvsinu−z4v dv du = Z 2π 0 Z 1 0 v2cos2u+v2sin2u−v5dv du = Z 2π 0 Z 1 0 v2−v5dv du= π 3.
Exercises 16.7.
1. Find the center of mass of an object that occupies the upper hemisphere of x2
+y2
+z2
= 1 and has density x2
+y2
. ⇒
2. Find the center of mass of an object that occupies the surface z=xy, 0≤x ≤1, 0≤y ≤1 and has density p
1 +x2+y2. ⇒
3. Find the center of mass of an object that occupies the surface z=px2+y2, 1≤z≤4 and
has density x2
z. ⇒
4. Find the centroid of the surface of a right circular cone of height h and base radius r, not including the base. ⇒
5. Evaluate Z Z D h2,−3,4i ·NdS, where D is given by z = x2 +y2 , −1 ≤ x ≤ 1, −1 ≤ y ≤ 1, oriented up. ⇒ 6. Evaluate Z Z D
hx, y,3i ·NdS, whereDis given by z= 3x−5y, 1≤x≤2, 0≤y≤2, oriented up. ⇒ 7. Evaluate Z Z D hx, y,−2i ·NdS, whereD is given byz= 1−x2 −y2 ,x2 +y2 ≤1, oriented up. ⇒ 8. Evaluate Z Z D
hxy, yz, zxi ·NdS, whereD is given by z =x+y2
+ 2, 0≤x ≤1, x≤y ≤1, oriented up. ⇒
9. Evaluate Z Z
D
hex, ey, zi ·NdS, whereDis given by z=xy, 0≤x≤1,−x≤y≤x, oriented up. ⇒
10. Evaluate Z Z
D
hxz, yz, zi ·NdS, whereD is given by z=a2
−x2 −y2 ,x2 +y2 ≤b2 , oriented up. ⇒
11. A fluid has density 870 kg/m3
and flows with velocity v = hz, y2
, x2
i, where distances are in meters and the components of v are in meters per second. Find the rate of flow outward through the portion of the cylinder x2
+y2
12. Gauss’s Law says that the net charge, Q, enclosed by a closed surface, S, is
Q=ǫ0
Z Z
E·NdS
where Eis an electric field and ǫ0 (the permittivity of free space) is a known constant; Nis
oriented outward. Use Gauss’s Law to find the charge contained in the cube with vertices (±1,±1,±1) if the electric field is E=hx, y, zi. ⇒
16.8 Stokes's Theorem
Recall that one version of Green’s Theorem (see equation 16.5.1) is Z ∂D F·dr= Z Z D (∇ ×F)·kdA.
Here D is a region in the x-y plane and k is a unit normal to D at every point. If D is instead an orientable surface in space, there is an obvious way to alter this equation, and it turns out still to be true:
THEOREM 16.8.1 Stokes’s Theorem Provided that the quantities involved are sufficiently nice, and in particular if D is orientable,
Z ∂D F·dr= Z Z D (∇ ×F)·NdS,
if ∂D is oriented counter-clockwise relative toN.
Note how little has changed: k becomes N, a unit normal to the surface, and dA
becomes dS, since this is now a general surface integral. The phrase “counter-clockwise relative to N” means that if we take the direction of Nto be “up”, then we go around the boundary counter-clockwise when viewed from “above”.
EXAMPLE 16.8.2 LetF=hexycosz, x2z, xyiand the surfaceDbex=p1−y2−z2, oriented in the positive x direction. It quickly becomes apparent that the surface integral in Stokes’s Theorem is intractable, so we try the line integral. The boundary of D is the unit circle in the y-z plane, r =h0,cosu,sinui, 0≤u≤2π. The integral is
Z 2π
0 h
exycosz, x2z, xyi · h0,−sinu,cosuidu=
Z 2π
0
0du= 0,
16.8 Stokes’s Theorem 445
An interesting consequence of Stokes’s Theorem is that if D andE are two orientable surfaces with the same boundary, then
Z Z D (∇ ×F)·NdS = Z ∂D F·dr= Z ∂E F·dr= Z Z E (∇ ×F)·NdS.
Sometimes both of the integrals Z Z D (∇ ×F)·NdS and Z ∂D F·dr
are difficult, but you may be able to find a second surface E so that Z Z
E
(∇ ×F)·NdS
has the same value but is easier to compute.
EXAMPLE 16.8.3 In the previous example, the line integral was easy to compute. But we might also notice that another surface E with the same boundary is the flat disk
y2 +z2 ≤ 1. The unit normal N for this surface is simply i = h1,0,0i. We compute the curl:
∇ ×F=hx−x2,−exysinz−y,2xz−xexycoszi.
Sincex = 0 everywhere on the surface,
(∇ ×F)·N=h0,−exysinz−y,2xz−xexycoszi · h1,0,0i= 0,
so the surface integral is
Z Z
E
0dS = 0,
as before. In this case, of course, it is still somewhat easier to compute the line integral, avoiding ∇ ×F entirely.
EXAMPLE 16.8.4 Let F=h−y2, x, z2i, and let the curveC be the intersection of the cylinder x2 +y2 = 1 with the plane y +z = 2, oriented counter-clockwise when viewed from above. We compute
Z
C
First we do it directly: a vector function for C is r = hcosu,sinu,2 −sinui, so r′ =h−sinu,cosu,−cosui, and the integral is then
Z 2π
0
y2sinu+xcosu−z2cosu du=
Z 2π
0
sin3u+ cos2u−(2−sinu)2cosu du=π.
To use Stokes’s Theorem, we pick a surface with C as the boundary; the simplest such surface is that portion of the plane y+z = 2 inside the cylinder. This has vector equation r = hvcosu, vsinu,2−vsinui. We compute ru = h−vsinu, vcosu,−vcosui, rv = hcosu,sinu,−sinui, and ru ×rv = h0,−v,−vi. To match the orientation of C we need to use the normal h0, v, vi. The curl ofF ish0,0,1 + 2yi=h0,0,1 + 2vsinui, and the surface integral from Stokes’s Theorem is
Z 2π
0 Z 1
0
(1 + 2vsinu)v dv du =π.
In this case the surface integral was more work to set up, but the resulting integral is somewhat easier.
Proof of Stokes’s Theorem. We can prove here a special case of Stokes’s Theorem, which perhaps not too surprisingly uses Green’s Theorem.
Suppose the surface D of interest can be expressed in the form z = g(x, y), and let
F = hP, Q, Ri. Using the vector function r = hx, y, g(x, y)i for the surface we get the
surface integral Z Z D ∇ ×F·dS = Z Z E hRy −Qz, Pz−Rx, Qx−Pyi · h−gx,−gy,1idA = Z Z E −Rygx+Qzgx−Pzgy +Rxgy +Qx−PydA.
Here E is the region in the x-y plane directly below the surface D.
For the line integral, we need a vector function for ∂D. If hx(t), y(t)i is a vector function for ∂E then we may use r(t) =hx(t), y(t), g(x(t), y(t))ito represent ∂D. Then
Z ∂D F·dr = Z b a Pdx dt +Q dy dt +R dz dt dt= Z b a Pdx dt +Q dy dt +R ∂z ∂x dx dt + ∂z ∂y dy dt dt.
using the chain rule for dz/dt. Now we continue to manipulate this: Z b a Pdx dt +Q dy dt+R ∂z ∂x dx dt + ∂z ∂y dy dt dt = Z b a P +R∂z ∂x dx dt + Q+R∂z ∂y dy dt dt = Z ∂E P +R∂z ∂x dx+ Q+R∂z ∂y dy,
16.8 Stokes’s Theorem 447
which now looks just like the line integral of Green’s Theorem, except that the functions
P and Q of Green’s Theorem have been replaced by the more complicated P +R(∂z/∂x)
and Q+R(∂z/∂y). We can apply Green’s Theorem to get
Z ∂E P +R∂z ∂x dx+ Q+R∂z ∂y dy= Z Z E ∂ ∂x Q+R∂z ∂y − ∂y∂ P +R∂z ∂x dA.
Now we can use the chain rule again to evaluate the derivatives inside this integral, and it becomes Z Z E Qx+Qzgx+Rxgy +Rzgxgy+Rgyx−(Py+Pzgy+Rygx+Rzgygx+Rgxy) dA = Z Z E Qx+Qzgx+Rxgy −Py −Pzgy −RygxdA,
which is the same as the expression we obtained for the surface integral.
Exercises 16.8.
1. Let F=hz, x, yi. The plane z= 2x+ 2y−1 and the paraboloid z=x2
+y2
intersect in a closed curve. Stokes’s Theorem implies that
Z Z D1 (∇ ×F)·NdS= I C F·dr= Z Z D2 (∇ ×F)·NdS,
where the line integral is computed over the intersectionC of the plane and the paraboloid, and the two surface integrals are computed over the portions of the two surfaces that have boundary C (provided, of course, that the orientations all match). Compute all three inte-grals. ⇒
2. Let D be the portion of z = 1−x2
−y2
above the x-y plane, oriented up, and let F = hxy2 ,−x2 y, xyzi. Compute Z Z D (∇ ×F)·NdS. ⇒
3. Let D be the portion of z= 2x+ 5y insidex2
+y2
= 1, oriented up, and let F=hy, z,−xi. Compute Z ∂D F·dr. ⇒ 4. Compute I C
x2z dx+ 3x dy−y3dz, where C is the unit circlex2+y2= 1 oriented counter-clockwise. ⇒
5. Let D be the portion of z = px+qy+r over a region in the x-y plane that has area A, oriented up, and let F=hax+by+cz, ax+by+cz, ax+by+czi. Compute
Z
∂D
F·dr. ⇒
6. Let D be any surface and let F = hP(x), Q(y), R(z)i (P depends only on x, Q only on y, and Ronly onz). Show that
Z
∂D
7. Show that Z
C
f∇g+g∇f ·dr = 0, where r describes a closed curve C to which Stokes’s Theorem applies.
16.9 The Divergene Theorem
The third version of Green’s Theorem (equation 16.5.2) we saw was: Z ∂D F·Nds= Z Z D ∇ ·FdA.
With minor changes this turns into another equation, the Divergence Theorem:
THEOREM 16.9.1 Divergence Theorem Under suitable conditions, if E is a region of three dimensional space and D is its boundary surface, oriented outward, then
Z Z D F·NdS = Z Z Z E ∇ ·FdV.
Proof. Again this theorem is too difficult to prove here, but a special case is easier. In the proof of a special case of Green’s Theorem, we needed to know that we could describe the region of integration in both possible orders, so that we could set up one double integral using dx dy and another using dy dx. Similarly here, we need to be able to describe the three-dimensional region E in different ways.
We start by rewriting the triple integral: Z Z Z E ∇ ·FdV = Z Z Z E (Px+Qy +Rz)dV = Z Z Z E PxdV + Z Z Z E QydV + Z Z Z E RzdV.
The double integral may be rewritten: Z Z D F·NdS = Z Z D (Pi+Qj+Rk)·NdS = Z Z D Pi·NdS+ Z Z D Qj·NdS+ Z Z D Rk·NdS.
To prove that these give the same value it is sufficient to prove that Z Z D Pi·NdS = Z Z Z E PxdV, Z Z D Qj·NdS = Z Z Z E QydV, and (16.9.1) Z Z D Rk·NdS = Z Z Z E RzdV.
16.9 The Divergence Theorem 449
We set the triple integral up with dxinnermost: Z Z Z E PxdV = Z Z B Z g2(y,z) g1(y,z) Pxdx dA= Z Z B P(g2(y, z), y, z)−P(g1(y, z), y, z)dA,
where B is the region in the y-z plane over which we integrate. The boundary surface of
E consists of a “top” x = g2(y, z), a “bottom” x = g1(y, z), and a “wrap-around side” that is vertical to the y-z plane. To integrate over the entire boundary surface, we can integrate over each of these (top, bottom, side) and add the results. Over the side surface, the vectorN is perpendicular to the vector i, so
Z Z side Pi·NdS = Z Z side 0dS = 0.
Thus, we are left with just the surface integral over the top plus the surface integral over the bottom. For the top, we use the vector function r = hg2(y, z), y, zi which gives ry ×rz =h1,−g2y,−g2zi; the dot product of this with i=h1,0,0iis 1. Then
Z Z top Pi·NdS = Z Z B P(g2(y, z), y, z)dA.
In almost identical fashion we get Z Z bottom Pi·NdS =− Z Z B P(g1(y, z), y, z)dA,
where the negative sign is needed to make N point in the negative x direction. Now Z Z D Pi·NdS = Z Z B P(g2(y, z), y, z)dA− Z Z B P(g1(y, z), y, z)dA,
which is the same as the value of the triple integral above.
EXAMPLE 16.9.2 Let F = h2x,3y, z2i, and consider the three-dimensional volume inside the cube with faces parallel to the principal planes and opposite corners at (0,0,0) and (1,1,1). We compute the two integrals of the divergence theorem.
The triple integral is the easier of the two: Z 1 0 Z 1 0 Z 1 0 2 + 3 + 2z dx dy dz = 6.
The surface integral must be separated into six parts, one for each face of the cube. One face is z = 0 or r = hu, v,0i, 0 ≤ u, v ≤ 1. Then ru = h1,0,0i, rv = h0,1,0i, and