You are on page 1of 54

CHAPTER 15

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

15.1 Vector Fields


For an ordinary scalar function, the input is a number x and the output is a number
f .x/: For a vector field (or vector function), the input is a point .x; y/ and the output
is a two-dimensional vector F.x; y/: There is a “field” of vectors, one at every point.
In three dimensions the input point is .x; y; z/ and the output vector F has three
components.

DEFINITION Let R be a region in the xy plane. A vector field F assigns to every


point .x; y/ in R a vector F.x; y/ with two components:

F.x; y/ D M.x; y/i C N.x; y/j: (1)

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 1 The position vector at .x; y/ is R D xi C yj: Its components are


M D x and N D y: The vectors grow larger as we leave the origin (Figure 15.1a).
| |
a
Their direction is outward and their length is R D x 2 C y 2 D r: The vector R
is boldface, the number r is lightface.

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)

S is perpendicular to R—their dot product is zero: S  R D .y/.x/ C .x/.y/ D 0:


2
The spin fields S=r and S=r have lengths 1 and 1=r :
   

S  
S  1
S
r
D  y
r
x
i C j has
r


 r
D1
S
r2
D  2
y
x Cy 2
iC 2
x
x C y2
j has



D
r2  r
:

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/:

The derivatives of f D 12 .x 2 C y 2 / are x and y: Thus R is a gradient field. The


gradient of f D r is the unit vector R=r pointing outwards. Both fields are
perpendicular to circles around the origin. Those are the level curves of f D 21 r 2
and f D r:

Question Is every R=r n a gradient field?


Answer Yes. But among the spin fields, the only gradient is S=r 2 :
A major goal of this chapter is to recognize gradient fields by a simple test. The

rejection of S and S=r will be interesting. For some reason yi C xj is rejected and
yi C xj is accepted. (It is the gradient of :) The acceptance of S=r 2 as the
gradient of f D  contains a surprise at the origin (Section 15.3).
Gradient fields are called conservative. The function f is the potential function.
These words, and the next examples, come from physics and engineering.

EXAMPLE 5 The velocity field is V and the flow field is V:


Suppose fluid moves steadily down a pipe. Or a river flows smoothly (no waterfall).
Or the air circulates in a fixed pattern. The velocity can be different at different points,
but there is no change with time. The velocity vector V gives the direction of flow
and speed of flow at every point.
632 15 Vector Calculus

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:

Fig. 15.3 A steady velocity field V and two force fields F:

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.

EXAMPLE 6 Force fields from gravity: F is downward in the classroom, F is radial


in space.
When gravity pulls downward, it has only one nonzero component: F D mgk: 
This assumes that vectors to the center of the Earth are parallel—almost true in a
 B B
classroom. Then F is the gradient of mgz (note f = z D mg ). 

In physics the usual potential is not mgz but Cmgz: The force field is mi-
nus grad f also in electrical engineering. Electrons flow from high potential to low
potential. The mathematics is the same, but the sign is reversed.

In space, the force is radial inwards: F D mM GR=r 3 : Its magnitude is
proportional to 1=r 2 (Newton’s inverse square law). The masses are m and M; and the

gravitational constant is G D 6:672 1011—with distance in meters, mass in kilo-
grams, and time in seconds. The dimensions of G are .force/.distance/2 =.mass/2 :
This is different from the acceleration g D 9:8m=sec2 ; which already accounts
for the mass and radius of the Earth.
Like all radial fields, gravity is a gradient field. It comes from a potential f :

mM G f B  mMr 3Gx and BBfy D  mMr 3Gy and BBfz D  mMr 3Gz :
fD
r
and
x
D
B
(4)

EXAMPLE 7 (a short example) Current in a wire produces a magnetic field B: It


is the spin field S=r 2 around the wire, times the strength of the current.

STREAMLINES AND LINES OF FORCE

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.

Vector field F.x; y; z/ D M i C N j C P k Plane field F D M.x; y/i C N.x; y/j


Radial field: multiple of R D xi C yj C zk Spin field: multiple of S D yi C xj
Gradient field D conservative field: M D B f =B x; N D B f =B y; P D B f =B z
Potential f .x; y/ (not a vector) Equipotential curves f .x; y/ D c
Streamline D field line D integral curve: a curve that has F.x; y/ as its tangent
vectors.

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

9 Draw the shear field F D xj: Check that it is not a gradient


A gravity field from the origin is proportional to F D t
||
which has F D u . This is Newton’s v square law. It
B B B B
field: If f = x D 0 then f = y D x is impossible. What are the
streamlines (field lines) in the direction of F?
is a gradient field, with potential f D w . The equipotential
curves f .x; y/ D c are x . They are y to the field lines 10 Find all functions that satisfy B B 
f = x D y and show that
which are z . This illustrates that the A of a function B B 
none of them satisfy f = y D x: Then the spin field S D yi C xj
f .x; y/ is B to its level curves. is not a gradient field.
15.1 Vector Fields 635

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.

11 f D 3x C y 12 f D x  3y 33 Show directly that the hyperbolas xy D 2 and x 2  y2 D 3


are perpendicular at the point .2; 1/; by computing both slopes
13 f D x C y 2 14 f D .x  1/2 C y 2 dy=dx and multiplying to get 1: 
15 f D x 2  y2 16 f D e x cos y 34 The derivative of f .x; y/ D c is fx C fy .dy=dx/ D 0: Show
17 f D e x y 18 f D y=x that the slope of this level curve is dy=dx D M=N: It is 

