0% found this document useful (0 votes)
25 views

MAT 261 Rogawski Spring 2014

Uploaded by

Rm Ot
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

MAT 261 Rogawski Spring 2014

Uploaded by

Rm Ot
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 76

§11.

1—Parametric Equations
The equations x = x(t) and y = y(t) trace out a curve in the xy-plane as t varies. We often
think of the parameter t as time so that the equations represent the path of a particle moving along
the curve, and we frequently write the trajectory in the form

c(t) = (x(t), y(t)).

Any curve defined by a function y = f (x) can be expressed using the parametric equations x = t
and y = f (t), and we can sometimes reverse this process by eliminating the parameter t to recover
an equation in terms of x and y.

Example 1. Describe the curve traced out by the parametric equations x = 2t and y = 1 − 6t.

Example 2. Find parametric equations for the line of slope 2 passing through the point (3, 5).

Parametrizing a line. By generalizing the reasoning from Examples 1 and 2, we find that
the equations x = a + bt, y = c + dt parametrize a line of slope d/b passing through the point
(a, c). Conversely, a line of slope m passing through (x0 , y0 ) can be parametrized by x = x0 + t,
y = y0 + mt.
Example 3. Describe the curve traced out by the parametric equations

x = 3 cos t, y = 3 sin t (0 6 t 6 2π).

Example 4. Find parametric equations for the top half of the circle of radius 7 centered at the
point (5, 4).

Slopes of parametric curves. Locally, we can think of the equations x = x(t) and y = y(t)
as defining y implicitly as a function of x, which is in turn a function of t. Hence the Chain Rule
shows that dy/dt = (dy/dx)(dx/dt) and thus

dy dy/dt y ′ (t)
= = ′ ,
dx dx/dt x (t)
provided that x′ (t) ̸= 0.

Example 5. Find the slope of the tangent line to the curve c(t) = (t3 , sin 2t) at the point t = π.

2
§11.2—Arc Length and Speed
Suppose we want to compute the length of a curve in the plane. If we think of ds as the length
of a small piece of the curve, then we can use the Pythagorean Theorem to write

ds ≈ (dx)2 + (dy)2 .

If the curve is defined by parametric equations c(t) = (x(t), y(t)), and is traversed exactly once as
t increases from a to b, then we have dx = x′ (t)dt and dy = y ′ (t)dt, so the length is
∫ b√
s= x′ (t)2 + y ′ (t)2 dt.
a

Example 1. Use the arc length formula to find the circumference of a circle of radius R.

Speed. The speed of a particle moving along a curve is given by the derivative of the distance
traveled (which is the arc length). Hence by the Fundamental Theorem of Calculus, we find that
the speed of the particle with trajectory c(t) = (x(t), y(t)) is

ds √ ′ 2
= x (t) + y ′ (t)2 .
dt
Note that this is just the length of the velocity vector v(t) = ⟨x′ (t), y ′ (t)⟩.

Example 2. Find the speed of a particle with trajectory c(t) = (e3t , t2 + 4t + 1) when t = 0.

3
Surface Area. We can find the surface area of revolution for a curve with parametric equations
by using a formula similar to the arc length integral. The adjustment is that we multiply the arc
length element ds by 2πr, where r is the distance from the curve to the axis of revolution, to get the
surface area of a thin band. Hence if the curve c(t) = (x(t), y(t)) on the interval [a, b] is revolved
about the x-axis, the area of the resulting surface is
∫ b √
S= 2πy(t) x′ (t)2 + y ′ (t)2 dt.
a

Example 3. A cycloid representing the trajectory of a point on the circumference of a rolling


unit circle has parametric equations

c(t) = (t − sin t, 1 − cos t).

Find the area of the surface generated by revolving one arch of this cycloid about the x-axis.

4
§11.3—Polar Coordinates
Fix an origin O and an initial ray from O. A point P can be represented by the polar coordinates
(r, θ), where r is the distance from O to P and θ is the angle from the initial ray to the ray OP .

If we choose the origin O to be the point (0, 0) in the xy-plane and the initial ray to be the
positive x-axis, then we can convert between polar and rectangular coordinates as follows:
y
x = r cos θ, y = r sin θ, r 2 = x2 + y 2 , tan θ =.
x
It is sometimes useful to allow negative values of r, and we define (−r, θ) to be the reflection of
(r, θ) through the origin. For example, (2, 7π/6) and (−2, π/6) represent the same point.

Example 1. Convert the point (r, θ) = (4, π/3) to rectangular coordinates.

Example 2. Find three different polar coordinate representations of the point (x, y) = (−1, 1).

Example 3. Describe the curves represented by the following polar equations.


π
(a) r = 3 (b) θ =
6

5
Example 4. Find a polar equation for the circle x2 + (y − 2)2 = 4.

4
Example 5. Find a Cartesian equation for the curve r = .
3 cos θ − sin θ

Graphing in Polar Coordinates. Notice that a polar curve r = f (θ) can be viewed in
terms of the parametric equations x = f (θ) cos θ and y = f (θ) sin θ. Hence the slope is given
by dy/dx = y ′ (θ)/x′ (θ), and this observation can be useful in curve-sketching. For our purposes,
however, it usually suffices to plot a selection of well-chosen points. Most graphing calculators also
have a polar mode that can be used to visualize such curves.

Example 6. Sketch the graph of the polar curve r = 1 − cos θ.

6
§12.1—Vectors in the Plane
A vector lying in the xy-plane is determined by an initial point P = (a1 , b1 ) and a terminal point
−→
Q = (a2 , b2 ). The horizontal and vertical components of the vector P Q are a2 − a1 and b2 − b1 , and
−→
we write P Q = ⟨a2 − a1 , b2 − b1 ⟩.

We view this as equivalent to a vector whose initial point is the origin and whose terminal
point is (a2 − a1 , b2 − b1 ). Vector addition is performed by adding component-wise, and scalar
multiplication is performed by multiplying each component by the given scalar.

Example 1. Given that u = ⟨4, 3⟩ and v = ⟨2, −1⟩, calculate each of the following.
(a) u + v

(b) 2u − 3v

We say that u is a linear combination of v and w if we can write u = sv + tw for some real
numbers (scalars) s and t. The vectors i = ⟨1, 0⟩ and j = ⟨0, 1⟩ are known as the standard basis
vectors in R2 , and every vector can be expressed as a linear combination of i and j as follows:

v = ⟨v1 , v2 ⟩ = v1 i + v2 j.

Example 2. Express u = ⟨5, 7⟩ as a linear combination of v = ⟨2, 1⟩ and w = ⟨1, −1⟩.

7

The length (or magnitude) of v is given by ∥v∥ = v12 + v22 , and a vector with length 1 is called
v
a unit vector. We sometimes write ev = for the unit vector in the direction of v.
∥v∥
Example 3. Find a unit vector in the direction of v = ⟨3, −2⟩.

§12.2—Vectors in Three Dimensions


Coordinates and distance in three-space. We label the coordinate axes in R3 to satisfy
the right-hand rule: if you curl the fingers of your right hand from the positive x-axis towards
the positive y-axis, your thumb should point along the positive z-axis. The distance between
P = (x1 , y1 , z1 ) and Q = (x2 , y2 , z2 ) is

|P − Q| = (x2 − x1 )2 + (y2 − y1 )2 + (z2 − z1 )2 .

Example 1. Describe the points in R3 defined by the following equations.


(a) (x − 1)2 + y 2 + (z + 3)2 = 25

(b) (x + 2)2 + (y − 1)2 = 9

A vector in three dimensions can be expressed as

v = ⟨v1 , v2 , v3 ⟩ = v1 i + v2 j + v3 k,

where i = ⟨1, 0, 0⟩, j = ⟨0, 1, 0⟩, and√


k = ⟨0, 0, 1⟩ are the standard basis vectors for R3 . The
magnitude of v is now given by ∥v∥ = v12 + v22 + v32 , and vector addition and scalar multiplication
are again defined componentwise by

u + v = ⟨u1 + v1 , u2 + v2 , u3 + v3 ⟩ and λv = ⟨λv1 , λv2 , λv3 ⟩.

Example 2. Calculate 2⟨3, 4, −1⟩ + 3⟨1, 0, 5⟩.

8
Example 3. Given the points P = (1, 2, 0) and Q = (−3, 0, 5), find a unit vector in the direction
−→
of v = P Q.

Equation of a line in space. If a line passes through (x0 , y0 , z0 ) and v = ai + bj + ck is any


vector parallel to the line, then

r(t) = ⟨x0 , y0 , z0 ⟩ + t⟨a, b, c⟩

is a vector from the origin to an arbitrary point on the line. In other words, the line has parametric
equations
x = x0 + at, y = y0 + bt, z = z0 + ct.

Example 4. Find parametric equations for the line through the points P = (1, 2, 0) and
Q = (3, 1, −4).

Example 5. Find the point of intersection (if one exists) of the lines r1 (t) = ⟨2, 1, 1⟩+t⟨−4, 0, 1⟩
and r2 (s) = ⟨−4, 1, 5⟩ + s⟨2, 1 − 2⟩.

9
§12.3—The Dot Product
The dot product (or scalar product) of the vectors u = ⟨u1 , u2 , u3 ⟩ and v = ⟨v1 , v2 , v3 ⟩ is defined
by the formula
u · v = u1 v 1 + u 2 v 2 + u3 v 3 .
Example 1. Compute u · v, where u = ⟨1, 2, 3⟩ and v = ⟨−5, 4, 2⟩.

Note that the dot product of two vectors is a scalar, not a vector! The dot product is obviously
commutative: u·v = v·u, and it is easy to check that it distributes over vector addition: u·(v+w) =
u · v + u · w. It is also useful to observe that v · v = ∥v∥2 .
It turns out that the dot product also may be computed using the formula

u · v = ∥u∥∥v∥ cos θ,

where θ is the angle between the two vectors. When vectors are given in component form, we
typically use the first formula to compute the dot product and then use the second to find the angle
between the vectors. Note that two nonzero vectors are orthogonal (or perpendicular) if and only
if their dot product is zero.

Example 2. Find the angle between the vectors u = 2i − 2j + k and v = 3i + 4k.

Example 3. Find a unit vector orthogonal to 5i − 3j + k.

10
Work. If a force vector F is applied to move an object along the displacement vector d, then
the work done is F · d, since ∥F∥ cos θ is the component of the force in the direction of motion.

Example 4. A force F = 3i + 2j is exerted to move an object up a ramp along the displacement


vector d = 5i + j. Find the work done on the object.

Projections. In the above instance, the quantity ∥F∥ cos θ is called the scalar component of F
in the direction of d. In general, the component of u in the direction of v is given by
u·v
∥u∥ cos θ = = u · ev .
∥v∥

§12.4—The Cross Product


The cross product (or vector product) of the vectors u and v is defined by

u × v = (∥u∥∥v∥ sin θ)n,

where θ is the angle between u and v and where n is the unit vector perpendicular to the plane
determined by u and v whose direction is given by the right-hand rule. Note that the cross product
of two vectors is a vector, whereas the dot product of two vectors is a scalar. Also note that two
nonzero vectors are parallel if and only if their cross product is the zero vector.

Torque. If we turn a bolt by applying a force F to a wrench with lever arm r, we produce a
torque vector given by r × F. Note that the magnitude of the torque is the length of the lever arm
times the component of force in the perpendicular direction, ∥F∥ sin θ.

Properties. Unlike the dot product, the cross product is not commutative. In fact,

v × u = −(u × v).

However, the cross product (like the dot product) does distribute over addition:

u × (v + w) = (u × v) + (u × w) and (v + w) × u = (v × u) + (w × u),

we can factor out scalars: (ru) × (sv) = rs(u × v). These properties, together with observations
about cross products of the standard basis vectors (i × j = k, i × i = 0, etc.) lead to the component
formula for cross product given on the next page. A similar method can be used to establish the
component formula for dot product.

11
The component formula. If u = u1 i + u2 j + u3 k and v = v1 i + v2 j + v3 k, then

i j k
u 2 u3 u1 u3 u 1 u2
u×v = u1 u 2 u3 = i− j+ k,
v2 v3 v1 v3 v1 v2
v1 v2 v3

a b
where the 2 × 2 determinants are given by the formula = ad − bc.
c d
Example 1. Given u = i + j + 2k and v = 2i + 3j − k, calculate the cross product u × v.

A very useful property of the cross product is that it produces a vector perpendicular to the
plane of the two given vectors.

Example 2. Find a vector perpendicular to the plane determined by the points P (1, 1, 1),
Q(2, 1, 3), and R(3, −1, 1).

Area. The area of the parallelogram determined by u and v is

∥u × v∥ = ∥u∥∥v∥ sin θ.

Example 3. Find the area of the triangle with vertices P (−2, 2, 0), Q(0, 1, −1), and R(−1, 2, −2).

12
Triple scalar product and volume. The volume of the parallelepiped determined by u, v,
and w is the absolute value of the expression

u1 u 2 u3
∥u × v∥∥w∥ cos θ = (u × v) · w = v1 v2 v3 = u · (v × w),
w1 w2 w3

where θ is the angle between w and u × v.

Example 4. Find the volume of the parallelepiped determined by the vectors u = i + j − 2k,
v = −i − k and w = 2i + 4j − 2k.

§12.5—Planes in Three-Space
Equation of a plane. Suppose that a plane contains the point P0 (x0 , y0 , z0 ) and that the
vector n = Ai + Bj + Ck is normal (perpendicular) to the plane. Then if P (x, y, z) is an arbitrary
point in the plane and v is the vector from P0 to P , we must have

n · v = A(x − x0 ) + B(y − y0 ) + C(z − z0 ) = 0.

Example 1. Find the equation of the plane through the point (2, 1, −3) normal to the vector
i − 4j + 2k.

13
Example 2. Find parametric equations for the line through the point (2, 4, 5) perpendicular to
the plane 3x + 7y − 5z = 21.

Example 3. Find the equation of the plane through P (2, 4, 5), Q(1, 5, 7), and R(−1, 6, 8).

Example 4. Find the angle between the planes 5x + y − z = 10 and x − 2y + 3z = −1.

Example 5. Find the point in which the line x = −1 + 3t, y = −2, z = 5t intersects the plane
2x − 3z = 7.

14
Example 6. Find parametric equations for the line of intersection of the planes x + y + z = 1
and x + 2y + 3z = 1.

§12.7—Cylindrical and Spherical Coordinates


Cylindrical coordinates. If we express x and y in polar coordinates and leave z unchanged,
the coordinates (r, θ, z) are called cylindrical coordinates. The equations for converting between
Cartesian and cylindrical coordinates (r, θ, z) are therefore the same as those in §11.3:
x = r cos θ, y = r sin θ, z = z,
y
r 2 = x2 + y 2 , tan θ = .
x
Example 1. Find an equation in cylindrical coordinates of the form z = f (r, θ) for the hemi-
sphere defined by x2 + y 2 + z 2 = 1 and z > 0.

Example 2. Find an equation for the cone z = r in rectangular coordinates.

15
Spherical coordinates. For certain problems, it may be more convenient to represent a point
P using the spherical coordinates (ρ, θ, ϕ), where ρ is the distance from P to the origin, θ is the
−→
same as in cylindrical coordinates, and ϕ is the angle OP makes with the positive z-axis. Note that
ρ > 0 and 0 6 ϕ 6 π. We can relate to cylindrical coordinates using the equations

r = ρ sin ϕ, z = ρ cos ϕ, ρ = r2 + z 2

and hence to Cartesian coordinates via

x = ρ sin ϕ cos θ, y = ρ sin ϕ sin θ, z = ρ cos ϕ,


ρ= x2 + y 2 + z 2 .

Example 3. Convert the point (3, π/6, π/4) from spherical to rectangular coordinates.


Example 4. Convert the point ( 3, 0, 1) from rectangular to spherical coordinates.

Example 5. Describe the set of points represented by each spherical coordinate equation below.
(a) ρ = 2 (b) ϕ = π/3

16
§13.1—Vector-Valued Functions
A vector function of a single variable has the form

r(t) = x(t)i + y(t)j + z(t)k = ⟨x(t), y(t), z(t)⟩.

As t runs over a subset of the real numbers, the vectors r(t) trace out a curve in R3 . We call r(t) a
vector parametrization of this path, and the equations x = x(t), y = y(t), z = z(t) are parametric
equations. Notice that the case where z(t) = 0 reduces to curves in R2 , as studied in §11.1. In
§12.5, we saw that when x(t), y(t), and z(t) are linear functions of t the curve traced out is a line.

Example 1. Find a vector parametrization of the line passing through (1, 0, 4) and (4, 1, 2).

Example 2. Find a vector parametrization of the circle with radius 3 and center (2, 1, 5) lying
in a plane parallel to the yz-plane.

Example 3. Sketch the curve traced out by the function r(t) = ⟨cos t, sin t, t⟩ (0 6 t 6 4π).

1 √
Example 4. Find the domain of the function r(t) = i + e−3t j + t + 3 k.
t+1

17
§13.2—Calculus of Vector-Valued Functions
Familiar concepts from calculus like limits, continuity, derivatives, antiderivatives, and definite
integrals extend to vector-valued functions by applying the ordinary definitions componentwise.
Many of the usual rules extend in a natural way to this setting.

1
Example 1. Consider the vector-valued function r(t) = i + e−3t j + (sin 2t)k.
t+1
(a) Evaluate lim r(t).
t→0

(b) Compute r′ (t).

∫ 1
(c) Evaluate r(t) dt.
0

By recalling the definition of the derivative,

r(t + h) − r(t)
r′ (t) = lim ,
h→0 h
and the geometric interpretation of vector addition, we find that r′ (t) is always tangent to the curve
r(t). The vector r′ (t)/∥r′ (t)∥ is called the unit tangent vector.

Example 2. Find the unit tangent vector at t = 0 for the curve in Example 1.

18
Example 3. Find parametric equations for the tangent line to the helix defined by r(t) =
⟨cos t, sin t, t⟩ at the point (−1, 0, π).

Example 4. Verify that the product rule


d( )
r1 (t) · r2 (t) = r1 (t) · r′2 (t) + r′1 (t) · r2 (t)
dt
holds for the functions r1 (t) = t3 i + 2tj − 3k and r2 (t) = t−1 i + t2 j + tk.

Given information about a particle’s velocity vector and initial position, we can use integration
to find its position function.

Example 5. Solve the initial-value problem


dr 1
= (t3 + 4t)i + j + 2t2 k, r(1) = i + j.
dt 1 + t2

19
§13.3—Arc Length and Speed

The formulas we learned for arc length and speed in §11.2 generalize in the obvious way to
curves in three dimensions. If r(t) = x(t)i + y(t)j + z(t)k, then the speed is given by

∥r′ (t)∥ = x′ (t)2 + y ′ (t)2 + z ′ (t)2 ,

and the arc length from t = a to t = b is given by


∫ b
s= ∥r′ (t)∥ dt.
a

Example 1. Find the length of the curve defined by r(t) = ⟨2t2 + 1, 2t2 − 1, t3 ⟩ (0 6 t 6 4).

Example 2. A particle moves in space according to the position vector

r(t) = (2 cos πt)i + (4e−t )j − (t2 ln t)k.

(a) Find the particle’s speed at t = 1

(b) Find a unit vector that gives the direction of motion at t = 1.

20
§14.1—Functions of Two or More Variables
Many quantities of interest depend on more than just one variable. For instance, a location’s
temperature or elevation depends on both latitude and longitude. Functions of two variables, say
z = f (x, y), can be graphed as surfaces in three-space by plotting the output on the z-axis.

Example 1. Let f (x, y) = 9 − x2 − y 2 .
(a) Evaluate f (1, −2).

(b) Find the domain and range of f .

(c) Describe the curve defined by f (x, y) = 2.

The set of points where a function f (x, y) has a constant value, as considered in (c) above, is
called a level curve.

Example 2. Sketch the level curve of the function f (x, y) = x2 + y that passes through the
point (2, 3).

When f (x, y, z) is a function of three variables, its graph lies in four-dimensional space, so we
can’t draw the graph. However, the set of points where f takes a constant value, say f (x, y, z) = c,
can be graphed in 3-dimensional space. These level surfaces provide a way of depicting some
properties of the function.
Example 3. Describe the level surfaces of the function f (x, y, z) = x2 + y 2 + z 2 .

21
By plotting several level curves of a function, we can create a contour map similar to those
used in weather reports and hiking elevation guides. The following specific examples are useful to
keep in mind:

• Lines of constant temperature (isotherms) on a weather map are level curves of the tempera-
ture function T (x, y).

• Lines of constant pressure (isobars) on a weather map are level curves of the barometric
pressure function P (x, y).

• Lines of constant elevation on a hiking map are level curves of the function H(x, y) that
measures height above sea level.

Rates of Change. Understanding how a function f (x, y) changes as we perturb the input
(x, y) requires more care than in the one-variable case, because there are infinitely many directions
to consider. Contour maps provide a visual illustration of the fact that the rate of change at a
particular point depends on the direction one intends to move. Contour lines that are very close
together indicate places where the graph is very steep (that is, where the rate of change in the
direction perpendicular to the initial contour is large). Contour lines that are far apart indicate a
direction in which the function changes more gradually.

Example 4. Consider the function f (x, y) = x2 + 2y 2 .

(a) Find the average rate of change of f with respect to x from (1, 1) to (3, 1).

(b) Find the average rate of change of f with respect to y from (1, 1) to (1, 3).

By graphing the level curve f (x, y) = c in three dimensions in the plane z = c, we obtain a
horizontal trace of the function. Similarly, the curves obtained by intersecting with planes x = a
or y = b are called vertical traces. These traces can be of assistance in sketching the surface or
visualizing rates of change along the x or y axis.

Example 5. Describe the vertical and horizontal traces of the function f (x, y) = x2 + y

22
§14.2—Limits and Continuity in Several Variables
Limits for functions of two variables are defined in much the same way as the one variable
case and have many of the same properties (see Theorem 1 on page 788, for example). The main
difference is that in one variable we only have to approach the same value from the right and the
left, whereas in two variables there are infinitely many directions to check.

Example 1. Evaluate each of the following limits.


x2 + xy + 1
(a) lim
(x,y)→(2,1) 3xy 2 + 4

x4 − y 4
(b) lim
(x,y)→(0,0) x2 + y 2

Just as in the single variable case, we say that a function of two variables is continuous at a
point if the function is defined there, the limit exists, and the limit equals the function value. Limits
of continuous functions can therefore be evaluated by direct substitution, as in Example 1a. Note
that the function considered in Example 1b is undefined at (0, 0) and hence is not continuous there.

Example 2. Show that each function below has no limit as (x, y) → (0, 0).
x4
(a) f (x, y) =
x4 + y 2

23
xy
(b) f (x, y) =
x2 + 3y 2

The Two-Path Test. The results of Example 2 illustrate a general principle: if we can find
two different paths approaching the point (a, b), along which a function f (x, y) has two different
limits, then the limit of f as (x, y) → (a, b) does not exist. To show that a limit does exist, however,
it does not suffice to produce the same result on two different paths. Here we need a more general
argument that applies to all possible paths, as the following example illustrates.

5xy 2
Example 3. Show that lim = 0.
(x,y)→(0,0) x2 + y 2

24
§14.3—Partial Derivatives
We compute the partial derivatives of a function f (x, y) by holding one variable constant and
applying the usual definition with respect to the remaining variable. For example, the notation
∂f /∂x or fx represents the derivative of f with respect to x, while treating y as a constant:

f (a + h, b) − f (a, b)
fx (a, b) = lim .
h→0 h
We may interpret fx (a, b) as the instantaneous rate of change of f at (a, b) in the direction i.
Geometrically, it gives the slope of the tangent line to the vertical trace of the surface z = f (x, y)
in the plane y = b at the point where x = a. A similar definition and interpretation applies to
the partial derivatives with respect to y and for functions of more than two variables. All of the
familiar differentiation rules hold for the computation of partial derivatives.

Example 1. Calculate fx (3, 2) and fy (3, 2) for the function

f (x, y) = 5xy − 7x2 − y 2 + 3x − 6y + 2.

Example 2. The ideal gas law states that P V = nRT , where P , V , and T are pressure, volume,
and temperature, and where n and R are constants. Compute ∂P/∂T and ∂P/∂V .

Example 3. Calculate ∂f /∂x and ∂f /∂y for the function f (x, y) = e−y sin(3x + 2y).

25
Example 4. Calculate the partial derivatives fx , fy , and fz for the function f (x, y, z) = xy cos z .
In which of the directions i, j, or k is f changing most rapidly at the point (3, 2, 0)?

Higher Derivatives. As with ordinary differentiation, we can apply partial differentiation


∂ 2f
repeatedly. For instance, the notation or fxx means the second partial derivative of f with
∂x2
∂2f
respect to x, whereas or fxy differentiates first with respect to x and then with respect to y.
∂y∂x

Example 5. Find all the second-order partial derivatives (fxx , fxy , fyx , and fyy ) of the function

f (x, y) = y + x2 y + 4y 3 − ln(y 2 + 1).

The Mixed Derivative Theorem. The fact that fxy = fyx in Example 5 is not a coinci-
dence. This is true whenever fxy and fyx are continuous, and a similar result holds for higher-order
derivatives. We can sometimes take advantage of this fact to compute mixed partials very efficiently.

x3 sin(exz )
Example 6. Compute fxyz for the function f (x, y, z) = √ + x2 y 3 z 5 + y arctan z.
z2 + 1

26
§14.4—Differentiability and Tangent Planes
Recall from MAT 161 that the linearization of a function f (x) at x = a is given by
L(x) = f (a) + f ′ (a)(x − a).
The graph of y = L(x) is of course just the tangent line to the curve y = f (x) at the point x = a.
We generalize this concept by defining the linearization of f (x, y) at (a, b) to be
L(x, y) = f (a, b) + fx (a, b)(x − a) + fy (a, b)(y − b).
Here the graph of z = L(x, y) is the tangent plane to the surface z = f (x, y) at the point
(x, y) = (a, b). Notice that substituting x = a or y = b reduces this to the tangent line of a vertical
trace of the surface. Hence the tangent plane is determined by requiring that it contain the tangent
lines to both vertical trace curves.

Example 1. Find the equation for the tangent plane to the surface f (x, y) = x2 + y 3 at the
point (3, 2).

Example 2. Find the linearization to the function f (x, y) = x5 y 2 at the point (1, 2), and use
it to estimate (1.01)5 (2.02)2 .

Differentiability. Roughly speaking, we say that f is differentiable at (a, b) if the linearization


f (x, y) provides a “good” approximation to f (x, y) near (a, b). A sufficient condition for differen-
tiability is that fx and fy exist and are continuous on some open disk. See page 806 for the precise
statements. When estimating change for a differentiable function f , it is often convenient to write
∆f = f (x, y) − f (a, b). Then the approximation f (x, y) ≈ L(x, y) allows us to write
∆f ≈ fx (a, b)∆x + fy (a, b)∆y.

27
Example 3. Body Mass Index (BMI) is defined by the equation I = W/H 2 , where W represents
body weight (in kilograms) and H represents height (in meters). Suppose a boy is currently 1.3
meters tall and weighs 40 kg. If he gains 5 kg, approximately how much taller would he have to get
in order to keep his BMI the same?

Analogous formulas apply for functions of three or more variables; for instance,

L(x, y, z) = f (a, b, c) + fx (a, b, c)(x − a) + fy (a, b, c)(y − b) + fz (a, b, c)(z − c)

