Professional Documents
Culture Documents
• Notation: If z = f (x1 , . . . , xn )
∂f ∂ ∂z
fxi (x1 , . . . , xn ) = fxi = = f (x1 , . . . , xn ) = = fi = Di f = Dxi f.
∂xi ∂xi ∂xi
• Rule: To find fxi , regard all xj with j 6= i as constants and differentiate with respect to xi .
0.5
0
z
−0.5
−1
2
1 2
0 1
0
−1 −1
y −2 −2
x
p
• Example: Find the partial derivatives of f (x, y) = x2 + 3xy 2 .
1
2 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
Solution:
2x + 3y 2 3xy
fx (x, y) = p , fy (x, y) = p .
2 x2 + 3xy 2 x2 + 3xy 2
• Note:
• z = f (x, y) defines a surface in three-space.
• f (x, y) = constant defines a (family) of contour(s) in two-space.
• f (x, y, z) = constant defines a (family) of surface(s) in three-space.
0
0 0
0
1 −0 .9
.9
0.9 0 1 0.9 −0
0 −0 .9 0
−0
.9 0 .9
0. −0 0.9
0.9
−0
0.5 0.9 9
0.5
.
0.9
−0
.9
9
0.
−0
9
.9
0.
9
9
0.
0 0 0
0.9
0
9
0
9
0.
−0.5 −0.5 0.
.9
0
0.9
0 9
−0
−0. −0 −0 0.9
.9 0.9
−0 .9 0.9 .9
−1 −0.9 −1 .9 −0
0.9
0 0
0 0
0.9 −0.9 −0.9 0.9
−1.5 . 9 −1.5 −0.9 −0.9
−0 0 0
.9
0 0 0
−0
−0
0 −0. 0. 0.9 9
0.9 9
.9
9 −0.
0
−2 0.9
0
−2
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2
• Physical interpretation: fxi measures how fast the function change in the direction of xi .
• Clairaut’s Theorem: If f is defined on an open set that contains the point (c1 , . . . , cn ) and fxi xj
and fxj xi are both continuous on the open set, then
fxi xj (c1 , . . . , cn ) = fxj xi (c1 , . . . , cn ).
• Linear Approximation: The linear approximation of the function f (x1 , . . . , xn ) at the point (c1 , . . . , cn )
is the approximation of f by its linearization at (c1 , . . . , cn ), i.e.,
n
X
f (x1 , . . . , xn ) ≈ f (c1 , . . . , cn ) + fxi (c1 , . . . , cn )(xi − ci ).
i=1
• Example: Find the linearization of the function f (x, y, z) = x2 + sin(yz) at the point (1, 1, 0).
Solution:
fx (x, y, z) =2x, fy (x, y, z) = z cos(yz), fz (x, y, z) = y cos(yz)
f (1, 1, 0) = 1, fx (1, 1, 0) = 2, fy (1, 1, 0) = 0, fz (1, 1, 0) = 1
• Example: Find the quadratic approximation of the function u = ex+2y+3z at the point (0, 0, 0).
4 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
Solution:
u(x, y, z) = ex+2y+2z ⇒ u(0, 0, 0) = 1
ux = ex+2y+3z , uy = 2ex+2y+3z , uz = 3ex+2y+3z
=⇒ ux (0, 0, 0) = 1, uy (0, 0, 0) = 2, uz (0, 0, 0) = 3
x+2y+2z x+2y+3z
uxx = e , uyy = 4e , uzz = 9ex+2y+3z ,
=⇒ uxx (0, 0, 0) = 1, uyy (0, 0, 0) = 4, uzz (0, 0, 0) = 9
uxy = uyx = 2ex+2y+3z , uxz = uzx = 3ex+2y+3z , uyz = uzy = 6ex+2y+3z
=⇒ uxy (0, 0, 0) = uyx (0, 0, 0) = 2, uxz (0, 0, 0) = uzx (0, 0, 0) = 3, uyz (0, 0, 0) = uzy (0, 0, 0) = 6
• mth -order Approximation: The mth -order approximation of a function f (x1 , . . . , xn ) at the point
(c1 , . . . , cn ) is
X n n n m
1 X X Y
f (x1 , . . . , xn ) ≈ f (c1 , . . . , cn )+ fxi (c1 , . . . , cn )(xi −ci )+. . .+ ... fx ...x (c1 , . . . , cn ) (xij −cij ).
i=1
m! i =1 i =1 i1 im j=1
1 m
• Taylor Series Expansion: The Taylor series expansion of a function f (x1 , . . . , xn ) at the point
(c1 , . . . , cn ) is
X∞ n n m
1 X X Y
... fx ...x (c1 , . . . , cn ) (xij − cij ).
m=0
m! i =1 i =1 i1 im j=1
1 m
3. Chain Rule
dz
• Example: If z = x2 y + 4xy 3 , where x = cos 2t and y = sin t. Find when t = 0.
dt
Solution:
dz ∂z dx ∂z dy
= +
dt ∂x dt ∂y dt
= − 2(2xy + 4y 3 ) sin 2t + (x2 + 12xy 2 ) cos t
¯
dz ¯¯
When t = 0, x = 1 and y = 0, therefore = 1.
dt ¯t=0
CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS 5
p ∂z ∂z
• Example: If z = 4x2 + 9y 2 , where x = r cos θ and y = r sin θ, find and .
∂r ∂θ
Solution:
∂z 4x ∂z 9y
=p , =p
∂x 4x2 + 9y 2 ∂y 4x2 + 9y 2
∂x ∂y ∂x ∂y
= cos θ, = sin θ, = −r sin θ, = r cos θ
∂r ∂r ∂θ ∂θ
Therefore,
∂z ∂z ∂x ∂z ∂y 4 cos2 θ 9 sin2 θ p
= + =√ + √ = 4 cos2 θ + 9 sin2 θ
∂r ∂x ∂r ∂y ∂r 2
4 cos θ + 9 sin θ2 2
4 cos θ + 9 sin θ2
• Example: If z = f (x, y) has continuous second order partial derivatives and x = r2 + s2 and y = 2rs,
∂z ∂ 2z
find (a) and (b) 2 . (Study this example carefully! )
∂r ∂r
Solution:
∂z ∂z ∂x ∂z ∂y ∂z ∂z
= + = 2r + 2s
∂r ∂x ∂r ∂y ∂r ∂x ∂y
2
µ µ ¶¶ µ ¶
∂ z ∂z ∂ ∂z ∂ ∂z
=2 +r + 2s ,
∂r2 ∂x ∂r ∂x ∂r ∂y
µ ¶
∂ ∂z ∂x ∂ ∂z ∂y ∂ ∂z ∂ 2z ∂2z
= + = 2r 2 + 2s
∂r ∂x ∂r ∂x ∂x ∂r ∂y ∂x ∂x ∂x∂y
µ ¶ 2
∂ ∂z ∂x ∂ ∂z ∂y ∂ ∂z ∂ z ∂ 2z
= + = 2r + 2s 2
∂r ∂y ∂r ∂x ∂y ∂r ∂y ∂y ∂y∂x ∂y
∂ 2z ∂z 2
2∂ z ∂ 2z 2
2∂ z
=⇒ =2 + 4r + 8rs + 4s
∂r2 ∂x ∂x2 ∂x∂y ∂y 2
∂z ∂z
• Example: Find and if x3 + y 3 + z 3 − 8xyz = 20.
∂x ∂y
Solution:
(
x = r cos θ
• Polar coordinates in two dimensions: r ≥ 0, 0 ≤ θ ≤ 2π.
y = r sin θ
• Example: In polar coordinates, the equation of a circle with radius a and centered at the origin is
r = a.
• Example:
√ ³ π´
(a) The polar coordinates of the point (1, 3) is 2, .
µ 3 ¶
√ 2π
(b) The polar coordinates of the point (−1, 3) is 2, .
µ3 ¶
√ 4π
(c) The polar coordinates of the point (−1, − 3) is 2, .
µ 3¶
√ 5π
(d) The polar coordinates of the point (1, − 3) is 2, .
3
• Partial derivative in two-dimensional polar coordinates: If u = f (x, y), where x = r cos θ and
y = r sin θ, then
∂f ∂x ∂f ∂y ∂f ∂f ∂f
= + = cos θ + sin θ
∂r ∂r ∂x ∂r ∂y ∂x ∂y
∂f ∂x ∂f ∂y ∂f ∂f ∂f
= + = −r sin θ + r cos θ
∂θ ∂θ ∂x ∂θ ∂y ∂x ∂y
CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS 7
2
(2,2π/3) (2,π/3)
r
π/3 θ
0
−1
(2,4π/3) (2,5π/3)
−2
−3
−3 −2 −1 0 1 2 3
∂f µ ¶ ∂f
∂r cos θ sin θ ∂x
=⇒ =
∂f −r sin θ r cos θ ∂f
∂θ ∂y
∂f sin θ ∂f
∂x cos θ − r ∂r
=⇒
∂f = cos θ
∂f
sin θ
∂y r ∂θ
∂f ∂f sin θ ∂f
= cos θ −
∂x ∂r r ∂θ
∂f ∂f cos θ ∂f
= sin θ +
∂y ∂r r ∂θ
Solution:
∂f ∂x ∂f ∂y ∂f ∂f ∂f
= + = cos θ + sin θ
∂r ∂r ∂x ∂r ∂y ∂x ∂y
∂f ∂x ∂f ∂y ∂f ∂f ∂f
= + = −r sin θ + r cos θ
∂θ ∂θ ∂x ∂θ ∂y ∂x ∂y
µ ¶2 µ ¶2 µ ¶2 µ ¶2
∂f 1 ∂f ∂f ∂f 1 ∂f ∂f
=⇒ + 2 = cos θ + sin θ + 2 −r sin θ + r cos θ
∂r r ∂θ ∂x ∂y r ∂x ∂y
8 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
µ ¶2 µ ¶µ ¶ µ ¶2
¡ 2 2
¢ ∂f ∂f ∂f ¡ ¢ ∂f
= cos θ + sin θ + (2 cos θ sin θ − 2 sin θ cos θ) + sin2 θ + cos2 θ
∂x ∂x ∂y ∂y
µ ¶2 µ ¶2
∂f ∂f
= +
∂x ∂y
Solution:
∂f ∂x ∂f ∂y ∂f ∂f ∂f
= + = cos θ + sin θ
∂r ∂r ∂x ∂r ∂y ∂x ∂y
∂f ∂x ∂f ∂y ∂f ∂f ∂f
= + = −r sin θ + r cos θ
∂θ ∂θ ∂x ∂θ ∂y ∂x ∂y
2
µ ¶
∂ f ∂ ∂f ∂f ∂ ∂f ∂ ∂f
2
= cos θ + sin θ = cos θ + sin θ
∂r ∂r ∂x ∂y ∂r ∂x ∂r ∂y
µ 2 2
¶ µ 2
¶
∂x ∂ f ∂y ∂ f ∂x ∂ f ∂y ∂ 2 f
= cos θ + + sin θ +
∂r ∂x2 ∂r ∂y∂x ∂r ∂x∂y ∂r ∂y 2
2
2 ∂ f ∂2f 2 ∂ f
2
= cos θ 2 + 2 cos θ sin θ + sin θ 2
∂x ∂x∂y ∂y
2
µ ¶
∂ f ∂ ∂f ∂f ∂f ∂f ∂ ∂f ∂ ∂f
2
= −r sin θ + r cos θ = −r cos θ − r sin θ − r sin θ + r cos θ
∂θ ∂θ ∂x ∂y ∂x ∂y ∂θ ∂x ∂θ ∂y
µ 2 2
¶ µ 2
¶
∂f ∂f ∂x ∂ f ∂y ∂ f ∂x ∂ f ∂y ∂ 2 f
= −r cos θ − r sin θ − r sin θ + + r cos θ +
∂x ∂y ∂θ ∂x2 ∂θ ∂y∂x ∂θ ∂x∂y ∂θ ∂y 2
∂f ∂f ∂ 2f ∂ 2f ∂ 2f
= −r cos θ − r sin θ + r2 sin2 θ 2 − 2r2 sin θ cos θ + r2 cos2 θ 2
∂x ∂y ∂x ∂x∂y ∂y
2
∂ f 1 ∂f 1∂ f2 ¡ 2 2
¢∂ f ¡ 2
2
2
¢∂ f2 2
∂ f ∂ 2f
=⇒ + + = cos θ + sin θ + cos θ + sin θ = + 2
∂r2 r ∂r r2 ∂θ2 ∂x2 ∂y 2 ∂x2 ∂y
x = r cos θ
• Cylindrical coordinates in three dimensions: y = r sin θ , r ≥ 0, 0 ≤ θ ≤ 2π, z ∈ R.
z = z
• Example: In cylindrical coordinates, r = a describes an infinitely long cylinder with cross section a
circle of radius a.
−1
−2
2
1 2
0 1
0
−1 −1
−2 −2
1.5
0.5
−0.5
−1
−1.5
−2
2
1 2
0 1
0
−1
−1
−2 −2
∂r ∂r ∂r
∂x sin θ cos φ sin θ sin φ cos θ
∂y ∂z
cos θ cos φ
∂θ ∂θ ∂θ cos θ sin φ sin θ
= −
∂x ∂y ∂z r r r
sin φ cos φ
∂φ ∂φ ∂φ − 0
r sin θ r sin θ
∂x ∂y ∂z
5. Revision of Vectors
• A vector is a quantity that has both magnitude and direction. It is often represented by an arrow or
a directed line segment. The length of the arrow represents the magnitude of the vector and the arrow
points in the direction of the vector. A vector is usually denoted by a boldface letter (v) or by putting an
arrow above the letter (~v ).
Figure 7. Vectors.
−→
• The components of the vector v = P Q from the point P (x1 , y1 , z1 ) to the point Q(x2 , y2 , z2 ) is
v = hx2 − x1 , y2 − y1 , z2 − z1 i.
u
v
u+v
• Standard unit vectors: The standard unit vectors in three dimensions are i = h1, 0, 0i, j = h0, 1, 0i, k =
h0, 0, 1i. A vector v = hv1 , v2 , v3 i can be written as v1 i + v2 j + v3 k.
12 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
• Unit vectors: A unit vector is a vector with magnitude 1. Given a vector v, the unit vector in the
v
direction of v is u = .
|v|
• Example: Find the unit vector in the direction of the vector v = 2i − 3j + 6k.
Solution:
√
|v| = 4 + 9 + 36 = 7
Therefore the unit vector in the direction of v is
2i − 3j + 6k 2 3 6
u= = i − j + k.
7 7 7 7
• Dot product: The dot product of two vectors u = hu1 , u2 , u3 i and v = hv1 , v2 , v3 i is defined as
u · v = u1 v1 + u2 v2 + u3 v3 = v · u.
• Example: Find the angle between the vectors u = h9, −5, 3i and v = h−3, 2, −5i.
Solution:
u·v 9(−3) + (−5)(2) + 3(−5)
cos θ = =√ √ = −0.7866
|u||v| 81 + 25 + 9 9 + 4 + 25
=⇒ θ =2.4761 rad = 141.8704o
• Fact: Two vectors u = hu1 , u2 , u3 i and v = hv1 , v2 , v3 i are orthogonal if and only if u · v = 0.
• Projection: The projection of the vector v onto u (also called the component of v along u) is
u·v
proju v = u.
|u|2
Proof:
u u·v u u·v
proju v = |v| cos θ × = |v| × × = u
|u| |u||v| |u| |u|2
• Example: If v = hv1 , v2 , v3 i, v1 i, v2 j and v3 k are the projections of v onto the x−, y− and z− axis.
θ u
proju v
• Physical application of dot product: The work done in moving an object from P to Q along
−→
D = P Q by a constant force F is
W = F · D = |F||D| cos θ,
where θ is the angle between the direction of the force and the displacement vector.
• Cross product: The cross product of two vectors u = hu1 , u2 , u3 i and v = hv1 , v2 , v3 i is defined as
¯ ¯
¯ i j k ¯
¯ ¯
u × v = ¯¯ u1 u2 u3 ¯¯ = (u2 v3 − u3 v2 )i − (u1 v3 − u3 v1 )j + (u1 v2 − u2 v1 )k.
¯ v1 v2 v3 ¯
• Example:
¯ ¯
¯ i j k ¯
¯ ¯
¯
h2, −5, 6i × h−3, 4, 1i = ¯ 2 −5 6 ¯ = (−5 − 24)i − (2 + 18)j + (8 − 15)k = −29i − 20j − 7k.
¯
¯ −3 4 1 ¯
• Fact:
(a) u × v = −v × u
(b) If u and v are parallel, u × v = 0.
(c) u × v is perpendicular to u and v.
• Physical application of cross product: For a force F acting on a rigid body at a point P given by
−→
a position vector r = OP , the torque τ is defined as
τ = r × F.
It measures the tendency of the body to rotate about the origin.
14 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
• Example:
(a) The distance D(t) of an object from a fixed point as a function of time.
(b) The temperature function of an object T (x, y, z). Here (x, y, z) specify a point in the object.
• Example:
(a) The position r(t) = hx(t), y(t), z(t)i of an object from a fixed point as a function of time.
(b) The electric field E(x, y, z) = hE1 (x, y, z), E2 (x, y, z), E3 (x, y, z)i. Here (x, y, z) specify a point in
the space.
• Definition: For a vector valued function F : D → Rn , the derivatives are defined componentwise.
• Example: Find the tangent vector of the curve r(t) = hcos t, sin t, ti at the point (1, 0, 2π).
Solution: r0 (t) = h− sin t, cos t, 1i. At the point (1, 0, 2π), t = 2π. The tangent vector to the curve at the
point (1, 0, 2π) is r0 (2π) = j + k.
∂ ∂ ∂
• In vector calculus, the del or nabla operator is the vector operator ∇ = i+ j + k.
∂x ∂y ∂z
15
10
0
2
1 2
0 1
0
−1 −1
−2 −2
Solution:
∂f ∂f ∂f
= 3x2 yz 2 , = x3 z 2 , = 2x3 yz
∂x ∂y ∂z
=⇒ ∇f (x, y, z) = 3x2 yz 2 i + x3 z 2 j + 2x3 yzk
• Directional Derivative: Let u = hu1 , u2 , u2 i be a unit vector and f (x, y, z) a scalar function. The
directional derivative of f at a point (x0 , y0 , z0 ) in the direction of u is
f (x0 + u1 h, y0 + u2 h, z0 + u3 h) − f (x0 , y0 , z0 )
Du f (x0 , y0 , z0 ) = lim
h→0 h
∂f ∂f ∂f
=u1 (x0 , y0 , z0 ) + u2 (x0 , y0 , z0 ) + u3 (x0 , y0 , z0 )
∂x ∂y ∂z
=∇f (x0 , y0 , z0 ) · u
• Example: Let f (x, y, z) = y sin z + 2z cos x + 3xe−y . Find the directional derivative of f at (0, 0, 0) in
the direction of 3i − 2j − 6k.
v 3 2 6
Solution: The unit vector in the direction of v = 3i − 2j − 6k is u = = i− j− k
|v| 7 7 7
¡ ¢ ¡ ¢
∇f (x, y, z) = −2z sin x + 3e−y i + sin z − 3xe−y j + (y cos z + 2 cos x) k
=⇒ ∇f (0, 0, 0) = 3i + 2k
=⇒ The directional derivative of f at (0, 0, 0) in the direction of 3i − 2j − 6k is
3
Du f (0, 0, 0) = ∇f (0, 0, 0) · u = −
7
16 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
Proof:
Du f (x0 , y0 , z0 ) is maximum =⇒ ∇f (x0 , y0 , z0 ) · u = |∇f (x0 , y0 , z0 )||u| cos θu is maximum =⇒ θu = 0
Du f (x0 , y0 , z0 ) is minimum =⇒ ∇f (x0 , y0 , z0 ) · u = |∇f (x0 , y0 , z0 )||u| cos θu is minimum =⇒ θu = π
• Example: Let f (x, y, z) = xy 2 − 4x2 z + 8y 2 z 3 . Find the direction from (1, −1, 1) in which f has its
maximum and minimum rates of change, and find the values of these rates of change.
Solution:
∇f (x, y, z) =(y 2 − 8xz)i + (2xy + 16yz 3 )j + (−4x2 + 24y 2 z 2 )k
∇f (1, −1, 1) = − 7i − 18j + 20k
√ √
|∇f (1, −1, 1)| = 49 + 324 + 400 = 773
Therefore, from the point (1, −1, 1), √
f has maximum rate of change in the direction of −7i − 18j + 20k with maximum rate of change√ 773.
f has minimum rate of change in the direction of 7i + 18j − 20k with minimum rate of change − 773.
• Level Surface: A level surface of a scalar function f (x, y, z) is the locus of points (x, y, z) satisfying
f (x, y, z) = k for some constant k.
• Fact: Let P0 (x0 , y0 , z0 ) be a point on the level surface f (x, y, z) = k (i.e. f (x0 , y0 , z0 ) = k). If
∇f (x0 , y0 , z0 ) 6= 0, then ∇f (x0 , y0 , z0 ) is normal to the level surface f (x, y, z) = k at P0 . Moreover, the
tangent plane to the level surface f (x, y, z) = k at the point P0 is
∂f ∂f ∂f
(x0 , y0 , z0 )(x − x0 ) + (x0 , y0 , z0 )(y − y0 ) + (x0 , y0 , z0 )(z − z0 ) = 0.
∂x ∂y ∂z
Proof: Let r(t) = x(t)i + y(t)j + z(t)k be any curve on the surface with r(t0 ) = x0 i + y0 j + z0 k. Then
f (x(t), y(t), z(t)) = k. Differentiating with respect to t, we have
∂f dx ∂f dy ∂f dz
+ + =0 =⇒ ∇f (x0 , y0 , z0 ) · r0 (t0 ) = 0
∂x dt ∂y dt ∂z dt
Therefore ∇f (x0 , y0 , z0 ) is perpendicular to any curve lying on the surface and passing through (x0 , y0 , z0 ).
• Example: Let a > 0 be a constant. Find a normal vector and the tangent plane to the surface
x2 + 4y 2 + (z − 4a)2 = 9a2 at the point (2a, a, 3a).
Solution: Let f (x, y, z) = x2 + 4y 2 + (z − 4a)2 . Then
∇f (x, y, z) =2xi + 8yj + 2(z − 4a)k
∇f (2a, a, 3a) =4ai + 8aj − 2ak
CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS 17
Therefore, a vector normal to the surface x2 + 4y 2 + (z − 4a)2 = 9a2 at the point (2a, a, 3a) is 2i + 4j − k,
and the tangent plane to the surface at (2a, a, 3a) is
2(x − 2a) + 4(y − a) − (z − 3a) = 0 or 2x + 4y − z = 5a.
• Fact: The tangent plane to the surface z = f (x, y) at the point (x0 , y0 , z0 ), where z0 = f (x0 , y0 ), is
given by
z − z0 = fx (x0 , y0 )(x − x0 ) + fy (x0 , y0 )(y − y0 ).
Proof: The surface z = f (x, y) can be considered as a level surface F (x, y, z) = f (x, y) − z = 0. Therefore
the tangent plane (x0 , y0 , z0 ) is
∂F ∂F ∂F
(x0 , y0 , z0 )(x − x0 ) + (x0 , y0 , z0 )(y − y0 ) + (x0 , y0 , z0 )(z − z0 ) = 0
∂x ∂y ∂z
=⇒ z − z0 = fx (x0 , y0 )(x − x0 ) + fy (x0 , y0 )(y − y0 ).
• Example: Find the equation of the tangent plane to the surface z = 20−x2 −3y 2 at the point (2, 1, 13).
Solution:
f (x, y) =20 − x2 − 3y 2 , fx (x, y) = −2x, fy (x, y) = −6y
fx (2, 1) = −4, fy (2, 1) = −6
Therefore the equation of the tangent plane at the point (2, 1, 13) is
z − 13 = −4(x − 2) − 6(y − 1) =⇒ 4x + 6y + z = 27.
30
25
20
15
10
z
−5
−10 x
−1 −2
4 3 2 1 0
0 −1 −2 −3 1
−4
2
y
• Divergence: The divergence of the vector field F(x, y, z) = F1 (x, y, z)i + F2 (x, y, z)j + F3 (x, y, z)k
is
µ ¶ ³ ´ ∂F
∂ ∂ ∂ 1 ∂F2 ∂F3
div F = ∇ · F = i+ j + k · F1 i + F2 j + F3 k = + + .
∂x ∂y ∂z ∂x ∂y ∂z
• Example: Find the divergence of the vector field F(x, y, z) = 2x2 zi − y 2 j + e2z k.
Solution:
∂F1 ∂ ¡ 2 ¢
= 2x z = 4xz
∂x ∂x
∂F2 ∂ ¡ 2¢
=− y = −2y
∂y ∂y
∂F3 ∂ ¡ 2z ¢
= e = 2e2z
∂z ∂z
=⇒ div F =∇ · F = 4xz − 2y + 2e2z
• Curl: The curl of the vector field F(x, y, z) = F1 (x, y, z)i + F2 (x, y, z)j + F3 (x, y, z)k is
¯ ¯
¯ i j k ¯ µ ¶ µ ¶ µ ¶
¯ ∂ ∂ ∂ ¯¯ ∂F3 ∂F2 ∂F3 ∂F1 ∂F2 ∂F1
¯
curl F = ∇ × F = ¯ ¯= − i− − j+ − k.
¯ ∂x ∂y ∂z ¯ ∂y ∂z ∂x ∂z ∂x ∂y
¯ F F F ¯
1 2 3
• Example: Find the curl of the vector field F(x, y, z) = 2x2 yzi − xy 3 zj + x2 yz 2 k.
Solution:
¯ ¯
¯ i j k ¯
¯ ∂ ∂ ∂ ¯¯
¯
curl F(x, y, z) = ∇ × F(x, y, z) = ¯ ¯
¯ ∂x ∂y ∂z ¯
¯ 2x2 yz −xy 3 z x2 yz 2 ¯
µ ¶ µ ¶ µ ¶
∂ ¡ 2 2¢ ∂ ¡ 3
¢ ∂ ¡ 2 2¢ ∂ ¡ 2 ¢ ∂ ¡ 3
¢ ∂ ¡ 2 ¢
= x yz − −xy z i − x yz − 2x yz j + −xy z − 2x yz k
∂y ∂z ∂x ∂z ∂x ∂y
=(x2 z 2 + xy 3 )i + (2x2 y − 2xyz 2 )j − (y 3 z + 2x2 z)k
• If a vector field F is such that ∇ × F = 0, then the vector field is called irrotational .
CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS 19
Proof:
¯ ¯
¯ i j k ¯
µ ¶ ¯¯ ∂ ∂ ∂ ¯
¯
∂f ∂f ∂f ¯ ¯
∇ × (∇f ) =∇ × i+ j+ k = ¯ ∂x ∂y ∂z ¯
∂x ∂y ∂z ¯ ∂f ∂f ∂f ¯
¯ ¯
¯ ¯
∂x ∂y ∂z
µ 2 ¶ µ ¶ µ ¶
∂ f ∂ 2f ∂ 2f ∂2f ∂2f ∂ 2f
= − i− − j+ − k=0
∂y∂z ∂z∂y ∂x∂z ∂z∂x ∂x∂y ∂y∂x
• Example: Let f (x, y, z) = exp(x + 2y + 3z). Find grad f and verify that curl grad f = 0.
Solution:
∇f (x, y, z) = exp(x + 2y + 3z)i + 2 exp(x + 2y + 3z)j + 3 exp(x + 2y + 3z)k
¯ ¯
¯ i j k ¯
¯ ∂ ∂ ∂ ¯
¯ ¯
∇ × (∇f ) = ¯ ¯
¯ ∂x ∂y ∂z ¯
¯ exp(x + 2y + 3z) 2 exp(x + 2y + 3z) 3 exp(x + 2y + 3z) ¯
¡ ¢ ¡ ¢ ¡ ¢
= 6ex+2y+2z − 6ex+2y+3z i + 3ex+2y+2z − 3ex+2y+3z j + 2ex+2y+2z − 2ex+2y+3z k = 0
• Definition: A vector field F(x, y, z) = F1 (x, y, z)i+F2 (x, y, z)j+F3 (x, y, z)k is conservative if F = ∇φ
for some function φ.
• On a simply connected domain, a vector field F is conservative if and only if it is irrotational, i.e.,
∇ × F = 0.
• Important Identity – Divergence of Curl: For a vector field F(x, y, z) = F1 (x, y, z)i+F2 (x, y, z)j+
F3 (x, y, z)k,
div curl F = ∇ · (∇ × F) = 0.
Proof:
½µ ¶ µ ¶ µ ¶ ¾
∂F3 ∂F2 ∂F3 ∂F1 ∂F2 ∂F1
∇ · (∇ × F) =∇ · − i− − j+ − k
∂y ∂z ∂x ∂z ∂x ∂y
µ ¶ µ ¶ µ ¶
∂ ∂F3 ∂F2 ∂ ∂F3 ∂F1 ∂ ∂F2 ∂F1
= − − − + −
∂x ∂y ∂z ∂y ∂x ∂z ∂z ∂x ∂y
∂ 2 F1 ∂ 2 F1 ∂ 2 F2 ∂ 2 F2 ∂ 2 F3 ∂ 2 F3
= − − + + − =0
∂y∂z ∂z∂y ∂x∂z ∂z∂x ∂x∂y ∂y∂x
20 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
∂2 ∂2 ∂2
∇2 = ∇ · ∇ = + + .
∂x2 ∂y 2 ∂z 2
1
• Example: Find the Laplacian of the function f (x, y, z) = p .
x2 + y 2 + z 2
Solution:
1
f (x, y, z) = p
x2 + y2 + z2
∂f x ∂ 2f 3x2 1
=− 3 =⇒ 2
= 5 − 3
∂x 2 2
(x + y + z ) 22 ∂x 2 2 2
(x + y + z ) 2 (x + y 2 + z 2 ) 2
2
∂ 2f 3y 2 1
Similarly = 5 − 3
∂y 2 (x2 + y 2 + z 2 ) 2 (x2 + y 2 + z 2 ) 2
∂ 2f 3z 2 1
2
= 5 − 3
∂z (x2 + y 2 + z 2 ) 2 (x2 + y 2 + z 2 ) 2
3(x2 + y 2 + z 2 ) 3
=⇒ ∇2 f (x, y, z) = 5 − 3 =0
(x2 + y 2 + z 2 ) 2 (x2 + y 2 + z 2 ) 2
∂ 2 F1 ∂ 2 F1 ∂ 2 F1
F1 (x, y, z) =x2 =⇒ = 2, = = 0 =⇒ ∇ 2 F1 = 2
∂x2 ∂y 2 ∂z 2
Similarly, ∇2 F2 = ∇2 (y 2 ) = 2, ∇2 F3 = ∇2 (z 2 ) = 2
=⇒ ∇2 F = 2i + 2j + 2k
∇ × (∇ × F) =∇ (∇ · F) − ∇2 F
∇(f g) =g∇f + f ∇g
∇ · (gF) =F · ∇g + g∇ · F
∇ × (gF) =(∇g) × F + g∇ × F
∇ (F · G) =(F · ∇)G + (G · ∇)F + F × (∇ × G) + G × (∇ × F)
∇ · (F × G) =G · (∇ × F) − F · (∇ × G)
∇ × (F × G) =F(∇ · G) − G(∇ · F) + (G · ∇)F − (F · ∇)G
CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS 21
In cylindrical coordinates
x = r cos θ
y = r sin θ
z = z
In other words,
er cos θ sin θ 0 i
eθ = − sin θ cos θ 0 j
ez 0 0 1 k
i cos θ − sin θ 0 er
j = sin θ cos θ 0 eθ .
k 0 0 1 ez
On the other hand,
∂f
∂f ∂f
∂x ∂y ∂z
∂r ∂x
cos θ sin θ 0
∂x
∂r ∂r ∂r ∂f
∂f ∂x ∂y ∂z = ∂f
= −r sin θ r cos θ 0
∂y
∂θ ∂y
∂θ ∂θ ∂θ 0 0 1
∂f 0 0 1 ∂f ∂f
∂z ∂z ∂z
∂f ∂f
∂x sin θ
cos θ − 0 ∂r
∂f r
= cos θ ∂f
∂y sin θ
0 ∂θ
∂f r
0 0 1 ∂f
∂z ∂z
22 CHAPTER 2 MULTIVARIABLE AND VECTOR DIFFERENTIAL CALCULUS
Therefore,
∂f ∂f ∂f
∇f = i+ j+ k
∂x ∂y ∂z
µ ¶ µ ¶
∂f sin θ ∂f ∂f cos θ ∂f ∂f
= cos θ − (cos θer − sin θeθ ) + sin θ + (sin θer + cos θeθ ) + ez
∂r r ∂θ ∂r r ∂θ ∂z
∂f 1 ∂f ∂f
= er + eθ + ez .
∂r r ∂θ ∂z
References
[1] James Stewart, Calculus, Thomson.
[2] C. Henry Edwards and David E. Penny, Calculus Early Transcendentals, Pearson.
[3] Erwin Kreyszig, Advanced Engineering Mathematics, Wiley.
[4] Peter V. O’Neil, Advanced Engineering Mathematics, Thompson.