Math 2004 Notes
Math 2004 Notes
Pre-knowledge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1–1.6. Vectors in R2 and R3 . . . . . . . . . . . . . . . . . . . . . . . 3
1.7-1.10. The Dot Product, Cross Product, and Applications . . . . . . 4
2.1-2.5. Lines and Planes . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.6 Rotations and Translations in the Plane . . . . . . . . . . . . . . . 9
2.7-2.8. Parametric Curves . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.9 Applications to Area Problems . . . . . . . . . . . . . . . . . . . . 15
2.10 Arc Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.11-2.14. Polar Coordinates . . . . . . . . . . . . . . . . . . . . . . . . 17
3.1 Continuity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.2-3.3 Partial Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.5 Directional Derivatives and Gradients . . . . . . . . . . . . . . . . . 27
3.6 The Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.7 Conservative Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.1 Line Integrals with respect to arc length . . . . . . . . . . . . . . . 35
4.2 Line Integrals of Vector fields . . . . . . . . . . . . . . . . . . . . . 37
4.3 Line Integrals of Conservative Vector fields . . . . . . . . . . . . . 38
5.1-5.2 Double Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.3 Applications of Double Integrals . . . . . . . . . . . . . . . . . . . . 45
5.4 Change of variables in double integrals . . . . . . . . . . . . . . . . 47
5.5 3-D plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
5.6 Parametric equations of surfaces . . . . . . . . . . . . . . . . . . . . 50
6.1-6.2 Surface Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.3 Green’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
6.4 Stokes’ Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.5 Triple Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
6.6-6.7 Change of Variables in Triple Integrals . . . . . . . . . . . . . . 64
6.8 The Divergence Theorem . . . . . . . . . . . . . . . . . . . . . . . . 69
6.11 Maxima and Minima . . . . . . . . . . . . . . . . . . . . . . . . . 70
6.12 Lagrange Multipliers . . . . . . . . . . . . . . . . . . . . . . . . . 76
2 CONTENTS
Pre-knowledge
1. Trig Identities:
1 + cos 2x 1 − cos 2x
• cos2 x = , sin2 x = , 2 sin x cos x = sin 2x.
2 2
cos(a − b) − cos(a + b) cos(a + b) + cos(a − b)
• sin a sin b = , cos a cos b = ,
2 2
sin(a + b) + sin(a − b)
• sin a cos b = .
2
2. Integration:
Z b
• Fundamental Theorem of Calculus: f (x)dx = F (b) − F (a),
a
where F 0 (x) = f (x).
Z Z
0
• Integration by parts: u(x)v (x)dx = u(x)v(x) − u0 (x)v(x)dx,
Z Z
or udv = uv − vdu.
Z b Z g(b)
0
• Integration by substitution: f (g(x))g (x)dx = f (u)du, where
a g(a)
u = g(x).
Z
• Trig integral: sinm x cosn xdx :
Chapter 1: Vectors
• Standard basis vectors: ~i = (1, 0), ~j = (0, 1). Position vectors can be ex-
pressed in terms of standard basis vectors: (a, b) = a~i + b~j.
• Scalar multiple: Let ~u = (u1 , u2 , u3 ), c be a scalar, then c~u = (cu1 , cu2 , cu3 ).
• Standard basis vectors: ~i = (1, 0, 0), ~j = (0, 1, 0), ~k = (0, 0, 1). Position
vectors can be expressed in terms of standard basis vectors: (a, b, c) =
a~i + b~j + c~k.
4 CONTENTS
• ~u//~v ⇔ ~v = c~u.
Example 1. Given a vector ~v , find the unit vector ~u which has the same direction
as ~v :
(i) ~v = (−3, 4), (ii) ~v = (1, 2, −2).
Solution: (i)
~v (−3, 4) 3 4
~u = = = (− , ).
|~v | 5 5 5
(ii)
~v (1, 2, −2) 1 2 2
~u = = = ( , , − ).
|~v | 3 3 3 3
• Orthogonal: ~u⊥~v if ~u · ~v = 0.
~u · ~i ~u · ~j ~u · ~k
cos α = , cos β = , cos γ = .
|~u| |~i| |~u| |~j| |~u| |~k|
They satisfy
~u
cos2 α + cos2 β + cos2 γ = 1, = (cos α, cos β, cos γ).
|~u|
Example 2. Let ~u = (1, 2, −2), ~v = (−2, −2, 1), Find the cosine of the angle
between ~u and ~v .
Solution:
~u · ~v −8
cos θ = = .
|~u| |~v | 9
• w
~ · (~u + ~v ) = w
~ · ~u + w
~ · ~v
• ~u · ~0 = 0
• ~u · ~u = |~u|2 .
~u × ~v = (u2 v3 − u3 v2 , +u3 v1 − u1 v3 , u1 v2 − u2 v1 ).
Example 3. Find a vector that is orthogonal to both ~u = (1, 2, −1), ~v = (0, 2, 3).
• w
~ × (~u + ~v ) = w
~ × ~u + w
~ × ~v
• (~u + ~v ) × w
~ = ~u × w
~ + ~v × w
~
• ~u × ~0 = ~0
• ~u × ~u = ~0
• ~u · (~v × w)
~ = (~u × ~v ) · w
~
• ~u × (~v × w)
~ = (~u · w)~
~ v − (~u · ~v )w.
~
Example 4. Find the area of the parallelogram determined by ~u = (1, 2, −1),
~v = (0, 2, 3).
6 CONTENTS
√
Solution: A = |~u × ~v | = |(8, −3, 2)| = 77.
Example 5. Find the area of the triangle with vertices P (1, 2, 3), Q(−3, 2, 1),
and R(2, 4, 5).
Example 6. Find the volume V of the parallelepiped formed by the three vectors
~u = (1, 2, 1), ~v = (0, 1, −1), w
~ = (1, 1, 0).
Example 8. Find the equation of the line through P (1, 2, 3) and Q(3, 1, 1).
• parallel
• intersected
• skewed
Solution:
(1) The two direction vectors are v1 = (−1, −1, −1) and v2 = (−2, −1, 1).
They are not parallel.
(2) From ”x = x” and ”y = y” we have 2 − t = 5 − 2s, −1 − t = −s ⇒ t =
1, s = 2.
By L1 , z = 3; by L2 , z = 3. Two z values are equal.
Thus the two lines have an intersection: (1,-2,3).
Solution:
(1) The two direction vectors are v1 = (−1, −1, −1) and v2 = (−2, −1, 1).
They are not parallel.
(2) No intersection: From ”x = x” and ”y = y” we have 2−t = 5−2s, −1−t =
−s ⇒ t = 1, s = 2.
8 CONTENTS
Line segment:
A line segment between two points P (x0 , y0 , z0 ) and Q(x1 , y1 , z1 ):
~r(t) = (1 − t)P~ + tQ,
~ 0 ≤ t ≤ 1.
Example 11. Find the equation of the line segment between P (1, 2, 3) and
Q(3, 1, 1).
Plane:
A plane Π is determined by a point and a normal vector ~n = (a, b, c) which
is perpendicular to the plane. Let P (p1 , p2 , p3 ) be a point on the plane:
ax + by + cz = d, d = ap1 + bp2 + cp3 .
Example 12. Find the equation of the plane through three points P (1, 2, 3),
Q(−3, 2, 1), and R(2, 4, 5).
Solution:
~n = (1, 3, −1) × (2, 1, 3) = (10, −5, −5).
Let the plane be 10x − 5y − 5z + d = 0. Sub (0, 3, −3), d = 0. Thus the plane
is: 10x − 5y − 5z = 0, i.e., 2x − y − z = 0.
−2
Solution: cos θ = √
7
,⇒ θ = 180o − 41o = 139o .
x = 5/7 − t, y = −3/7 + t, z = t.
Solution:
√ √
x0 cos π3 − sin π3
−6 1/2 − 3/2 −6 −3 −
√ 3
0 = π π = √ =
y sin 3 cos 3 2 3/2 1/2 2 −3 3 + 1
Example 18. Find the image (x0 , y 0 ) of the point (−6, 2) after a counterclockwise
rotation of the axes about the origin with the angle θ = π3 .
10 CONTENTS
Solution:
√ √
x0 cos π3 sin π3
−6 1/2
√ 3/2 −6 −3
√ + 3
0 = π π = =
y − sin 3 cos 3 2 − 3/2 1/2 2 3 3+1
Solution:
x0
x−h −6 − 3 −9
= = = .
y0 y−k 2−4 −2
Solution:
x0
x−h cos θ − sin θ x−h
=A =
y0 y−k sin θ cos θ y−k
√
cos π3 − sin π3
−3 − 1 −2√+ 3
= =
sin π3 cos π3 3−5 −2 3 − 1
Solution:
0
x −1 x−h cos θ sin θ x−h
=A =
y0 y−k − sin θ cos θ y−k
√
cos π3 sin π3
−3 − 1 −2√ − 3
= =
− sin π3 cos π3 3−5 2 3−1
(ii)
Example 23. Sketch the parametric curve for the following set of parametric
equations:
x = 5 cos t, y = 2 sin t, 0 ≤ t ≤ 2π.
1
• Parabola: (x − x0 )2 = 4p(y − y0 ). Let x = t, then y = 4p
(t − x0 )2 + y0 .
(x − x0 )2 (y − y0 )2
• Ellipse: + = 1. Let x = x0 + a cos t, y = y0 + b sin t.
a2 b2
(x − x0 )2 (y − y0 )2
• Hyperbola: − = 1. May use two ways:
a2 b2
1. x = x0 + a sec t, y = y0 + b tan t, −π < t < π.
2. x = x0 + a cosh t, y = y0 + b sinh t, −∞ < t < ∞, where
1 1
cosh t = (et + e−t ), sinh t = (et − e−t ).
2 2
1. 3x + 2y 2 − 5y + 1 = 0.
2. 4x2 + 9y 2 − 8x + 36y + 4 = 0.
3. 4x2 − 9y 2 − 8x − 36y − 68 = 0.
Solution:
2 5 1
1. y = t, x = − t2 + t − .
3 3 3
(x − 1)2 (y + 2)2
2. + = 1.
9 4
(x − 1)2 (y + 2)2
3. − = 1.
9 4
Ax2 + Bxy + Cy 2 + Dx + Ey + F = 0.
1. If B 2 − 4AC = 0, the curve is either parabola, two parallel lines, one line,
or no such curve.
We want to find the tangent lines to the parametric equations given by,
x = f (t), y = g(t). By Chain Rule, we have
d dy
d2 y dt dx g 00 f 0 − f 00 g 0 dx
= dx
= 03
, provided 6= 0.
dx2 dt
f dt
Example 27. Find the tangent line(s) to the parametric curve given by
When (x, y) = (0, 4), t = ±2. At t = −2, the slope of the tangent line is: −1/8.
The tangent line at t = −2 is: y = 4 − x/8; At t = 2, the slope is: 1/8. The
tangent line (at t = 2) is: y = 4 + x/8.
Example 28. Find the points where the following parametric equations will have
horizontal or vertical tangents:
x = t3 − 3t, y = 3t2 − 9.
Example 29. Determine the values of t for which the parametric curve given by
the following set of parametric equations is concave up and concave down.
x = 1 − t2 , y = t7 + t5 .
up.
CONTENTS 15
Theorem 1. The area under the parametric curve x = f (t), y = g(t) between
α ≤ t ≤ β is
Z β
A= y(t)x0 (t)dt, where x(α) = a, x(β) = b.
α
Example 31. Find the area of the ellipse x = a cos t, y = b sin t, 0 ≤ t ≤ 2π,a >
0, b > 0.
16 CONTENTS
Solution:
Z 2π Z 2π
2 1
A=| −ab sin tdt| = | − ab (1 − 2 cos 2t)dt| = πab.
0 2 0
Example 32. Find the area of the closed region bounded by the curve y = x2
for 1 ≤ x ≤ 2, the vertical line x = 2, and the horizontal line y = 1.
Solution:
Z 2 Z 3 Z 4
0 0 7 4
A=| 2
(t )(t) dt + (10 − 3t)(2) dt + (1)(−t + 5)0 dt| = | + 0 − 1| = .
1 2 3 3 3
We assume that the curve is traced out exactly once as t increases from α to
β. Also, for the purposes of the derivation that we’re going to use, we will assume
that the curve is traced out from left to right as t increases. This is equivalent
to saying,
dx/dt ≥ 0, α ≤ t ≤ β.
The arc length formula is given by
Z bp Z β p
L= 1 + [y 0 (x)]2 dx = [x0 (t)]2 + [y 0 (t)]2 dt, where x(α) = a, x(β) = b.
a α
Solution:
Z βp Z 2π p
L= 0 2 0 2
[x (t)] + [y (t)] dt = [r(1 − cos t)]2 + [r sin t]2 dt
α 0
2π √ 2π
Z Z
t
=r 2 − 2 cos tdt = r 2 sin dt = 8r.
0 0 2
C : x = et + e−t , y = 5 − 2t, 0 ≤ t ≤ 3.
Solution:
Z β p Z 3 p
L= [x0 (t)]2 + [y 0 (t)]2 dt = (et − e−t )2 + (−2)2 dt
α 0
Z 3 p Z 3
= t −t 2
(e + e ) dt = (et + e−t )dt = e3 − e−3 .
0 0
We chose a point in the plane that is called the pole (or origin) and is labelled
O. Then we draw a ray starting at O, along positive x-axis, which is called the
polar axis. Let P be a point in the plane. Let r be the distance from P to O, let
θ be the angle between OP and the polar axis. Then P can be represented by
the ordered pair (r, θ). We call r and θ polar coordinates:
18 CONTENTS
√
Solution:p (a) (x, y) =√ (2, −2 3).
(b) r = x + y = 2, tan θ = xy = 1. Since the point is in the third
2 2
• θ = α: This is a line that goes through the origin and makes an angle of α
with the positive x-axis.
Remark. In the third graph we have an inner loop. To get this, we need to know
the value of θ for which the graph will pass through the origin:
2 + 4 cos θ = 0, ⇒ cos θ = −0.5, ⇒ θ = 2π/3, 4π/3.
Tangents to Polar Curves
Solution:
√
dy rθ0 sin θ + r cos θ 16 cos θ sin θ + 3 cos θ 11 3
= 0 = = .
dx rθ cos θ − r sin θ 8 cos2 θ − 3 sin θ − 8 sin2 θ 5
√
Note that at θ = π/6, r = 7, which gives (x, y) = ( 7 2 3 , 72 ). The tangent line is:
√
11 3 98
y= x− .
5 5
20 CONTENTS
Solution:
dy r0 sin θ + r cos θ cos θ(1 + 2 sin θ)
= θ0 = .
dx rθ cos θ − r sin θ (1 + sin θ)(1 − 2 sin θ)
(1) If the denominator is 0 but the numerator is not 0, we have vertical
tangent line. When sinθ = 1, orsinθ = 1/2, the denominator is 0. We have a
vertical tangent line when θ = π/6, 5π/6.
(2) If the denominator is not 0 but the numerator is 0, we have a horizontal
tangent line. Hence, we have a horizontal tangent line when = π/2, 7π/6, 11π/6.
(3) If the denominator is 0 and the numerator is 0, tangent line does not
exist. When θ = 3π/2, the tangent line does not exist.
Area
So the inner loop is bounded by r = 2 + 4 cos θ and between θ = 2π/3 and 4π/3.
Thus Z β Z 4π/3
1 2 1
A= r dθ = (2 + 4 cos θ)2 dθ.
α 2 2π/3 2
CONTENTS 21
Z 4π/3 √
= [6 + 8 cos θ + 4 cos(2θ)]dθ = 4π − 6 3.
2π/3
Example 41. Find the area of the part outside the cardioid r = 1 + sin θ, inside
the circle r = 3 sin θ.
Arc length
Now we are going to find the formula for the arc length of the arc r = f (θ),
between θ = α and θ = β (α ≤ β). Note that
Solution:
Z β q Z 1 √
0 2 2
L = (rθ ) + r dθ = θ2 + 1dθ
α 0
Zπ/4
= sec3 xdx, θ = tan x, dθ = sec2 xdx
0
π/4 1 √ √
= (sec x tan x + ln | sec x + tan x|)|0 = ( 2 + ln(1 + 2).
2
Solution:
Z βq Z 2π p
0 2 2
L = (rθ ) + r dθ = 2(sin θ + 1)dθ
α 0
√ Z 2π θ θ √ Z π
= 2 | sin + cos |dθ = 2 2 | sin ϕ + cos ϕ|dϕ, ϕ = θ/2
0 2 2 0
√ Z 3π/4 √ Z π
= 2 2 (sin ϕ + cos ϕ)dϕ − 2 2 (sin ϕ + cos ϕ)dϕ
0 3π/4
= 8.
CONTENTS 23
3.1 Continuity
• A function of two variables z = f (x, y) is a rule which maps each point
(x, y) in a set D to a unique number z. The set D is called the domain of
the function, which is often denoted D(f ). Level curves (contour maps) of
f (x, y): f (x, y) = k for different k.
lim f (x, y) = L.
(x,y)→(a,b)
In general, if there are different limits when (x, y) approaches (a, b) along
different paths, then the limit does not exist. f (x, y) is continuous at (a, b)
if
lim f (x, y) = f (a, b).
(x,y)→(a,b)
lim f (x, y, z) = L.
(x,y,z)→(a,b,c)
4x2 y
Example 44. Show that the limit lim exists, and find it.
(x,y)→(0,0) x2 + y 2
Remark: If we know the limit exists, then we can take a special path to find it.
Solution: If x = 0, then
4x2 y
x2 + y 2 = 0.
If x 6= 0, then
4x2 y
4y
x2 + y 2 1 + (y/x)2 ≤ |4y| → 0.
=
24 CONTENTS
xy
Example 45. Show that the limit lim does not exist. Show that
(x,y)→(0,0) x2 + y 2
(
xy
x2 +y 2
if (x, y) 6= (0, 0)
f (x, y) =
0 if (x, y) = (0, 0)
Solution: Since the limit is 1/2 when y = x; and the limit is 0 when y = 0.
Example 46.
xy + yz + xz 11
lim = .
(x,y,z)→(1,2,3) xyz − 1 5
Example 47. Find the limit:
3−x−y
lim √ √ .
(x,y)→(1,2) 3−x− y
Solution:
√ √
3−x−y (3 − x − y)( 3 − x + y)
lim √ √ = lim √ √ √ √
(x,y)→(1,2) 3 − x − y (x,y)→(1,2) ( 3 − x − y)( 3 − x + y)
√ √ √
= lim 3 − x + y = 2 2.
(x,y)→(1,2)
∂z ∂f f (x + h, y) − f (x, y)
zx = := := fx (x, y) := Dx f := lim ,
∂x ∂x h→0 h
which is the derivative of f with respect to x;
∂z ∂f f (x, y + h) − f (x, y)
zy = := := fy (x, y) := Dy f := lim ,
∂y ∂y h→0 h
which is the derivative of f with respect to y.
• Methods:
(a) Using the definition of a partial derivative (do not differentiate) find fx (0, 0).
(b) Using the definition of a partial derivative (do not differentiate) find fy (0, 0).
Solution:
(a)
∂f f (h, 0) − f (0, 0) h−0
(0, 0) = lim = lim = 1.
∂x h→0 h h→0 h
(b)
1
∂f f (0, k) − f (0, 0) k
−0
(0, 0) = lim = lim @.
∂y k→0 k k→0 k
Example 49. Let f (x, y) = exy + xy . Calculate fx (0, 1), fy (0, 1).
Solution:
1
fx = yexy + , fx (0, 1) = 2.
y
x
fy = xexy − 2 , fy (0, 1) = 0.
y
∂w ∂f f (x + h, y, z) − f (x, y, z)
:= := fx (x, y, z) := Dx f := lim ,
∂x ∂x h→0 h
which is the derivative of f with respect to x.
Solution:
1
fx = (sin z)yexy ln x + (sin z)exy ( ), fy = (sin z)xexy ln x, fz = (cos z)exy ln x.
x
Implicit differentiation:
∂z ∂z
Example 51. Find ∂x
and ∂y
, if z is implicitly defined by
x2 + y 3 + z 4 − 8xyz = 1.
−2x + 8yz
2x + 4z 3 zx − 8yz − 8xyzx = 0, zx = .
4z 3 − 8xy
Higher derivatives:
∂3f
fxx , ∂z∂y∂x
= fxyz ,...
Solution:
1 x
fx = yexy + , fy = xexy − 2 .
y y
1 2x
fxx = y 2 exy , fxy = exy + xyexy − , fyy = x2 exy + .
y2 y3
Clairaut’s Theorem. If f (x, y) is defined in a disk D containing (a, b), and fxy
and fyx are both continuous in D, then fxy (a, b) = fyx (a, b).
CONTENTS 27
f~u (x0 , y0 ) means the rate of change of f (x, y) at (x0 , y0 ) in the direction of
~u.
f~u (x0 , y0 , z0 ) = D~u f (x0 , y0 , z0 ) = fx (x0 , y0 , z0 )u1 +fy (x0 , y0 , z0 )u2 +fz (x0 , y0 , z0 )u3 .
Example 54. Suppose that the temperature of a room at a point (x, y, z) is given
by
80
T (x, y, z, ) = 2 2 2
C o.
1 + x + 2y + 3z
(1) In which direction does the temperature increase fastest at the point (2, 1, 1)?
(2) What is the maximum rate of increase?
(3) Find the directional derivative of T (x, y, z) at the point (2, 1, 1) in the
direction of the vector ~v = (1, −2, −2).
Solution: (1)
160
∇T (x, y, z) = (Tx , Ty , Tz ) = (−x, −2y, −3z),
(1 + x2 + 2y 2 + 3z 2 )2
28 CONTENTS
8
∇T (2, 1, 1) = (−2, −2, −3).
5
(2) √
8 17
|∇T (2, 1, 1)| = .
5
(3) The direction of the unit vector is
~v 1 2 2
~u = = ( , − , − ).
|~v | 3 3 3
8 1 2 2 64
T~u (2, 1, 2) = ∇T (2, 1, 1) · ~u = (−2, −2, −3) · ( , − , − ) = .
5 3 3 3 15
2. If F (x, y, z) = 0, then
∂z Fx ∂z Fy
=− , =− .
∂x Fz ∂y Fz
Here when we calculate partial derivatives, we consider x, y and z as
independent variables.
Solution: At the point (s, t) = (0, 1), (x, y) = (0, 3). Note that zx =
2xy + ex cos y, zy = x2 − ex sin y, xs = t3 cos s, ys = 2s. Thus
∂z ∂z
Example 56. Find ∂x
and ∂y
if x2 y 3 + z 4 + 5xyz = 3.
Thus
fx 2xy 3 + 5yz
zx = − =− 3 .
fz 4z + 5xy
Curves in 3D:
• Tangent vector: ~r 0 (t) = x0 (t)~i + y 0 (t)~j + z 0 (t)~k = (x0 (t), y 0 (t), z 0 (t)).
• Tangent line to a curve at a point t0 : The line at t0 with ~r 0 (t0 ) as the
direction vector.
• Normal plane to a curve ~r(t) = (x(t), y(t), z(t)) at the point P (a, b, c),
where a = x(t0 ), b = y(t0 ), c = z(t0 ), is:
Example 57. Let C : ~r(t) = (t, 2 sin t, 2 cos t), 0 ≤ t ≤ π. Find the tangent
line and normal plane to the curve at t = π/3.
Example 58. Find the equation of the tangent line and the normal plane at the
point P (1, −1, 3) to the curve of the intersection of the surfaces 2x2 + 3y 2 = 5
and y 2 + z 2 = 10.
q q
5−2t2 2
Solution: ~r(t) = (x(t), y(t), z(t)) = (t, − 3
, 25+2t
3
).
At P , t = 1.
2t 2t
~r 0 (t) = (x0 (t), y 0 (t), z 0 (t)) = (1, q , q ).
5−2t2 25+2t2
3 3
3 3
2 2
~r 0 (1) = (1, , ).
3 9
Tangent line is:
2 2
~r(t) = (1, −1, 3) + t(1, , ), t ∈ R.
3 9
Normal plane is:
2 2
1(x − 1) + (y + 1) + (z − 3) = 0, ⇒ 9x + 6y + 2z = 9.
3 9
Example 59. Find the equation of the tangent plane of the surface z = ex+y − xy
at the point (1, −1, 2).
1
fx = ex+y − , fx (1, −1) = 2.
y
x
fy = ex+y + , fy (1, −1) = 2.
y2
Thus the equation of the tangent plane at the point (1, −1, 2) is
Example 60. Find the equation of the tangent plane and the normal line at the
2 2
z2
point (2,1,9) to the ellipsoid x12 + y3 + 27 = 11
3
.
2
x2 2
Solution: Let F (x, y, z) = 12
+ y3 + 27
z
− 11
3
. Then the normal vector of the
tangent plane is
~n = (Fx (2, 1, 9), Fy (2, 1, 9), Fz (2, 1, 9)) = (1/3, 2/3, 2/3).
Tangent plane: x + 2y + 2z − 22 = 0.
The normal line is: (x, y, z) = (2, 1, 9) + t(1/3, 2/3, 2/3).
Example 63. (i) Show that the vector field F~ = (3 + 2xy, x2 − 3y 2 ) is conser-
vative.
(ii) Find a potential function of this field.
fx = 3 + 2xy, fy = x2 − 3y 2 .
fx = z, fy = 2yz, fz = x + y 2 .
fx = z ⇒ f = xz + g(y, z) ⇒
fy = gy = 2yz ⇒ g(y, z) = y 2 z + h(z), f = xz + y 2 z + h(z) ⇒
fz = x + y 2 + h0 (z) = x + y 2 , ⇒ h0 (z) = 0 ⇒ h(z) = constant, C.
Hence,
f = xz + y 2 z + C.
Solution:
• div curlF~ = 0.
Example 66. Let F~ (x, y, z) = (xz, xy 3 , xyz) = xz~i + xy 3~j + xyz~k. Find div
F~ (x, y, z), div F~ (1, −2, −1), curl F~ (x, y, z), curl F~ (0, 1, 1).
curl F~ (x, y, z) = ∂x
∂ ∂ ∂ ∂ ∂ ∂
= = (xz, x − yz, y 3 ),
∂y ∂z ∂x ∂y ∂z
P Q R xz xy 3 xyz
curl F~ (0, 1, 1) = (0, −1, −1).
CONTENTS 35
Example 67. Find the mass of C with density f (x, y) = y, where C is the
cycloid x = t − sin t, y = 1 − cos t, 0 ≤ t ≤ 2π .
Solution:
2π 2π √
Z Z p Z
yds = 0 2 0 2
y(t) [x (t)] + [y (t)] dt = (1 − cos t) 2 − 2 cos tdt
C 0 0
Z 2π 2π
t 3 1 3 32
= 4 sin ( )dt = −8 cos(t/2) − cos (t/2) = .
0 2 3 0 3
36 CONTENTS
R
Example 68. Evaluate C
4x3 ds, where C is the curve shown below:
R R
Special cases: ds = dx, ords = dy: C f (x, y)dx and C f (x, y)dy are called
respectively line integral of f along C with respect to x and y. Suppose C is
defined by parametric equations x = u(t), y = v(t), a ≤ t ≤ b, then
Z Z b
P (x, y)dx + Q(x, y)dy = [P (u, v)u0 (t) + Q(u, v)v 0 (t)]dt.
C a
R
Example 69. Find I = C (x + y)dx + (x − y)dy , where C is a curve defined by
x = et sin t, y = et cos t, 0 ≤ t ≤ π/2.
Solution:
Z Z π/2
I = (x+y)dx+(x−y)dy = [(et sin t+et cos t)(et sin t)0 +(et sin t−et cos t)(et cos t)0 ]dt
C 0
Z π/2 Z π
1 1
= 2e2t sin(2t)dt = ew sin(w)dw = ew (sin w − cos w) = (eπ + 1).
0 0 2 2
Solution:
1 1
1 3√
Z Z p Z
(xy−z)ds = (xy−z) [x0 (t)]2 + [y 0 (t)]2 + [z 0 (t)]2 dt = t 1 + 4t2 + 4t4 dt
C 0 0 3
Z 1 Z 1
1 3p 1 3 7
= t (1 + 2t2 )2 dt = t (1 + 2t2 )dt = .
0 3 0 3 36
Z Z
F~ · d~r = P (x, y)dx + Q(x, y)dy, if F~ = (P (x, y), Q(x, y));
C C
Z Z
F~ · d~r = P (x, y, z)dx + Q(x, y, z)dy + R(x, y, z)dz,
C C
Example 72. The vector field F~ = (3+2xy, x2 −3y 2 )Ris conservative. A potential
function of this field is f (x, y) = 3x + x2 y − y 3 . Find C (3 + 2xy)dx + (x2 − 3y 2 )dy
, where C is a curve defined by x = et sin t, y = et cos t, 0 ≤ t ≤ π.
Solution: To find the line integral, look at the starting and ending point
of the curve. When t = 0, x = 0, y = 1. When t = π, x = 0, y = −eπ . Hence
Z Z
2 2
(3+2xy)dx+(x −3y )dy = F~ ·d~r = f (~r(π))−f (~r(0)) = f (0, −eπ )−f (0, 1) = e3π +1.
C C
Solution: To find the line integral, look at the starting and ending point
of the curve. When t = 0, x = 0, y = 0, z = 0. When t = 1, x = 1, y = 1, z = 2 .
Hence Z
F~ · d~r = f (1, 1, 2) − f (0, 0, 0) = 4.
C
CONTENTS 39
Z 1
f (x, y, z) = F~ (tx, ty, tz) · (x, y, z) dt + c.
0
Proof. Let C be the line segment from P0 (x0 , y0 , z0 ) to P (x, y, z), where P0
is arbitrary.
C : ~r(t) = (1−t)P0 +tP = ((1−t)x0 +tx, 1−t)y0 +ty, 1−t)z0 +tz), 0 ≤ t ≤ 1.
Usually we take P0 = (0, 0, 0). Then
C : ~r(t) = tP = (tx, ty, tz), 0 ≤ t ≤ 1.
Z Z 1
f (x, y, z) = ~
F (x, y, z) · d~r + c = F~ (~r(t)) · ~r 0 (t) dt + c
C 0
Z 1
= F~ (tx, ty, tz) · ~r 0 (t) dt + c.
0
Solution: Z 1
f (x, y, z) = F~ (tx, ty, tz) · (x, y, z) dt + c
0
Z 1
= (tz, 2tytz, tx + (ty)2 ) · (x, y, z) dt + c
0
Z 1
= (tzx + 2t2 y 2 z + tzx + t2 y 2 z) dt + c
0
Z 1
= (2tzx + 3t2 y 2 z) dt + c
0
= xz + y 2 z + c.
f (1, 1, −1) = 5, ⇒ −2 + c = 5, ⇒ c = 7.
f (x, y, z) = xz + y 2 z + 7.
40 CONTENTS
Properties
RR of Double Integrals: RR RR
(i) [f (x, y) + g(x, y)]dA = f (x, y)dA + g(x, y)dA.
RRR RR R R
(ii) cf (x, y)dA = c f (x, y)dA.
R R RR RR
(iii) If f (x, y) ≤ g(x, y) for all (x, y) ∈ R, then f (x, y)dA ≤ g(x, y)dA.
S T RR R RRR
(iv) If R = R1 R2 , R1 R2 = ∅, then f (x, y)dA = f (x, y)dA +
RR R R 1
f (x, y)dA.
R2 RR
(v) dA = the area of R.
R RR
(vi) If m ≤ f (x, y) ≤ M for all (x, y) ∈ R, then mA ≤ f (x, y)dA ≤ M A,
R
where A is the area of R.
Iterated Integrals
Fubini’s Theorem: If f (x, y) is continuous on the rectangle R : a ≤ x ≤ b, c ≤
y ≤ d, then
ZZ Z bZ d Z dZ b
f (x, y)dA = f (x, y)dy dx = f (x, y)dx dy.
a c c a
R
CONTENTS 41
The right hand side is called iterated integral. By this theorem, we can evaluate
a double integral using an iterated integral.
Special case: If f (x, y) = g(x)h(y), then the iterated integral becomes the
product of two integrals.
ZZ Z b Z d
f (x, y)dA = g(x) dx h(y) dy .
a c
R
RR
Example 75. Find zdA, where z = y sin(xy), R = {(x, y)|1 ≤ x ≤ 2, 0 ≤
R
y ≤ π/2}.
Solution:
ZZ Z π/2 Z 2 Z π/2
f (x, y)dA = y sin(xy)dx dy = (− cos(xy)) |21 dy
0 1 0
R
Z π/2
1 π/2
= (− cos(2y) + cos(y)) dy = − sin(2y) + sin(y) |0 = 1.
0 2
Remark. We may use the other order to integrate with respect to x first, but
it involves an integral that is harder to evaluate.
RR
Example 76. Find zdA, where z = 16 − x2 − 2y 2 , R = [0, 2] × [0, 2].
R
Solution:
ZZ Z 2 Z 2 Z 2
2 2 1 3
zdA = (16 − x − 2y )dx dy = 2
16x − x − 2xy |2x=0 dy
0 0 0 3
R
Z 2
88 2
= − 4y dy = 48.
0 3
Solution:
√ √
• y-simple: − 4 − x2 ≤ y ≤ 4 − x2 , −2 ≤ x ≤ 2.
p p
• x-simple: − 4 − y 2 ≤ x ≤ 4 − y 2 , −2 ≤ y ≤ 2.
RR
Example 78. Find zdA, where z = x+2y, R is the region bounded by y = 2x2
R
and y = x2 + 1.
CONTENTS 43
RR
Example 79. Evaluate D
ln y dA, D is the region bounded by 3y = x + 2 and
x = y2.
Solution: The intersections are (1, 1), (4, 2). Thus D = Rxy = {(x, y) :
1 ≤ y ≤ 2, y 2 ≤ x ≤ 3y − 2}. Thus
ZZ Z 2 Z 3y−2
ln y dA = ln y dx dy
D 1 y2
Z 2
= (3y − 2 − y 2 ) ln y dy
1
2
3 2 1 3 3 2 1 3
= ( y − 2y − y ) ln y − ( y − 2y − y )
2 3 4 9 1
2 19
= − ln 2 + .
3 36
General Region:
A region R has to be subdivided into a number of such regions and calculate
the integral separately. If a region can be regarded either as a Type I region, or
a Type II region, in some cases, the order of integration is significant.
such a region as iterated integral. In some cases, both ways are appropriate,
and give the same result. However, in some cases, one iterated integral can be
evaluated, but the other cannot.
Z 3Z 9
Example 80. Sketch and shade the region of the integral y sin(x2 )dxdy,
0 y2
then evaluate the integral.
R9
Solution: Since the integral y2 y sin(x2 )dx cannot be integrated analyti-
cally, this iterated integral cannot be integrated in this order. We need to change
the order.
√
3 9 9 x
1 − cos 81
Z Z ZZ Z Z
y sin(x2 )dxdy = y sin(x2 )dA = y sin(x2 )dydx = .
0 y2 0 0 4
R
Z 4 Z 2 p
Example 81. Sketch and shade the region of the integral √
1 + y 3 dydx,
0 x
then evaluate the integral.
Solution:
√
{(x, y) : x ≤ y ≤ 2, 0 ≤ x ≤ 4} → {(x, y) : 0 ≤ y ≤ 2, 0 ≤ x ≤ y 2 }
Z 4Z 2 p Z 2 Z y2 p
3
1 + y dydx = 1 + y 3 dx dy
√
0 x 0 0
Z 2 p
= y 2 1 + y 3 dy
0
9
1 √
Z
u du, u = 1 + y 3
1 3
2 52
= u3/2 |91 = .
9 9
CONTENTS 45
Example 82. Find the volume under the surface z = 4 − x2 − y 2 that projects
onto the region
R = {(x, y) : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1}.
Solution:
ZZ Z 1 Z 1 Z 1
2 2 1 2 10
V = zdA = (4 − x − y )dx dy = (4 − x2 − )dx = 4 − = .
0 0 0 3 3 3
R
The volume of the solid of revolution obtained by rotating D about the y-axis
in the plane is given by ZZ
2πxdA.
D
4
Solution: 3
πr3 .
2. Mass of the lamina: Let z = ρ(x, y), (x, y) ∈ D define the density of the
lamina occupies the region D. Then the mass m of the lamina is:
ZZ
m= ρ(x, y)dA.
D
Example 84. Find the mass of the lamina that occupies the region D = {(x, y) :
2
0 ≤ x ≤ 1, 0 ≤ y ≤ 1} with the density function ρ(x, y) = xyex .
Solution: ZZ Z 1 Z 1
2
m= ρ(x, y)dA = xyex dx dy
0 0
D
46 CONTENTS
1 1 1
e−1 e−1
Z Z
1 x2
ye dy = y dy = .
0 2 x=0 0 2 4
Moments and Centers of Mass: Now lets find the center of mass of a lamina
with density function ρ(x, y) that occupies a region D.
Recall that the moment of a particle about an axis is defined as the product
of its mass and its directed distance from the axis. The moments of the entire
lamina about the x-axis and about the y-axis are:
ZZ ZZ
Mx = yρ(x, y)dA, My = xρ(x, y)dA.
D D
The center of mass of a lamina occupying the region D and having density func-
tion ρ(x, y) and mass m are:
My Mx
(x̄, ȳ) = ( , ).
m m
Example 85. Let ρ(x, y) = x2 + y 2 , and D is a triangle bounded by x = 0,
x = y, x + y = 2. Find the mass of the lamina and the center of mass.
Solution: m = 34 , My = 7
15
, Mx = 53 .
Example 86. Find the area of the surface z = 2y + 32 x3/2 that lies directly above
the region D = {(x, y) : 4 ≤ x ≤ 11, 0 ≤ y ≤ 3}.
Solution:
ZZ q
Surf ace Area = (zx )2 + (zy )2 + 1 dA
D
√ 2 √
ZZ q ZZ
= 2
( x) + 2 + 1 dA = x + 5 dA
D D
11 Z 3 √ 11 √
Z Z
x + 5dy dx = 3 x + 5dx
4 0 4
11
= 2(x + 5)3/2 4 = 2(64 − 27) = 74.
CONTENTS 47
where
∂(x, y)
• J(u, v) =
= ∂x ∂y − ∂y ∂x , and is called the Jacobian of the
∂(u, v) ∂u ∂v ∂u ∂v
transformation.
• dA = J(u, v)dudv.
2 +y 2 )
zdA, where z = e−((x+2)
RR
Example 87. Evaluate ,
R
R = {(x, y) : x ≥ −2, y ≥ 0, x2 + 4x + y 2 ≤ 0}.
2 4
= −2π u3/2 |0a2 = πa3 .
3 3
p
Solution: Let R = {(x, y) : x2 + y 2 ≤ a2 }, z = a2 − x2 − y 2 . Then
x y
zx = − p , zy = − p .
a − x2 − y 2
2 a − x2 − y 2
2
ZZ q ZZ
a
surf ace area = 2 zx2 + zy2 + 1 dA = 2 p dA
R R a − x2 − y 2
2
ZZ
a
=2 √ rdθdr, x = r cos θ, y = r sin θ
D a2 − r2
Z a Z 2π Z a
r r
= 2a √ dθdr = 4πa √ dr
2
a −r 2 a − r2
2
0 0 0
Z 0
= −2πa u−1/2 du, u = a2 − r2
a2
= 4πa2 .
RR
Example 90. Find (x − 2)(y + 1)dA, where
D
D = {(x, y) : 36x − 144x + y 2 + 2y + 109 ≤ 0, x ≥ 2, y ≥ −1}.
2
1
1 4 1 2 π/2 9
= 36 r ( sin θ)|0 = .
4 0 2 2
CONTENTS 49
By rotating the surface, or equivalently, rotating the axes, we may assume that
D = E = F = 0.
x2 y2 z2
1. Ellipsoid: a2
+ b2
+ c2
= 1, a, b, c > 0.
x2 y2 z2
2. (Elliptic) Cone: The general equation of a cone is: a2
+ b2
− c2
= 0,
a, b, c > 0.
3. Cylinder
A cylinder is a surface consisting of lines parallel (rulings) to a given line
passing through a given plane curve. In most cases, the rulings are parallel to an
axis. In this case, the equation of the surface contains only two variables, which
gives the plane curve in a coordinate plane. For example,
(i) (Right-circular) Cylinder x2 + y 2 = a2 . This is a cylinder containing lines
parallel to the z-axis passing through points on the unit circle in the xy- plane.
(ii) Parabolic cylinder x2 + 2rz = 0, r 6= 0. This is a cylinder containing lines
parallel to the y-axis passing through points on the curve z = x2 in the xz- plane.
(iii) yz = 1. This is a cylinder containing lines parallel to the x-axis passing
through points on two branches of the curve yz = 1 in the yz- plane.
2 2
(iv) Elliptic cylinder xa2 + yb2 = 1. This is a cylinder containing lines parallel
to the z-axis passing through points on the ellipse in the xy- plane.
2 2
(v) Hyperbolic cylinder xa2 − yb2 = 1. This is a cylinder containing lines par-
allel to the z-axis passing through points on the ellipse in the xy- plane.
50 CONTENTS
x2 y2 z2
4. Hyperboloid of One Sheet: a2
+ b2
− c2
= 1, a, b, c > 0.
2 y2 z2
5. Hyperboloid of Two Sheets: − xa2 − b2
+ c2
= 1, a, b, c > 0.
x2 y2
6. Elliptic Paraboloid: a2
+ b2
= zc , a, b, c > 0.
x2 y2
7. Hyperbolic Paraboloid: a2
− b2
= zc , a, b, c > 0.
• Ellipsoid
x2 y 2 z 2
1. Cartesian (rectangular) equation + 2 + 2 = 1.
a2 b c
2. Parametric form x = a sin φ cos θ, y = b sin φ sin θ, z = c cos φ, where
0 ≤ θ ≤ 2π, 0 ≤ φ ≤ π.
• Elliptic cone
x2 y 2 z 2
1. Cartesian equation + 2 − 2 = 0.
a2 b c
2. Parametric form x = av cos θ, y = bv sin θ, z = cv, where 0 ≤ θ ≤ 2π,
v ∈ R.
• Elliptic cylinder
x2 y 2
1. Cartesian equation + 2 = 1.
a2 b
2. Parametric form x = a cos θ, y = b sin θ, z = v, where 0 ≤ θ ≤ 2π.
• Hyperbolic cylinder
x2 y 2
1. Cartesian equation − 2 = −1.
a2 b
2. Parametric form x = a sinh u, y = b cosh u, z = v, where u, v ∈ R.
• Hyperbolic paraboloid
x2 y 2
1. Cartesian equation 2 − 2 = −z.
a b
√ √
2. Parametric form x = a v sinh u, y = b v cosh u, z = v, where u, v ∈
R.
• Torus
p
1. Cartesian equation x2 + y 2 + z 2 + c2 − a2 − 2c x2 + y 2 = 0.
2. Parametric form x = (c + a cos v) cos u, y = (c + a cos v) sin u, z =
a sin v, where 0 ≤ u, v < 2π, c > a > 0.
where 0 ≤ θ ≤ 2π, 0 ≤ φ ≤ π.
52 CONTENTS
Surface area. Let S be the smooth surface above. If S is covered just once as
(u, v) varies throughout D, then the surface area of S is
ZZ
A(S) = |~ru × ~rv |dA,
D
where
∂x~ ∂y ~ ∂z ~ ∂x~ ∂y ~ ∂z ~
~ru = i+ j+ k, ~rv = i+ j+ k.
∂u ∂u ∂u ∂v ∂v ∂v
Example 92. Parameterize the surface in rectangular (Cartesian) coordinates:
z = 2y 2 + 3z 2
Solution:
1 1
y = √ r cos θ, y = √ r sin θ, x = r2 .
2 3
Example 93. Change the surface ~r(u, v) = 3u~i + 2v~j + (3 − u + v)~k into rect-
angular (Cartesian) coordinates.
Solution:
1 1
y = √ r cos θ, y = √ r sin θ, x = r2 .
2 3
CONTENTS 53
Thus
ZZ ZZ
x+y 2u p
√ dS = p 2 2(u2 + v 2 ) + 1 dA
S 2z + 1 D 2(u2 + v 2 ) + 1
ZZ Z 2 Z 1
= 4u dA = 4 u dudv = 4.
D 0 0
Example 97. Find the area of the surface z = x2 + y 2 that lies under the plane
z = 4.
1 π √
1 2 3/2
= 2π
12
1 + 4r = 6 (5 5 − 1).
0
Example 99. Find the flux of the vector field F~ = (xy, y 2 , yz), S is the surface
x2 + y 2 + z 2 = 4 in the first octant.
√
Solution: Consider S as: y = 4 − x2 − z 2 . Then
D : x2 + z 2 ≤ 4, x ≥ 0, z ≥ 0.
Example 100. Find the flux of the vector field F~ = z~i + y~j + x~k across the unit
sphere x2 + y 2 + z 2 = 1.
Solution: The parametric surface is: S: ~r(φ, θ) = (sin φ cos θ, sin φ sin θ, cos φ),
where (φ, θ) ∈ D = {0 ≤ φ ≤ π, 0 ≤ θ ≤ 2π}.
Properties:
Solution: D is the triangle with vertices (0, 0), (1, 0), (1, 2). Then D = Ryx :
0 ≤ y ≤ 2x, 0 ≤ x ≤ 1.
I ZZ Z 1 Z 2x
2 3 3 2
xydx + x y dy = (2xy − x)dxdy = ( (2xy 3 − x)dy)dx = .
C D 0 0 3
R 2
Example 102. Use Green’s Theorem to evaluate C (sin x + y 3 )dx + ey dy, where
C is the perimeter of the bounded region bounded by x = y 2 and y = x2 with
positive orientation.
58 CONTENTS
Z ZZ
3 y2
(sin x + y )dx + e dy = (−3y 2 )dA.
C D
√
D : x2 ≤ y ≤ x, 0 ≤ x ≤ 1.
Hence
√
Z ZZ Z 1 Z x
3 y2 2
(sin x + y )dx + e dy = (−3y )dA = (−3y 2 )dydx
C D 0 x2
Z 1 √
Z 1
3 x 2 1 9
= (−y )|y=x2 dx = (−x3/2 + x6 )dx = (− x5/2 + x7 )|10 = − .
0 0 5 7 35
Z ZZ
F~ · d~r = (∇ × F~ ) · dS.
~
C S
Example 103. Let F~ = z~i + x2~j + 2y~k, and let S be the surface whose boundary
C is the curve of intersection of the plane
Z 2x + 2y + z = 6 and the cylinder
x2 + y 2 = 4. Using Stokes’ Thm evaluate F~ · d~r.
C
CONTENTS 59
Example 104. Let F~ = (−3y 2 , 2x, sin(z 2 + 1)), and let S be the surface whose
boundary C is the curve of intersection ofZthe plane x + z = 3 and the cylinder
x2 + y 2 = 4. Using Stokes’ Thm evaluate F~ · d~r.
C
60 CONTENTS
Example 105. Let F~ = z~i + 6x~j + 2y~k, and let S be the surface whose bound-
ary C is the curve of intersection of the plane 2x + 2y + z = 6 and the cylin-
2 2 ~
RR x + y = 4. Using Stokes’ Thm find the flux of ∇ × F , i.e., evaluate
der
S
(∇ × F~ ) · dS.
~
CONTENTS 61
B = {(x, y, z) : a ≤ x ≤ b, c ≤ y ≤ d, r ≤ z ≤ s}.
This integral can also be evaluated by the other orders of the variables.
δ(x, y, z) = x + y + z.
62 CONTENTS
Solution:
ZZZ ZZZ
M= δ(x, y, z)dV = (x + y + z)dV
B B
Z 2 Z 2 Z 2 Z 2
2
Z 2
1 2
= (x + y + z)dx dy dz = ( x + xy + xz) dy dz
0 0 0 0 0 2 x=0
Z 2Z 2 Z 2 Z 2
2
2
= (2y + 2z + 2) dy dz = (y + 2yz + 2y)y=0 dz = (4z + 8) dz = 24.
0 0 0 0
Remark. If a region is not of any of these types, we can subdivide this region
into a finite number of regions of these types. The triple integral is the sum of
triple integrals over sub-regions.
CONTENTS 63
Example 107. Describe the region E by z-simple, x-simple, and y-simple re-
spectively, where E is the region bounded by paraboloid y = x2 + z 2 and y = 4.
Solution:
p p
• z-simple: − y − x2 ≤ z ≤ y − x2 , x2 ≤ y ≤ 4, −2 ≤ x ≤ 2.
√ √
• y-simple: x2 + z 2 ≤ y ≤ 4, − 4 − x2 ≤ z ≤ 4 − x2 , −2 ≤ x ≤ 2.
p p
• x-simple:− y − z 2 ≤ x ≤ y − z 2 , z 2 ≤ y ≤ 4, −2 ≤ z ≤ 2.
Example 108. Electric charge is distributed on the solid E with charge density
ρ = x + y , where E is the tetrahedron bounded by planes x = 0, y = 0, z = 0,
and x + y + z = 2. Find the total charge.
64 CONTENTS
0 ≤ z ≤ 2 − x − y, 0 ≤ y ≤ 2 − x, 0 ≤ x ≤ 2.
ZZZ Z 2 Z 2−x Z 2−x−y
total charge = (x + y)dV = (x + y) dzdydx
0 0 0
E
Z 2 Z 2−x
= (x + y)(2 − x − y) dydx
0 0
Z 2 Z 2−x
= (2x − x2 − 2xy + 2y − y 2 ) dydx
0 0
Z 2
1
= 2
(2x − x )(2 − x) − x(2 − x) + (2 − x) − (2 − x)32 2
dx
0 3
Z 2
1
= (2 − x)2 − (2 − x)3 dx
0 3
Z 0
1
=− u2 − u3 dx, u=2−x
2 3
1 1 4
= ( u3 − u4 )|20 = .
3 12 3
where
∂x ∂x ∂x
∂(x, y, z) ∂u
∂y
∂v
∂y
∂w
∂y
= ∂u ∂v ∂w
∂(u, v, w) ∂z ∂z ∂z
∂u ∂v ∂w
∂(x, y, z)
dV = dudvdw.
∂(u, v, w)
√ √ (x2 + y 2 ) dz dy dx.
−2 − 4−x2 x2 +y 2
66 CONTENTS
p
Solution: Note that E is the region bounded by the cone z = x2 + y 2
and the plane z = 2. In cylindrical coordinates, we obtain 0 ≤ r ≤ 2, 0 ≤ θ ≤ 2π,
r ≤ z ≤ 2. Thus
ZZZ Z 2π Z 2 Z 2
2 2 16π
(x + y )dV = r2 rdzdrdθ = .
0 0 r 5
E
RRR
Example 111. Find the integral zdV , where E is within x2 + y 2 = 4, below
E
z = 8, above z = 4 − x2 − y 2 .
E = {0 ≤ r ≤ 2, 0 ≤ θ ≤ 2π, 4 − r2 ≤ z ≤ 8}.
ZZZ Z 2π Z 2 Z 8
zdV = z rdz dr dθ
0 0 4−r2
E
Z 2π Z 2
1 28
= rz |z=4−r2 dr dθ
0 0 2
Z 2π Z 2
1
= r(48 + 8r2 − r4 ) dr dθ
0 0 2
Z 2π
1 2 4 1 6 2 352
= 24r + 2r − r |r=0 dθ = π
0 2 6 3
√
2
√ 3/2 √
y = 3/4 ⇒ y = 3/2 ⇒ tan φ = = 3 ⇒ φ = π/3 ⇒ 0 ≤ φ ≤ π/3.
1/2
1
z ≥ 1/2 ⇒ ρ cos φ ≥ 1/2 ⇒ ρ ≥ .
2 cos φ
x2 + y 2 + z 2 ≤ 1 ⇒ ρ2 ≤ 1 ⇒ ρ ≤ 1.
Thus ZZZ Z 2π Z π/3 Z 1
I= zdV = ρ cos φρ2 sin φdρdφdθ
0 0 1/(2 cos φ)
E
Z 2π Z π/3
1 1 9π
= sin φ cos φ 16 − dφdθ = .
64 0 0 cos4 φ 64
CONTENTS 69
p
Example 115. Find the volume of the solid above the cone z = x2 + y 2 and
within the sphere x2 + y 2 + (z − 1/2)2 = 1/4.
Solution: The intersection of this solid and the yz-plane is shown above.
We need to find ranges for ρ, θ, φ. Note that the solid is within the cone and
below the sphere, we have
π
x2 + y 2 − z 2 ≤ 0, ⇒ ρ2 sin2 φ − ρ2 cos2 φ ≤ 0, ⇒ sin φ ≤ cos φ, ⇒ 0 ≤ φ ≤ .
4
x2 +y 2 +(z−1/2)2 ≤ 1/4 ⇒ x2 +y 2 +z 2 −z ≤ 0 ⇒ ρ2 −ρ cos φ ≤ 0 ⇒ 0 ≤ ρ ≤ cos φ.
The intersections of x2 +y 2 −z 2 = 0 and x2 +y 2 +(z −1/2)2 = 1/4 are z = 0, 1/2,
which gives the domain in the xy-plane: x2 + y 2 = 1/4. Thus 0 ≤ θ ≤ 2π.
ZZZ Z 2π Z π/4 Z cos φ Z 2π Z π/4
2 1 π
V = dV = ρ sin φdρdφdθ = cos3 φ sin φdφdθ = .
0 0 0 0 0 3 8
E
Solution:
ZZ ZZZ ZZZ
4
F~ · dS
~= div F~ dV = 3dV = 3 · π(1)3 = 4π.
S E E 3
Solution:
ZZ ZZZ ZZZ
F~ · dS
~= div F~ dV = (3 + z)dV
S E E
Z 2π Z π Z 1 Z 2π Z π
1
2 1 4
3
= (3+ρ cos φ) ρ sin φdρdφdθ = (ρ + ρ cos φ) sin φdφdθ
0 0 0 0 0 4 ρ=0
Z 2π Z π 2π Z
1 1
= (sin φ + cos φ sin φ)dφdθ = (− cos φ + sin2 φ)|πφ=0 dθ
0 0 4 0 8
Z 2π
= (2) dθ = 4π.
0
Example 118. Evaluate S F~ · dS, ~ where F~ = 2xy 2~i + 2x2 y~j + z~k, S consists
RR
Solution:
ZZ ZZZ ZZZ
F~ · dS
~= div F~ dV = (2x2 + 2y 2 + 1)dV.
S E E
Z 2π Z 1 Z 4−3r2 Z 1
2
= (2r + 1) rdzdrdθ = 2π (4 − 3r2 )(2r3 + r) dr
0 0 0 0
9π
= .
2
f (x, y) ≥ f (x0 , y0 )
CONTENTS 71
for all (x, y) in that circle; f (x, y) has a relative (local) maximum at a point
(x0 , y0 ) if there is a circle centered at (x0 , y0 ) such that
f (x, y) ≤ f (x0 , y0 )
f (x, y) ≥ f (x0 , y0 )
for all (x, y) in the domain; f (x, y) has the absolute (global) maximum at a point
(x0 , y0 ) if
f (x, y) ≤ f (x0 , y0 )
for all (x, y) in the domain.
Definition 4. The critical points of a function f (x, y) are those points (x0 , y0 ) for
which fx (x0 , y0 ) = 0 and fy (x0 , y0 ) = 0, or if fx (x0 , y0 ) or fy (x0 , y0 ) is undefined.
Saddle point: The graph of the function crosses the tangent plane at this point.
Solution:
Example 120. Find and classify the critical points of the function f (x, y) =
12x2 y + y 3 − 24x2 − 6y 2 .
Solution:
fx = 24xy − 48x, fy = 12x2 + 3y 2 − 12y,
fx x = 24y − 48 fy y = 6y − 12 fx y = 24x
fx = 0
fy = 0
24xy − 48x = 0
12x + 3y 2 − 12y = 0
2
24x (y − 2) = 0 ⇒ x = 0 or y = 2
If x = 0, then
3y 2 − 12y = 0 ⇒ y = 0, y = 4
If y = 2, then
12x2 + 3y 2 − 12y = 12 x2 − 1 = 0
⇒ x = −1, x = 1
Example 121. Find the critical point(s) of f (x, y) = x(x − 2)y(y + 4) and
classify them.
CONTENTS 73
Solution:
Set
fx = 0, fy = 0,
i.e.,
(2x − 2)y(y + 4) = 0, x(x − 2)(2y + 4) = 0.
So critical points are
(1, −2), (0, 0), (0, −4), (2, 0), (2, −4).
fxx (x, y) = 2y(y + 4), fyy (x, y) = 2x(x − 2), fxy (x, y) = (2x − 2)(2y + 4).
• d(1, −2) = 16 > 0, fxx (1, −2) = −2 < 0, so f (1, −2) is a relative max.
Example 122. Find the shortest distance from the point (0, 0, −2) to the plane
Π : x + 2y + z = 4.
Solution: The distance from any point (x, y, z) ∈ Π to the point (0, 0, −2)
is p
d= x2 + y 2 + (z + 2)2 , z = 4 − x − 2y.
p
d = x2 + y 2 + (6 − x − 2y)2 .
Let
f (x, y) = x2 + y 2 + (6 − x − 2y)2 .
When f has minimum, d will be minimum.
From fx = 0, fy = 0 we imply that (x, y) = (1, 2), which is the only critical point.
D(1, 2) = fxx (1, 2)fyy (1, 2) − fxy (1, 2)2 = 24 > 0, fxx (1, 2) > 0.
74 CONTENTS
Thus we have local min at (1, 2), which should be global min.
√
d = 6.
• Find the critical points inside D, then values of f (x) at the critical points.
• Take the largest and smallest values of these extrema to get absolute max
and min.
Solution:
Step 1. Inside D.
Setting fx = 0 and fy = 0 : We imply that (x, y) = (1, 0), (−1, 0). They are
critical points inside the rectangle.
g 0 (x) = 0, x = ±1.
g(y) = f (−2, y) = 9y 2 − 1.
CONTENTS 75
g 0 (y) = 0, y = 0.
g(0) = −1, g(−1) = 8, g(4) = 143.
Line segments L4 : −1 ≤ y ≤ 4, x = 3, let
g 0 (y) = 0, y = 0.
g(0) = 19, g(−1) = 28, g(4) = 163.
Therefore On the boundary of D: the minimum is f (−2, 0) = −1, the
maximum is f (3, 4) = 163.
Step 3. Comparing values of f in Step 1 and Step 2, the absolute max = 163
at (3, 4), absolute min = −1, at (−2, 0) or (1, 0).
Solution:
Step 1. Inside D.
Setting fx = 0 and fy = 0 : We imply that (x, y) = (1, 0), (−1, 0). They are
critical points inside the ellipse.
9y 2 = 36 − 4x2 .
Method 2: Let
x = 3 cos t, y = 2 sin t.
Then
g(t) = f (x, y) = 27 cos3 t − 9 cos t + 36 sin2 t + 1.
76 CONTENTS
g 0 (t) = 81 cos2 t(− sin t) + 9 sin t + 72 sin t cos t = −9 sin t(9 cos t + 1)(cos t − 1).
g 0 (t) = 0, sin t = 0, or cos t = −1/9, or cos t = 1.
t = 0, π, 2π, or cos t = −1/9.
√
Critical points are (3, 0), (−3, 0), (− 31 , ± 8 9 5 ).
√
1 8 5 1013
f (3, 0) = 19, f (−3, 0) = −17, f (− , ± )= .
3 9 27
∇f = λ∇g, g(x, y) = 0.
• The maximum = max{f (xi , yi ) : i = 1, ..., n}. The minimum = min{f (xi , yi ) :
i = 1, ..., n}.
Example 125. Find the max and min of z = f (x, y) = xy, subject to x2 +y 2 = 1.
y = λ2x,
x = λ2y,
x + y 2 = 1.
2
Case 2. Three variables with one constraint: Find the extreme values of the
function w = f (x, y, z) subject to constraint g(x, y, z) = 0.
Interpretation. Find the extreme values of (x, y, z) on a surface.
When w attains an extreme value a, the level curve f (x, y, z) = a and
g(x, y, z) = 0 have the same tangent plane. Hence their gradient vectors have
the same or opposite direction: ∇f = λ∇g, λ is a constant, called Lagrange
Multiplier.
∇f = λ∇g, g(x, y, z) = 0.
• The maximum = max{f (xi , yi , zi ) : i = 1, ..., n}. The minimum = min{f (xi , yi , zi ) :
i = 1, ..., n}.
1 = λ(2x),
1 = λ(2y),
2 = λ(2z),
x + y + z2
2 2
= 6.
Example 127. Find the maximum and minimum of f (x, y, z) = xyz subject to
x + y + z = 1.
we imply that
yz = λ, (1)
xz = λ, (2)
xy = λ, (3)
x+y+z−1 = 0. (4)
Example 128. Find the maximum and minimum of f (x, y, z) = xyz subject to
2xz + 2yz + xy − 12 = 0.
yz = λ(2z + y),
xz = λ(2z + x),
xy = λ(2x + 2y),
2xz + 2yz + xy − 12 = 0.
Case 3. Three variables with two constraints: Find the extreme values of the
function w = f (x, y, z) subject to constraints g(x, y, z) = 0 and h(x, y, z) = 0.
Interpretation. Find extreme values of f (x, y, z) on a 3-D curve.
When w attains an extreme value a, the tangent lines of the curve g(x, y, z) =
0, h(x, y, z) = 0, are in the tangent plane of the level surface f (x, y, z) = a.
Hence, the gradient vector of level surface f (x, y, z) = a and the gradient vectors
of g(x, y, z) = 0, h(x, y, z) = 0 are in the same plane:
∇f = λ∇g + µ∇h,
CONTENTS 79
For each solution (x, y, z, λ, µ) of this system of equations, find the value of
f (x, y, z). The maximum is the maximum value of w, and the minimum is the
minimum of w.
Remark. λ, µ are called Lagrange Multipliers.
1 = λ + µ2x,
1 = −λ + µ2y,
7 = λ,
x−y+z−1 = 0,
x2 + y 2 − 1 = 0.