perpendicular to streamlines because ( M=N )(N=M / D :
Find equations for the streamlines in 19–24 by solving dy=dx D 35 The x and y derivatives of f .r/ are B B
f= x D and
N=M (including a constant C ). Draw the streamlines. Bf =By D by the chain rule. (Test f D r 2 :) The equipoten-
19 F D i j 20 F D i C xj
tials are :
36 F D .ax C by/i C .bx C cy/j is a gradient field. Find the
21 F D S (spin field) 22 F D S=r (spin field)
potential f and describe the equipotentials.
23 F D grad .x=y/ 24 F D grad .2x C y/:
37 True or false:
25 The Earth’s gravity field is radial, but in a room the field
lines seem to go straight down into the floor. This is because 1. The constant field i C 2k is a gradient field.
nearby field lines always look : 2. For non-gradient fields, equipotentials meet streamlines
at non-right angles.
26 A line of charges produces the electrostatic force field F D
3. In three dimensions the equipotentials are surfaces instead
R=r 2 D .xi C yj/=.x 2 C y 2 /: Find the potential f .x; y/: (F is also
of curves.
the gravity field for a line of masses.)
4. F D x 2 i C y 2 j C z 2 k points outward from .0; 0; 0/—
In 27–32 write down the vector fields M i C N j: a radial field.
27 F points radially away from the origin with magnitude 5: 38 Create and draw f and F and your own equipotentials and
streamlines.
28 The velocity is perpendicular to the curves x3 C y3 D c and the
speed is 1: 39 How can different vector fields have the same streamlines?
29 The gravitational force F comes from two unit masses at
Can they have the same equipotentials? Can they have the
.0; 0/ and .1; 0/: same f ?

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

15.2 Line Integrals


A line integral is an integral along a curve. It can equal an area, but that is a special
case and not typical. Instead of area, here are two important line integrals in physics
and engineering:
» »

Work along a curveD 


F T ds Flow across a curveD 
F n ds .
c c
In the first integral, F is a force field. In the second integral, F is a flow field. Work

is done in the direction of movement, so we integrate F T. Flow is measured through

the curve C , so we integrate F n. Here T is the unit tangent vector, and F T is the 
force component along the curve. Similarly n is the unit normal vector, at right angles

with T. Then F n is the component of flow perpendicular to the curve.
r will write those integrals in several forms. They may never be as comfortable
We
as y.x/dx , but eventually we get them under control. I mention these applications
early, so you can see where we are going. This section concentrates on work, and flow
comes later. (It is also called flux—the Latin word for flow.) You r recognize ds as the
step along the curve, correspondingr to dx on the x axis. Where dx gives the length

of an interval (it equals b a), ds is the length of the curve.
EXAMPLE 1 Flight from Atlanta to Los Angeles on a straight line and a semicircle.
According to Delta Airlines, the distance straight west is 2000 miles. Atlanta is at

.1000; 0/ and Los Angeles is at . 1000; 0/, with the origin halfway between. The
semicircle route C has radius 1000. This is not a great circle route. It is more of a
“flat circle,” which goes north past Chicago. No plane could fly it (it probably goes
into space).
The equation for the semicircle is x 2 C y 2 D 10002. Parametrically this path is
x D 1000 cos t; y D 1000 sin t . For a line integral the parameter is better. The plane
leaves Atlanta at t D 0 and reaches L.A. at t D  , more than three hours later. On
the straight 2000-mile path, Delta could almost do it. Around the semicircle C , the
distance is 1000 miles and the speed has to be 1000 miles per hour. Remember that
speed is distance ds divided by time dt :

 
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

When F D M i, its components M and zero are the partial derivatives of f D M x .


To compute the line integral, just evaluate f at the endpoints. Atlanta has x D 1000,

Los Angeles has x D 1000, and the potential function f D M x is like an
antiderivative:

work D f .Q/  f .P / D M.1000/  M.1000/ D 2000M: (3)

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 DEFINITION OF LINE INTEGRALS


r

We go back to the start, to define F T ds . We can think of F T as a function 
g.x; y/ along the path, and define its integral as a limit of sums:
» N
Ñ 0:
X
g.x; y/ ds D limit of g.xi ; yi /si as .s/max (5)
c i D1

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.

Solution The key is .dx=dt/2 C .dy=dt/2 C .dz=dt/2 D sin2 t C cos2 t C 1 D


2. ?
Thus ds=dt D 2. To find the mass, integrate the mass per unit length which is
g D  D 4:

» 4
ds
» 4
? ?
mass D  dt D 4 2 dt D 16 2  .
0 dt 0

That is a line integral in three-dimensional space. It shows how to introduce t . But


it misses the main point of this section, because it contains no vector field F. This
section is about work, not just mass.

DIFFERENT FORMS OF THE WORK INTEGRAL


r

The work integral F T ds can be written in a better way. The force is F D M i C
N j. A small step along the curve is dx i C dy j. Work is force times distance, but it is
only the force component along the path that counts. The dot product F T ds finds 
that component automatically.
15.2 Line Integrals 639

15C The vector to a point on C is R D xi C yj. Then d R D T ds D dx i C dy j W


» »

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:

straight line x D 1  t; y D t quarter-circle x D cos t; y D sin t .


Calculation of work Change F  d R D M dx C N dy to the parameter t :
» » 1

Straight line:  y dx C x dy D  t.dt/ C .1  t/dt D 1


0
» » =2

Quarter-circle:  y dx C x dy D  sin t. sin t dt/ C cos t.cos t dt/ D 2 .


0
General method The path is given by x.t/ and y.t/. Substitute those into M.x; y/
and N.x; y/—then F is a function of t . Also find dx=dt and dy=dt . Integrate
M dx=dt C N dy=dt from the starting time t to the finish.

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

CONSERVATION OF TOTAL ENERGY (KINETIC C POTENTIAL)

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:
» »

work D F d R D   df D f .P /  f .Q/: (9)

| |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.

INDEPENDENCE OF PATH: GRADIENT FIELDS

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/

EXAMPLE 5 Find f .x; y/ when F D M i C N j D 2xyi C x 2j. We want


B B B B
f = x D 2xy and f = y D x 2 :
Solution 1 Choose P D .0; 0/. Integrate Mdx C Ndy along to .x; 0/ and up to
.x; y/:
» .x;0/ » .x;y/

2xy dy D 0 .since y D 0/ x 2 dy D x 2 y .which is f /:


.0;0/ .x;0/
642 15 Vector Calculus

Certainly f D x 2 y meets the requirements: fx D 2xy and fy D x 2 . Thus F = grad


f . Note that dy D 0 in the first integral (on the x axis). Then dx D 0 in the second
integral (x is fixed). The integrals add to f D x 2 y .

Solution 2 Integrate 2xy dx C x 2 dy on the straight line .xt; yt/ from t D 0 to


t D 1:

» 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 :

Bf =Bx D 2xy gives f D x 2 y .plus any function of y/:


B B
In this example x 2 y already has the correct derivative f = y D x 2 . No additional
function of y is necessary. When we integrate with respect to x , the constant of
integration (usually C ) becomes a function C.y/.
You will get practice in finding f . This is only possible for conservative fields! I
B B B B
tested M D 2xy and N D x 2 in advance (using D) to be sure that M= y D N= x .

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/

 y dx D 0 and x dy D xy .which seems like f /:


.0;0/ .x;0/

Attempted solution 2 Integrate y dx C x dy on the line .xt; yt/ from t D 0 to 1:


» 1

 .yt/.x dt/ C .xt/.y dt/ D 0 .a different f; also wrong/:


0

B B y and try to fix up Bf =By D x :


Attempted solution 3 Directly solve f = x D

Bf =Bx D y gives f D xy .plus any function C.y//:


The y derivative of this f is x C dC=dy . That does not agree with the required
Bf =By D x . Conclusion: The spin field yi C xj is not conservative. There is no
f . Test D gives B M=B y D 1 and B N=B x D C1.
To finish this section, we move from examples to a proof. The potential f .Q/ is
defined as the work to reach Q. We must show that itsrpartial derivatives are M and
N . This seems reasonable from the formula f .Q/ D M dx C N dy , but we have
to think it through.
Remember statement A, that all paths give the same f .Q/. Take a path that goes
from P to the left of Q. It comes in to Q on a line y = constant (so dy D 0). As the
path reaches Q, we are only integrating M dx . The derivative of this integral, at Q,
B B
is f = x D M . That is the Fundamental Theorem of Calculus.
B B
To show that f = y D N , take a different path. Go from P to a point below Q.
The path comes up to Q on a vertical line (so dx D 0). Near Q we are only integrating
B B
Ndy , so f = y D N .
The requirement that the region must have no holes will be critical for test D.
15.2 Line Integrals 643
r .x;0/
EXAMPLE 7 Find f .x; y/ D x dx C y dy: Test D is passed: N= x D 0 D B B
BM=By:
.0;0/

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 /.

Solution 3 Bf =Bx D x gives f D 21 x 2 C C.y/. Then Bf =By D y needs C.y/ D


1 2
2
y .

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

r Example 4 found 1 and =2 with different parameters.


26 Compute the work W .x; y/ D M dx C N dy on the straight
B B
line path .xt; yt/ from t D 0 to t D 1. Test to see if W= x D M
B B
and W= y D N .
Apply the test Nx D My to 37–42. Find f when test D is passed.

(a) M D y 3 ; N D 3xy 2 (b) M D x 3 ; N D 3yx 2 37 F D y 2 e x i  2yex j 38 F D y ex i  2yex j


(c) M D x=y; N D y=x (d) M D e xCy ; N D e xCy xi C yj grad xy
39 F D
|xi C yj| 40 F D
|grad xy |
27 Find a field F whose work around the unit square .y D 0 then
x D 1 then y D 1 then x D 0) equals 4. 41 F D R C S 42 F D .ax C by/i C .cx C dy/j

28 Find a nonconservative F whose work around the unit circle ¶ ¶ ¶


43 Around the unit circle find ds and dx and xds.
x 2 C y 2 D 1 is zero.
r

In 29–34 compute F d R along the straight line R D ti C tj
44 True or false, with reason:
r
and the parabola R D ti C t 2 j, from (0,0) to (1,1). When F is a 
(a) When F D yi the line integral F d R along a curve from
gradient field, use its potential f .x; y/. P to Q equals the usual area under the curve.
(b) That line integral depends only on P and Q, not on the
29 F D i  2j 30 F D x 2 j curve.
31 F D 2xy 2 i C 2yx 2 j 32 F D x 2 yi C xy 2 j (c) That line integral around the unit circle equals .
15.3 Green’s Theorem 645

15.3 Green’s Theorem

This section contains the Fundamental Theorem of Calculus, extended to two


dimensions. That sounds important and it is. The formula was discovered 150 years
after Newton and Leibniz, by an ordinary mortal named George Green. His theorem
connects a double integral over a region R to a line integral along its boundary
C:

The integral of df =dx equals f .b/ f .a/: This connects a one-dimensional
integral to a zero-dimensional integral. The boundary only contains two points a and

b ! The answer f .b/ f .a/ is some kind of a “point integral.” It is this absolutely
crucial idea—to integrate a derivative from information at the boundary—that
Green’s Theorem extends into two dimensions.
r r
There are two important
r r around C: The work is F T ds D M dx C
integrals 
 
N dy: The flux is F n ds D M dy N dx (notice the switch). The first is for
a force field, the second is for a flow field. The tangent vector T turns 90 clockwise
to become the normal vector n: Green’s Theorem handles both, in two dimensions.
In three dimensions they split into the Divergence Theorem (15.5) and Stokes’
Theorem (15.6).
Green’s Theorem applies to “smooth” functions M.x; y/ and N.x; y/; with con-
tinuous first derivatives in a region slightly bigger than R: Then all integrals are well
defined. M and N will have a definite and specific meaning in each application—to
electricity or magnetism or fluid flow or mechanics. The purpose of a theorem is to
capture the central ideas once and for all. We do that now, and the applications follow.

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

Special case 1: M D 0 and N D x: Green’s Theorem with N= x D 1 becomes B B


¾ »»

x dy D 1 dx dy (which is the area of R): (2)


C R
The integrals look equal, because the inner integral of dx is x: Then both integrals
have x dy —but we need to go carefully. The area of a layer of R is dy times the
difference in x (the length of the strip). The line integral in Figure 15.8 agrees. It has

