Professional Documents
Culture Documents
Mitres 18 001 f17 ch15
Mitres 18 001 f17 ch15
Vector Calculus
r rr
rrr 14 introduced double and triple integrals. We went from dx to dx dy
Chapter
and dx dy dz . All those integrals add up small pieces, and the limit gives area or
volume or mass. What could be more natural than that? I regret to say, after the success
of those multiple integrals, that something is missing. It is even more regrettable that
we didn’t notice it. The missing piece is nothing less than the Fundamental Theorem
of Calculus. rrr
The double integral dx dy equals the area. To compute it, we did not use an
antiderivative of 1: At least not consciously. The method was almost trial and error,
and the hard part was to find the limits of integration. This chapter goes deeper, to
show how the step from a double integral to a single integral is really a new form of
the Fundamental Theorem—when it is done right.
Two new ideas are needed early, one pleasant and one not. You will like vector
fields. You mayr not think so highly of line integrals. Those are ordinary single
integrals like v.x/dx; but they go along curves r instead of straight lines. The nice
step
r dx becomes the confusing step ds: Where dx equals the length of the interval,
ds is the length of the curve. The point is that regions are enclosed by curves, and
we have to integrate along them. The Fundamental Theorem in its two-dimensional
form (Green’s Theorem) connects a double integral over the region to a single
integral along its boundary curve.
The great applications are in science and engineering, where vector fields are so
natural. But there are changes in the language. Instead of an antiderivative, we speak
about a potential function. Instead of the derivative, we take the “divergence” and
“curl.” Instead of area, we compute flux and circulation and work. Examples come
first.
629
630 15 Vector Calculus
This plane vector field involves two functions of two variables. They are the
components M and N; which vary from point to point. A vector has fixed
components, a vector field has varying components.
A three-dimensional vector field has components M.x; y; z/ and N.x; y; z/ and
P .x; y; z/: Then the vectors are F D M i C N j C P k:
EXAMPLE 2 The vector field R=r consists of unit vectors ur ; pointing outward.
We divide R D xi C yj by its length, at every point except the origin. The components
of R=r are M D x=r and N D y=r: Figure 15.1 shows a third field R=r 2 ; whose
length is 1=r:
Fig. 15.1 The vector fields R and R=r and R=r 2 are radial. Lengths r and 1 and 1=r:
EXAMPLE 3 The spin field or rotation field or turning field goes around the origin
instead of away from it. The field is S: Its components are M D y and N D x :
||
a
S D yi C xj also has length S D . y/2 C x 2 D r: (2)
The unit vector S=r is u : Notice the blank at .0; 0/; where this field is not defined.
15.1 Vector Fields 631
Fig. 15.2 The spin fields S and S=r and S=r 2 go around the origin. Lengths r and 1 and 1=r:
EXAMPLE 4 A gradient field starts with an ordinary function f .x; y/: The
B B B B
components M and N are the partial derivatives f = x and f = y: Then the field F
is the gradient of f :
B B B B
F D grad f D rf D f = x i C f = y j: (3)
This vector field grad f is everywhere perpendicular to the level curves f .x; y/ D
c:
| |
The length grad f tells how fast f is changing (in the direction it changes fastest).
Invent a function like f D x 2 y; and you immediately have its gradient field
B B
F D 2xyi C x 2j: To repeat, M is f = x and N is f = y: B B
For every vector field you should ask two questions: Is it a gradient field? If so,
what is f ? Here are answers for the radial fields and spin fields:
15A The radial fields R and R=r and R=r 2 are all gradient fields.
The spin fields S and S=r are not gradients of any f .x; y/:
The spin field S=r 2 is the gradient of the polar angle D tan1 .y=x/:
In reality the velocity field is V.x; y; z/; with three components M; N; P: Those
| |
are the velocities v1 ; v2 ; v3 in the x; y; z directions. The speed V is the length:
| |
V 2 D v12 C v22 C v32 : In a “plane flow” the k component is zero, and the velocity
field is v1 i C v2 j D M i C N j:
For a compact disc or a turning wheel, V is a spin field (V D !S, ! D angular ve-
locity). A tornado might be closer to V D S=r 2 (except for a dead spot at the center).
An explosion could have V D R=r 2: A quieter example is flow in and out of a lake
with steady rain as a source term.
The flow field V is the density times the velocity field. While V gives the rate
of movement, V gives the rate of movement of mass. A greater density means a
| |
greater rate V of “mass transport.” It is like the number of passengers on a bus
times the speed of the bus.
mM G f B mMr 3Gx and BBfy D mMr 3Gy and BBfz D mMr 3Gz :
fD
r
and
x
D
B
(4)
Drawing a vector field is not always easy. Even the spin field looks messy when the
vectors are too long (they go in circles and fall across each other). The circles give
15.1 Vector Fields 633
a clearer picture than the vectors. In any field, the vectors are tangent to “field
lines”— which in the spin case are circles.
DEFINITION C is a field line or integral curve if the vectors F.x; y/ are tangent
to C: The slope dy=dx of the curve C equals the slope N=M of the vector F D
M i C N j: !
dy
D
N.x; y/
dx M.x; y/
D yx for the spin field : (6)
We are still drawing the field of vectors, but now they are infinitesimally short.
They are connected into curves! What is lost is their length, because S and S=r and
S=r 2 all have the same field lines (circles). For the position field R and gravity field
R=r 3 ; the field lines are rays from the origin. In this case the “curves” are actually
straight.
EXAMPLE 8 Show that the field lines for the velocity field V D yi C xj are
hyperbolas.
dy
D
dx M
N
D
x
y
ñ y dy D x dx ñ 1 2
2
y 21 x 2 D constant:
Fig. 15.4 Velocity fields are tangent to streamlines. Gradient fields also have equipotentials.
At every point these hyperbolas line up with the velocity V: Each particle of fluid
travels on a field line. In fluid flow those hyperbolas are called streamlines. Drop a
leaf into a river, and it follows a streamline. Figure 15.4 shows the streamlines for a
river going around a bend.
Don’t forget the essential question about each vector field. Is it a gradient field?
For V D yi C xj the answer is yes, and the potential is f D xy :
B B B B
the gradient of xy is . f = x/i C . f = y/j D yi C xj: (7)
When there is a potential, it has level curves. They connect points of equal potential,
so the curves f .x; y/ D c are called equipotentials. Here they are the curves xy D
c — also hyperbolas. Since gradients are perpendicular to level curves, the stream-
lines are perpendicular to the equipotentials. Figure 15.4 is sliced one way by
streamlines and the other way by equipotentials.
B B B B
A gradient field F D f = x i C f = y j is tangent to the field lines (stream-
lines) and perpendicular to the equipotentials (level curves of f ).
634 15 Vector Calculus
In the gradient direction f changes fastest. In the level direction f doesn’t change at
all. The chain rule along f .x; y/ D c proves these directions to be perpendicular:
Bf dx C Bf dy D 0
Bx dt By dt or .grad f / .tangent to level curve/ D 0:
EXAMPLE 9 The streamlines of S=r 2 are circles around (0; 0). The equipotentials
are rays D c: Add rays to Figure 15.2 for the gradient field S=r 2 :
For the gravity field those are reversed. A body is pulled in along the field lines (rays).
The equipotentials are the circles where f D 1=r is constant. The plane is crisscrossed
by “orthogonal trajectories”—curves that meet everywhere at right angles.
If you bring a magnet near a pile of iron filings, a little shake will display the field
lines. In a force field, they are “lines of force.” Here are the other new words.
15.1 EXERCISES
Read-through questions
A vector field assigns a a to each point .x; y/ or .x; y; z/: The velocity field yi C xj is the gradient of f D C . Its
In two dimensions F.x; y/ D b iC c j: An example is streamlines are D . The slope dy=dx of a streamline equals
the position field R D d . | |
Its magnitude is R D e the ratio E of velocity components. The field is F to
and its direction is f . It is the gradient field for f = the streamlines. Drop a leaf onto the flow, and it goes along
g . The level curves are h , and they are i to G .
the vectors R:
Find a potential f .x; y/ for the gradient fields 1–8: Draw the
streamlines perpendicular to the equipotentials f .x; y/ D c:
Reversing this picture, the spin field is S D j . Its mag-
||
nitude is S D k and its direction is l . It is not a
B B
gradient field, because no function has f = x D m and
1 F D i C 2j (constant field) 2 F D xi C j
B B
f = y D n . S is the velocity field for flow going o . 3 F D cos.x C y/i C cos.x C y/j 4 F D .1=y/i .x=y 2 /j
The streamlines or p lines or integral q are r .
5 F D .2xi C 2yj/=.x 2 C y 2 / 6 F D x2i C y2j
The flow field V gives the rate at which
by the flow.
s is moved
7 F D xyi C j 8 FD
?yi C j
B B B B
Compute f = x and f = y in 11–18: Draw the gradient field 32 The equipotentials are the parabolas y D x 2 C c and F is a
F D grad f and the equipotentials f .x; y/ D c: gradient field.
30 The streamlines are in the 45 direction and the speed is 4: 40 Draw arrows at six or eight points to show the direction and
magnitude of each field:
31 The streamlines are circles clockwise around the origin and
the speed is 1: (a) R C S (b) R=r S=r (c) x 2 i C x 2 j (d) yi:
636 15 Vector Calculus
a a
ds=dt D .dx=dt/2 C .dy=dt/2 D 1000 . sin t/2 C . cos t/2 D 1000:
(1)
The tangent vector to C is proportional to (dx=dt; dy=dt/ D . 1000 sin t; 1000 cos t ).
But T is a unit vector, so we divide by 1000—which is the speed.
Suppose the wind blows due east with force F D M i. The components are M and
zero. For M =constant, compute the dot product F T and the work –2000 M :
F T D M i . sin t i C cos t j D M. sin t/ C 0.cos t/ D M sin t
» » ! »
F T ds D
. M sin t/
ds
dt
dt D
1000M sin t dt D 2000M:
c t D0 0
Work is force times distance moved. It is negative, because the wind acts against the
movement. You may point out that the work could have been found more simply—go
2000 miles and multiply by –M . I would object that this straight route is a different
path. But you claim that the path doesn’t matter—the work of the wind is –2000M
on every path. I concede that this time you are right (but not always).
Most line integrals depend on the path. Those that don’t are crucially important.
For a gradient field, we only need to know the starting point P and the finish Q.
15.2 Line Integrals 637
r
15B When F is the gradient of a potential function f .x; y/, the work c F T ds
depends only on the endpoints P and Q. The work is the change in f :
»
B B B B
If F D f = x i C f = y j then
F T ds D f .Q/ f .P /: (2)
c
Fig. 15.5 Force M i, work –2000M on all paths. Force Myi, no work on straight path.
r
May I give a rough explanation of the work integral F T ds ? It becomes clearer
when the small movement T ds is written as dx i C dy j. The work is the dot product
with F:
B B B B
!
F T ds D
f
x
iC
B
f
y B
j .dx i C dy j/ D
f
x
dx C
f
y B
dy D df:
B
(4)
r
The infinitesimal work is df . The total work is df D f .Q/ f .P /. This is the
Fundamental Theorem for a line integral. Only one warning: When F is not the
gradient of any f (Example 2), the Theorem does not apply.
EXAMPLE 2 Fly these paths against the non-constant force field F D Myi.
Compute the work.
There is no force on the straight path where y D 0. Along the x axis the wind does
no work. But the semicircle goes up where y D 1000 sin t and the wind is strong:
F T .Myi/ . sin t i C cos t j/ D My sin t D 1000M sin2 t
» » »
F T ds D ds
. 1000M sin t/ dt D
dt
2
106M sin2 t dt D 2 106M:
c 0 0
This work is enormous (and unrealistic). But the calculations make an important point—
everything is converted to the parameter t . The second point is that F D Myi is not
a gradient field. First reason: The work was zero on the straight path and nonzero
B B
on the semicircle. Second reason: No function has f = x D My and f = y D 0. B B
(The first makes f depend on y and the second forbids it. This F is called a shear
force.) Without a potential we cannot substitute P and Q—and the work depends on
the path.
638 15 Vector Calculus
The points .xi ; yi / lie on the curve C . The last point Q is (xN ; yN ); the first point
P is .x0 ; y0 /. The step si is the distance to (xi ; yi ) from the previous point. As the
Ñ
steps get small .s 0/ the straight pieces follow the curve. Exactly as in Section
8:2, the special case g D 1 gives the arc length. As long as g.x; y/ is piecewise con-
tinuous (jumps allowed) and the path is piecewise smooth (corners allowed), the limit
exists and defines the line integral.
When g is the density of a wire, the line integral is the total mass. When g is F T,
the integral is the work. But nobody does the calculation by formula (5). We now
introduce a parameter t —which could be the time, or the arc length s , or the distance
x along the base.
The differential ds becomes .ds=dt/dt . Everything changes over to t :
» » t Db
a
g.x; y/ds D g.x.t/; y.t// .dx=dt/2 C .dy=dt/2 dt: (6)
t Da
The curve starts when t D a, runs through the points .x.t/; y.t//, and ends when
t D b . The square root in the integral is the speed ds=dt . In three dimensions the
points on C are .x.t/; y.t/; z.t// and .dz=dt/2 is in the square root.
EXAMPLE 3 The points on a coil spring are .x; y; z/ D .cos t; sin t; t/. Find the
mass of two complete turns (from t D 0 to t D 4 ) if the density is D 4.
» 4
ds
» 4
? ?
mass D dt D 4 2 dt D 16 2 .
0 dt 0
work D
F dR D M dx C N dy: (7)
c c
r r r
Along a space curve the work is F T ds D F d R D M dx C N dy C P dz .
The product M dx is (force in x direction)(movement in x direction). This is zero if
either factor is zero. When the only force is gravity, pushing a piano takes no work.
It is friction that hurts. Carrying the piano up the stairs brings in P dz , and the total
work is the piano weight r P times the changerin z .
To connect the new F d R with the old F T ds , remember the tangent vector
T. It is d R=ds . Therefore T ds is d R. Thea
best for computations is d R, because the
unit vector T has a division by ds=dt D .dx=dt/2 C .dy=dt/2. Later we multiply
by this square root, in converting ds to .ds=dt/dt . It makes no sense to compute the
r
square root, divide by it, and then multiply by it. That is avoided in the improved form
M dx C N dy .
EXAMPLE 4 Vector field F D yi C xj, path from (1; 0) to (0; 1): Find the work.
Note 1 This F is the spin field S. It goes around the origin, while R D xi C yj
goes outward. Their dot product is F R D yx C xy D 0. This does not mean that
F d R D 0. The force is perpendicular to R, but not to the change in R. The work to
move from .1; 0/ to .0; 1/, x axis to y axis, is not zero.
Note 2 We have not described the path C . That must be done. The spin field is
not a gradient field, and the work along a straight line does not equal the work on a
quarter-circle:
r r
Fig. 15.6 Three paths for F d R D y dx C x dy D 1; =2; 0.
640 15 Vector Calculus
For practice, take the path down the x axis to the origin .x D 1 t; y D 0/. Then
go up the y axis .x D 0; y D t 1/. The starting time at .1; 0/ is t D 0. The turning
time at the origin is t D 1. The finishing time at .0; 1/ is t D 2. The integral has two
parts because this new path has two parts:
w
Bent path: y dx C x dy D 0 C 0.y D 0 on one part, then x D 0/:
Note 3 The answer depended on the path, for this spin field F D S. The answer did
not depend on the choice of parameter. If we follow the same path at a different speed,
the work is the same. We can choose another parameter , since .ds=dt/dt and
.ds=d /d both equal ds . Traveling twice as fast on the straight path .x D 1 2;
y D 2 / we finish at D 21 instead of t D 1. The work is still 1:
» » 1=2 » 1=2
y dx C x dy D
. 2 /. 2d / C .1 2 /.2d / D 2 d D 1.
0 0
When a force field does work on a mass m, it normally gives that mass a new
velocity. Newton’s Law is F D
r ma D md v=dt . (It is a vector law. Why write out
three components?) The work F d R is
»
| |2 21 m|v.P /|2:
iQ
.m d v=dt/ .v dt/ D 21 mv v D 21 m v.Q/ (8)
P
The work equals the change in the kinetic energy 21 m v . But for a gradient field | |2
the work is also the change in potential—with a minus sign from physics:
» »
| |2
Comparing .8/ with .9/, the combination 21 m v C f is the same at P and Q. The
total energy, kinetic plus potential, is conserved.
The work of the spin field S depends on the path. Example 4 took three paths—
straight line, quarter-circle, bent line. The work was 1, =2, and 0, different on each
path. This happens for more than 99:99% of all vector fields. It does not happen
for the most important fields. Mathematics and physics concentrate on very special
fields—for which the work depends only on the endpoints. We now explain what
happens, when the integral is independent of the path.
Suppose you integrate from P to Q on one path, and back to P on another path.
Combined, that is a closed path from P to P (Figure 15:7). But a backward integral
is the negative of a forward integral, since d R switches sign. If the integrals from
P to Q are equal, the integral around the closed path is zero:
¾ P » Q » P » Q » Q
F dR D
F dRC
F dR D
F dR
F d R D 0: (10)
P P Q P P
closed path 1 back path 2 path 1 path 2
The circle on the first integral indicates a closed path. Later we will drop the P 1 s .
15.2 Line Integrals 641
Not all closed path integrals are zero! For most fields F, different paths yield
different work.a For
work around “conservative
closed ” fields,
path conserves all paths
energy. The yield the sameis:
big question work.
HowThen zero
to decide
which fields are conservative, without trying all paths? Here is the crucial
information about conservative fields, in a plane region R with no holes:
15D F D M.x; y/i C N.x; y/j is a conservative field if it has these properties:
r
A. The work F d R around every closed path is zero.
rQ
B. The work P F d R depends only on P and Q, not on the path.
B B B B
C. F is a gradient field: M D f = x and N D f = y for some potential f .x; y/.
D. The components satisfy B M=B y D B N=B x .
A field with one of these properties has them all. D is the quick test.
These statements A D bring everything together for conservative fields (alias
gradient fields). A closed path goes one way to Q and back the other way to P .
The work cancels, and statements A and B are equivalent. We now connect them to
C. Note: Test D says that the “curl” of F is zero. That can wait for Green’s Theorem
in the next section—the full discussion of the curl comes in 15:6.
First, a gradient field F = grad f is conservative. The work is f .Q/ f .P /, by
the fundamental theorem for line integrals. It depends only on the endpoints and not
the path. Therefore statement C leads back to B.
Our job is in the other direction, to show that conservative fields M i C N j are
gradients. Assume that the work integral depends only on the endpoints. We must
B B
construct a potential f , so that F is its gradient. In other words, f = x must be M
B B
and f = y must be N .
Fix the pointP:Definef .Q/as the work to reach Q:Then F equals grad f:
Check ther reasoning. At the starting point P; f is zero. At every other point Q; f is
the work M dx C N dy to reach that point. All paths from P to Q give the same
f .Q/, because the field is assumed conservative. After two examples we prove that
grad f agrees with F—the construction succeeds.
rQ
f .P /: Here f .P / D 0.
¶
Fig. 15.7 Conservative fields: F d R D 0 and P F d R D f .Q/
» 1 » 1
2
2.xt/.yt/.x dt/ C .xt/ .y dt/ D 3x 2 yt 2 dt D x 2 yt 3 10 D x 2 y:
0 0
Most authors use Solution 1. I use Solution 2. Most students use Solution 3:
Solution 3 B B
Directly solve f = x D M D 2xy and then fix up df =dy D N D x 2 :
EXAMPLE 6 Look for f .x; y/ when M i C N j is the spin field yi C xj.
Attempted solution 1 Integrate y dx C x dy from .0; 0/ to .x; 0/ to .x; y/:
» .x;0/ » .x;y/
r .x;0/ r .x;0/
Solution 1 .0;0/
x dx D 21 x 2 is added to .0;0/
y dy D 21 y 2 .
r1 r1
Solution 2 0
.xt/.x dt/ C .yt/.y dt/ D 0
.x 2 C y 2 /t dt D 21 .x 2 C y 2 /.
15.2 EXERCISES
Read-through questions
r r
Work is the a
of F d R. Here F is the b and R is 5 c dx and c y dx: any closed circle of radius 3.
the c . The d product finds the component of e r
in the direction of movement d R D dxi C dyj. The straight path
6 c .ds=dt/ dt: any path of length 5.
rQ Q
.x; y/=.t; 2t/ goes from f at t D 0 to g at tr D 1 with 7 Does P xy dy equal 12 xy 2 P ?
d
r R D dti C h . The work of F D 3i C j is
F dR D rQ Q
i dt D j . 8 Does P x dx equal 12 x 2 P ?
r r r
Another formaof d R is T ds, where T is the k vector to the 9 Does . c ds/2 D . c dx/2 C . c dy/2 ?
path and ds D l . For the path .t; 2t/, the unit vector T is r
10 Does c .ds/2 make sense?
m and ds D n dt. For F D 3i C j; F Tds is still o dt.
This F is the gradient of f D p . The change in f D 3x C y
In 11–16 find the work in moving from (1, 0) to (0, 1). When F is
from .0; 0/ to .1; 2/ is q .
conservative, construct f . choose your own path when F is not
B B
When F = grad f , the dot product F d R ³is ( f = x/dx C conservative.
r D df . The work integral from P to Q is df D s . In
this case the work depends on the t but not on the u . 11 F D i C yj 12 F D yi C j
Around a closed path the work is v . The field is called w . 13 F D xy 2 i C yx 2 j 14 F D e y i C xe y j
F D .1 C y/i C xj is the gradient of f D x . The work from
.0; 0/ to .1; 2/ is y , the change in potential. 15 F D .x=r/i C .y=r/j 16 F D y 2 i C x 2 j
For the spin field S D z , the work (does)(does not) 17 For which powers n is S=r n a gradient by test D?
depend on the path. The path .x; y/ D .3 cos t; 3 sin t/ is a
circle with S d R D A r . The work is B around the 18 For which powers n is R=r n a gradient by test D?
complete circle. Formally g.x; y/ds is the limit of the sum C . 19 A wire hoop around a vertical
r circle x 2 C z 2 D a2 has density
D a C z. Find its mass M D ds.
The four equivalent properties of a conservative field
F D M i C N j are A W D , B: E ,C W F , and D: G . 20 A wire of constant density lies on the semicircle x 2rC y 2 D
Test
r D is (passed)(not passed) by F D .y C 1/i C xj. The work 2 ¡
a ; y 0. Find its mass M and also its moment Mx D y ds.
F d R around the circle (cos t; sin t) is H . The work on Where is its center of mass xN D My =M , yN D Mx =M ?
the upper semicircle equals the work on I . This field is the
21 If the density around the circle x 2 C y 2 D a2 is D x 2 , what is
gradient of f D J , so the work to . 1; 0/ is K .
the mass and where is the center of mass?
r
Compute the line integrals in 1–6. 22 Find
F d R along the space curve x D t; y D t 2 ; z D t 3 ;
r r
¤ ¤
1 c ds and c dy: x D t, y D 2t, 0 t 1.
¤ ¤
0 t 1.
r r
¤ ¤
2 c x ds and c xy ds: x D cos t, y D sin t, 0 t =2. (a) F D grad.xy C xz/ (b) F D yi xj C zk
r
3 c xy ds: bent line from .0; 0/ to .1; 1/ to .1; 0/.
r 23 (a) Find the unit tangent vector T and the speed ds=dt along
4 c y dx x dy: any square path, sides of length 3. the path R D 2ti C t 2 j.
644 15 Vector Calculus
(b) For F D 3xi C 4j, find F Tds using (a) and F d R 33 F D yi xj 34 F D .xi C yj/=.x 2 C y 2 C 1/
directly.
(c) What is the work from .2; 1/ to .4; 4/? 35 For which numbers a and b is F D axyi C .x 2 C by/j a
24 If M.x; y; z/i C N.x; y; z/j is the gradient of f .x; y; z/, show gradient field?
r
that none of these functions can depend on z. 36 Compute
ydx C xdy from .1; 0/ to .0; 1/ on the line
25 Find all gradient fields of the form M.y/i C N.x/j.
x D 1 t ; y D t 2 and the quarter-circle x D cos 2t, y D sin 2t.
2
15E Green’s Theorem Suppose the region R is bounded by the simple closed
piecewise smooth curve C: Then an integral over R equals a line integral around
C: ¾ »»
BN BM
C
M dx C N dy D
R Bx By dx dy: (1)
A curve is “simple” if it doesn’t cross itself (figure 8’s are excluded). It is “closed” if
its endpoint Q is the same as its starting point P: This is indicated by the closed circle
on the integral sign. The curve is “smooth” if its tangent T changes continuously—
the word “piecewise” allows a finite number of corners. Fractals are not allowed,
but all reasonable curves are acceptable (later we discuss figure 8’s and rings). First
comes an understanding of the formula, by testing it on special cases.
u rr u rr
Fig. 15.8 Area of R adds up strips: x dy D dx dy and y dx D dy dx:
646 15 Vector Calculus
Most important case: M i C N j is a gradient field. It has a potential function f .x; y/:
B B B B
Green’s Theorem is 0 D 0; because M= y D N= x: This is test D:
M B
B B
f
N B
f
B B
yB D
y B B
x
is the same as
x
D
B
x y
:
B B (3)
The cross derivatives always satisfy fyxDfxy : That is why gradient fields pass
test D: u
When the double integral is zero, the line integral is also zero: C M dx C N dy D
0: The work is zero. The field is conservative! This last step in A B C D ñ ñ ñ ñ
A will be complete when Green’su Theorem is proved.
u
Conservative examples are x dx D 0 and y dy D 0: Area is not involved.
u u
Remark The special cases x dy and y dx led
rr to the area of R: As long as
B B B B
1 D N= x M= y; the double integral becomes 1 dx dy: This gives a way to
compute area by a line integral.
¾ ¾ ¾
The area of R is x dy D y dx D
1
2
.x dy y dx/: (4)
C C C
EXAMPLE 1 The area of the triangle in Figure 15.9 is 2: Check Green’s Theorem.
The last area formula in (4) uses 21 S; half the spin field. N D 21 x and M D 21 y
rr
yield Nx My D 21 C 12 D 1: On one side of Green’s Theorem is 1 dx dy D area
of triangle. On the other side, the line integral has three pieces.
Fig. 15.9 Green’s Theorem: Line integral around triangle, area integral for ellipse.
15.3 Green’s Theorem 647
Two pieces are zero: x dy y dx D 0 on the sides where x D 0 and y D 0: The
sloping side x D 2 y has dx D dy: The line integral agrees with the area,
confirming Green’s Theorem:
¾ » 2 » 2
1
2
x dy y dx D 21 .2 y/dy C y dy D 21 2dy D 2:
C yD0 0
EXAMPLE 2 The area of an ellipse is ab when the semiaxes have lengths
a and b .
This is a classical example, which all authors like. The points on the ellipse are
x D a cos t; y D b sin t; as t goes from 0 to 2: (The ellipse has .x=a/2 C .y=b/2 D
1:/ By computing the boundary integral, we discover the area inside. Note that the
differential x dy y dx is just ab dt :
.a cos t/.b cos t dt/ .b sin t/.a sin t dt/ D ab.cos2 t C sin2 t/dt D ab dt:
1
r 2
The line integral is 2 0
ab dt D ab: This area ab is r 2 ; for a circle with
a D b D r:
Proof of Green’s Theorem: In our special cases, the two sides of the formula
were equal. We now show that they are always equal. The proof uses the Funda-
B B B B
mental Theorem to integrate . N= x/dx and . M= y/dy: Frankly speaking, this
one-dimensional theorem is all we have to work with—since we don’t know M and
N:
The proof is a step up in mathematics, to work with symbols M and N instead of
specific functions. The integral in (6) below has no numbers. The idea is to deal with
M and N in two separate parts, which added together give Green’s Theorem:
BBMy dx dy BN dx dy:
¾ »» ¾ »»
R Bx
M dx D and separately N dy D
C R C
(5)
Start with a “very simple” region (Figure 15.10a). Its top is given by y D f .x/ and
its bottom by y D g.x/: In the double integral, integrate B B
M= y first with respect
to y: The inner integral is
The Fundamental Theorem (in the y variable) gives this answer that depends on x:
If we knew M and f and g; we could do the outer integral—from x D a to x D b:
But we have to leave it and go to the other side of Green’s Theorem—the line integral:
¾ » » » a » b
Fig. 15.10
Very simple region (a b). Simple region (c) is a union of very simple regions.
Compare (7) with (6). The integral of M.x; g.x// is the same for both. The integral
of M.x; f .x// has a minus sign from (6). In .7/ it has a plus sign but the integral is
from b to a: So life is good.
The part for N uses the same idea. Now the x integral comes first, because
B B
. N= x/dx is practically asking to be integrated—from x D G.y/ at the left to x D
u.y/ at the right. We reach N.F .y/; y/ N.G.y/; y/: Then the y integral matches
F
N dy and completes (5). Adding the two parts of (5) proves Green’s Theorem.
Finally we discuss the shape of R: The broken ring in Figure 15.10 is not “very
simple,” because horizontal lines go in and out and in and out. Vertical lines do the
same. The x and y strips break into pieces. Our reasoning assumed no break between
y D f .x/ at the top and y D g.x/ at the bottom.
There is a nice idea that saves Green’s Theorem. Separate the broken ring into
three very simple regions R1 ; R2 ; R3 : The three double integrals equal the three
line integrals around the R’s. Now add these separate results, to produce the double
integral over all of R: When we add the line integrals, the crosscuts C C are covered
twice and they cancel. The cut between R1 and R2 is covered upward (around R1 )
and downward (around R2 ). That leaves the integral around the boundary equal to the
double integral inside—which is Green’s Theorem.
When R is a complete ring, including the piece R4 ; the theorem is still true. The
integral around the outside is still counterclockwise. But the integral is clockwise
around the inner circle. Keep the region R to your left as you go around C: The
complete ring is “doubly” connected, not “simply” connected. Green’s Theorem
allows any finite number of regions Ri and crosscuts C C and holes.
rb
EXAMPLE 3 The area under a curve is a
y dx; as we always believed.
In computingu area we never noticed the whole boundary. The true area is a line
integral y dx around the closed curve in Figure 15.11a. But y D 0 on the x axis.
Also dx D 0 on the vertical lines (up and down at b and a). Those parts contribute
zero to the integral of y dx: The only nonzero part is back along the curve—which is
ra rb
the area b
y dx or a y dx that we know well.
What about signs, when the curve dips below the x axis? That area has been
counted as negative since Chapter 1. I saved the proof for Chapter 15. The reason
lies in the arrows on C:
The line integral around that part goes the other way. The arrows are clockwise,
the region is on the right, and the area counts as negative. With the correct rules, a
figure 8 is allowed after all.
15.3 Green’s Theorem 649
Fig. 15.11 Closed path gives the sign of the area. Nonconservative field because of hole.
CONSERVATIVE FIELDS
We never leave gradients alone! They give conservative fields—the work around a
closed path is f .P / f .P / D 0: But a potential function f .x; y/ is only available
B B B B
when test D is passed: If f = x D M and f = y D N then M= y D N= x . B B B B
The reason is that fxy D fyx :
Some applications prefer the language of “differentials.” Instead of looking for
f .x; y/; we look for df :
DEFINITION The expression M.x; y/dx C N.x; y/dy is a differential form. When
B B B B
it agrees with the differential df D . f = x/dx C . f = y/dy of some function, the
B B
form is called exact. The test for an exact differential is D: N= x D M= y: B B
Nothing is new but the language. Is y dx an exact differential? No, because My D 1
and Nx D 0: Is y dx C x dy an exact differential? Yes, it is the differential of f D
xy: That is the product rule! Now comes an important example, to show why R
should be simply connected (a region with no holes).
EXAMPLE 4
The spin field S=r 2 D . yi C xj/=.x 2 C y 2 / almost passes test D:
B
x
x 2 C y 2 x.2x/ B
y
.x 2 C y 2/ C y.2y/ :
Nx D
Bx x 2 C y 2 D
.x 2 C y 2 /2
D M y D
By x 2 C y 2 D
.x 2 C y 2 /2
(8)
Both numerators are y 2 x 2 : Test D looks good. To find f; integrate M D B f =B x :
»
F d R D . y dx C x dy/=.x 2 C y 2 /D 2.area of circle/=a2 D2a2 =a2 D2:
(9)
With x D a cos t and y D a sin t we would find the same answer. The work is 2
(not zero!) when the path goes around the origin.
We have a paradox. If Green’s Theorem is wrong, calculus is in deep trouble. Some
requirement must be violated to reach 2 D 0: Looking at S=r 2 ; the problem is at
the origin. The field is not defined when r D 0 (it blows up). The derivatives in (8)
650 15 Vector Calculus
are not continuous. Test D does not apply at the origin, and was not passed. We could
remove .0; 0/; but then the region where test D is passed would have a hole.
It is amazing how one point can change everything. When the path circles the
r
origin, the line integral D increases by 2 .
is not zero. The potential function f rr
That agrees with F d R D 2 from (9). It disagrees with 0 dx dy: The 2 is
right, the zero is wrong. Nx My must be a “delta function of strength 2:”
The double integral is 2 from an infinite spike over the origin—even though
Nx D My everywhere else. In fluid flow the delta function is a “vortex.”
A flow field is easier to visualize than a force field, because something is really there
and it moves. Instead of gravity in empty space, water has velocity M.x; y/i C N.x; y/j:
At the boundary C it can flow in or out. The new form of Green’s Theorem is a
fundamental “balance equation” of applied mathematics:
The flow is steady. Whatever goes out through C must be replaced in R: When there
are no sources or sinks (negative sources), the total flow through C must be zero.
This balance law is Green’s Theorem in its “normal form” (for n) instead of its
“tangential form” (for T):
r
15F For a steady flow field F D M.x; y/i C N.x; y/j; the flux
F n ds through
the boundary C balances the replacement of fluid inside R:
¾
N dx D
»»
BM C BN dx dy:
C
M dy
R Bx By (10)
Figure 15.12 shows the 90 turn. T becomes n and “circulation” along C becomes
flux through C: In the original form of Green’s Theorem, change N and M to M and
N to obtain the flux form:
¾ ¾ »» »»
Fig. 15.12
The perpendicular component F n flows through C: Note n ds D dy i dx j:
The change of letters was just for the proof. From now on F D M i C N j:
EXAMPLE 5 Compute both sides of the new form (10) for F D 2xi C 3yj: The
region R is a rectangle with sides a and b:
rr
Solution B B B B
This field has M= x C N= y D 2 C 3: The integral over R is
R
5 dx dy D 5ab: The line integral has four parts, because R has four sides.
Between ther left and right sides, M D 2x increases by 2a: Down the left and up
the right, M dy D 2ab (those sides have length b ). Similarly N D 3y changes by
3b between the bottom and top. Those sides have length a; so they contribute 3ab to
a total line integral of 5ab:
B B B B
Important: The “divergence” of a flow field is M= x C N= y: The example
has divergence D 5: To maintain this flow we must replace 5 units continually—not
just at the origin but everywhere. (A one-point source is in example 7.) The diver-
gence is the source strength, because it equals the outflow. To understand Green’s
Theorem for any vector field M i C N j; look at a tiny rectangle (sides dx and
dy ):
Flow out the right side minus flow in the left side D .change in M / times dy
Flow out the top minus flow in the bottom D .change in N / times dx
B B B B
Total flow out of rectangle: dM dy C dN dx D . M= x C N= y/dx dy:
The divergence times the area dx dy equals the total flow out. Section 15:5 gives
more detail with more care in three dimensions. The divergence is Mx C Ny C Pz :
EXAMPLE 6 Find the flux through a closed curve C of the spin field S D yi C
xj:
Solution
The field has M D y and N D x and Mx C Ny D 0: The double inte-
gral is zero. Therefore the total flow (out minus in) is also zero—through any closed
652 15 Vector Calculus
curve. Figure 15.13 shows flow entering and leaving a square. No fluid is added or
removed. There is no rain and no evaporation. When the divergence Mx C Ny is
zero, there is no source or sink.
15G The field F D M.x; y/i C N.x; y/j is source-free if it has these properties:
u
E The total flux
F n ds through every closed curve is zero.
rQ
F Across all curves from P to Q; the flux P F n ds is the same.
B B
G There is a stream function g.x; y/; for which M D g= y and N D B B
g= x:
B B B B
H The components satisfy M= x C N= y D 0 (the divergence is zero).
A field with one of these properties has them all. H is the quick test.
The spin field yi C xj passed this test (Example 6 was source-free). The field
2xi C 3yj does not pass (Example 5 had Mx C Ny D 5). Example 7 almost passes.
EXAMPLE 7 The radial field R=r 2 D .xi C yj/=.x 2 C y 2 / has a point source
at .0; 0/:
B B B B
The new test H is divergence D M= x C N= y D 0: Those two derivatives are
B x D x 2 C y 2 x.2x/ B y D x 2 C y 2 y.2y/ :
Bx x 2 C y 2 .x 2 C y 2 /2
and
By x 2 C y 2 .x 2 C y 2 /2
(12)
They add to zero. There seems to be no source (if the calculation is correct). The flow
through a circle x 2 C y 2 D a2 should be zero. But it’s not:
¾ ¾
Bf D Bg Bf D Bg :
MD
Bx By and ND
By Bx (14)
Solution B B
With M D y and N D x; check first that M= y D 1 D N= x: There B B
B B
must be a potential function. It is f Dxy; which achieves f = x Dy and f = y D B B
x: Note that fxx C fyy D 0:
B B B B
Check next that M= x C N= y D 0 C 0: There must be a stream function. It
B B B B
is gD 21 .y 2 x 2 /; which achieves g= yDy and g= x D x: Note that gxx C
gyy D0:
The curves f D constant are the equipotentials. The curves g D constant are
the streamlines (Figure 15.4). These are the twin properties—a conservative field with
a potential and a source-free field with a stream function. They come together into
the fundamental partial differential equation of equilibrium—Laplace’s equation
fxx C fyy D 0:
15.3 EXERCISES
Read-through questions
u u
The work integral M dx C N dy equals the double integral a 10 For constants b and c; how is by dx C cx dy related to the
by b ’s Theorem. For F D 3i C 4j the work is c . For area inside C ? If b D 7; which c makes the integral zero?
u
a
FD d and e , the work equals the area of R: When
11 For F D grad x 2 C y 2 ; show in three ways that F d R D 0
B B B B
M D f = x and N D f = y; the double integral is zero because around x D cos t; y D sin t:
f . The line integral is zero because g . An example is
FD h . The direction on C is i around the outside and (a) F is a gradient field so :
j around the boundary of a hole. If R is broken into very (b) Compute F and directly integrate F d R:
simple pieces with crosscuts between them, the integrals of k (c) Compute the double integral in Green’s Theorem.
cancel along the crosscuts. 12 Devise a way to find the one-dimensional theorem
rb
Test D
u for gradient fields is l . A field that passes this a .df =dx/dx
D f .b/ f .a/ as a special case of Green’s
test has F d R D m . There is a solution to fx D n and Theorem when R is a square.
fy D o . Then df D M dx C N dy is an p differential. 13 (a) Choose x.t/ and y.t/ so that the path goes from .1; 0/
The spin field S=r 2 passes test D except at q . Its potential to .1; 0/ after circling the origin twice.
f D rrr increases by s going around the origin. The u
(b) Compute y dx and compare with the area inside your
integral .Nx My /dx dy is not zero but t . path.
u
The flow form of Green’s Theorem is u D v . The nor-
(c) Compute .y dx x dy/=.x 2 C y 2 / and compare with 2
mal vector in F n ds points w ||
and n D x and n ds in Example 7.
equals dy i dx j: The divergence of M i C N j is y . For F D 14 In Example 4 of the previous section, the work S d R
r
xi the double integral is z . There (is)(is not) a source. For between .1; 0/ and .0; 1/ was 1 for the straight path and =2
F D yi the divergence is A . The divergence of R=r 2 is zero for the quarter-circle path. Show that the work is always twice
except at B . This field has a C source. the area between the path and the axes.
u rr
A field with no source has properties E D D , F D E , Compute both sides of
F n ds D .Mx C Ny /dx dy in
GD F , H D zero divergence. The stream function g 15–20.
satisfies the equations G . Then B B B B
M= x C N= y D 0
B BB
because 2 g= x y D H . The example F D yi has g D
15 F D yi C xj in the unit circle
I . There (is)(is not) a potential function. The example 16 F D xyi in the unit square 0 ¤ x; y ¤ 1
F D xi yj has g D J and also f D K . This f satisfies 17 F D R=r in the unit circle
Laplace’s equation L , because the field F is both M
and N . The functions f and g are connected by the O 18 F D S=r in the unit square
B B
equations f = x D g= y and B B P . 19 F D x 2 yj in the unit triangle (sides x D 0; y D 0; x C y D 1)
Compute the line integrals 1–6 and (separately) the double in- 20 F D grad r in the top half of the unit circle.
tegrals in Green’s Theorem (1). The circle has x D a cos t; y D
u Suppose div F D 0 except at the origin. Then the flux
21
a sin t: The triangle has sides x D 0; y D 0; x C y D 1:
F n ds is the same through rr
any two circles around the origin,
u u 2 because : (What is .Mx C Ny /dx dy between the
1 x dy along the circle 2 x y dy along the circle circles?)
u u
3 x dx along the triangle 4 y dx along the triangle 22 Example 7 has div F D 0 except at the origin. The flux
u 2 u 2 through every circle x 2 C y 2 D a2 is 2: The flux through a
5 x y dx along the circle 6 x y dx along the triangle
square around the origin is also 2 because : (Compare
Problem 21:)
7 Compute both sides of Green’s Theorem in the form (10): u
¤
(a) F D xi C yj; R D upper half of the disk x 2 C y 2 1:
23 Evaluate a.x; y/dx C b.x; y/dy by both forms of Green’s
Theorem. The choice M D a; N D b in the work form gives the dou-
(b) F D x 2 i C xyj; C D square with sides y D0; x D1; y D1; ble integral
: The choice M D b; N D a in the flux form
x D 0: gives the double integral : There was only one Green.
u u
8 Show that C .x 2 y C 2x/dy C xy 2 dx depends only on the area
24 Evaluate cos3 y dy sin3 x dx by Green’s Theorem.
of R: Does it equal the area?
25 The field R=r 2
in Example 7 has zero divergence except at r D
9 uFind the area inside the hypocycloid x D cos3 t; y D sin3 t from B B
0: Solve g= y D x=.x 2 C y 2 / to find an attempted stream function
1
2 x dy y dx: g: Does g have trouble at the origin?
15.3 Green’s Theorem 655
26 Show that S=r 2 has zero divergence (except at r D 0). Find 40 Since div F D 0 in Problem 39; we can solve B B
g= y D
B B
a stream function by solving g= y D y=.x 2 C y 2 /: Does g have B B
and g= x D : The stream function is g D :
trouble at the origin? It is the imaginary part of the same .x C iy/3 : Check that f and g
27 Which differentials are exact: y dx x dy; x 2 dx C y 2 dy;
satisfy the Cauchy–Riemann equations.
y 2 dx C x 2 dy? 41 The real part f and imaginary part g of .x C iy/n satisfy
There are two ways to deal with ds (along curves). The same methods apply to dS
(on surfaces). The first is in xyz coordinates; the second uses parameters. Before this
subject gets complicated, I will explain those two methods.
Method 1 is for the graph of a function: curve y.x/ or surface z.x; y/.
A small piece of the surface is practically flat. Think of a tiny sloping rectangle. One
B B
side goes across by dx and up by . z= x/dx . The neighboring side goes along by
B B
dy and up by . z= y/dy . Computing the area is a linear problem (from Chapter 11),
because the flat piece is in a plane.
Two vectors A and B form a parallelogram. The length of their cross product is
B B
the area. In the present case, the vectors are A D i C . z= x/k and B D j C . z= y/k. B B
Then Adx and Bdy are the sides of the small piece, and we compute A B:
i j k
A B D
1 0 Bz=Bx
D Bz=Bx i Bz=By j C k: (2)
Bz=By
0 1
This is exactly the normal vector N to the tangent plane and the surface, from
Chapter 13. Please note: The small flat piece is actually a parallelogram (not always
a rectangle). Its area dS is much like ds , but the length of N D A B involves two
derivatives:
| Bdy | D |N|dxdy D B B B B
a
area dS D Adx 1 C . z= x/2 C . z= y/2 dx dy: (3)
This is the example to visualize. The area down in the xy plane is A. The area up
?
on the sloping plane is greater than A. A roof has more area than the room underneath
it. If the roof goes up at a 45 angle, the ratio is 2. Formula (3) yields the correct
ratio for any surface—including our plane z D x C 2y .
15.4 Surface Integrals 657
Fig. 15.14 Roof area = base area times |N|. Cone and cylinder with parameters u and v.
B B B B ?
The derivatives are z= x D 1 and z= y D 2. They are constant (planes are easy).
?
The square root in (3) contains 1 C 12 C 22 D 6. Therefore dS D 6 dx dy . An area
in the xy plane is multiplied by 6 up in the surface (Figure 15.14a). The vectors A
and B are no longer needed—their work was done when we reached formula (3)—but
here they are:
B B B B
A D i C . z= x/k D i C k B D j C . z= y/k D j C 2k N D i 2j C k:
? ?
The length of N D A B is 6. The angle between k and N has cos D 1= 6.
?
That is the angle between base plane and sloping plane. Therefore the sloping
area is 6 times the base area. For curved surfaces the idea is the same, except that
| |
the square root in N D 1= cos changes as we move around the surface.
Method 2 is for curves x.t/; y.t/ and surfaces x.u; v/; y.u; v/; z.u; v/ with
parameters.
A curve has one parameter t . A surface has two parameters u and v (it is two-
dimensional). One advantage of parameters is that x; y; z get equal treatment, instead
of picking out z as f .x; y/. Here are the first two examples:
Each choice of u and v gives a point on the surface. By making all choices, we get
the complete surface. Notice that a parameter can equal a coordinate, as in z D u.
Sometimes both parameters are coordinates, as in x D u and y D v and z D f .u; v/.
That is just z D f .x; y/ in disguise—the surface without parameters. In other cases
we find the xyz equation by eliminating u and v :
a
cone .u cosv/2 C .u sinv/2 D u2 or x 2 C y 2 D z 2 or z D x2 C y2
cylinder .cos v/2 C .sinv/2 D 1 or x 2 C y 2 D 1:
a
The cone is the graph of f D x 2 C y 2 . The cylinder is not the graph of any func-
tion. There is a line of z 1 s through each point on the circle x 2 C y 2 D 1. That is what
z D u tells us: Give u all values, and you get the whole line. Give u and v all values,
and you get the whole cylinder. Parameters allow a surface to close up and even go
through itself—which
a
the graph of f .x; y/ can never do.
?
Actually z D x 2 C y 2 gives only the top half of the cone. (A function produces
only one z .) The parametric form gives the bottom half also. Similarly y D 1 x 2
gives only the top of a circle, while x D cost; y D sint goes all the way around.
658 15 Vector Calculus
Now we find dS , using parameters. Small movements give a piece of the surface,
practically flat. One side comes from the change du, the neighboring side comes from
dv . The two sides are given by small vectors Adu and Bdv :
Bx i C By j C Bz k Bx i C By j C Bz k:
AD
Bu Bu Bu and B D
Bv Bv Bv (5)
To find the area dS of the parallelogram, start with the cross product N D A B:
i j k By Bz Bz By Bz Bx Bx Bz Bx By By Bx
! ! !
Bu Bv Bu Bv
N D xu yu zu D
xv yv zv Bu Bv Bu Bv iC jC
Bu Bv Bu Bv k:
(6)
Admittedly this looks complicated—actual examples are often fairly simple. The area
| | | |
dS of the small piece of surface is N du dv . The length N is a square root:
g
f
By Bz Bz By Bz Bx Bx Bz Bx By By Bx
!2 !2 !2
f
e
dS D
Bu Bv Bu Bv C
Bu Bv Bu Bv C
Bu Bv Bu Bv du dv:
(7)
EXAMPLE 2 Find A and B and N D A B and dS for the cone and cylinder.
The cone has x D u cosv , y D u sinv , z D u. The u derivatives produce A D B R=B u D
cos v i C sin v j C k. The v derivatives produce the other tangent vector B D B R=B v D
u sinv i C u cosv j. The normal vector is A B D u cosv i u sin v j C u k. Its
length gives dS :
?
| B|du dv D
a
dS D A .u cosv/2 C .u sinv/2 C u2 du dv D 2 u du dv:
The cylinder is even simpler: dS D dudv . In these and many other examples, A is
?
perpendicular to B. The small piece is a rectangle. Its sides have length A du | |
| | | | | |
and B dv . (The cone has A D u and B D 2, the cylinder has A D B D 1). | | | |
| |
The cross product is hardly needed for area, when we can just multiply A du times
| |
B dv .
Remark on the two methods Method 1 also used parameters, but a very special
choice—u is x and v is y . The parametric equations are x D x , y D y , z D f .x; y/.
If you go through the long square root in (7), changing u to x and v to y , it simplifies
B B B B B B
to the square root in (3). (The terms y= x and x= y are zero; x= x and y= y B B
are 1.) Still it pays to remember the shorter formula from Method 1.
Don’t forget that after computing dS , you have to integrate it. Many times the
good is with polar coordinates. Surfaces are often symmetric around an axis or a
point. Those are the surfaces of revolution—which we saw in Chapter 8 and will
come back to.
Strictly speaking, the integral starts with S (not dS ). A flat piece has area
| | | |
A B xy or A B uv . The area of a curved surface is properly defined
as a limit. The key step of calculus, from sums of S to the integral of dS , is safe for
15.4 Surface Integrals 659
smooth surfaces. In examples, the hard part is computing the double integral and
substituting the limits on x; y or u; v .
a
EXAMPLE 3 Find the surface area of the cone z D x 2 C y 2 up to the height
z D a.
We use Method 1 (no parameters). The derivatives of z are computed, squared, and
added:
Bz x Bz y 2 2
|N|2 D 1 C x 2 xC y 2 C x 2yC y 2 D 2:
Bx D a
x2 C y2 By D a
x2 C y2
? ?
| |
Conclusion: N D 2 and dS D 2 dx dy . The cone is on a 45 slope, so the area
?
dx dy in the base is multiplied by 2 in the surface above it (Figure 15.15). The
?
square root in dS accounts for the extra area due to slope. A horizontal surface has
dS D 1 dx dy , as we have known all year.
Now for a key point. The integration is down in the base plane. The limits
on
a
x and y are given by the “shadow” of the cone. To locate that shadow set z D
x 2 C y 2 equal to z D a. The plane cuts the cone at the circle x 2 C y 2 D a2 . We
integrate over the inside of that circle (where the shadow is):
rr ? ?
surface area of cone D 2 dx dy D 2 a2 :
shadow
?
EXAMPLE 4 Find the same area using dS D 2 u du dv from Example 2.
With parameters, dS looks different and the shadow in the base looks different. The
circle x 2 C y 2 D a2 becomes u2 cos2 v C u2 sin2 v D a2 . In other words u D a. (The
cone has z D u, the plane has z D a, they meet when u D a.) The angle parameter v
goes from 0 to 2 . The effect of these parameters is to switch us “automatically” to
polar coordinates, where area is r dr d :
ww w
2 wa
? ?
surface area of cone D dS D 2 u du dv D 2 a2 :
0 0
Fig. 15.15 Cone cut by plane leaves shadow in the base. Integrate over the shadow.
EXAMPLE 5 Find the area of the same cone up to the sloping plane z D 1 21 x .
?
Solution The cone still has dS D 2 dx dy , but the limits of integration are changed.
The plane cuts the cone in an ellipse. Its shadow down in the xy plane is another
660 15 Vector Calculus
a
ellipse (Figure 15.15c). To find the edge of the shadow, set z D x 2 C y 2 equal
to z D 1 21 x . We square both sides:
x2 C y2 D 1 x C 41 x 2 3
4
.x C 23 /2 C y 2 D 43 :
or
This is the ellipse in the base—where height makes no difference and z is gone. The
?
area of an ellipse is ab , when the equation is in the form .x=a/2’C .y=b/2 D 1. ?
?
After multiplying by 3=4 we find a D 4=3 and b D 4=3. Then 2 dx dy D
2 ab is the surface area of the cone.
?
The hard part was finding the shadow ellipse (I went quickly). Its area ab came
from Example 15:3:2. The new part is 2 from the slope.
EXAMPLE 6 Find the surface area of a sphere of radius a (known to be 4a2 ).
This is a good example, because both methods almost work. The equation of the
a
sphere is x 2 C y 2 C z 2 D a2 . Method 1 writes z D a2 x 2 y 2 . The x and
y derivatives are x=z and y=z :
B B
!2 !2
z z z 2 x 2 y 2 a2 a2
1C
Bx
C
y B D 2C 2C 2 D 2D 2
z z z z a x2 y2
:
a
The square root gives dS D a dx dy= a2 x 2 y 2 . Notice that z is gone (as it
should be). Now integrate dS over the shadow of the sphere, which is a circle.
Instead of dx dy , switch to polar coordinates and r dr d :
» 2 » a
rr a
dS D ?a r dr d
D 2a a2 r 2a0 D 2a2:
a r2
(8)
2
shadow 0 0
This calculation is successful but wrong. 2a2 is the area of the half-sphere above
the xy plane. The lower half takes the negative square root of z 2 D a2 x 2 y 2 .
This shows the danger of Method 1, when the surface is not the graph of a function.
EXAMPLE 7 (same sphere by Method 2: use parameters) The natural choice is
spherical coordinates. Every point has an angle u D down from the North Pole and
an angle v D around the equator. The xyz coordinates from Section 14.4 are
x D a sin cos , y D a sin sin , z D a cos . The radius D a is fixed (not
a parameter). Compute the first term in equation (6), noting z= D 0: B B
B B B B .Bz=B/.By=B / D .a sin /.a sin cos / D a2 sin2 cos:
. y= /. z= /
The other terms in (6) are a2 sin2 sin and a2 sin cos . Then dS in equation
(7) squares these three components and adds. We factor out a4 and simplify:
a4 .sin4 cos2 C sin4 sin2 C sin2 cos2 / D a4.sin4 C sin2 cos 2 / D a4 sin2 :
Conclusion: dS D a2 sin d d . A spherical person will recognize this immedi-
ately. It is the volume element d V D 2 sin d d d , except d is missing. The
small box has area dS and thickness d and volume d V . Here we only want dS :
»» » 2 »
I doubt that you will like Figure 15.16c—and you don’t need it. With parameters
and , the shadow of the sphere is a rectangle. The equator is the line down the
middle, where D =2. The height is z D a cos . The area d d in the base is the
shadow of dS D a2 sin d d up in the sphere. Maybe this figure shows what we
don’t halve to know about parameters.
Fig. 15.16 Surface area on a sphere: (a) spherical coordinates (b) xyz coordinates (c)
space.
EXAMPLE 8 Rotate y Dx 2 around the x axis. Find the surface area using parame-
ters.
The first parameter is x (from a to b ). The second parameter is the rotation angle
?
(from 0 to 2 ). The points on the surface in Figure 15.17 are x D x , y D x 2 cos ,
z D x 2 sin . Equation (7) leads after much calculation to dS D x 2 1 C 4x 2 dx
r d .
a
Main point: dS agrees with Section 8.3, where the area was 2y
1 C .dy=dx/2 dx . The 2 comes from the integral and y is x 2 . Parameters
give this formula automatically.
M BBfx N BBfy C P
rr rr
!
flux D
F ndS D dx dy: (10)
surface shadow
This formula tells what to integrate, given the surface and the vector field (f and F).
The xy limits come from the shadow. Formula (10) takes the normal vector from
Method 1:
| |
For the unit normal vector n, divide N by its length: n D N= N . The square root is
in the denominator, and the same square root is in dS . See equation (3):
? BB BB
!
F ndS D
F N
? dx dy D M
f
x
N
f
y
C P dx dy: (11)
That is formula (10), with cancellation of square roots. The expression F ndS is
often written as F d S, again relying on boldface to make d S a vector. Then d S
equals ndS , with direction n and magnitude dS .
?
EXAMPLE 9 Find ndS for the plane z D x C 2y . Then find F ndS for F D k. ?
This plane produced 6 in Example 1 (for area). For flux the 6 disappears:
N i ?2j C k ?6 dx dy D .i 2j C k/ dx dy:
ndS D
| | N
dS D
6
For the flow field F D k, the dot product k ndS reduces to 1dx dy . The slope of
the plane makes no difference! The flow through the base also flows through the
plane. The areas are different, but flux is like rain. Whether it hits’
a tent or the ground
’
below, it is the same rain (Figure 15.18). In this case F ndS D dx dy D shadow
area in the base.
a
EXAMPLE 10 Find the flux of F D xi C yj C zk through the cone z D x 2 C y 2 .
a
x y
Solution F ndS D x a y a C x 2 C y 2 dx dy D
x2 C y2 x2 C y2
0:
The zero comes as a surprise, but it shouldn’t. The cone goes straight out
from the origin, and so does F. The vector n that is perpendicular to the cone is
also perpendicular to F. There is no flow through the cone, because F n D 0. The
flow travels out along rays.
rr
F ndS FOR A SURFACE WITH PARAMETERS
a
In Example 10 the cone was z D f .x; y/ D x 2 C y 2 . We found dS by Method 1.
Parameters were not needed (more exactly, they were x and y ). For surfaces that fold
and twist, the formulas with u and v look complicated but the actual calculations can
be simpler. This was certainly the case for dS D du dv on the cylinder.
| |
A small piece of surface has area dS D A B du dv . The vectors along the sides
are A D xui C yu j C zu k and B D xv i C yv j C zv k. They are tangent to the surface.
15.4 Surface Integrals 663
Now we put their cross product N D A B to another use, because F ndS involves
not only area but direction. We need the unit vector n to see how much flow goes
through.
| | | |
The direction vector is n D N= N . Equation (7) is dS D N du dv , so the square
| |
root N cancels in ndS . This leaves a nice formula for the “normal component” of
flow:
flux D
F ndS D
F N du dv D B/ du dv:
F .A (12)
To find F N, switch F D xi C yj C zk to the parameters u and v . Then F N D 1:
Note that the top and bottom were not included! We can find those fluxes too. The
outward direction is n D k at the top and n D k down through the bottom. Then
F n is Cz D b at the top and z D 0 at the bottom. The bottom flux is zero, the top
flux is b times the area (or b ). The total flux is 2b C b D 3b . Hold that answer
for the next section.
Apology: I made u the angle and v the height. Then N goes outward not inward.
EXAMPLE 12 Find the flux of F D k out the top half of the sphere x 2 C y 2 C z 2 D
a2 .
Solution Use spherical coordinates. Example 7 had u D and v D . We found
The next section will show that the flux remains at a2 through any surface (!) that
is bounded by the equator. A special case is a flat surface—the disk of radius a at the
664 15 Vector Calculus
equator.
Figure 15.18 shows n D k pointing directly up, so F n D k k D 1. The flux
is 1 dS = area of disk = a2 . All fluid goes past the equator and out through
’
the sphere.
Fig. 15.19 Flow through cylinder. Fig. 15.20 MRobius strip (no way to choose n).
I have to mention one more problem. It might not occur to a reasonable person, but
sometimes a surface has only one side. The famous example is the MRobius strip, for
which you take a strip of paper, twist it once, and tape the ends together. Its
special property appears when you run a pen along the “inside.” The pen in
Figure 15.20 suddenly goes “outside.” After another round trip it goes back “inside.”
Those words are in quotation marks, because on a MoR bius strip they have no meaning.
Suppose the pen represents the normal vector. On a sphere n points outward.
Alternatively n could point inward; we are free to choose. But the MoR bius strip makes
the choice impossible. After moving the pen continuously, it comes back in the
opposite direction. This surface is not orientable. We cannot integrate F n to
compute the flux, because we cannot decide the direction of n.
A surface is oriented when we can and do choose n. This uses the final property
of cross products, that they have length and direction and also a right-hand rule. We
can tell A B from B A. Those give the two orientations of n. For an open surface
(like a wastebasket) you can select either one. For a closed surface (like a sphere) it is
conventional for n to be outward. By making that decision once and for all, the sign
of the flux is established: outward flux is positive.
15.4 EXERCISES
Read-through questions
’
A small piece of the surface z D f .x; y/ is nearly a . When In 15 18 compute the surface integrals g.x; y; z/dS.
we go across by dx, we go up by b . That movement is Adx, 15 g D xy over the triangle x C y C z D 1; x; y; z ¥ 0.
where the vector A is iC c . The other side of the piece is Bdy,
where B D jC d . The cross product A B is N D e . The 16 g D x 2 C y 2 over the top half of x 2 C y 2 C z 2 D 1 (use ; /.
| |
area of the piece is dS D N dx dy. For the surface z D xy, the vec- 17 g D xyz on x 2 C y 2 C z 2 D 1 above z 2 D x 2 C y 2 (use ; /.
’ are A D f and B D g and N D h . The area integral
tors
18 g D x on the cylinder x 2 C y 2 D 4 between z D 0 and z D 3.
is dS D i dx dy.
With parameters u and v, a typical point on a 45 cone is
In 19 22 calculate A, B, N, and dS.
x D u cos v, y D j , z D k . A change in u moves that point 19 x D u, y D v C u, z D v C 2u C 1.
by Adu D .cos v iC l )du. A change in v moves the point by 20 x D uv, y D u C v, z D u v.
B dv D m . The normal vector is N D A B D n . The area
is dS D o du dv. In this example A B D p so the small 21 x D .3 C cos u/ cos v, y D .3 C cos u/ sin v, z D sin u.
| || |
piece is a q and dS D A B du dv. 22 x D u cos v, y D u sin v, z D v (not z D u/.
8 Cone z 2 D x 2 C y 2 between planes z D a and z D b. 32 Make a “triple MRobius strip” with three twists. Is it
orientable—does the normal vector come back in the same or
9 The monkey saddle z D 31 x 3 xy 2 inside x 2 C y 2 D 1. opposite direction?
10 z D x C y above triangle with vertices .0; 0/, .2; 2/, .0; 2/. 33 If a very wavy surface stays close to a smooth surface, are their
11 Plane z D 1 2x 2y inside x ¥ 0, y ¥ 0, z ¥ 0. areas close?
34 Give the equation of a plane with roof area dS D 3 times base
12 Cylinder x 2 C z 2 D a2 inside x 2 C y 2 D a2 . Only set up
’
dS.
area dx dy.
13 Right circular cone of radius a and height h. Choose
35 The points .x; f .x/ cos , f .x/ sin/ are on the surface of
z D f .x; y/ or parameters u and v.
revolution: y D f .x/ revolved around the x axis, parameters u D x
14 Gutter z D x 2 below z D 9 and between y D 2. | |
and v D . Find N and compare dS D N dx d with Example 8 and
Section 8:3.
666 15 Vector Calculus
»»» »»»
BM C BN C BP dx dy dz:
F ndS D div F d V D
Bx By Bz (1)
B B B B
In Green’s Theorem the divergence was M= x C N= y: The new term P = z B B
accounts for upward flow. Notice that a constant upward component P adds nothing
to the divergence (its derivative is zero). It also adds nothing to the flux (flow up
through the top equals flow up through the bottom). When the whole field F is
constant, the theorem becomes 0 D 0:
There are other vector fields with div F D 0: They are of the greatest importance.
The Divergence Theorem for those fields is again 0 D 0; and there is conservation of
fluid. When div F D 0; flow in equals flow out. We begin with examples of these
“divergence-free” fields.
EXAMPLE 1 The spin fields yi C xj C 0k and 0i zj C yk have zero divergence.
The first is an old friend, spinning around the z axis. The second is new, spinning
around the x axis. Three-dimensional flow has a great variety of spin fields. The
B B B B B B
separate terms M= x , N= y , P = z are all zero, so div F D 0: The flow goes
rr and whatever u
around in circles, goes out through S comes back in. (We might have
put a circle on s as we did on c ; to emphasize that S is closed.)
EXAMPLE 2 The position field R D xi C yj C zk has div R D 1 C 1 C 1 D 3:
This is radial flow, straight out from the origin. Mass has to be added at every
rrr point
to keep the flow going. On the right side of the divergence theorem is 3 d V:
Therefore the flux is three times the volume.
Example 11 in Section 15.4 found the flux of R through a cylinder. The answer
was 3b: Now we also get 3b from the Divergence Theorem, since the volume is
b: This is one of many cases in which the triple integral is easier than the double
integral.
EXAMPLE 3 An electrostatic field R=3 or gravity field R=3 almost has div
F D 0:
a
The vector R D xi C yj C zk has length x 2 C y 2 C z 2 D : Then F has length
=3 (inverse square law). Gravity from a point mass pulls inward (minus sign). The
electric field from a point charge repels outward. The three steps almost show that
div F D 0:
B B B B B B
Step 1. = x D x=; = y D y=; = z D z=—but do not add those three. F
B B B B
is not or 1=2 (these are scalars). The vector field is R=3 : We need M= x; N= y;
B B
P = z:
15.5 The Divergence Theorem 667
B B BB B B
Step 2. M= x D = x.x=3 / is equal to 1=3 .3x = x/=4 D 1=3 3x 2 =5 :
B B B B
For N= y and P = z; replace 3x 2 by 3y 2 and 3z 2 : Now add those three.
Step 3. div F D 3=3 3.x 2 C y 2 C z 2 /=5 D 3=3 3=3 D 0:
rrr
The calculation div F D 0 leaves a puzzle. One side of rr
the Divergence Theorem seems
to give
0 d V D 0: Then the other side should be F ndS D 0: But the flux is
not zero when all flow is outward:
Fig. 15.21 rrr source: flux 4 through all enclosing surfaces. Net flux upward
Point
D B B
. P = z/dV:
15L
Gauss’s law in differential form: div F D 4GM and div E D q="0 :
Gauss’s law in integral form: Flux is proportional to total mass or charge:
»» »»» »» »»»
F ndS D 4GMd V and
E ndS D q d V ="0 : (2)
668 15 Vector Calculus
The general principle is clear: Flow out minus flow in equals source. Our goal is to see
why the divergence of F measures the source. In a small box around each point,
we show that div F d V balances F ndS through the six sides.
So consider a small box. Its center is at .x; y; z/: Its edges have length x; y; z:
Out of the top and bottom, the normal vectors are k and k: The dot product with
F D M i C N j C P k is CP or P: The area S is xy: So the two fluxes are
close to P .x; y; z C 21 z/xy and P .x; y; z 21 z/xy: When the top is
combined with the bottom, the difference of those P ’s is P :
net flux upward P xy D .P =z/xyz .BP =Bz/V: (3)
Similarly, the combined flux on two side faces is approximately (B N=B y/V: On the
front and back it is (B M=B x/V: Adding the six faces, we reach the key point:
flux out of the box .B M=B x C B N=B y C B P =B z/V: (4)
This is (div F)V: For a constant field both sides are zero—the flow goes straight
through. For F D xi C yj C zk; a little more goes out than comes in. The divergence
is 3; so 3V is created inside the box. By the balance equation the flux is also 3V:
The approximation symbol means that the leading term is correct (probably not
B B
the next term). The ratio P =z is not exactly P = z: The difference is of order
z; so the error in (3) is of higher order Vz: Added over many boxes (about
1=V boxes), this error disappears as z 0: Ñ rrr
The sum of (div F)V over all the boxes approaches .div F/d V: On the other
side of the equation is a sum of fluxes. There is F nS out of the top of one box, plus
F nS out of the bottom of the box above. The first has n D k and the second has
n D k: They cancel each other—the flow goes from box to box. This happens
every time two boxes meet. The only fluxes that survive (because nothing cancels
rr
them) are at the outer surface Ñ
S: The final step, as x; y; z 0; is that those
outside terms approach F ndS: Then the local divergence theorem (4) becomes
the global Divergence Theorem (1).
Remark on the proof That “final step” is not easy, because the box surfaces don’t
line up with the outer surface S: A formal proof of the Divergence
rrr Theorem would im-
itate therrproof of Green’s Theorem. On rr
a very simple region B B
. P = z/dx dy dz
equals P dx dy over rr the top minus P dx dy over the bottom. After checking
the orientation this is
P k ndS:
rr Similarly the rr B B
volume integrals of M= x and
B B
N= y are the surface integrals M i ndS and N j ndS: Adding the three in-
tegrals gives the Divergence Theorem. Since Green’s Theorem was already proved in
this way, the reasoning behind (4) is more helpful than repeating a detailed proof.
The discoverer of the Divergence Theorem was probably Gauss. His notebooks
only contain the outline of a proof—but after all, this is Gauss. Green and Ostro-
gradsky both published proofs in 1828; one in England and the other in St. Peters-
burg (now Leningrad). As the theorem was studied, the requirements came to light
(smoothness of F and S; avoidance of one-sided Möbius strips).
New applications are discovered all the time—when a scientist writes down a bal-
ance equation in a small box. The source is known. The equation is div F Dsource.
After Example 5 we explain F:
EXAMPLE 4 If the temperature inside the sun rr is T D ln 1=; find the heat flow
F D grad T and the source div F and the flux F ndS: The sun is a ball of radius
0 :
15.5 The Divergence Theorem 669
F ndS D dS=0 D .surface area/=0 D 402 =0 D 40 : (5)
Check that answer by the Divergence Theorem. Example 5 will find div F D 1=2:
Integrate over the sun. In spherical coordinates we integrate d, sin d; and d :
» 2 » »
rrr 0
div F d V D 2 sin d d d=2 D .0 /.2/.2/ as in .5/:
sun 0 0 0
This example illustrates the basic framework of equilibrium. The pattern ap-
pears everywhere in applied mathematics—electromagnetism, heat flow, elasticity,
even
relativity. There is usually a constant c that depends on the material (the example
has c D 1). The names change, but we always take the divergence of the gradient:
You are studying calculus, not physics or thermodynamics or elasticity. But please
notice the main point. The equation to solve is div. c grad f / D known source. The
divergence and gradient are exactly what the applications need. Calculus teaches the
right things.
This framework is developed in many books, including my own text Introduc-
tion to Applied Mathematics (Wellesley-Cambridge Press). It governs equilibrium,
in matrix equations and differential equations.
May I go back to basic facts about the divergence? First the definition:
B B
F.x; y; z/ D M i C N j C P k has div F D r F D M= x C N= y C P = z: B B B B
The divergence is a scalar (not a vector). At each point div F is a number. In fluid
flow, it is the rate at which mass leaves—the “flux per unit volume” or “flux density.”
The symbol r stands for a vector whose components are operations not numbers:
BB BB
r D “del” D i = x C j = y C k = z: BB (6)
This vector is illegal but very useful. First, apply it to an ordinary function f .x; y; z/:
B B B B B B
rf D “del f ” D i f = x C j f = y C k f = z D gradient of f: (7)
Second, take the dot product r F with a vector function F.x; y; z/ D M i C N j C
P k:
B B B B B B
r F D “del dot F” D M= x C N= y C P = z D divergence of F: (8)
670 15 Vector Calculus
Third, take the cross product r F: This produces the vector curl F (next section):
F D “del cross F” D : : : (to be defined) : : : D curl of F:
r (9)
The gradient and divergence and curl are r and r and r : The three great
operations of vector calculus use a single notation! You are free to write r or not—to
make equations shorter or to help the memory. Notice that Laplace’s equation
shrinks to
B B
f
B B
f
f
B B
r rf D
B B
x x
C
yB B y
C
z z B B
D 0: (10)
Equation (10) gives the potential when the source is zero (very common). F D grad f
combines with div F D 0 into Laplace’s equation div grad f D 0: This equation
is so important that it shrinks further to r 2 f D 0 and even to f D 0: Of course
f D fxx C fyy C fzz has nothing to do with f D f .x C x/ f .x/: Above
all, remember that f is a scalar and F is a vector: gradient of scalar is vector and
divergence of vector is scalar.
Underlying this chapter is the idea of extending calculus to vectors. So far we have
emphasized the Fundamental Theorem. The integral of df =dx is now the integral
of div F: Instead of endpoints a and b; we have a curve C or surface S: But it is the
rules for derivatives and integrals that make calculus work, and we need them now for
vectors. Remember the derivative of u times v and the integral (by parts) of u dv=dx :
15M Scalar functions u.x; y; z/ and vector fields V.x; y; z/ obey the product
rule:
div.uV/ D u div V C V .grad u/: (11)
The reverse of the product rule is integration by parts (Gauss’s Formula):
»»» »»» »»»
u div V dx dy dz D
V .grad u/ dx dy dz C
u V n dS:
(12)
For a plane field this is Green’s Formula (and u D 1 gives Green’s Theorem):
»»
B
M B
N
»»
u B u
B »
u
B
x
C
By
dx dy D M
x
CN
By B
dx dy C u.M i C N j/ n ds:
(13)
Those look like heavy formulas. They are too much to memorize, unless you use
them often. The important point is to connect vector calculus with “scalar calculus,”
which is not heavy. Every product rule yields two terms:
B B
.uM /x D u M= x C M u= x B B B B
.uN /y D u N= y C N u= y B B B B B B
.uP /z D u P = z C P u= z:
Solution Take V D R and u D 1=2 in the product rule (11). Then div F D .div R/=
C R .grad 1=2 ). The divergence of R D xi C yj C zk is 3: For grad 1=2 apply
2
R .grad 1=2 / D 2R .grad /=3 D 2R R=4 D 2=2:
The two parts of div F combine into 3=2 2=2 D 1=2—as claimed in Example 4.
EXAMPLE 6 Find the balance equation for flow with velocity V and fluid density
:
V is the rate of movement of fluid, while V is the rate of movement of mass.
Comparing the ocean to the atmosphere shows the difference. Air has a greater
velocity than water, but a much lower density. So normally F D V is larger for the
ocean. (Don’t confuse the density with the radial distance : The Greeks only used
24 letters.)
There is another difference between water and air. Water is virtually incompress-
ible (meaning D constant). Air is certainly compressible (its density varies). The
balance equation is a fundamental law—the conservation of mass or the “continuity
equation” for fluids. This is a mathematical statement about a physical flow without
sources or sinks:
15.5 EXERCISES
Read-through questions
rr
In words, the basic balance law is a . The flux of F The field F D R=3 has div F D 0 except m .
F ndS
through a closed surface S is the double integral b . The equals n over any surface around the origin. This
divergence of M i C N j C P k is c , and it measures d . illustrates Gauss’s Law
rr
o . The field F D xi C yj 2zk has
The total source is the triple integral e . That equals the div F D p and
F ndS D q . For this F; the flux out
flux by the f Theorem. through a pyramid and in through its base are r .
rr
rrrof a product is div .uV/ D x . Integration
The divergence rrr Give
20 an example where
F ndS is easier than
by parts is u div V dx dy dz D y C z . In two div F dV:
dimensions this becomes A . In one dimension it becomes
21 Suppose F D M.x; y/i C N.x; y/j, R is a region in the xy plane,
B . For steady fluid flow the continuity equation is
div V D C .
| |¥
and .x; y; z/ is in V if .x; y/ is in R and z 1:
rrr
rr (a) Describe V and reduce div F dV to a double
In 1–10 compute the flux
F ndS by the Divergence integral.
rr
Theorem. (b) Reduce
F ndS to a line integral (check top, bottom,
1 F D xi C xj C xk; S: unit sphere x 2 C y 2 C z 2 D 1: side).
2 FD yi C xj; V : unit cube 0 ¤ x ¤ 1; 0 ¤ y ¤ 1; 0 ¤ z ¤ 1: (c) Whose theorem says that the double integral equals
the line integral?
3 F D x 2 i C y 2 j C z 2 k; S: unit sphere
22 Is it possible to have F n D 0 at all points of S and also
4 F D x 2 i C 8y 2 j C z 2 k; V : unit cube. div F D 0 at all points in V ? F D 0 is not allowed.
5 F D xi C 2yj; S: sides x D 0; y D 0; z D 0; x C y C z D 1: 23 Inside a solid ball (radius a, density 1; mass M D 4a3 =3)
(a) S is the cone z 2 D x 2 C y 2 bounded above by the plane 27 True or false, with a good reason.
rr
z D 1:
(a) If F ndS D 0 for every closed surface, F is constant.
(b) S is the pyramid with corners .0; 0; 0/, .1; 0; 0/, .0; 1; 0/, (b) If F D grad f then div F D 0:
rrr
.0; 0; 1/: | |¤
(c) If F 1 at all points then div F dV ¤
area of the
surface S:
16 Compute all integrals in the Divergence Theorem when
F D x.i C j k/ and V is the unit cube 0 ¤ x; y; z ¤ 1: | |¤ | |¤
(d) If F 1 at all points then div F 1 at all points.
B B B B B B
field
P N M P N M
curl F D
y B B z
iC
z B B
x
jC
x B B
y
k: (1)
The symbol r F stands for a determinant that yields those six derivatives:
i j k
F D B =B x B =B y B =B z
curl F D r : (2)
M N P
BB BB BB
The three products i = y P and j = z M and k = x N have plus signs. The
BB
three products like k = y M , down to the left, have minus signs. There is a cyclic
symmetry. This determinant helps the memory, even if it looks and is illegal. A
determinant is not supposed to have a row of vectors, a row of operators, and a row of
functions.
EXAMPLE 1 The plane field M.x; y/i C N.x; y/j has P D 0 and M= z D 0 B B
B B
and N= z D 0. Only two terms survive: curl F D . N= x B B B B
M= y/k. Back to
Green.
EXAMPLE 2 The cross product a R is a spin field S. Its axis is the fixed vector
a D a1i C a2 j C a3 k. The flow in Figure 15.23 turns around a, and its components
are
i j k
B B
y z
iC
zB B x
jC
x B B y
k D 2a1 i C 2a2 j C 2a3 k D 2a:
This example begins to reveal the meaning of the curl. It measures the spin! The
direction of curl F is the axis of rotation—in this case along a. The magnitude of
674 15 Vector Calculus
| | ||
curl F is twice the speed of rotation. In this case curl F D 2 a and the angular
||
velocity is a .
Fig. 15.23 Spin field S D a R, position field R, velocity field (shear field)V D zi, any field F.
EXAMPLE 3 (!!) B B B B
Every gradient field F D f = x i C f = y j C f = z k has B B
curl F D 0:
B Bf B Bf i C B Bf B Bf j C B Bf B Bf k D 0:
curl F D
By Bz Bz By Bz Bx Bx Bz Bx By By Bx (4)
Always fyz equals fzy . They cancel. Also fxz D fzx and fyx D fxy . So curl grad
f D 0.
EXAMPLE 4 (twin of Example 3) The divergence of curl F is also automatically
zero:
B B B
P N
M B B BP
N B B B
M
div curl F D
x B B B
y z
C
y B B B
z x
C
z x B B B
y
D 0:
(5)
Again the mixed derivatives give Pxy D Pyx and Nxz D Nzx and Mzy D Myz . The
terms cancel in pairs. In “curl grad” and “div curl”, everything is arranged to give
zero.
Example 5 put a paddlewheel into the flow. This is possible for any vector field F,
and it gives insight into curl F. The turning of the wheel (if it turns) depends on its
location .x; y; z/. The turning also depends on the orientation of the wheel. We could
put it into a spin field, and if the wheel axis n is perpendicular to the spin axis a, the
wheel won’t turn! The general rule for turning speed is this: the angular velocity of
the wheel is 21 .curl F/ n. This is the “directional spin,” just as .grad f / u was the
“directional derivative”—and n is a unit vector like u.
There is no spin anywhere in a gradient field. It is irrotational: curl grad f D 0.
The pure spin field a R has curl F D 2a. The angular velocity is a n (note that 21
cancels 2). This turning is everywhere, not just at the origin. If you put a penny on
a compact disk, it turns once when the disk rotates once. That spin is “around itself,”
and it is the same whether the penny is at the center or not.
The turning speed is greatest when the wheel axis n lines up with the spin axis a.
||
Then a n is the full length a . The gradient gives the direction of fastest growth, and
the curl gives the direction of fastest turning:
| |
maximum growth rate of f is grad f in the direction of grad f
maximum rotation rate of F is 1
2
|curl F| in the direction of curl F.
STOKES’ THEOREM
Finally we come to the big theorem. It will be like Green’s Theorem—a line integral
¶
equals a surface integral. The line integral isrrstill the work F d R around a curve.
The surface integral in Green’s Theorem is
.Nx My /dx dy . The surface is flat
(in the xy plane). Its normal direction is k, and we now recognize Nx My as the
k component of the curl. Green’s Theorem uses only this component because the
normal direction is always k. For Stokes’ Theorem on a curved surface, we need all
three components of curl F.
Figure 15.24 shows a hat-shaped surface S and its boundary C (a closed curve).
Walking in the positive direction around C , with your head pointing in the direction
of n, the surface is on your left. You may be standing straight up (n D k in Green’s
Theorem). You may even be upside down .n D k is allowed/. In that case you must
go the other way around C , to keep the two sides of equation (6) equal. The surface
is still on the left. A Möbius strip is not allowed, because its normal direction cannot
be established. The unit vector n determines the “counterclockwise direction” along
C.
¾ » »
The right side adds up small spins in the surface. The left side is the total circulation
(or work) around C . That is not easy to visualize—this may be the hardest theorem
¶
in the book—but notice one simple conclusion. If curl F D 0 then F d R D 0. This
applies above all to gradient fields—as we know.
A gradient field has no curl, by (4). A gradient field does no work, by (6). In three
dimensions as in two dimensions, gradient fields are conservative fields. They will
be the focus of this section, after we outline a proof (or two proofs) of Stokes’ Theo-
rem.
676 15 Vector Calculus
The first proof shows why the theorem is true. The second proof shows that it really
is true (and how to compute). You may prefer the first.
First proof Figure 15.24 has a triangle ABC attached to a triangle ACD . Later there
can be more triangles. S will be piecewise flat, close to a curved surface. Two trian-
gles are enough to make the point. In the plane of each triangle (they have different
n’s) Green’s Theorem is known:
u rr u rr
F dR D curl F ndS F dR D curl F ndS:
ABCBC CCA ABC AC CCDCDA ACD
’
Now add. The right sides give curl F ndS over the two triangles. On the left, the
integral over CA cancels the integral over AC . The “crosscut” disappears. That
leaves AB C BC C CD C DA. This line integral goes around the outer boundary
C —which is the left side of Stokes’ Theorem.
Second proof Now the surface can be curved. A new proof may seem excessive, but
it brings formulas you could compute with. From z D f .x; y/ we have
B B
dz D f = x dx C f = y dy B B and ndS D . Bf =Bx i Bf =By j C k/dx dy:
For ndS , see equation 15.4.11. With this dz , the line integral in Stokes’ Theorem is
B B B B
¶ ¶
F dR D Mdx C Ndy C P . f = x dx C f = y dy/: (7)
C shadowof C
rr
The dot product of curl F and ndS gives the surface integral
curl F ndS :
S
ww
Œ.Py Nz /.Bf =Bx/ C .Mz Px /.Bf =By/ C .Nx My /dx dy: (8)
shadowof S
B B
To prove (7) D (8), change M in Green’s Theorem to M C P f = x . Also change N
B B
to N C P f = y . Then (7) D (8) is Green’s Theorem down on the shadow (Problem
47). This proves Stokes’ Theorem up on S . Notice how Green’s Theorem (flat surface)
was the key to both proofs of Stokes’ Theorem (curved surface).
Suppose the curve C is an actual wire. ’ We can produce current along C by varying
the magnetic field B.t/. The flux ' D B ndS , passing within C and changing in
time, creates an electric field E that does work:
¾
These are equal for any curve C , however small. So the right sides are equal for
any surface S . We squeeze to a point. The right hand sides give one of Maxwell’s
equations:
Faraday’s Law(differential form): curl E D B= t: B B
CONSERVATIVE FIELDS AND POTENTIAL FUNCTIONS
The chapter ends with our constant and important question: Which fields do no work
around closed curves? Remember test D for plane curves and plane vector fields:
¾
B B B B
if M= y D N= x then F is conservative and F D grad f and
F d R D 0:
ñ ñ ñ ñ
A detailed proof of A B C D A is not needed. Only notice ¶how C D: ñ
ñ
curl grad F is always zero. The newest part is D A. If curl F D 0 then F d R D 0.
But that is not news. It is Stokes’ Theorem.
The interesting problem is to solve the three equations for f , when test D is passed.
The example above had
Bf =Bx D 2xy ñ f D 2xy dx D x 2y plus any function C.y; z/
³
The first step leaves an arbitrary C.y; z/ to fix the second step. The second step leaves
an arbitrary c.z/ to fix the third step (not needed here). Assembling the three steps,
f D x 2 y C C D x 2 y C yz C c D x 2 y C yz . Please recognize that the “fix-up” is only
possible when curl F D 0. Test D must be passed.
Solution B B B B
We need curl F D 0, by test D. First check M= y D z 2 D N= x . Also
EXAMPLE 9 Why is div curl grad f automatically zero (in two ways)?
Solution First, curl grad f is zero (always). Second, div curl F is zero (always).
Those are the key identities of vector calculus. We end with a review.
¾ »»
Green’s Theorem W
F dR D B B BM=By/dx dy
. N= x
¾ »»
F nds D B B B B
. M= x C N= y/dx dy
»» »»»
Divergence Theorem W
F ndS D B B B B B B
. M= x C N= y C P = z/dx dy dz
¾ »»
Stokes’ Theorem W
F dR D
curl F ndS:
The first form of Green’s Theorem leads to Stokes’ Theorem. The second form
becomes the Divergence Theorem. You may ask, why not go to three dimensions
in the first place? The last two theorems contain the first two (take P D 0 and a flat
surface). We could have reduced this chapter to two theorems, not four. I admit that,
but a fundamental principle is involved: “It is easier to generalize than to specialize.”
For the same reason df =dx came before partial derivatives and the gradient.
15.6 Stokes’ Theorem and the Curl of F 679
15.6 EXERCISES
Read-through questions
The curl of M i C N j C P k is the vector a . It equals the 16 In 15, suppose S is the top half of the earth (n goes out) and T is
3 by 3 determinant b . The curl of x 2 i C z 2 k is c . the bottom
rr half (n comes
rr in). What are C and V ? Show by example
For S D yi .x C z/j C yk the curl is d . This S is a e
that S F ndS D T F ndS is not generally true.
field a R D 21 .curl F/ R, with axis vector a D f . For any rr
17 Explain why curl F ndS D 0 over the closed boundary of any
gradient field fx i C fy j C fz k the curl is g . That is the
solid V .
important identity curl grad f D h . It is based on fxy D fyx
and i and j . The twin identity is k . 18 Suppose curl F D 0 and div F D 0. (a) Why is F the gradient of
a potential? (b) Why does the potential satisfy Laplace’s equation
The curl measures the i of a vector field. A paddlewheel in fxx C fyy C fzz D 0?
the field with its axis along n has turning speed m . The spin
is greatest when n is in the direction of n . Then the angular In 19–22, find a potential f if it exists.
velocity is o .
19 F D zi C j C xk. 20 F D 2xyzi C x 2 zj C x 2 yk
Stokes’ Theorem is p D q . The curve C is the r
of the s S. This is t Theorem extended to u dimen- 21 F D e x z i exz k 22 F D yzi C xzj C .xy C z 2 /k
sions. Both sides are zero when F is a gradient field because v .
23 Find a field with curl F D .1; 0; 0/:
The four properties of a conservative field are A D w ,
B D x , C D y , D D z . The field y 2 z 2 i C 2xy 2 zk 24 Find all fields with curl F D .1; 0; 0/:
(passes)(fails)
r test D. This field is the gradient of f D A . The 25 S D a
R is a spin field. Compute F D b S (constant vector b)
work F d R from’.0; 0; 0/ to .1; 1; 1/ is B (on which path?). and find its curl.
For every field F, curl F nds is the same out through a pyramid
26 How fast is a paddlewheel turned by the field F D yi xk
and up through its base because C .
(a) if its axis direction is n D j? (b) if its axis is lined up with curl F?
In Problems 1–6 find curl F. (c) if its axis is perpendicular to curl F?
27 How is curl F related to the angular velocity ! in the spin field
1 F D zi C xj C yk 2 F D grad .xe y sin z/
F D !. yi C xj/? How fast does a wheel spin, if it is in the plane
3 F D .x C y C z/.i C j C k/ 4 F D .x C y/i .x C y/k x C y C z D 1?
28 Find a vector field F whose curl is S D yi xj.
5 F D n .xi C yj C zk/ 6 F D .i C j/ R 29 Find a vector field F whose curl is S D a R.
7 Find a potential f for the field in Problem 3. 30 True or false: when two vector fields have the same curl at all
points: (a) their difference is a constant field (b) their difference is a
8 Find a potential f for the field in Problem 5. gradient field (c) they have the same divergence.
rr
9 When do the fields x m i and x n j have zero curl? In 31–34, compute curl F ndS over the top half of the sphere
10 When does .a1 x C a2 y C a3 z/k have zero curl?
¶
x 2 C y 2 C z 2 D 1 and (separately) F d R around the equator.
15 (important) Suppose two surfaces S and T have the same bound- 37 Find g.x; y/ so that curl gk D yi C x 2 j. What is the name for g
ary C , and the direction around C is the same. in Section 15.3? It exists because yi C x 2 j has zero .
rr
rr
(a) Prove S curl F ndS D T curl F ndS. 38 Construct F so that curl F D 2xi C 3yj 5zk (which has zero
divergence).
(b)
rrr Second proof: The difference between those integrals is
div.curl F/dV . By what Theorem? What region is V ? Why 39 Split the field F D xyi into V C W with curl V D 0 and div
is this integral zero? W D 0.
680 15 Vector Calculus
40 Ampère’s law for a steady magnetic field B is curl B D J 47 (a) The second proof of Stokes’ Theorem took M D
.J D current density; D constant/. Find the work done by B around B B
M.x; y; f .x; y// C P .x; y; f .x; y// f = x as the M in Green’s
a space curve C from the current passing through it. Theorem. Compute M = y from the chain rule and product
B B
rule (there are five terms).
(b) Similarly N D N.x; y; f / C P .x; y; f / f = y has the x
B B
Maxwell allows varying currents which brings in the electric field.
41 For F D .x 2 C y 2 /i, compute curl .curl F/ and grad .div F/ and derivative Nx C Nz fx C Px fy C Pz fx fy C Pfyx . Check that
Fxx C Fyy C Fzz . Nx My matches the right side of equation (8), as needed in
the proof.
42 For F D v.x; y; z/i, prove these useful identities:
48 “The shadow of the boundary is the boundary of the shadow.”
(a) curl.curl F/ D grad .div F/ .Fxx C Fyy C Fzz /. This fact was used in the second proof of Stokes’ Theorem, going
(b) curl.f F/ D f curl F C .grad f / F. to Green’s Theorem on the shadow. Give two examples of S and C
and their shadows.
43 If B D a cos t(constant direction a), find curl E from Faraday’s
Law. Then find the alternating spin field E. 49 Which integrals are equal when C D boundary of S or S D
boundary of V ?
44 With G.x; y; z/ D mi C nj C pk, write out F G and take its di- ¶
¶
.curl F/ nds
¶ rr
F ndS
vergence. Match the answer with G curl F F curl G. rr
F dR
rr
.curl F/ d R
rr rrr
45 Write down Green’s Theorem in the xz plane from Stokes’ The- div F dS .curl F/ ndS .grad div F/ ndS div F dV
Resource: Calculus
Gilbert Strang
The following may not correspond to a particular course on MIT OpenCourseWare, but has been
provided by the author as an individual learning resource.
For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms.
MIT OpenCourseWare
https://ocw.mit.edu
Resource: Calculus
Gilbert Strang
The following may not correspond to a particular course on MIT OpenCourseWare, but has been
provided by the author as an individual learning resource.
For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms.