Multivariate Calculus Unit Two: M. A. Boateng, PHD., Mima
Multivariate Calculus Unit Two: M. A. Boateng, PHD., Mima
Multivariate Calculus Unit Two: M. A. Boateng, PHD., Mima
UNIT TWO
July 6, 2022
Gradiant of a function of n variables:
Let w = f (x , y , z) be a function of three variables such that fx , fy ,
→
−
and fz exist. The vector ∇f (x , y , z) is called gradient of f and is
given as:
→
−
∇f (x , y , z) = fx (x , y , z)î + fy (x , y , z)ĵ + fz (x , y , z)k̂
→
−
∇f (x , y , z) can be written as grad f(x,y,z).
Example:
Find the gradient of f (x , y , z) = x 2 y + z 3 x
solution
fx = 2xy + z 3 , fy = x 2 , fz = 3z 2 x
→
−
∇f (x , y , z) = (2xy + z 3 )î + x 2 ĵ + 3z 2 x k̂
x 2 −3y 3 +z 2
1. f (x , y , z) = 2x +y −4z
2. f (x , y , z) = e −2z sin2xcos3y 4
3. f (x , y , z) = 3x 2 + xy − 4yz − z 2 + 2xz
f (P + hU) − f (P)
Du f (P) = lim ,
h→0 h
if the limit exists.
.
d
Du f (A) = f (A + tu)|t=0 = ▽f (A) · u
dt
Solution
First we find a unit vector in the direction of the vector given.
→
−
u = (−1,0,3)
√ = √1 (−1, 0, 3)
1+0+9 10
−1 √3 (x 2
Du f = √
10
(2xz − yz) + 0(3y 2 z 2 − xz) + 10
+ 2y 3 z − xy )
Du f = √1 (−2xz + yz + 3x 2 + 6y 3 z − 3xy )
10
and
0
0
m11 m12 . . . m1n m1j t
.. m t
m21 m22 . . . m2n
. 2j
Lh =
.. .. ..
=
..
. . t
. .
.
mp1 mp2 mpn .. mpj t
0
" #
Solution
m11 m12
L= . Now f1 (x1 , x2 ) = 3x1 sinx2 , and f2 (x1 , x2 ) = x13 + x1 x22
m21 m22
Computing the partial derivatives we have
δf1 δf1
δx1 = 3sinx2 δx2 = 3x1 cosx2
δf2 2 2 δf2 = 2x x
δx1 = 3x1 + x2
" x2 1 2
#
3sinx2 3x1 cosx2
∴L=
3x12 + x22 2x1 x2
Find all the first order partial derivatives of the given functions:
1. f (x , y ) = x 2 y 3
2. f (x , y , z) = x 2 yz + zcos(xy )
ysin(e x )
3. h(w , x , y , z) = y +z
xy (x 2 −y 2 )
4. w (x , y , z) = x 2 +y 2
or
m11 m12 . . . m1n dx1
df (P) 21 m22
m . . . m2n
dx2
= . .. .. ..
dt .. . ... . .
mp1 mp2 . . . mpn dxn
Chain Rule:
Let f : R n → R p and g : R p → R q . Suppose the derivative of f at A
is L and the derivative of g at f(A) is M. We now seek for the
derivative of the composite function g ◦ f : R n → R q at A. Let
r = g ◦ f and consider r (A + h) − r (A) = g(f (A + h)) − g(f (A)).
Example:
Let f (t) = (t 2 , 1 + t 3 ) and g(x1 , x2 ) = (2x1 − x2 )3 , and let r = g ◦ f .
Find the derivative of r at r=2.
Solution
df 2
dt = L = (2t, 3t ) and derivative of g is:
M = [6(2x1 − x2 )2 ) − 3(2x1 − x2 )2 ]
At r=2, L = (4, 12) and at g(f (2)) = g(4, 9)M = [6, −3]
Trial
Let f (x , y , z) = x 2 + y 2 + z 2 and g(s, t) = (e s cost, e s sint, t) find f ◦ g at
(s,t)=(1,3)
3. Find equation for the plane tangent to the curve of intersection of the
surfaces x 3 + 3x 2 y 2 + y 3 + 4xy − z = 0 and x 2 + y 2 + z 2 − 11 at the
point (1,1,3)
Relative Minimum:
A function f (x , y ) has a relative minimum at the point (a,b) if
f (x , y ) ≥ f (a, b) for all points (x,y) in some region around (a,b).
Relative Maximum:
A function f (x , y ) has a relative maximum at the point (a,b) if
f (x , y ) ≤ f (a, b) for all points (x,y) in some region around (a,b).
The point (a,b) is a critical point (or a stationary point) of f (x , y )
provided one of the following is true;
1. ∇f (a, b) = ⃗0 (this is equivalent to saying that fx = (a, b) = 0 and
fy (a, b) = 0 )
2. fx (a, b) and/or fy (a, b) does not exist
f (x , y ) = 4x 3 + y 3 − 3xy
Solution
fx2 − 3y , fxx = 6x , fy = 3y 2 − 3x , fyy = 6y , fxy = −3
Solving for the critical points, we solve fx and fy simultaneously.
3x 2 − 3y = 0 · · · (1)
3y 2 − 3x = 0 · · · (2)
Solving the two yields the critical points (0,0) and (1,1).
We then classify the points;
D = D(a, b) = fxx (a, b)fyy (a, b) − [fxy (a, b)]2
D1 = 6(0) · 6(0) − (−3)2 = −9
Hence D1 (0, 0) is a saddle point.
D2 = 6(1) · 6(1) − (−3)2 = 27 and fxx (1, 1) = 6
Hence D2 (1, 1) is a relative minimum.
Find all the critical points and describe them for the functions below
f (x , y ) = 3x 2 y + y 3 − 3x 2 − 3y 2 = 2
f (x , y ) = y − x 2
f (x , y ) = x 2 + 2xy
and
n
X n
X
m xi + nb = yi
n=1 i=1
simultaneously.
xi 0 1 2 3 4 5 7 8 9 10 12 15
yi 1 2 4 3.5 5 4 7 9 12 18 21 29
Solution
255
Solving this system simultaneously gives m = 142 and b = − 993
568 .
255 993
The line of of best fit becomes y = 142 x − 568