an upward dy times x (at the right) plus a downward dy times x (at the left). The
integrals add up the strips, to give the total area.
u rr
Special case 2: M D y and N D 0 and C
y dx D R
 
. 1/dx dy D .area of R/:
Now Green’s formula has a minus sign, because the line integral is counterclock-
wise. The top of each slice has dx 0 (going left) and the bottom has dx 0 (going ¡
right). Then y dx at the top and bottom combine to give minus the area of the slice in
Figure 15.8b.
u
Special case 3: 1 dx D 0: The dx ’s to the right cancel the dx ’s to the left (the
curve is closed). With M D 1 and N D 0; Green’s Theorem is 0 D 0:

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

 BBMy dy D M.x; y/ g.x/ D M.x; f .x// C M.x; g.x//:


» f .x/
if .x/
(6)
g.x/

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

M dx D M.x; y/dx C M.x; y/dx D M.x; f .x//dx C M.x; g.x//dx:


top bottom b a
(7)
648 15 Vector Calculus

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 .x; y/ D y dx=.x2 C y 2/ D tan1.y=x/ C C.y/:


The extra part C.y/ can be zero—the y derivative of tan1 .y=x/ gives N with no
help from C.y/: The potential f is the angle  in the usual x; y; r right triangle.
Test D is passed and F is grad : What am I worried about? It is only this,
that Green’s Theorem on a circle seems to give 2 D 0: The double integral is
rr
.Nx  My /dx dy: According to (8) this is the integral of zero. But the line integral
is 2 :
¾ ¾

 
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.”

FLOW ACROSS A CURVE: GREEN’S THEOREM TURNED BY 90

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:

Flow through C (out minus in) D replacement in R (source minus sink).

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:

¾ ¾ »» »»

M dx C N dy Ñ N dx C M dy .Nx  My /dx dy Ñ .Mx C Ny /dx dy:


(11)
Playing with letters has proved a new theorem! The two left sides in (11) are equal,
so the right sides are equal—which is Green’s Theorem (10) for the flux. The
components M and N can be chosen freely and named freely.

The change takes M i C N j into its perpendicular field N i C M j: The field is
turned at every point (we are not just turning the plane by 90 ). The spin field S D
 yi C xj changes to the position field R D xi C yj: The position field R changes to
 S: Streamlines of one field are equipotentials of the other field. The new form (10)
of Green’s Theorem is just as important as the old one—in fact I like it better. It is
easier to visualize flow across a curve than circulation along it.
15.3 Green’s Theorem 651

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 :

Fig. 15.13 Mx C Ny D 2 C 3 D 5 yields flux D 5.area/ D 5ab: The flux is dM dy C


dN dx D .Mx C Ny /dx dy: The spin field has no flux.

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.

FLOW FIELDS WITHOUT SOURCES

This is really quite important. Remember that conservative fields do no work


around C; they have a potential f; and they have “zero curl.” Now turn those
statements through 90 ; to find their twins. Source-free fields have no flux
through C; they have stream functions g; and they have “zero divergence.”
The new statements E–F–G–H describe fields without sources.

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:
¾ ¾

M dy  N dx D .x dy  y dx/=.x2 C y 2/ D 2.area of circle/=a2 D 2:


(13)
A source is hidden somewhere. Looking at R=r 2 ; the problem is at .0; 0/: The field
is not defined when r D 0 (it blows up). The derivatives in (12) are not continuous.
Test H does not apply, and was not passed. The divergence Mx C Ny must be a “delta
function” of strength 2: There is a point source sending flow out through all circles.
I hope you see the analogy with Example 4. The field S=r 2 is curl-free except at
r D 0: The field R=r 2 is divergence-free except at r D 0: The mathematics is parallel
and the fields are perpendicular. A potential f and a stream function g require a
region without holes.
15.3 Green’s Theorem 653

THE BEST FIELDS: CONSERVATIVE AND SOURCE-FREE

What if F is conservative and also source-free? Those are outstandingly important


fields. The curl is zero and the divergence is zero. Because the field is conservative, it
comes from a potential. Because it is source-free, there is a stream function:

Bf D Bg Bf D  Bg :
MD
Bx By and ND
By Bx (14)

Those are the Cauchy-Riemann equations, named after a great mathematician of


his time and one of the greatest of all time. I can’t end without an example.

EXAMPLE 8 Show that yi C xj is both conservative and source-free. Find f and g:

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:

15H There is a potential and stream function when My D Nx and Mx D N y :


They satisfy Laplace’s equation:
fxx C fyy D Mx C Ny D 0 and 
gxx C gyy D Nx C My D 0: (15)

If we have f without g; as in f D x 2 C y 2 and M D 2x and N D 2y; we don’t have


Laplace’s equation: fxx C fyy D 4: This is a gradient field that needs a source. If
we have g without f; as in g D x 2 C y 2 and M D 2y and N D 2x; we don’t have 
Laplace’s equation. The field is source-free but it has spin. The first field is 2R and
the second field is 2S:
With no source and no spin, we are with Laplace at the center of mathematics and
science.
u u
Green’s Theorem: Tangential form 
F T ds and normal form 
F n ds
¾ »» ¾ »»
M dx CN dyD .Nx  My /dx dy 
M dy N dxD .Mx CNy /dx dy
C R C R
work curl flux divergence
Conservative: work D zero, Nx DMy ; gradient of a potential: M Dfx and N Dfy

Source-free: flux D zero, Mx D Ny ; has a stream function: M Dgy and N D gx 
Conservative C source-free: Cauchy-Riemann C Laplace equations for f and g:
654 15 Vector Calculus

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

28 If Mx C Ny D 0 then the equations B B


g= y D and
the Laplace and Cauchy-Riemann equations for n D 1; 2; :::: (They
Bg=Bx D yield a stream function. If also Nx D My ; show
give all the polynomial solutions.) Compute f and g for
n D 4:
that g satisfies Laplace’s equation.
42 When is M dy  N dx an exact differential dg?
Compute the divergence of each field in 29–36 and solve 43 The potential f D e x cos y