is the linearization of a function f (x, y, z) at the point (a, b, c), and we get the corresponding
approximate change formula

∆f ≈ fx (a, b, c)∆x + fy (a, b, c)∆y + fz (a, b, c)∆z.

Example 4. Find the linearization of the function f (x, y, z) = xz 3 ln y at the point (5, e, 2).

28
§14.5—The Gradient and Directional Derivatives
The gradient vector of the function f (x, y, z) is defined by
∂f ∂f ∂f
∇f = i+ j+ k.
∂x ∂y ∂z
Note that for a function f (x, y) of only two variables the k component vanishes. We frequently
write ∇fP to stand for the particular vector obtained by evaluating the gradient at the point P .

Example 1. Compute the gradient vector of each function at the indicated point.
(a) f (x, y) = x/y P = (2, 3)


(b) f (x, y, z) = x3 y z P = (2, 3, 4)

Directional derivatives. The gradient vector is important because it encodes information


about the rates of change of the function f (x, y, z). In particular, the directional derivative of
f along the unit vector u, written Du f , is the rate of change of f with respect to distance along a
line c(t) parallel to u. Such a line has parametric equations of the shape

x = x0 + tu1 , y = y0 + tu2 , z = z0 + tu3 ,

so a natural generalization of the Chain Rule gives


∂f ∂f ∂f
Du f = ∇f · c′ (t) = ∇f · u = u1 + u2 + u3 .
∂x ∂y ∂z
Notice that the derivatives in the directions i, j, and k are just the respective partial derivatives,
as we observed in §14.3.

Important: Although the definition of Du f makes sense for any non-zero vector u, the concept
of directional derivative requires that u be a unit vector.

29
Example 2. Find the directional derivative of the function f (x, y) = 2x2 + y 2 at the point
(−1, 1) in the direction of the vector v = 3i − 4j.

Example 3. Find the directional derivative of the function f (x, y, z) = cos xy + eyz + ln zx at
the point (1, 0, 21 ) in the direction of the vector v = i + 2j + 2k.

Notice that a function increases most rapidly in the direction of the gradient vector and decreases
most rapidly in the direction opposite the gradient. Similarly, the function experiences zero change
in any direction orthogonal to the gradient. In other words, the gradient at a point is orthogonal
to the level curve or surface through that point.

Example 4. Consider the function f (x, y) = x2 + y 2 . Determine the directions in which f


increases/decreases most rapidly at the point (1, 2) and the directions of zero change at this point.

30
Recall from last time that the directional derivative of f in the direction u is given by
Du f = ∇f · u = ∥∇f ∥ cos θ,
where u is a unit vector and θ is the angle between ∇f and u. As a consequence, f increases most
rapidly in the direction of ∇f , and the value of the derivative in this direction is ∥∇f ∥. Similarly,
f decreases most rapidly in the direction −∇f , and has zero derivative in any direction orthogonal
to ∇f .

Example 5. Consider the function f (x, y, z) = x/y − yz.


(a) Find the direction in which f increases most rapidly at the point (4, 1, 1), and find the
derivative in that direction.

(b) In what directions from the point (4, 1, 1) does f experience zero change?

Tangent planes to level surfaces. The reasoning of Example 5b may be generalized as


follows. Since a direction of zero change for the function f (x, y, z) must be orthogonal to the
gradient vector ∇f , every curve on the level surface f (x, y, z) = k passing through the point P
has its tangent (or velocity) vector orthogonal to ∇fP . We therefore call the plane through P with
normal vector ∇fP the tangent plane to the surface f (x, y, z) = k at the point P = (a, b, c). Since
∇fP = fx (a, b, c)i + fy (a, b, c)j + fz (a, b, c)k,
we know from §12.5 that the equation of the tangent plane is
fx (a, b, c)(x − a) + fy (a, b, c)(y − b) + fz (a, b, c)(z − c) = 0.
The special case of a surface z = g(x, y) is handled by viewing it as the level surface f (x, y, z) =
g(x, y) − z = 0, so that the same equation applies with fx = gx , fy = gy , and fz = −1, and we
recover the results presented in §14.4.

31
Example 6. Find the equation of the tangent plane to the surface x2 + y − z 3 = 21 at the point
(5, 4, 2).

The Chain Rule for Paths. If we have parametric equations for x, y, and z as functions of t, it
is natural to compute the rate of change of f with respect to t along the path c(t) = (x(t), y(t), z(t)).
For this, we have the following version of the chain rule:
d ∂f dx ∂f dy ∂f dz
f (c(t)) = ∇fc(t) · c′ (t) = + + .
dt ∂x dt ∂y dt ∂z dt

Notice that in the special case where c(t) = (x0 + u1 t, y0 + u2 t, z0 + u3 t) is a line, we have c′ (t) =
(u1 , u2 , u3 ), and hence the formula reduces to the one for directional derivatives:

Du f (x0 , y0 , z0 ) = ∇f(x0 ,y0 ,z0 ) · u.

Example 7. A bug walks along the elliptical helix c(t) = (2 cos t, 3 sin t, 4t) carrying a tiny
thermometer. If the temperature at (x, y, z) is given by T (x, y, z) = xy 2 + z 3 , how fast is the
temperature changing at t = π/2?

32
§14.6—The Chain Rule
Suppose that f (x1 , . . . , xn ) is a differentiable function of n variables, which are each in turn
differentiable functions of m variables t1 , . . . , tm . Then for k = 1, . . . , m, the derivative of f with
respect to t = tk may be computed using the formula
∂f ∂f ∂x1 ∂f ∂xm
= + ··· + .
∂t ∂x1 ∂t ∂xm ∂t
This follows from a natural extension of the Chain Rule for Paths discussed in §14.5 by holding all
independent variables but t fixed to define a path c(t) = (x1 (t), . . . , xm (t)). This formula can once
again be viewed as a dot product:
∂f ∂x
= ∇fx(t) · .
∂t ∂t
Note that if all but one of the variables xi are independent of t then this reduces to the ordinary
chain rule from single-variable calculus: dtd [f (x(t))] = f ′ (x(t))x′ (t).

Example 1. Draw a tree diagram and write down the Chain Rule for computing ∂w/∂r if
w = f (x, y, z, v), x = g(r, s), y = h(r, s), z = j(r, s), and v = k(r, s).

Example 2. Consider the function f (x, y) = y sin x, where x = u2 + v 2 and y = uv 3 .


∂f
(a) Use the Chain Rule to compute .
∂v

(b) Verify the result of part (a) by first expressing f as a function of u and v and then differen-
tiating.

33

Example 3. Consider the function w = y + x tan−1 z, where x = er + t ln s, y = 3rs + t, and
z = 5s − 2t. Evaluate ∂w/∂s at the point (r, s, t) = (0, 1, 2).

Example 4. Consider the function w = xy 2 + ye3z , where x = r + 4s, y = 2r − s, and z = rs.


Evaluate ∂w/∂r and ∂w/∂s at the point (r, s) = (1, 0).

Implicit Differentiation. We may view the level surface F (x, y, z) = 0 as implicitly defining
a function z = f (x, y), at least locally near a particular point. The chain rule then shows that we
can find ∂z/∂x or ∂z/∂y by differentiating both sides with respect to the variable in question and
then solving algebraically for the desired partial derivative.
∂z
Example 5. Find the value of at the point (1, 0, 3) if the equation
∂x
xz + y ln z − z 2 + 6 = 0

defines z implicitly as a function of x and y.

34
§14.7—Optimization in Several Variables
A critical point (a, b) of a function f (x, y) is a point where fx (a, b) = fy (a, b) = 0 or where
at least one of fx (a, b) and fy (a, b) fails to exist. Critical points are the only possible places where
local extrema can occur.

Second Derivative Test. Suppose that fx (a, b) = fy (a, b) = 0 and that fxx , fyy , and fxy are
continuous near (a, b), and let

fxx fxy
D= = fxx fyy − fxy
2
.
fyx fyy

(i) If fxx (a, b) > 0 and D(a, b) > 0 then f has a local minimum at (a, b).
(ii) If fxx (a, b) < 0 and D(a, b) > 0 then f has a local maximum at (a, b).
(iii) If D(a, b) < 0 then f has a saddle point at (a, b).
(iv) If D(a, b) = 0 then the test is inconclusive.

The proof of this test is difficult, but the examples f (x, y) = x2 + y 2 and f (x, y) = x2 − y 2 , in
which fxy = 0, provide some useful insight for the simplest cases.

Example 1. Find the location of all local maxima, local minima, and saddle points.
(a) f (x, y) = x2 + 3xy + 3y 2 − 6x + 3y − 6

(b) f (x, y) = x2 − 4xy + y 2 + 6y + 2.

35
Example 2. Find the location of all local maxima, local minima, and saddle points of the
function f (x, y) = x3 − 3xy + y 3 .

Global extrema. A continuous function on a closed, bounded domain always attains an


absolute maximum and an absolute minimum value. These can only occur at critical points or
boundary points, so we just find all candidates and compare the function values.

Example 3. Find the global maximum and minimum values of the function f (x, y) = x3 −
3xy + y 3 on the domain 0 6 x 6 2, 0 6 y 6 3, and state where these values occur.

