Professional Documents
Culture Documents
Chapter 2 - 2 - Partial Derivatives
Chapter 2 - 2 - Partial Derivatives
Chapter 2 - 2 - Partial Derivatives
Chapter – 2
PARTIAL DERIVATIVES
DIRECTIONAL DERIVATIVE
MAXIMUM AND MINIMUM VALUES OF MULTIVARIATE FUNCTIONS
The Gradient Vector:
2
Definition: If f is a function of three variables x, y and z. Then the gradient
of f (x, y, z ) denoted by grad f (or) f (which is read as “del f ”) and it is
defined as
grad f = f = f x i + f y j + f z k = f x , f y , f z
where Del = = i + j +k is called the vector differential operator.
x y z
f (x, y, z ) = 3x 2 y − y 3 z 2
Example 27: If find grad f at the point (1,-2,-1). 3
grad f = f = f x iˆ + f y ˆj + f z kˆ
( )
= 6 xyiˆ + 3x 2 − 3 y 2 z 2 ˆj − 2 y 3 zkˆ
At (1,-2,-1),
2 2 2
f = 6(1)(− 2)iˆ + 3(1) − 3(− 2) (− 1) ˆj − 2(− 2) (− 1)kˆ
3
= −12iˆ − 9 ˆj − 16kˆ
Directional Derivative: 4
The directional derivative of f (x, y, z ) at a point (x0 , y0 , z0 ) in a direction of a unit vector
u is denoted by Du f (x0 , y0 , z0 ) and it is defined as
Du f (x0 , y0 , z0 ) = f . u
Note 1: Du f (x0 , y0 , z0 ) represents the rate of change of f (x, y, z ) at (x0 , y0 , z0 ) in the direction of
a unit vector u .
y
u = cos i + sin j
(x0,y0) cos
0 xy
Example 28: Find the directional derivative, Du f (x, y ) if f (x, y ) = x 3 − 3xy + 4 y 2 5
and u is the unit vector given by an angle =
6
. What is Du f (1,2)?
( )
= 3x 2 − 3 y i + (− 3x + 8 y ) j Du f (1,2) = f (1,2) u
3
= (− 3i + 13 j )
1
i+ j
At the point (1,2),
f = (3 − 6)i + (− 3 + 16) j 2 2
3 3 13 13 − 3 3
=− + =
= −3i + 13 j 2 2 2
Example 29: If f (x, y ) = x sin yz 6
(a) find the gradient of f at (1,3,0)
(b) find the directional derivative of f at
(1,3,0) in the direction of vˆ = iˆ + 2 ˆj − kˆ
Sol: Let f (x, y) = x sin yz
f ˆ f ˆ f ˆ (b) Let û
(a) grad f= f = i+ j+ k
x y z be the unit vector in the
= sin yziˆ + x cos yz zˆj + x cos yz ykˆ
direction of the vector,
= sin yziˆ + xz cos yzˆj + xy cos yzkˆ
vˆ = iˆ + 2 ˆj − kˆ
At (1,3,0), vˆ iˆ + 2 ˆj − kˆ iˆ + 2 ˆj − kˆ 1 ˆ 2 ˆ 1 ˆ
uˆ = = = = i+ j− k
f = sin 0iˆ + 0 cos 0 ˆj + 3 cos 0kˆ vˆ 12 + 2 2 + (− 1)
2
6 6 6 6
f ( x, y , z ) = , (3,4,1), vˆ = iˆ + 2 ˆj + 3kˆ
x
(ii)
y+z
(iii) g (r , ) = e − r sin , 0, , vˆ = 3iˆ − 2 ˆj
3
f (x, y, z ) = (x + 2 y + 3z ) 2 , (1,1,2), vˆ = 2 ˆj − kˆ
3
(v)
Sol: (i) Let f (x, y ) = 1 + 2 x y 8
f ˆ f ˆ
f = i+ j
x y
1
= 2 yiˆ + 2 x ˆj
2 y
x ˆ
= 2 yiˆ + j
y
At (3,4) ,
3 ˆ 3
f = 2 4iˆ + j = 4iˆ + ˆj
4 2
At (4,1,1) ,
1 4 4 1
f = iˆ − ˆj − kˆ = iˆ − ˆj − kˆ
2 4 4 2
vˆ
uˆ = =
vˆ
iˆ + 2 ˆj + 3kˆ
=
1 ˆ
(
i + 2 ˆj + 3kˆ )
1 +2 +3
2 2 2
14
At P(2,8) ,
8 ˆ 2 ˆ ˆ 1ˆ
f = i+ j =i + j
2 16 2 16 4
1ˆ 1 17
= iˆ + j = 1+ =
4 16 4
Example 32: Find the maximum rate of change of f at the given point and the
direction in which it occurs.
14
y2
(i) f ( x, y ) = , (2,4)
x
(iii) f ( p, q ) = qe − p + pe − q , (0,0)
(iv) (
f (x, y, z ) = ln xy 2 z 3 ,) (1,−2,−3)
(v) f ( x, y , z ) = x 2 y 3 z 4 , (1,1,1)
f ˆ f ˆ
f = i+ j
x y
y2 ˆ 2 y ˆ
=− 2 i+ j
x x
At P(2,4) ,
16 ˆ 8 ˆ
f = − i + j = −4iˆ + 4 ˆj
4 2
The maximum rate of change of f at the point (2,4) occurs in the direction occurs in the direction of
− iˆ + ˆj
f (2,4) = −4iˆ + 4 ˆj
or, equivalently, in the direction of − iˆ + ˆj or the unit vector,
2
and the maximum rate of change of f is
f = − 4iˆ + 4 ˆj = 32 = 4 2
(ii) Here f (x, y, z ) = tan(x + 2 y + 3z ) 16
f ˆ f ˆ f ˆ
f = i+ j+ k
x y z
Sol: Let
T ˆ T ˆ T ˆ
T = i+ j+ k
x y z
= 200e − x
2
−3 y 2 −9 z 2
(− 2 xiˆ − 6 yˆj − 18zkˆ)
= −400e − x
2
−3 y 2 −9 z 2
(xiˆ + 3 yˆj + 18kˆ)
At P ( 2,-1,2),
( )
T = −400e −4−3−36 2iˆ − 3 ˆj + 18kˆ = −400e −43 2iˆ − 3 ˆj + 18kˆ ( )
(a) Let 𝑢ො be the unit vector in the direction PQ = iˆ − 2 ˆj + kˆ
uˆ =
PQ
PQ
=
iˆ − 2 ˆj + kˆ
1+ 4 +1
=
1 ˆ
6
(
i − 2 ˆj + kˆ )
(a) Find the rate of change of potential at P(3,4,5) in the direction of the
vector vˆ = iˆ + ˆj − kˆ
(b) In which direction does V change the most rapidly at P?
(c) What is the maximum rate of change at P?
Sol: Let V (x, y, z ) = 5x 2 − 3xy + xyz
21
V ˆ V ˆ V ˆ
V = i+ j+ k
x y z
= (10 x − 3 y + yz )iˆ + (− 3x + xy ) ˆj + (xy )kˆ
At P(3,4,5),
V = (30 − 12 + 20)iˆ + (− 9 + 15) ˆj + 12kˆ
= 38iˆ + 6 ˆj + 12kˆ
(a) Let 𝑢ො be unit vector in the direction of vˆ = iˆ + ˆj − kˆ
vˆ
uˆ = =
iˆ + ˆj − kˆ
=
1 ˆ ˆ ˆ
i + j−k ( )
vˆ 1 +1 + −1
2 2
( )2
3
( ) (
= 38iˆ + 6 ˆj + 12kˆ
1 ˆ ˆ ˆ
3
i + j−k )
=
1
(38 + 6 − 12) = 32
3 3
22
(b) The potential V changes most rapidly at P (3,4,5) in the direction of
V (3,4,5) = 38iˆ + 6 ˆj + 12kˆ
(b) Use the result of part (a) to find the direction in which
the function f (x, y ) = x 4 y − x 2 y 3
decreases fastest at the point (2,-3).
Sol: (a) The directional derivative of f at same point in the direction of a unit
vector u is 24
Duˆ f = f u
= f cos ( u = 1)
[This means that f (x, y ) f (a, b) for all points (x, y) in same disk with centre (a, b)]
If f (x, y ) f (a, b ) when (x, y) is near (a, b),then f has a local minimum at a point (a, b) and
the value f(a, b) is a local minimum value.
Note: 1. If f (x, y ) f (a, b) for all (x, y) in the domain of f, then f has an absolute maximum at (a, b).
If f (x, y ) f (a, b ) for all (x, y) in the domain of f, then f has an absolute minimum at (a, b).
A point (a, b) is called a critical point (or stationary point) of f if f x (a, b) = 0 and f y (a, b ) = 0
or one of these partial derivatives does not exist.
= f xx f yy − ( f xy )
f xx f xy
D=
2
f yx f yy
Working Rule to Find the Maximum and Minimum Values of f(x,y):
1. Find f x (x, y ) and f y ( x, y )
f x = 4 x 3 − 4 y, f y = 4 y 3 − 4x
f xx = 12 x 2 , f xy = −4, f yy = 12 y 2
(x )
3 3
−x=0
and D = f xx f yy − ( f xy ) = 144 x y − 16
2 2 2
x9 − x = 0
x(x 8 − 1) = 0
Now, f x = 0 and f y = 0 gives
x (x 4 ) − 12 = 0
2
x 3 − y = 0 → (i ) x(x 4 − 1)(x 4 + 1) = 0
y 3 − x = 0 → (ii )
x (x 2 ) − 12 (x 4 + 1) = 0
2
f (x, y ) = 2 x 3 + xy 2 + 5 x 2 + y 2
Solution:
f x = 6 x + y + 10 x,
2 2
f y = 2 yx + 2 y
f xx = 12 x + 10, f xy = 2 y, f yy = 2 x + 2
D = f xx f yy − ( f xy ) = (12 x + 10 )(2 x + 2) − 4 y 2
2
f x = 0 and f y = 0 gives
6 x 2 + y 2 + 10 x = 0 → (i )
2 y (x + 1) = 0 → (ii )
Solution:
f x = 2 y − 2 x, f y = 2x − 2 y
f xx = −2, f xy = 2, f yy = −2
D = f xx f yy − ( f xy ) = (− 2)(− 2) − 2 2 = 4 − 4 = 0
2
Now,
fx = 0 and f y = 0 gives
So, the second derivative test gives no
y − x = 0 → (i )
information. The case is doubtful.
x − y = 0 → (ii )
f (x, y ) = 1 − (x − y ) 1
2
for all (x, y) with equality if and only if x = y.
Now,
From (ii), sin y = 0
f x = 0 and f y = 0 gives
But, if y = + n ,
e cos y = 0 → (i )
x
2
− e sin y = 0 → (ii )
x sin y = sin + n = 1 0
From (i), 2
Solution:
Let (x, y, z ) be any point on the plane x + y − z = 1 → (1)
d 2 = f (x, y ) = (x − 2) + ( y − 1) + (x + y )
2 2 2
d 2 = f (x, y ) = (x − 2) + ( y − 1) + (x + y )
2 2 2
f x = 2( x − 2 ) + 2(x + y ), f y = 2( y − 1) + 2( x + y )
f xx = 2 + 2 = 4, f xy = 2, f yy = 2 + 2 = 4 Since D = 12 0 and f xx = 4 0
D = f xx f yy − ( f xy ) = (4)(4) − 2 2 = 16 − 4 = 12 0
2
f has a local minimum at (1,0).
From (ii), x = 1 − 2 y = 1 − 0 = 1
The only critical point is (1,0).
Example 41: Find the shortest distance from the point (1,0,-2) to the plane
x + 2y + z = 4
Sol: Try yourself
Example 42: Find the point on the plane x − y + z = 4 that is closest to the point (1,2,3).
Sol: Try yourself
Example 43: Find the point on the surface z 2 = xy + 1 that are close to the origin.
Sol: Try yourself
Absolute Maximum and Minimum Values:
To find the absolute maximum and minimum values of a continuous function f on a closed
bounded set D:
(i) Find the values of f at critical points of f in D.
(ii) Find the extreme values of f on the boundary of D.
(iii) The largest of the values from steps (i) and (ii) is the absolute maximum value; the
smallest of these values is the absolute minimum value.
Example 44: Find the absolute maximum and minimum values of the function
f (x, y ) = x 2 − 2 xy + 2 y on the rectangle D = (x, y ) / 0 x 3,0 y 2
y
Solution
f x = 2 x − 2 y, f y = −2 x + 2 L4
x=0 D L2
x=3
Now, f x = 0 and, f y = 0 gives
(0,0) L1 (3,0) x
x − y = 0 → (i ) y=0
− x + 1 = 0 → (ii )
From (ii), x = 1
From (i), x = y = 1
The only critical point is (1,1) and the value of f at this point is f(1,1) = 1
Now, we find the values of f on the boundary of D, which consists of the four line segments
L1 , L2 , L3 and L4
On L1 we have y = 0, x = x and 𝑓 𝑥, 0 = 𝑥 2 , 0 ≤ 𝑥 ≤ 3
This is a parabola
𝐸. 𝑃: 0,0 → 𝑓 0,0 = 0
𝐸. 𝑃: 3,0 → 𝑓 3,0 =9
On L2 x = 3, y = y f (3, y ) = 9 − 4 y, 0 y 2
This is a line 𝑓 3, 𝑦 = 9 − 4𝑦, 𝑓′(3, 𝑦) = −4 ≠ 0 → No C.P
𝐸. 𝑃: 3,0 → 𝑓 3,0 = 9
𝐸. 𝑃: 3,2 → 𝑓 3,2 = 1
On L3 y = 2, x = x f (x,2) = x 2 − 4 x + 4, 0 x 3
This is a parabola f (x,2) = x 2 − 4 x + 4, f ' ( x,2) = 2 x − 4 = 0 → C.P (2,2) , f (2,2) = 0
𝐸. 𝑃: 0,2 → 𝑓 0,2 = 4
𝐸. 𝑃: 3,2 → 𝑓 3,2 =1
On L4 we have x = 0, y = y and f (0, y ) = 2 y, 0 y 2
𝐸. 𝑃: 0,0 → 𝑓 0,0 = 0
𝐸. 𝑃: 0,2 → 𝑓 0,2 =4
Here f x = 4 and f y = −5
(0,0) L1 (2,0) x
y=0
(i) f (x, y ) = 3 + xy − x − 2 y, D is the closed triangular region with vertices (1,0), (5,0) and
(1,4).
(ii) f (x, y ) = x 2 + y 2 + x 2 y + 4, D = (x, y ) / x 1, y 1