gy D M and gx D N for a stream function (if possible).
satisfies Laplace’s equation.
There must be a g: Find the field F D grad f and the stream
function g.x; y/:
29 2xyi  y2j 30 3xy 2 i  y3j 44 Show that the spin field S does work around every simple closed
31 x 2 i C y 2 j 32 y 2 i C x 2 j curve.
33 e x cos yi  ex sin yj 34 e xCy .i  j/ 45 For F D f .x/j and R D unit square 0 ¤ ¤
x 1; 0 y 1; ¤ ¤
35 2yi=x C y 2 j=x 2 36 xyi  xyj integrate both sides of Green’s Theorem .1/: What formula is
required from one-variable calculus?

37 Compute Nx My for each field in 29–36 and find a 46 A region R is “simply connected” when every closed curve in-
potential function f when possible. side R can be squeezed to a point without leaving R: Test these
rQ

38 The potential f .Q/ is the work P F T ds to reach Q from regions:
a fixed point P (Section 15:2). In the same way, the stream
function g.Q/ can be constructed from the integral : 1. xy plane without .0; 0/ 2. xyz space without .0; 0; 0/

Then g.Q/ g.P / represents the flux across the path from P to 3. sphere x 2 C y 2 C z 2 D 1 4. a torus (or doughnut)
Q: Why do all paths give the same answer? 5. a sweater 6. a human body
39 The real part of .x C iy/3 D x 3 C 3ix 2 y  3xy 2  iy 3 is f D 7. the region between two spheres
x3  3xy 2 :
Its gradient field is F D grad f D : The di- 8. xyz space with circle removed.
vergence of F is : Therefore f satisfies Laplace’s
equation fxx C fyy D 0 (check that it does).
656 15 Vector Calculus

15.4 Surface Integrals


The double integral in Green’s Theorem is over a flat surface R. Now the region
moves out of the plane. It becomes a curved surface S , part of a sphere or cylinder
or cone. When the surface has only one z for each (x; y ), it is the graph of a function
z.x; y/. In other cases S can twist and close up—a sphere has an upper z and a lower
z . In all cases we want to compute area and flux. This is a necessary step (it is our last
step) before moving Green’s Theorem to three dimensions.
r rr rrr
r integrals are dx and dx dy and
First a quick review. The basic dx dy dz .
The one that didn’t fit was ds —the rr length of a curve. When
rr we go from curves
to surfaces, ds becomes dS . Area is dS and flux is 
F n dS , with double
integrals because the surfaces are two-dimensional. The main difficulty is in dS .
All formulas are summarized in a table at the end of the section.

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 curve is almost straight. It goes across by dx and up by dy :


a a
length ds D .dx/2 C .dy/2 D 1 C .dy=dx/2 dx: (1)

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)

EXAMPLE 1 Find the area on the plane z D x C 2y above a base area A.

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:

cone x D u cosv; y D u sin v; z D u cylinder x D cosv; y D sin v; z D u: (4)

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 xy or A B uv . 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 » 

area of sphere D dS D a2 sin  d d D 4a2 : (9)


0 0
Figure 15.16a shows a small surface with sides a d and a sin  d . Their prod-
uct is dS . Figure 15.16b goes back to Method 1, where equation (8) gave dS D
.a=z/ dx dy .
15.4 Surface Integrals 661

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.

VECTOR FIELDS AND THE INTEGRAL OF F n 


Formulas for surface area are dominated by square roots. There is a square root in
dS , as there was inrds . Areas are like arc lengths, one dimension up. The good point

about line integrals F nds is that the square root disappears. It is in the denominator
 
of n, where ds cancels it: Frrnds D M dy N dx . The same good thing will now
happen for surface integrals F ndS . 
15I Through the surface z D f .x; y/, the vector field F.x; y; z/ D M i C N j C
P k has

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:

Bf =Bx i Bf =By j C k and |N| D B B B B


a
ND 1 C . f = x/2 C . f = y/2 :
662 15 Vector Calculus

| |
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 .

Fig. 15.17 Surface of revolution: parameters x; . Fig. 15.18 


F n dS gives flow through 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:

15J Through a surface with parameters u and v , the field F D M i C N j C P k


has »» »» »»

flux D 
F ndS D 
F N du dv D   B/ du dv:
F .A (12)

EXAMPLE 11 Find the flux of F D xi C yj C zk through the cylinder x 2 C y 2 D


¤ ¤
1, 0 z b .
Solution The surface of the cylinder is x D cosu, y D sin u, z D v . The tangent

vectors from (5) are A D . sinu/i C .cosu/j and B D k. The normal vector in
Figure 15.19 goes straight out through the cylinder:

NDA  B D cosu i C sin u j  