36
§14.8—Lagrange Multipliers: Optimizing with a Constraint
Suppose that the function f (x, y) has a local maximum or minimum value at a point P on the
curve g(x, y) = 0. If this constraint curve is parametrized by c(t) = ⟨x(t), y(t)⟩, then the Chain
Rule gives
df ∂f dx ∂f dy
= + = ∇f · c′ (t).
dt ∂x dt ∂y dt

At a critical point, the above expression is zero, so ∇f must be perpendicular to the curve’s tangent
vector at P . But we know from §14.5 that ∇g is also perpendicular to this level curve, so we deduce
that ∇f and ∇g are parallel. Thus for some real number λ we have

∇f = λ∇g.

Similar arguments apply to functions of three variables, and in that case one can in fact enforce
more than one constraint (see Example 4 in the text).

Example 1. Find the extreme values of f (x, y) = x2 y lying on the ellipse x2 + 2y 2 = 6.

37
Example 2. Find the points on the sphere x2 + y 2 + z 2 = 25 where the function f (x, y, z) =
x + 2y + 3z has its maximum and minimum values.

Example 3. If x, y, and z are positive real numbers satisfying x + y + z 2 = 16, what is the
largest product the numbers can have?

38
§15.1—Integration in Several Variables
Suppose we want to calculate the volume of a solid whose base is a given region in the xy-plane
and whose upper boundary is some surface z = f (x, y). One approximation strategy is to divide
the base into many small rectangles, estimate the height using a sample point in each rectangle,
and add up the volumes of the resulting boxes.

Example 1. Estimate the volume of the solid whose base is the rectangle

R = [0, 1] × [0, 2] = {(x, y) : 0 6 x 6 1, 0 6 y 6 2}

and whose upper boundary is the paraboloid z = 9 − x2 − y 2 . Divide R into 8 squares of side length
1/2, and take the sample points to be
(a) the lower left vertices of the squares

(b) the midpoints of the squares

In general, if R = [a, b] × [c, d], then we can divide R into N M rectangles of area ∆A = ∆x∆y,
where ∆x = (b − a)/N and ∆y = (d − c)/M . If Pij = (xi , yj ) are the sample points, then the volume
of the solid with base R and upper boundary z = f (x, y) is approximated by a double Riemann
sum:
∑ N ∑M ∑N ∑ M
V ≈ SN,M = f (Pij )∆A = f (xi , yj )∆x∆y.
i=1 j=1 i=1 j=1

If f is continuous, we can now get the exact volume by taking the limit as M, N → ∞, and this
gives rise to a double integral: ∫∫
V = f (x, y) dA.
R
In cases where f (x, y) takes on both positive and negative values, this integral may be interpreted
as “signed” volume. Double integrals can commonly be evaluated by converting them to iterated
integrals, which reflect the decomposition of the solid into cross sections parallel to the x or y-axis.
This process is illustrated in the next example.

39
Example
∫ ∫ 2. Find the exact volume of the solid from Example 1 by evaluating the double
integral (9 − x2 − y 2 ) dA, where R = [0, 1] × [0, 2].
R

Fubini’s Theorem.
∫∫ The results of Example 2 may be generalized as follows: If f (x, y) is
continuous, then R f (x, y) dA can be evaluated by first integrating with respect to y along cross-
sections of R parallel to the y-axis and then integrating with respect to x. Alternatively, one can
first integrate with respect to x along cross-sections of R parallel to the x-axis and then integrate
with respect to y. That is, if R = [a, b] × [c, d] and f is continuous on R, then
∫∫ ∫ b (∫ d ) ∫ d (∫ b )
f (x, y) dA = f (x, y) dy dx = f (x, y) dx dy.
R a c c a

∫∫
Example 3. Evaluate cos(2x + y) dA, where R = [0, π/4] × [0, π/3].
R

40
We can sometimes apply Fubini’s Theorem to our advantage when one order leads to an easier
integration.
∫ 2∫ 3
2
Example 4. Evaluate y 3 exy dy dx by reversing the order of integration.
0 0

Linearity. As with integrals in a single variable, double integrals satisfy


∫∫ ∫∫ ∫∫
(f (x, y) + g(x, y)) dA = f (x, y) dA + g(x, y) dA
R R R

and ∫∫ ∫∫
cf (x, y) dA = c f (x, y) dA
R R
for any constant c and any rectangle R. In particular, it follows from the second property that
∫ b∫ d (∫ b )(∫ d )
g(x)h(y) dy dx = g(x) dx h(y) dy .
a c a c

∫ e∫ 2
x3
Example 5. Evaluate dx dy.
1 0 y

41
§15.2—Double Integrals over More General Regions
By modifying the Riemann sums introduced in §15.1, we can define double integrals of continuous
functions f (x, y) over more general domains D with piecewise-smooth boundaries. The strategy for
evaluation is again to set up an iterated integral that covers the region D by either horizontal or
vertical strips, depending on whether we want to integrate first with respect to x or y.

Example 1. Integrate the function f (x, y) = xy + 3 over the region in the first quadrant
bounded by the parabola y = x2 , the line x = 0, and the line y = 4.

∫ 4 ∫ 2 √
Example 2. Evaluate √
x3 + 1 dx dy by reversing the order of integration.
0 y

42
Applications of double integrals. Some easy applications of double integrals are:
∫∫
• 1 dA is the area of D.
∫∫D
• D
f (x, y) dA is the signed volume of the solid with base D and height z = f (x, y).
∫∫
• f¯ = 1
Area(D) D
f (x, y) dA is the average value of f (x, y) on D.

Example 3. Find the volume of the solid in the first octant bounded by the coordinate planes,
the cylinder x2 + y 2 = 4 and the plane y + z = 3.

Example 4. Find the average value of the function f (x, y) = x2 exy over the region

D = {(x, y) : y 6 x 6 1, 0 6 y 6 1}.

43
§15.3—Triple Integrals
The same strategy we applied to double integrals can be used to integrate continuous functions
f (x, y, z) over suitably nice regions W in R3 . Here we integrate with respect to the volume element
dV = dx dy dz, and there are 6 possible orders for setting up the iterated integrals. As with double
integrals, the simplest case is when W is a box B = [a1 , b1 ] × [a2 , b2 ] × [a3 , b3 ].
∫∫∫ ( )
x cos z
Example 1. Evaluate + y dV , where B = [0, 1] × [1, e] × [0, π/2].
B y

Example 2. Integrate the function f (x, y, z) = xyz over the region W defined by the inequalities

0 6 z 6 1, 0 6 y 6 1 − x2 , 0 6 x 6 1.

44
∫∫∫
Example 3. Evaluate ez dV , where W is the tetrahedron with vertices (0, 0, 0), (1, 0, 0),
W
(0, 2, 0), and (0, 0, 3).

Applications of triple integrals. Two immediate applications of triple integrals are:


∫∫∫
• W
1 dV is the volume of W.
∫∫∫
• f¯ = Vol(W)
1
W
f (x, y, z) dV is the average value of f (x, y, z) on W.

In the situation of Example 3, for instance, we would integrate the function f (x, y, z) = 1 instead
of ez to obtain the volume of the tetrahedron. Dividing the result of Example 3 by the volume of the
tetrahedron would then give the average value of the function f (x, y, z) = ez over this region. We
will investigate further applications of triple integrals to mass, center of mass, moments of inertia,
and probability theory in §15.5.

45
Example 4. Let W be the region in the first octant that is common to the interiors of the
cylinders x2 + y 2 = 1 and x2 + z 2 = 1.
(a) Find the volume of W.

(b) Find the average value of the function f (x, y, z) = yz on W.

46
§15.4—Integration in Polar, Cylindrical and Spherical
Coordinates
Polar and cylindrical coordinates. For functions and/or regions with radial symmetry, we
can often simplify a double integral by converting to polar coordinates using the basic equations
y
r 2 = x2 + y 2 , x = r cos θ, y = r sin θ, and tan θ = .
x
However, the area element dA = dx dy must be replaced by

dA = r dr dθ

because the arc length corresponding to the angle dθ at a distance r from the origin is given by
r dθ. Similarly, the volume element dV = dx dy dz is replaced by

dV = r dz dr dθ

for triple integrals in cylindrical coordinates.


∫ 2 ∫ √4−y2
Example 1. Evaluate the integral (x2 + y 2 ) dx dy.
0 0


Example 2. Find the average height of the cone z = x2 + y 2 above the disk x2 + y 2 6 a2 in
the xy-plane.

47
∫ ∞
e−x dx.
2
Example 3. Evaluate the integral I =
−∞

1
Example 4. Integrate the function f (x, y, z) = 4
z over the solid region bounded by the
paraboloids z = 16 − 2x2 − 2y 2 and z = 2x2 + 2y 2 .

48
Spherical coordinates. For certain problems involving spheres and cones, it may be more
convenient use spherical coordinates (ρ, θ, ϕ). Recall from §12.7 that ρ is the distance from the
−→
point P to the origin, ϕ is the angle OP makes with the positive z-axis, and θ is the same as in
cylindrical coordinates, so that

r = ρ sin ϕ, z = ρ cos ϕ, ρ = r2 + z 2

and √
x = ρ sin ϕ cos θ, y = ρ sin ϕ sin θ, ρ= x2 + y 2 + z 2 .
The volume element in spherical coordinates is

dV = dρ × r dθ × ρ dϕ = ρ2 sin ϕ dρ dϕ dθ.

This formula is obtained by considering a spherical wedge that can be approximated as a cube with
side lengths dρ, ρ dϕ, and r dθ = ρ sin ϕ dθ.

Example 5. Use spherical coordinates to compute the volume of a sphere of radius R.

2 2 2
Example 6. Find the volume
√ of the “ice cream cone” bounded above by the sphere x +y +z =
4 and below by the cone z = x2 + y 2 .

49
§15.5—Applications of Multiple Integrals
Density functions. Integrating a density function (such as mass or poplulation density) over a
given region yields the total amount (e.g. the total mass or total population) present in the region.
For instance, the result of Example 4 in §15.4 may be viewed as the mass of the solid lying between
the two paraboloids and having density δ(x, y, z) = 14 z.

Example 1. A city has population density δ(x, y) = 2000(x2 + y 2 )−0.2 people per square
kilometer, where the city center is located at the origin (0, 0). Find the total population within a
4-kilometer radius of the center.

Example 2. Find the mass of a cube that is bounded by the coordinate planes and the planes
x = 1, y = 1, and z = 1, and has density given by δ(x, y, z) = x + 2y + 3z kilograms per cubic unit.

50
Example 3. Find the mass of the solid bounded above by the sphere √ x2 + y 2 + z 2 = 8 and
below by the plane z = 2, if the solid has constant density δ(x, y, z) = x2 + y 2 + z 2 kilograms per
cubic unit.

Moments and centers of mass. Suppose that a region W ⊆ R3 is occupied by an object


with density δ(x, y, z) and total mass M . The the x-coordinate of the center of mass is given by
∫∫∫
1
x̄ = xδ(x, y, z) dV,
M W

with analogous formulas for ȳ and z̄. If the density is constant, then the center of mass depends only
on the geometry of W and is called the centroid of the region. Identical formulas involving double
integrals hold for two-dimensional objects. The integral appearing in the formula for x̄ above is an
example of a moment, and similar formulas (with quadratic instead of linear weights) are used to
compute moments of inertia.

51
Example √ 4. Find the center of mass of a cylinder of radius 2, height 4, and mass density
δ(x, y, z) = z, where z is the height above the base.

∫∫
Probability. A density function p(x, y) with the property that R2 p(x, y) dA = 1 is called
a joint probability density function. Such functions allow us to measure the likelihood that two
continuous random variables, X and Y take on certain values. For example, the probability that
a 6 X 6 b and c 6 Y 6 d is given by
∫ b∫ d
P (a 6 X 6 b; c 6 Y 6 d) = p(x, y) dy dx.
a c

More generally, the integral of p(x, y) over a region D ∈ R2 gives the probability that (X, Y ) ∈ D.

Example 5. Suppose that X and Y represent the number of months it takes for two different
sensors in an aircraft to fail, and that their joint probability density function is given by
1 −x/24−y/36
p(x, y) = e
864
for x, y > 0. What is the probability that both sensors fail within the first two years?

52
§15.6—Change of Variables
When we changed from Cartesian coordinates to polar coordinates in a double integral, we found
that the area element dx dy was replaced by r dr dθ. In general, if we introduce new variables u and
v via some mapping (x, y) = Φ(u, v), we must replace dx dy by |Jac(Φ)| du dv, where

∂x/∂u ∂x/∂v ∂x ∂y ∂y ∂x
Jac(Φ) = = − .
∂y/∂u ∂y/∂v ∂u ∂v ∂u ∂v

The determinant Jac(Φ) is called the Jacobian of the transformation. Note that in the one-
variable case, the Jacobian is just dx/du and the change of variables corresponds to an ordinary
u-substitution.

Example 1. Find Jac(Φ) for the mapping Φ(r, θ) = (r cos θ, r sin θ) that relates polar to
rectangular coordinates.

∫∫
Example 2. Use the map Φ(u, v) = (4u + 3v, u + 2v) to evaluate e2x+y dA, where D is the
D
parallelogram spanned by the vectors ⟨4, 1⟩ and ⟨3, 2⟩.

53
The situation of Example 2 gives an indication of why the determinant |Jac(Φ)| is the right
correction factor to use in general. Notice that the area of the parallelogram can be computed using
the cross product:

i j k
4 1 4 1
4 1 0 = k =⇒ Area = = 5 = |Jac(Φ)|.
3 2 3 2
3 2 0

Since the corresponding box [0, 1] × [0, 1] in the uv-plane has area 1, it follows that the change of
variables shrinks the associated area elements by a factor of 5; multiplication by this factor thus
gives the necessary correction.
Using linear approximation, we see that in general a small box of area ∆u ∆v near the point
(u, v) is essentially mapped to a parallelogram spanned by the vectors

Φ(u + ∆u, v) − Φ(u, v) ≈ ⟨∂x/∂u, ∂y/∂u⟩∆u and Φ(u, v + ∆v) − Φ(u, v) ≈ ⟨∂x/∂v, ∂y/∂v⟩∆v,

the area of which is |Jac(Φ)|∆u∆v. Thus we replace dx dy by |Jac(Φ)| du dv.

The strategy of Example 2 can be generalized to integrate over the parallelogram D spanned by
the vectors ⟨a, b⟩ and ⟨c, d⟩. We simply observe that the function Φ(u, v) = (au + cv, bu + dv) maps
the unit square [0, 1] × [0, 1] in the uv-plane to D in the xy-plane.
∫∫
Example 3. Evaluate (x + y) dA, where D is the parallelogram spanned by the vectors
D
⟨−2, 5⟩ and ⟨1, 7⟩.

54
x2 y 2
Example 4. Use the map Φ(u, v) = (au, bv) to find the area inside the ellipse + 2 = 1.
a2 b

∫∫
−1
Example 5. Use the change of variables x = uv , y = uv to evaluate (x2 + y 2 ) dA, where
D
D is the region in the first quadrant bounded by the lines y = x and y = 4x and the hyperbolas
xy = 1 and xy = 9.

55
Sometimes it is more convenient to work with the inverse map Φ−1 (x, y) = (u, v). An extremely
useful fact, which can be checked using the Chain Rule, is that
1
Jac(Φ−1 ) = .
Jac(Φ)
This often allows us to proceed without finding Φ explicitly.

Example 6. Let D be the triangular region in the xy-plane bounded by the lines x − y = 1,
x + y = 3, and y = 0. Evaluate ∫∫ √
x+y
dA.
x−y
D

An analogous result holds in three dimensions. When using coordinate transformation (x, y, z) =
Φ(u, v, w), the volume element dx dy dz is replaced by |Jac(Φ)| du dv dw, where

∂x/∂u ∂x/∂v ∂x/∂w


∂(x, y, z)
Jac(Φ) = = ∂y/∂u ∂y/∂v ∂y/∂w .
∂(u, v, w)
∂z/∂u ∂z/∂v ∂z/∂w

Note that this determinant can be viewed as a scalar triple product, which gives the volume of
the parallelepiped determined by the gradient vectors of the transformation. This can be used to
verify the claims of §15.4 concerning the conversions from rectangular to cylindrical and spherical
coordinates (see problems 42 and 43).

56
§16.1—Vector Fields
A three-dimensional vector field is a function

F(x, y, z) = F1 (x, y, z)i + F2 (x, y, z)j + F3 (x, y, z)k

that assigns a vector to each point in space. A planar (or two-dimensional) vector field has the
simpler form F(x, y) = F1 (x, y)i + F2 (x, y)j. Physically, vector fields are often used to represent
gravitational or magnetic force at various points in space or the velocity vectors at various points
in a fluid.

Example 1. Sketch the planar vector field F(x, y) = 2i + xj.

A simple example of a vector field is the gradient field of a differentiable function V (x, y, z),

∂V ∂V ∂V
F(x, y, z) = ∇V = i+ j+ k,
∂x ∂y ∂z

which maps each point to its gradient vector. In this case the function V (x, y, z) is called a potential
for F, and we say that F is conservative.

Example 2. Let V (x, y) = ex+3y + ln(1 + x2 + y 4 ).

(a) Find the gradient field F = ∇V .

(b) Verify directly that the cross-partials ∂F1 /∂y and ∂F2 /∂x are equal for the vector field F
from part (a).

57
Recall from §14.3 that Vxy = Vyx . Therefore, since F1 = Vx and F2 = Vy , we see that ∂F1 /∂y =
∂F2 /∂x. Similarly, by applying the conditions Vxz = Vzx and Vyz = Vzy , we get the following test:

The Cross-Partials Test. If the vector field

F(x, y, z) = F1 (x, y, z)i + F2 (x, y, z)j + F3 (x, y, z)k

is conservative then
∂F1 ∂F2 ∂F2 ∂F3 ∂F3 ∂F1
= , = , and = .
∂y ∂x ∂z ∂y ∂x ∂z
It turns out that the converse is true as well, and we will see in §16.3 how to use the cross-partials
condition construct the potential function associated to a conservative vector field. In simple cases,
one can often find the potential by inspection.

Example 3. Determine whether each of the following vector fields is conservative. If the field
is conservative, find a potential function.
(a) F(x, y) = 2i + xj (b) F(x, y) = 2xi + 3y 2 j

(c) F (x, y) = yi + xj (d) F(x, y) = yexy i + xexy j