(check A N D 0 and B N D 0/:

 
To find F N, switch F D xi C yj C zk to the parameters u and v . Then F N D 1:

F  N D .cosu i C sin u j C v k/  .cos u i C sin u j/ D cos2 u C sin2 u:

For the flux, integrate F  N D 1 and apply the limits on u D  and v D z :


» b » 2

flux D 1 du dv D 2b D surface area of the cylinder:


0 0

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

NDA  B D a2 sin2  cos  i C a2 sin2  sin  j C a2 sin2  cos  k:


The dot product with F D k is F  N D a2 sin  cos  . The integral goes from the pole
to the equator,  D 0 to  D =2, and around from  D 0 to  D 2 :
» 2 » =2 =2
sin2 
flux D a2 sin  cos  d d D 2a2 D a2 :
0 0 2 0

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.

Method 1: Parameters x; y Method 2: Parameters u; v


Coordinates x; y; z.x; y/ x.u; v/; y.u; v/; z.u; v/ on surface
FORMULAS
FOR A D i C B z=B xk N D AB A D B x=B u i C B y=B u j C B z=B u k
SURFACE B D j C B z=B yk n D N=|N| B D B x=B v i C B y=B v j C B z=B v k
INTEGRALS b
dS D |N|dx dy D 1 C zx2 C zy2 dx dy dS D |N|du dv
ndS D N dx dy D .B z=B x i B z=B y j C k/dx dy ndS D N du dv
15.4 Surface Integrals 665

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/.

For flux we need ndS. The r vector n is N D A B  


23 26 In Problems 1  4 respectively find the flux rr F  ndS for
divided by s . For a surface z D f .x; y/, the product ndS F D xi C yj C zk.
rr
is the vector t (to memorize from table). The particular sur-
 
27 28 In Problems 19 20 respectively compute 
F ndS for
face z D xy has ndS D u dx dy. For F D xi C yj C zk the flux

through z D xy is F ndS D v dx dy.

F D yi xj through the region u2 C v 2 1. ¤
On a 30 cone the points are x D 2u cos v, y D 2u sin v, z D u.
The tangent vectors are A D w and B D x . This cone

has ndS D A B du dv D y . For F D xi C yj C zk, the flux

element through the cone is F ndS D z . The reason for this an-
swer is A . The reason we don’t compute flux through a MRobius
strip is B .
rr
 | |
In 1 14 find N and dS D N dx dy and the surface area dS.
Integrate over the xy shadow which ends where the z’s are equal
(x 2 C y 2 D 4 in Problem 1). 29 A unit circle is rotated around the z axis to give a torus (see fig-
1 Paraboloid z D x 2 C y 2 below the plane z D 4. ure). The center of the circle stays a distance 3 from the z axis. Show
that Problem 21 rr
gives a typical
rr point .x; y; z/ on the torus and find
2 Paraboloid z D x 2 C y 2 between z D 4 and z D 8. the surface area dS D | |
N du dv.
3 Plane z D x  y inside the cylinder x 2 C y 2 D 1. 30 The surface x D r cos , y D r sin , z D
rr a
2 
r 2 is bounded by
4 Plane z D 3x C 4y above the square 0 ¤ x ¤ 1, 0 ¤ y ¤ 1. the equator .r D a/. Find N and the flux 
k ndS, and compare
? with Example 12.
5 Spherical cap x 2 C y 2 C z 2 D 1 above z D 1= 2.
2 2 2
? 31 Make a “double MRobius strip” from a strip of paper by twisting
6 Spherical band x C y C z D 1 between z D 0 and 1= 2. it twice and taping the ends. Does a normal vector (use a pen) have
7 Plane z D 7y above a triangle of area A. the same direction after a round trip?

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

15.5 The Divergence Theorem



This section returns to the fundamental law .flow out/ .flow in/ D .source/. In
two dimensions, the flow was in and out through a closed curve C . The plane region
inside was R. In three dimensions, the flow enters and leaves through a closed surface
S: The solid region inside is V: Green’s Theorem in its normal form (for the flux of
a smooth vector field) now becomes the great three-dimensional balance equation—
the Divergence Theorem:

15K The flux of F D M i C N j C P k through the boundary surface S equals


the integral of the divergence of F inside V: The Divergence Theorem is
»»


»»» »»» 
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:

The unit normal vector to the sphere  D constant is n D R=:


rrr
The outward flow F rr  
n D .R=3/ .R=/ D 2=4 is always positive.
Then 
F ndS D dS=2 D 42 =2 D 4: We have reached 4 D
0:
This paradox in three dimensions is the same as for R=r 2 in two dimensions.
Section 15.3 reached 2 D 0; and the explanation was a point source at the origin.
Same explanation here: M; N; P are infinite when  D 0: The divergence is a “delta
function” times 4; from the point source. The Divergence Theorem does not apply
(unless we allow delta functions). That single point makes all the difference.
Every surface enclosing the origin has fluxD 4: Our calculation was for a
sphere. The surface integral is much harder when S is twisted (Figure 15.21a). But the
Divergence Theorem takes care ofrr everything, because div F D 0 in the volume V be-
tweenrr these surfaces. Therefore 
F ndS D 0 for the tworrsurfaces together. The
 
flux F ndS D 4 into the sphere must be balanced by F ndS D 4 out of 
the twisted surface.

Fig. 15.21 rrr source: flux 4 through all enclosing surfaces. Net flux upward
Point
D B B
. P = z/dV:

Instead of a paradox 4 D 0; this example leads to Gauss’s Law. A mass M at the



origin produces a gravity field F D GM R=3 : A charge q at the origin produces
an electric field E D .q=4"0 /R=3 : The physical constants are G and "0 ; the math-
ematical constant is the relation between divergence and flux. Equation (1) yields
equation (2), in which the mass densities M.x; y; z/ and charge densities q.x; y; z/
need not be concentrated at the origin:

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 REASONING BEHIND THE DIVERGENCE THEOREM

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 xy: So the two fluxes are
 
close to P .x; y; z C 21 z/xy and P .x; y; z 21 z/xy: When the top is
combined with the bottom, the difference of those P ’s is P :
net flux upward  P xy D .P =z/xyz  .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 3V is created inside the box. By the balance equation the flux is also 3V:

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 Vz: 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 nS out of the top of one box, plus

F nS 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

Solution grad ln 1= D Cgrad ln : Derivatives of ln  bring division by :


F is
F D .B =B x i C B =B y j C B =B z k/= D .xi C yj C zk/=2:
This flow is radially outward, of magnitude 1=: The normal vector n is also radially
outward, of magnitude 1: The dot product on the sun’s surface is 1=0 :
»» »»


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:

Ñ force field  c grad f: Then div.c grad f / D electric charge


potential f
temperature T Ñ flow field  c grad T: Then div.c grad T / D heat source

displacement u Ñ stress field C c grad u: Then div.c grad u/ D outside force:

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.

PRODUCT RULE FOR VECTORS: INTEGRATION BY PARTS

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:

rr rule (11) for the divergence of uV:


Add those ordinary rules and you have the vector
Integrating the two parts of div.uV/ gives 
uV n dS by the Divergence Theo-
rem. Then one part moves to the other side, producing the minus signs in (12) and (13).
Integration by partsr leaves a boundary
r 1 term, in three and two dimensions as it did
in one dimension: uv 1 dx D  u vdx C Œuvba :

EXAMPLE 5 Find the divergence of F D R=2 ; starting from grad  D R=:


15.5 The Divergence Theorem 671

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

the chain rule:

    
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:

Continuity Equation: div.V/ C = t D 0: B B (14)


rrr rrr
Explanation: The mass in a region is  d V: Its rate of decrease is 
p= t d V: B B
The decrease comes from flow out through the surface (normal vector n). The dot
 
product F n D V n is the rate of mass flow through the surface. So the integral
rr

rrrF ndS is the total rate that mass goes out. By the Divergence Theorem this is
div F d V: rrr
To balance  B B
= t d V in every region, div F must equal B B
= t at every
point. The figure shows this continuity equation (14) for flow in the x direction.

mass in extra mass out mass loss


Ñ mass dS dx Ñ D
V dS dt d.V/ dS dt d dS dx
Fig. 15.22 Conservation of mass during time dt W d.V/=dx C d=dt D 0:

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 .

For F D 5zk the divergence is g . If V is a cube of side


a then the triple integral equals h . The top surface where The symbol r stands for s . In this notation div F is

z D a has n D i and Frrn D j . The bottom and sides have t . The gradient of f is u . The divergence of grad f is
 
F n D k . The integral F ndS equals l . v . The equation div grad f D 0 is w ’s equation.
672 15 Vector Calculus

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)