(e) F = 2yzi + 3xzj + 4xyk (f) F = (y sin z)i + (x sin z)j + (xy cos z)k

58
§16.2—Line Integrals
Scalar Line Integrals. Suppose we have a smooth curve C parametrized by c(t) = x(t)i +
y(t)j + z(t)k, where a 6 t 6 b. When t increases by a small amount dt, the resulting distance
traveled along the curve is approximately ds = ∥c′ (t)∥dt. We can therefore integrate a function
f (x, y, z) with respect to arc length along the curve C as follows:
∫ ∫ b
f (x, y, z) ds = f (c(t))∥c′ (t)∥ dt.
C a

This type of integral is known as a (scalar) line integral.



Example 1. Evaluate (x − y + z − 2) ds, where C is the line segment from (0, 1, 1) to (1, 0, 1).
C

Line integrals can be used to calculate total mass and center of mass for objects lying along
smooth curves in space, thus generalizing the formulas for one-dimensional rods.

Example 2. Find the mass of a wire of density ρ(x, y, z) = 15 y + 2 that lies along the curve

c(t) = (t2 − 1)j + 2tk (−1 6 t 6 1).

59
Vector Line Integrals and Work. Suppose that the vector field F(x, y, z) is a force function,
such as a gravitational or electromagnetic field, and C is a smooth curve parametrized by c(t) =
x(t)i + y(t)j + z(t)k, where a 6 t 6 b. The component of F in the direction of motion along C is
given by F · T, where T = c′ (t)/∥c′ (t)∥ is the unit tangent vector to C, and the work done by F
over C is therefore given by
∫ ∫ ∫ b
F · ds = F · T ds = F(c(t)) · c′ (t) dt.
C C a

This formula can in fact be used to define the line integral of any vector field over a smooth curve.

Example 3. Calculate the work done by the force F(x, y, z) = xyi + yzj + xzk along the path
c(t) = ti + t2 j + t4 k (0 6 t 6 1).


Example 4. Evaluate the line integral F · ds, where F(x, y) = ey−x i + e2x j and C is the
C
piecewise linear path from (1, 1) to (2, 2) to (0, 2).

60
§16.3—Conservative Vector Fields
Recall that a vector field

F(x, y, z) = F1 (x, y, z)i + F2 (x, y, z)j + F3 (x, y, z)k


is conservative on a given domain D if and only if there is a potential function V such that ∇V =
F. When a vector field has a potential function, the potential essentially plays the role of an
anti-derivative, and line integrals are calculated very easily using the following analogue of the
Fundamental Theorem of Calculus.

Fundamental Theorem for Conservative Vector Fields: If F = ∇V on some domain D,


then for every oriented curve C in D with initial point P and terminal point Q, one has

F · ds = V (Q) − V (P ).
C

In particular, if C is a closed curve (so that P = Q) then


I
F · ds = 0.
C

As a consequence, conservative vector fields have the following path independence property:
∫ ∫
F · ds = F · ds
C1 C2

for all paths C1 and C2 with the same starting point and the same ending points. In the case of a
gravitational or electromagnetic field, this means that the work done by F in moving from P to Q
is the same for all paths from P to Q.

Example 1. Find the work done by the force F = yzi + xzj + xyk along a path from (1, 3, 2)
to (2, 4, 5).

Recall from §16.1 that if the vector field F = F1 i + F2 j + F3 k is conservative then all pairs of
cross-partials are equal. When working on a a simply connected domain D (that is, a region with
no holes), the converse is also true. That is, F is conservative if and only if
∂F1 ∂F2 ∂F2 ∂F3 ∂F3 ∂F1
= , = , and = .
∂y ∂x ∂z ∂y ∂x ∂z
In simple cases such as Example 1 above, we can often find a potential for a conservative vector field
by inspection. The following examples illustrate how to use the cross-partials criterion to construct
a potential in less obvious situations.

61
Example 2. Find a potential function for the vector field F = (y + z)i + (x + z)j + (x + y)k.


Example 3. Let F = (y − z)i + (x + 2yz − 3z)j + (y − x − 3y + 4)k. Evaluate
2
F · ds, where
C
C is any path from (0, 0, 0) to (1, 2, 3).

62
§16.4—Parametrized Surfaces and Surface Integrals
While curves can be described using a function c(t) depending on a single parameter, surfaces
require two parameters. In order to integrate over a surface, we need to find a vector-valued function
of two variables, G(u, v) = ⟨x(u, v), y(u, v), z(u, v)⟩, that generates the points on the surface. For
instance, a cylinder of radius R oriented along the z-axis can be parametrized by
G(θ, z) = ⟨R cos θ, R sin θ, z⟩ (0 6 θ < 2π, −∞ < z < ∞).

Example 1. Consider the portion of the cylinder x2 + y 2 = 9 with 0 6 z 6 5.


(a) Find a parametrization G(θ, z) of the cylinder, and describe the grid curves G(θ, 2) and
G(π/4, z).

(b) Find the tangent vectors to the above grid curves, Tθ = ∂G/∂θ and Tz = ∂G/∂z, at the
point (θ0 , z0 ) = (π/4, 2).

(c) Compute the normal vector n(θ, z) = Tθ × Tz to the surface at the point (θ0 , z0 ) = (π/4, 2).

The ideas in Example 1 can be generalized to define integration over a surface S parametrized
by a function G(u, v), with (u, v) lying in some parameter domain D. By linear approximation, a
rectangle of area ∆u∆v near a given point in the uv-plane is mapped by G to a “curved” paral-
lelogram on the surface, which can be approximated by the parallelogram spanned by the vectors
Tu ∆u and Tv ∆v. Moreover, we know from §12.4 that the area of this parallelogram is
∥n(u, v)∥∆u∆v = ∥Tu × Tv ∥∆u∆v.
Thus we can integrate over a surface by integrating over the parameter domain, provided we replace
the area element du dv by ∥n(u, v)∥ du dv:
∫∫ ∫∫
f (x, y, z) dS = f (G(u, v))∥n(u, v)∥ du dv.
S D

Note that this is analogous to the definition of scalar line integrals in §16.2. By taking f (x, y, z) = 1
we obtain the surface area of S, whereas if f represents a density function then the surface integral
calculates total mass or amount.

63
Example 2. Let S denote the truncated cylinder from Example 1.
(a) Calculate ∥n(θ, z)∥.

(b) Find the surface area of the cylinder.

(c) If the cylinder is charged with density δ(x, y, z) = x2 z coulombs per square unit, find the
total charge on the cylinder.

Example 3. Let S denote the portion of the cone z 2 = x2 + y 2 with 0 6 z 6 2.


(a) Find a parametrization G(r, θ) for the truncated cone S, and calculate ∥n(r, θ)∥.

(b) A bacteria colony forms on the surface of S, and its density is δ(x, y, z) = |xyz| million
bacteria per square unit. Find the total number of bacteria on the cone.

64
∫∫ √
Example 4. Evaluate x2 + y 2 dS, where S is the helicoid surface parametrized by
S

G(u, v) = ⟨u cos v, u sin v, v⟩ (0 6 u 6 1, 0 6 v 6 2).

∫∫
Example 5. Evaluate (z − y)e2y dS, where S is defined by z = x3 + y with x, y ∈ [0, 1].
S

Note that a surface defined by a function z = f (x, y) can always be parametrized by

G(x, y) = ⟨x, y, f (x, y)⟩,

and in this case one has n(x, y) = ⟨−fx , −fy , 1⟩, and the surface area element is given by

dS = ∥n(x, y)∥dx dy = 1 + fx2 + fy2 dx dy.

Note here the similarity with the arc length element ds = 1 + fx2 dx for a curve y = f (x).

65
§16.5—Surface Integrals of Vector Fields
We define the surface integral of a vector field F over a surface S parametrized by G(u, v) with
(u, v) ∈ D by ∫∫ ∫∫
F · dS = F(G(u, v)) · n(u, v) du dv.
S D
A few comments are in order regarding this definition.

1. Here there are two possible orientations (outward or inward pointing) for the normal vector
n(u, v). The orientation intended for S must be specified, since this affects the sign of the
answer.

2. Note that the definitions of scalar and vector surface integrals mirror the corresponding defi-
nitions for line integrals, with the normal vector n(u, v) playing the role of c′ (t).

3. The vector surface integral computes the flux of F across S by picking off the component of
F in the direction normal to the surface at each point. When F is the velocity field of a fluid,
the flux may be interpreted as the rate of fluid flow (volume per unit time) across the surface.
∫∫
Example 1. Calculate F · dS, where F = ⟨0, y, x⟩ and S is the surface parametrized by
S

G(u, v) = ⟨u2 , v, u3 − v 2 ⟩ (0 6 u 6 1, 0 6 v 6 1),

oriented by upward-pointing normal vectors.

66
We emphasize again that the calculation of both scalar and vector surface integrals over a
parametrized surface G(u, v) = ⟨x(u, v), y(u, v), z(u, v)⟩ depend on the normal vector obtained by
crossing the derivative (tangent) vectors to the grid curves:

i j k
n(u, v) = Tu × Tv = x u y u zu .
x v y v zv

Example 2. Let S be the truncated paraboloid defined by z = x2 + y 2 and 1 6 z 6 4, oriented