6 F D ur D .xi C yj C zk/=; S: sphere  D a:



the gravity field is F D GM R=a3 :

(a) Check div F D 4G in Gauss’s Law.
7 F D .xi C yj C zk/; S: sphere  D a (b) The force at the surface is the same as if the whole
8 F D x 3 i C y 3 j C z 3 k; S: sphere  D a: mass M were :
9 F D z 2 k; V : upper half of ball  ¤ a: (c) Find a gradient field with div F D 6 in the ball  a ¤
and div F D 0 outside.
10 F D grad .xe y sin z/;
rrr
S: sphere  D a:
24 The outward field F D R=3 has magnitude |F| D 1=2 :
11 Find div rr .x 2 i C yj C 2k/dV
in the cube 0 x; y; z ¤ ¤ a: Through an area A on a sphere of radius ; the flux is :A

Also compute n and F ndS for all six faces and add. spherical box has faces at 1 and 2 with A D 12 sin dd and
A D 22 sin dd: Deduce that the flux out of the box is zero, which
12 When a is small in problem 11; the answer is close to ca3 :
confirms div F D 0:
Find the number c: At what point does div F D c?
13 (a) Integrate the divergence of F D i in the ball 
rr
¤ a: 25 In Gauss’s Law, what charge distribution q.x; y; z/ gives the unit
field E D ur ? What is the flux through the unit sphere?

(b) Compute F ndS over the spherical surface  D a:
rr 26 If a fluid with velocity V is incompressible (constant den-
14 Integrate 
R ndS over the faces of the box 0 x ¤ ¤ 1, sity ), then its continuity equation reduces to : If it
¤ ¤ ¤ ¤
0 y 2, 0 z 3 and check by the Divergence Theorem. is irrotational then F D grad f: If it is both then f satisfies
rr
15 Evaluate 
F ndS when F D xi C z 2 j C y 2 k and: equation.

(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.

17 Following Example 5; compute the divergence of 28 Write down statements E  F  G  H for


source-free fields
.xi C yj C zk/=7 : F.x; y; z/ in three dimensions. In statement F; paths sharing
the same endpoint become surfaces sharing the same boundary

18 .grad f / n is the derivative of f in the direction curve. In G; the stream function becomes a vector field such
B B
rr : It is also written f = n: If fxx C fyy C fzz D 0 in V; de- that F D curl g:
rive B B
f = n dS D 0 from the Divergence Theorem.
29 Describe two different surfaces bounded by the circle
19 Describe the closed surface S and outward normal n: x 2 C y 2 D 1, z D 0: The field F automatically has the same flux
(a) V D hollow ball 1 ¤ 9: ¤
x2 C y2 C z2 through both if :
(b) V ¤ | |¤
D solid cylinder x 2 C y 2 1; z 7: 30 The boundary of a bounded region R has no boundary.
(c) V ¥ ¥ ¥
D pyramid x 0; y 0; z 0; x C 2y C 3z ¤ 1: Draw a plane region and explain what that means. What does
(d) V D solid cone x 2 C y 2 z 2 1: ¤ ¤ it mean for a solid ball?
15.6 Stokes’ Theorem and the Curl of F 673

15.6 Stokes’ Theorem and the Curl of F


For the Divergence Theorem, the surface was closed. S was the boundary of V . Now
the surface is not closed and S has its own boundary—a curve called C . We are
back near the original setting for Green’s Theorem (region bounded by curve, double
integral equal to work integral). But Stokes’ Theorem, also called Stokes’s Theorem,
is in three-dimensional space. There is a curved surface S bounded by a space curve
C . This is our first integral around a space curve.
The move to three dimensions brings a change in the vector field. The plane field
F.x; y/ D M i C N j becomes a space field F.x; y; z/ D M i C N j C P k. The work
Mdx C Ndy now includes P dz . The critical quantity in the double integral (it was
B B B B
N= x M= y ) must change too. We called this scalar quantity “curl F,” but in
reality it is only the third component of a vector. Stokes’ Theorem needs all three
components of that vector—which is curl F.
DEFINITION The curl of a vector field F.x; y; z/ D M i C N j C P k is the vector

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
 

R D  a3y/i C .a3x  a1z/j C .a1y  a2x/k:


 
SDa  a a2 a  D .a2 z
 1 3
 
 
x y z
(3)

Our favorite spin field yi C xj has .a1 ; a2 ; a3 / D .0; 0; 1/ and its axis is a D k.
The divergence of a spin field is Mx C Ny C Pz D 0 C 0 C 0. Note how the
divergence uses Mx while the curl uses Nx and Px . The curl of S is the vector
2a:

B B
P N
 
B B
M P
 
N B BM


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.

15N The curl of the gradient of every f .x; y; z/ is curl grad f D r rf D 0. 


The divergence of the curl of every F.x; y; z/ is div curl F D r r F D 0.  
The spin field S has no divergence. The position field R has no curl. R is the gradient
of f D 21 .x 2 C y 2 C z 2 /. S is the curl of a suitable F. Then div S D div curl F and
curl R D curl grad f are automatically zero.
You correctly believe that curl F measures the “spin” of the field. You may expect
that curl .F C G/ is curl F C curl G. Also correct. Finally you may think that a field of
parallel vectors has no spin. That is wrong. Example 5 has parallel vectors, but their
different lengths produce spin.
EXAMPLE 5 The field V D zi in the x direction has curl V D j in the y direction.
If you put a wheel in the xz plane, this field will turn it. The velocity zi at the top of
the wheel is greater than zi at the bottom (Figure 15.23c). So the top goes faster and
the wheel rotates. The axis of rotation is curl V D j. The turning speed is 21 , because
this curl has magnitude 1.

Another velocity field v D xk produces the same spin: curl v D j. The flow is in
the z direction, it varies in the x direction, and the spin is in the y direction. Also
interesting is V C v. The two “shear fields” add to a perfect spin field S D zi xk, 
whose curl is 2j.
15.6 Stokes’ Theorem and the Curl of F 675

THE MEANING OF CURL F

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.

¾ » »

15O .Stokes’ Theorem/ 


F dR D 
.curl F/ ndS: (6)
c s

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.

Fig. 15.24 Surfaces S and boundary curves C . Change in B Ñ curl E Ñ current in C .

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).

EXAMPLE 6 Stokes’ Theorem in electricity and magnetism yields Faraday’s Law.


Stokes’ Theorem is not heavily used for calculations—equation (8) shows why. But
the spin or curl or vorticity of a flow is absolutely basic in fluid mechanics. The other
important application, coming now, is to electric fields. Faraday’s Law is to Gauss’s
Law as Stokes’ Theorem is to the Divergence Theorem.
15.6 Stokes’ Theorem and the Curl of F 677

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:
¾

Faraday’s Law (integral form) W work D  


E d R D d'=dt:
C

That is physics. It may be true, it may be an approximation. Now comes mathematics


(surely true), which turns this integral form into a differential equation. Information
at points is more convenient than information around curves. Stokes converts the line
integral of E into the surface integral of curl E:
u rr rr
 
E d R D curl E ndS and also B'=Bt D .BB=Bt/  ndS:
C S S

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:

Now allow a three-dimensional field like F D 2xy i C .x 2 C z/j C yk. Does it do


B B
work around a space curve? Or is it a gradient field? That will require f = x D 2xy
B B B B
and f = y D x 2 C z and f = z D y . We have three equations for one function
f .x; y; z/. Normally they can’t be solved. When test D is passed (now it is the three-
dimensional test: curl F D 0) they can be solved. This example passes test D, and f
is x 2 y C yz .

15P F.x; y; z/ D M i C N j C P k is a conservative field if it has these properties:




A. The work F d R around every closed path in space is zero.

³Q
B. The work P F d R depends on P and Q, not on the path in space.
B B B B
C. F is a gradient field: M D f = x and N D f = y and P D f = z . B B
D. The components satisfy My D Nx ; Mz D Px , and Nz D Py (curl F is zero).
A field with one of these properties has them all. D is the quick test.

ñ ñ ñ ñ
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/
³

Bf =By D x 2 C z D x 2 C BC=By ñ C D yz plus any function c.z/


Bf =Bz D y D y C dc=dz ñ c.z/ can be zero.
678 15 Vector Calculus

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.

EXAMPLE 7  y/i C .x  z/j C .y  x/k the gradient of any f ?


Is F D .z
Test D says no. This F is a spin field a  R. Its curl is 2a D .2; 2; 2/, which is not
zero. A search for f is bound to fail, but we can try. To match B f =B x D z  y , we
must have f D zx  yx C C.y; z/. The y derivative is x C B C=B y: That never
matches N D x  z , so f can’t exist.

EXAMPLE 8 What choice of P makes F D yz 2 i C xz 2 j C P k conservative? Find


f.

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

BP =Bx D BM=Bz D 2yz and BP =By D BN=Bz D 2xz:


P D 2xyz passes all tests. To find f we can solve the three equations, or notice that
f D xyz 2 is successful. Its gradient is F.
A third method defines f .x; y; z/ as the work to reach .x; y; z/ from .0; 0; 0/.

The path doesn’t matter. For practice we integrate F d R D Mdx C Ndy C P dz along
the straight line .xt; yt; zt/:
» 1

f .x; y; z/ D .yt/.zt/2.x dt/ C .xt/.zt/2.y dt/ C 2.xt/.yt/.zt/.z dt/ D xyz 2 :


0

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.

In 11–14, compute curl F and find


cF dR by Stokes’ 31 F D yi  xj 32 F D R=2


F D aR  R/  R
Theorem.
33 34 F D .a
11 F D x 2 i C y 2 k; C D circle x 2 C z 2 D 1; y D 0.
35 The circle C in the plane x C y C z D 6 has
 R; C D circle x 2 C z 2 D 1; y D 0.
radius r and center


12 F D i at .1; 2; 3/. The field F is 3zj C 2yk. Compute F d R around C .
13 F D .i C j/  R; C D circle y 2 C z 2 D 1; x D 0. 36 S is the top half of the unit sphere and F D zi C xj C xyzk. Find
rr
14 F D .yi  xj/  .xi C yj/; C D circle x 2 C y 2 D 1; z D 0. 
curl F ndS.

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

50 Draw the field V D xk spinning a wheel in the xz plane. What


orem.
46 True or false: r  F is perpendicular to F. wheels would not spin?
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.
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.

You might also like