with outward-pointing normal vectors.
(a) Find a parametrization G(r, θ) of S using polar coordinates, and calculate the outward
normal vector n(r, θ).

(b) Compute the surface area of S.

(c) Calculate the flux of the vector field F = ⟨y, −x, z 2 ⟩ across S.

67
Example 3. Let S be the hemisphere defined by x2 + y 2 + z 2 = 4 and z > 0, oriented with
outward-pointing normal vectors.
(a) Find a parametrization of S, and obtain a formula for the outward normal vector.

(b) Calculate the flux of F = ⟨0, 0, x2 ⟩ across S.

68
§17.1—Green’s Theorem
Circulation. Suppose that F(x, y) = F1 (x, y)i + F2 (x, y)j represents the velocity field of a fluid
in two dimensions. In this case, F · T is the component of the velocity in the direction of the curve
C, so the analogue of the line integral we used for work in §16.2 now measures the flow along C.
When C is a closed loop, this is also called circulation:
I I
Circulation = F · ds = F1 dx + F2 dy.
C C
The notation on the right is a frequent shorthand for line integrals using differential forms. This
arises from writing F = ⟨F1 , F2 ⟩ and s = ⟨x, y⟩, so that ds = ⟨dx, dy⟩.

Example 1. Let F(x, y) = 4xi + (x − y)j, and let C be the circle


c(t) = (a cos t)i + (a sin t)j (0 6 t 6 2π).
Find the circulation of F around C.

The following theorem often simplifies the calculation of a circulation line integral by relating it
to a double integral over a region in the plane. A simple curve is one that does not intersect itself
except possibly at the starting and ending points.

Green’s Theorem for Circulation. If C is a simple closed curve traversed counter-clockwise


and D is the region enclosed by C, then
I ∫∫ ( )
∂F2 ∂F1
F1 dx + F2 dy = − dA,
C D ∂x ∂y
provided that F1 and F2 are differentiable functions with continuous first partial derivatives. Notice
that if F is conservative, then the cross-partials test shows that the integral on the right is zero,
which also follows from path independence.

69
In Example 1, we have F1 = 4x and F2 = x − y, so ∂F2 /∂x − ∂F1 /∂y = 1, and Green’s Theorem
immediately gives I ∫∫
F · ds = 1 · dA = Area(D) = πa2 .
C D

Note: Green’s Theorem is frequently stated in terms of the domain D and its boundary curve,
denoted ∂D. In this instance, the references to C in the theorem are replaced by ∂D.
I
Example 2. Use Green’s Theorem to evaluate the integral 3y dx + 2x dy, where C is the
C
boundary of the region 0 6 x 6 π, 0 6 y 6 sin x, oriented counter-clockwise.

Example 3. Let F = (x2 + 4y)i + (x + y 2 )j, and let C be the square bounded by x = 0, x = 1,
y = 0, and y = 1, oriented counter-clockwise. Use Green’s Theorem to find the circulation of F
around C.

Example 4. Let F = (x + y)i − (x2 + y 2 )j, and let C be the triangle bounded by y = 0, x = 1,
and y = x, oriented counter-clockwise. Use Green’s Theorem to find the circulation of F around C.

70
§17.2—Stokes’ Theorem
The quantity ∂F2 /∂x − ∂F1 /∂y occurring in Green’s Theorem is the k component of a vector
called the curl, associated to the vector field F = F1 i + F2 j + F3 k:

i j k
( ) ( ) ( )
∂ ∂ ∂ ∂F3 ∂F2 ∂F3 ∂F1 ∂F2 ∂F1
curl(F) = ∇ × F = = − i− − j+ − k.
∂x ∂y ∂z ∂y ∂z ∂x ∂z ∂x ∂y

F1 F2 F3

Here we view ∇ as an operator: ∇ = ⟨ ∂x


∂ ∂
, ∂y ∂
, ∂z ⟩.
Example 1. Calculate the curl of the vector field F = ⟨xy 2 , e2x , y 2 + 3z⟩.

Stokes’ Theorem. For nicely behaved oriented surfaces, we have the following extension of
Green’s Theorem: I ∫∫
F · ds = curl(F) · dS,
∂S S
where ∂S denotes the boundary of S, oriented so that a normal vector “walking” along the curve
has the surface on its left. In words, the theorem states that the circulation along the boundary is
equal to the flux of the curl through the surface.

Remarks:
1. Notice that if the surface S is a region D in the xy-plane and F = ⟨F1 , F2 ⟩ is a two-
dimensional vector field, then S can be parametrized by G(x, y) = ⟨x, y, 0⟩, so that n(x, y) = k.
Thus curl(F) · n(x, y) = ∂F2 /∂x − ∂F1 /∂y, so Stokes’ Theorem reduces to Green’s Theorem.
2. If the vector field F is conservative, then the cross-partials test shows that curl(F) = 0, and
Stokes’ Theorem recovers the path-independence property for line integrals by showing that the
circulation along the boundary is zero.
3. For a surface with no boundary, such as a sphere, we regard the boundary curve ∂S as the
empty set, and the associated line integral is zero.

We illustrate Stokes’ Theorem with the following example, in which we calculate line integral
over the boundary and the surface integral of the curl separately and show that they are equal. In
practice, the value of the theorem allows us to work with whichever integral is easier to handle.

71
Example 2. Let S denote the hemisphere defined by x2 + y 2 + z 2 = 4 and z > 0, oriented with
outward-pointing normal vectors, and let F = ⟨−y, x, x + z⟩. Recall from Example 3 in the §16.5
notes that S has parametrization

G(ϕ, θ) = ⟨2 sin ϕ cos θ, 2 sin ϕ sin θ, cos ϕ⟩ (0 6 ϕ 6 π/2, 0 6 θ 6 2π)

and outward normal vector

n(ϕ, θ) = 4 sin ϕ ⟨sin ϕ cos θ, sin ϕ sin θ, cos ϕ⟩.


I
(a) Find a parametrization of the boundary curve ∂S, and use it to calculate F · ds.
∂S

∫∫
(b) Calculate curl(F) · dS.
S

72
Since a single curve can be the boundary for many different surfaces, Stokes’ Theorem allows
us to calculate a circulation line integral by integrating over a convenient surface of our choice.
Likewise, a surface integral of a curl depends only on the boundary curve, so if F = curl(A), the
flux of F is surface-independent and can be calculated as a line integral of A over the boundary.
In the latter case, A is called a vector potential for F. We explore these uses of Stokes’ Theorem
in the next two examples.
I
Example 3. Evaluate F · ds, where F = ⟨−y 2 , x, z 2 ⟩ and C is the curve of intersection of the
C
plane y + z = 2 and the cylinder x2 + y 2 = 1, oriented clockwise when viewed from above.

Example 4. Let F = curl(A), where A = ⟨y + z, sin(xy), exyz ⟩. Calculate the flux of F through
the surface S shown in the diagram, whose boundary is the unit circle x2 + z 2 = 1 in the xz-plane,
oriented as shown.

73
§17.3—The Divergence Theorem
The divergence of a vector field F = ⟨F1 , F2 , F3 ⟩ is defined by

∂F1 ∂F2 ∂F3


div(F) = ∇ · F = + + .
∂x ∂y ∂z

Note that while curl(F) is a vector, div(F) is a scalar.

Example 1. Find the divergence of the vector field F = ⟨ex y + z, xy 4 z, sin(xy) + ln z⟩.
2

Our final theorem relates the flux of a vector field across a surface to a triple integral of the
divergence over the enclosed region. This is in keeping with the general theme of relating the integral
of a function on a boundary to the integral of a derivative over the interior. The fundamental
theorem of calculus, Green’s Theorem, and Stokes’ Theorem all have this type of structure.

The Divergence Theorem. Let S be a closed surface, oriented with outward-pointing normal
vectors, that encloses a region W in R3 . Then
∫∫ ∫∫∫
F · dS = div(F) dV,
S W

provided that all points in W lie in the domain of F.

Example 2. Use the Divergence Theorem to calculate the outward flux of F = ⟨2x, 3y, 5z⟩
across the unit sphere x2 + y 2 + z 2 = 1.

74
The Divergence Theorem allows us to interpret div(F) as flux per unit volume, while Stokes’
Theorem shows that curl(F) can be viewed as circulation per unit area. Below we verify the
Divergence Theorem in a particular case by computing the integrals on both sides independently.

Example 3. Let S denote the closed cylinder of radius 2 and height 5 whose base is the disk
x + y 2 6 4 in the xy-plane, and let F = ⟨y, yz, z 2 ⟩.
2
∫∫∫
(a) Calculate div(F) dV , where W is the region enclosed by S.
W

∫∫
(b) Calculate F · dS directly by integrating over the top, bottom, and sides of the cylinder.
S

75
An important restriction on applying the Divergence Theorem is that the domain of F contain
the region W. We explore the consequences of this subtlety for inverse-square fields below.
1
Example 4. Consider the electric field E = e, where
ρ2
1
e = ⟨x, y, z⟩ = ⟨sin ϕ cos θ, sin ϕ sin θ, cos ϕ⟩.
ρ

(a) Show that div(E) = 0.

(b) Calculate the outward flux of E through the sphere x2 + y 2 + (z − 3)2 = 1.

(c) Calculate the outward flux of E through the sphere x2 + y 2 + z 2 = 1.

76

You might also like