Chapter 1 Several Variable Note
Chapter 1 Several Variable Note
Chapter 1 Several Variable Note
CHAPTER FOUR
DIFFERENTIAL CALCULUS OF FUNCTIONS OF SEVERAL VARIABLES
, domain of f is ( x, y) : ( x, y) (0,0)
xy
2. f ( x, y ) 2
x y2
3.
f ( x, y) y 1 ln x 2 y domain of f is x, y R 2 / 1 y x 2 .
, domain of f is ( x, y) : xy 0 .
1
4. f ( x, y )
xy
Example 2: Find the domain of f ( x, y, z ) 1 x 2 y 2 z 2 .
The domain of f is given by ( x, y, z ) : x 2 y 2 z 2 1 Which is a ball (a solid sphere) of radius 1
Page 1
AASTU APPLIED MATHEMATICS II
Graph of
Domain of =
Figure 3.1,
hemisphere
y
Example 4: Sketch the graph of f ( x, y ) 1 x .
2
y y
Solution: Let z f ( x, y) .Then z 1 x x z 1 .We can see that the intersection of the
2 2
1
graph of with the xy plane is a line x y 1 . Moreover, the intersection of the graph of and
2
xz plane is a line x z 1. Finally, the intersection of the graph of with the plane is
, i.e. we have the following graph.
z
2
1
x
y
Page 2
AASTU APPLIED MATHEMATICS II
Graph of
Contour
map
Graph of
Contour map
Circular paraboloid
3. LEVEL CURVES
One method of visualizing the function of two variables is looking at its graph. Another method,
borrowed from map markers, is a Contour map on which points of a constant elevation are joined to
form a level curve (contour curve).
Suppose z f ( x, y ) is a function of two variables and let z c , c R be a plane. Then, the
intersection of the graph of z f ( x, y ) and the plane can be seen to be f ( x, y ) c . One can see
that this is obtained by cutting the graph of z f ( x, y ) by the plane z c . Then, the resulting map
(intersection) is called the contour map corresponding to z c . The projection of this contour map
on the xy plane is called a level curve (contour curve) with a constant. k .
It is generally hard to draw a picture of the graph of a function of two variables. Sometimes, But, we
can sketch level curves. Take a function f of two variables x and y, defined on a domain D. For a real
number k, the level curve at k, denoted C (k ) is the set of all points in D such that f(x, y) = k, i.e.
c(k ) {( x, y ) D : f ( x, y ) k} . The following figures illustrate these two terms.
Page 3
AASTU APPLIED MATHEMATICS II
Contour map
The plane
Example 7 Let f ( x, y ) x 2 y 2 .
Graph of
Contour map
Level curves
Circular paraboloid
4: QUADRIC SURFACES
Page 4
AASTU APPLIED MATHEMATICS II
a. f x, y, z x 2 y 2 z 2 x 2 y 2 z 2 k , k 0 is a sphere.
b. f x, y, z x 2 y 2 x 2 y 2 k , k 0 is a Cylinder.
c. f x, y, z ax by cz ax by cz k it is a planes.
Definition: surfaces defined by polynomials of the form are called Quadric surfaces.
A: ELLIPSOID
The surface whose equation is where a, b, and c are given positive is called an
ellipsoid. Its intersection with any plane, parallel to coordinate planes, is an ellipse. If a b c,
then we see that the ellipsoid is a sphere ( see the figure below)
Example 9: a) x 2 4 y 2 z 2 4
b) 9 x 2 4 y 2 z 2 1
B: ELLIPTICAL CYLINDER
2 2
The surface with equation x y 1 is called an elliptic cylinder. If in particular, a b, we get
2 2
a b
Example 10: y 2 9 z 2 9
C: ELLIPTICAL PARABOLOID
Page 5
AASTU APPLIED MATHEMATICS II
Example 12 z 2 x 2 y 2 .
E: ELLIPTICAL DOUBLE CONE
x2 y2 z2
The surface whose equation is where a, b, c are given positive numbers, is called
a2 b2 c2
double cone.
Example 13 16 x 2 y 2 4 z 2 .
Proof:
Let 0 be given. For all ( x, y ) R 2 , we can easily see that
x x0 x x 0 2 y y 0 2 and y y 0 x x0 2 y y 0 2 .Moreover,
we can see that
( x y ) ( x0 y 0 ) ( x x0 ) ( y y 0 )
x x0 y y 0
2 x x 0 2 y y 0 2
Choose . Then, it follows that
2
( x y) ( x0 y0 ) ( x x0 ) ( y y0 ) x x0 y y0 2.
2
whenever 0 x x 0 2 y y 0 2 , ( x , y ) R 2 .
Thus, we conclude that lim ( x y ) x0 y 0 .
( x , y ) ( x0 , y 0 )
Page 6
AASTU APPLIED MATHEMATICS II
f a
(b) lim(cf ) ( P) ca
P P0
(d) lim( g ) ( P) b , g ( P) 0, b 0.
P P0
x sin y x 2 2
Example: 15: Consider the function f ( x, y ) . Then,
x2 y2 1
x sin y x 2 2
lim f ( x, y ) lim
( x , y ) ( 0 , 0 ) ( x , y ) ( 0 , 0 )
x2 y2 1
lim
( x , y ) ( 0 , 0 )
x sin y x 2
2
(by quotient rule)
lim x2 y2 1
( x , y ) ( 0 , 0 )
2.
xy
Example 16: Show that lim
( x , y ) (0, 0) x y2
2 doesn't exist.
xy
Solution: To show that
( x , y ) (0, 0) x y
2 lim
doesn't exist, it suffice to show that the limits
2
xy
lim
( x , y ) (0, 0) x y2
2 doesn't exist.
Example 17: Compute the limit at (0, 0) of the function f such that
xy y 2
f ( x, y ) .
x y
Both the numerator and the denominator approach 0, when (x, y) approaches the origin, thus we
cannot use the quotient rule. We multiply the numerator and the denominator by x y to obtain
f ( x, y )
xy y 2
( xy y 2 ) x y y( x y)
x y ( x y ) x y
Page 7
AASTU APPLIED MATHEMATICS II
Example 18:
lim
( x , y )( 2,1)
x 2
y 2 xy 3 1 lim ( x 2 y )
( x , y )( 2,1)
lim (2 xy 3 1) 4 3 7
( x , y )( 2,1)
x2 y2
Example 19: Let f ( x, y ) .Then, the domain f is all points in the xy plane except the
x2 y2
origin. We will approach the origin on a line, whose equation is y mx . Then, we see that
x 2 (mx ) 2 x 2 (1 m 2 ) 1 m 2
f ( x, y ) f ( x, mx ) 2
x (mx ) 2 x 2 (1 m 2 ) 1 m 2 . If the values m1 and m2 of the variable
m satisfy the condition m1 m2 , then the limits of f ( x, mx ) at 0 are different. Finally, we conclude
that f has no limit at the origin.
x3 y3 1 cosxy
Example 20: Evaluate a) lim b) lim 2 2 2 3
x , y 0, 0 x 2 y 2
x , y 0,0 x y x y
1. Is defined at
2. lim f x, y exists
x , y xo , yo
3. lim f x, y f xo , y o
x , y xo , yo
Theorem 3: Let f and g be continuous at P0 . Then
(i) cf is continuous at P0 , c R
f g is continuous at P0 . (iii)
f
(ii) fg is continuous at P0 . (iv) is continuous at P0 . Provided that
g
Theorem 4: Let f be a continuous function of two variables at the point P0 .Then,
(i) If g is a continuous real-valued function at f ( P0 ) , then g f is continuous.
Page 8
AASTU APPLIED MATHEMATICS II
lim f ( P) f ( P )
P P0
0
x2 y3
Example 21: The function defined by f ( x, y ) is continuous at the point (0,0) because
x3 y 4
lim f ( x, y ) f (0,0).
( x , y ) ( 0 , 0 )
( x 2 y 2 ) ln( x 2 y 2 ) if ( x, y ) (0,0)
Example 22: Show that f ( x, y ) is continuous at
0 if ( x, y ) (0,0)
(0,0) .
Solution: Observe that f (0,0) 0 and if (r , ) is the polar coordinate of ( x, y ) , we have
x r cos , y r sin .
Therefore, by substitution, we obtain that.
lim ( x y ) ln( x y ) = lim r ln(r ), r x y
2 2 2 2 2 2 2 2 2
( x , y ) (0, 0) r 0
2 ln r
= lim (by applying L’Hopitals rule)
r0 1
r2
2
lim r 0
r 0 2
r3
Hence, f is continuous at (0, 0)
Example23: Show that f is not continuous at (0,0) where
sin ( xy )
2 if ( x, y ) (0, 0)
f ( x, y ) x y
2
.
0 if ( x, y ) (0,0)
Solution: Approaching (0,0) through y x, y x , we get that
sin( xy ) sin( x 2 ) 1
lim lim
( x , y ) (0, 0) x2 y2 x0 2 x2 2
and
sin( x 2 ) 1
lim 2
.Therefore the limit of f at (0, 0) doesn’t exist.
x 0 2x 2
7: PARTIAL DERIVATIVES
Page 9
AASTU APPLIED MATHEMATICS II
f ( x0 , y ) f ( x0 , y0 ) f ( x0 , y0 h) f ( x0 , y0 )
f y ( x0 , y0 ) lim lim
y y0 y y0 h0 h
f
Hence, f x (0,0) x 0 0 . Similarly, f y (0,0) 0 .
x y 0
x y
Example 25: Consider .Then, we see that
x y
f ( x, y ) x y
x x x y
1( x y ) ( x y )(1) 2y
.
( x y) 2
( x y) 2
f ( x, y ) x y
x x x y
1( x y ) ( x y )(1) 2y
.
( x y) 2
( x y) 2
xy 2
Example 26: f(x, y) = e cos y. Then,
f ( x, y )
cos y (e xy ) )( y 2 ) y 2 (cos y )(e xy ).
2 2
x
f ( x, y )
( sin y )e xy 2 xy cos ye xy .
2 2
y
= e xy sin y 2 xy cos y .
2
Page 10
AASTU APPLIED MATHEMATICS II
f x, y, z xy
sin z
c)
b)
f ( x, y) x 2 y 2 1
c) f ( x, y) Cosh2 ( xy)
d) f ( x, y ) sin( x 2 y 3 )
e) f ( x, y ) 3 sin( x y ) 2 cos(x 2 )
f ( x, y) e x y cos(xy)
2
f)
2. Which of the mixed partial derivatives are equal in question number 1 ? Why?
3. Let f ( x, y ) e x2 y f ,f ,f f .
. Then, find xy yx xyx and yxx
In general, the mixed partial derivatives may not be equal.
f ,f ,f ,f
Theorem 5: Let f be a function of two variables x and y . If x y xy yx are continuous in an
f f yx
open disk D, then xy at each point of the set D.
Example 29: find f xyy for f x, y cosxy x 3 y 4
9: CHAIN RULE
Consider a function of single variable i.e x is a function of a variable t
then, the chain rule states that . In this section, we will see the chain rule for function of
several variables.
Page 11
AASTU APPLIED MATHEMATICS II
f f
Example 30: Let and x cos(2t ), y Cos(t ) Then, 2 x, 3 y 2 . Suppose
x y
dx dy df f dx f dy
now that. Then 2 sin(2t ) , sin t . It follows that . .
dt dt dt x dt y dt
2 x(2 sin(2t ) 3 y 2 ( cos t ) 2 cos(2t )(2 sin(2t ) 3 cos2 t ( sin t )
𝜕𝑓
𝜕𝑦
y 𝑦
dw
Example 33: Let w cos(x z y) xy, x(t ) 2t , y(t ) t sin t , z (t ) te . Find
2
2 3 2 t
By
dt
applying the chain rule, we compute
Page 12
2,1,1,2. AASTU APPLIED MATHEMATICS II
dy dx dz
2t sin t t 2 cos t , 2, e t te t
dt dt dt
w w w
cos(x 2 z 3 y ).(2 xz 3 ), cos(x 2 z 3 y ), cos(x 2 z 3 y ).(3x 2 z 2 )
x y z
dw w dx w dy w dz
Thus by substitution, we get . . .
dt x dt y dt z dt
Theorem 8 (The second version of the chain rule): If x x(u , v) and y y (u , v) have first
partial derivatives at (u , v) and z f ( x, y ) is differentiable at ( x(u , v), y (u, v)) , then
z z x z y
(i) . .
u x u y u
z z x z y
(ii) . .
v x v y v
Example 34: Consider f ( x, y) x 2 y tan x where x u 2 v 2 , y u v
f f
Find ,
u v
f f
Solution , 2x - y sec 2 x, tan x
x y
Hence,
f f x f y
. . (2 x y sec2 x)(2v) tan x
v x v y v
Figure 4.3
The second version of the chain rule
Page 13
AASTU APPLIED MATHEMATICS II
f dx f dy
By applying the chain rule, we get . . 0.
x dx y dx
dy f
x
dx fy
Example 35: Find y if x 3 y 3 6 xy
Solution: f x, y x 3 y 3 6 xy 0
dy f 3x 2 6 y 2 y x 2
x 2
dx fy 3 y 6x y 2 2x
Assume that the variables x, y and z are related by the equation F(x, y, z) = 0. Assuming
that Fz 0 , there is a version of the implicit function theorem which means, we can in
principle, write z = z(x, y), so we can solve for z. Thus, consider the equation F(x, y,
z(x, y)) = 0 and differentiating both sides partially with respect to x. We get
F x F y F z F
. . . 0. and since 0, we get
x x x y x z x z
F
z Fx
x .
x F Fz
z
F x F y F z
. . . 0.
y x y y y z y
F
Fy
z y .
y F Fz
z
z z
Example 36: Find , if ( i ) x 2 y 2 z 2 9 (ii) xy z 3 cos(yz 2 )
x y
Solution: (ii) Let F ( x, y, z ) xy z 3 cos(yz 2 ) . Then,
F ( x, y, z ) 0 xy z 3 cos(yz 2 ) .
Differentiating both sides of the equation xy z 3 cos(yz 2 ) with respect to y,
we get
1 z z
( x 3z 2 ) sin( yz 2 ). z 2 2 yz which is equivalent to
2 xy z 3 y y
3z 2 z
2 yz sin( yz 2 ) z 2 sin( yz 2 )
x
.
2 xy z 3 y 3
2 xy z
Page 14
AASTU APPLIED MATHEMATICS II
F
Fy
One can check the result using the formula z y .
y F Fz
z
Definition 5.1.1: Let f be a function of two variables that has partial derivatives at ( x0 , y 0 ) . Then,
the gradient of f at ( x0 , y 0 ) is defined as f ( x0 , y0 ) f x ( x0 , y0 )i f y ( x0 , y0 ) j
.
Now, we give the definition of directional derivatives for a function of two variables as follows.
Definition 5.1.2: Let f be a function defined on a set containing a disk D centered at ( x0 , y 0 ) and
u a1i a2 j be a unit vector. The directional derivative of f at ( x0 , y 0 ) in the direction of u ,
denoted by Du f ( x0 , y 0 ) is defined as
f ( x0 ha1 , y0 ha2 ) f ( x0 , y0 )
Du f ( x0 , y0 ) lim
h 0 h
provided that this limit exists.
If u (1, 0) , then
f ( x0 h, y0 ) f ( x0 , y0 ) f x ( x0 , y 0 )
Du f ( x0 , y0 ) lim
h 0 h
If u j (0,1) , then
f ( x0 , y0 h ) f ( x0 , y0 )
Du f ( x0 , y0 ) lim = f y ( x0 , y0 ) .
h 0 h
Thus, f x ( x0 , y 0 ) and f y ( x0 , y0 ) are special kind of directional derivatives in the direction of
i (1,0) and j (0,1) respectively.
Example 37
Find the directional derivative of the following functions at the indicated points.
(a) f ( x, y ) 2 x 2 3xy y 2 15 at(1, 1) in the direction of u 1 1 .
i j
2 2
Now, the following theorem will show that the directional derivative of a function exists in any
direction provided that the limit exists.
Theorem 10: Suppose f is differentiable at ( x0 , y 0 ) . Then f has directional derivative at any
direction. Hence, Du f ( x0 , y 0 ) f ( x0 , y 0 ) u
Page 15
AASTU APPLIED MATHEMATICS II
Solution:
(Exercise)
Page 16
AASTU APPLIED MATHEMATICS II
point (c, f (c )) . Analogously, we define the equation of the tangent plane to the graph of ‘f’ of two
variables as follows. See the following graphical illustrations.
Cureve in space
Graph of f
Tangent
plane
Theorem 12: The equation of the tangent plane to the surface f ( x, y, z ) c at the point
( x0 , y 0 , z 0 ) is given by
f ( x, y, z ) f ( x, y, z ) f ( x, y, z )
( x x0 ) ( y y0 ) ( z z 0 ) 0.
x y z
Example 41: Find the equation of the tangent plane to the surface
f ( x, y, z ) x 2 y 2 z 9 c at the point P (1,2,4).
Solution: We have f (1,2,4) (2,4,1) , and the equation of the tangent plane is
2( x 1) 4( y 2) ( z 4) 0 .
[ ]
Page 17
AASTU APPLIED MATHEMATICS II
(b) f is said to have relative minimum value at ( x0 , y 0 ) if and only if there exists a disk centered at
( x0 , y 0 ) and f ( x, y ) f ( x0 , y 0 ) for all ( x, y ) in the disk.
(c) f is said to have absolute maximum at ( x0 , y 0 ) if and only if f ( x0 , y 0 ) f ( x, y ) for all ( x, y )
in the domain of f .
(d) f is said to have absolute minimum at ( x0 , y 0 ) if and only if f ( x0 , y 0 ) f ( x, y ) for all
( x, y ) in the domain of f .
Theorem 13: If f ( x, y ) is continuous in a closed and bounded subset S of the plane, then f has
both absolute maximum/minimum/value in S.
Theorem 14: If f has relative extremum at ( x0 , y 0 ) and f x ( x0 , y 0 ) and f y ( x0 , y0 ) exist, then
f x ( x0 , y0 ) f y ( x0 , y0 ) 0.
Definition: Suppose f is a function of two variables. Let ( x0 , y 0 ) be in the domain of f . Then
( x0 , y 0 ) is called the critical point of f if and only if f x ( x0 , y0 ) f y ( x0 , y0 ) 0 or either
f x ( x0 , y0 ) or f y ( x0 , y0 ) doesn’t exist.
Example 42 Let f ( x, y ) xy. Then f x y and f y x . We have
Figure 5.3
Graph of
f yx ( x0 , y 0 ) f yy ( x0 , y 0 )
(a) If D 0 and f xx ( x0 , y 0 ) 0 , then f has relative minimum at ( x0 , y 0 )
Page 18
AASTU APPLIED MATHEMATICS II
Example 44: Consider f ( x, y ) x 2 xy 2 y 2 x 1 . Find all the critical points and determine
the relative maximum and relative minimum values of .
Solution: Let ( x, y ) be a relative maximum/relative minimum/ point of f . Then, we get
f x ( x, y ) 0 and f y ( x, y ) 0 , i.e. we get the system of equations 2 x y 2 0 with solution
x20
( 2,2) .Thus, ( 2,2) is the only critical point of . Now, it is easy to see that
f xx ( x, y) 2, f yy ( x, y) 0, f xy ( x, y) f yx ( x, y) 1 which implies that D 2 1 1 0 .
1 0
Hence, by the second partial test, we conclude that ( 2,2) is a saddle point of .
Example 45: Locate all the critical points and find all the points of relative maximum and relative
minimum of f ( x, y ) x 3 xy y 3 .
Solution: Let ( x, y ) be a relative extremum point of ‘f’. Then, we see that
f x ( x, y) 3x 2 y 0, f y ( x, y ) 3 y 2 x 0
Thus, solving for y in terms of x and substitution yields 27 x 4 x 0 .This is true if
1
x 0 or x , i.e. (0,0) and 1 1 are
,
the only critical points of f.
3 3 3
Now, we obtain
1 1 1 1
f xx (0,0) 0, f xx ( , ) 2, f yy (0,0) 0, f yy , 2, f xy ( x, y ) 1 f yx ( x, y )
3 3 3 3
and D (0,0) 1 0, D 1 , 1 3 0. By the second partial test, we conclude that (0,0) is a
3 3
saddle point and 1 1 is a point of relative maximum
,
3 3
Example 47: Find a point on the plane 2 x 3 y 4 z 25 closest to the point (3,2,1).
Solution: Let D ( x 3) 2 ( y 2) 2 ( z 1) 2
Page 19
AASTU APPLIED MATHEMATICS II
f 1 3 29
0 2( x 3) ( x y ) 0 (5.3.1)
x 2 4 4
f 31 3 29
0 2( y 2) x y 0 (5.3.2)
y 22 4 4
10x 3 y 53 0 (5.3.3)
6 x 25 y 55 0 (5.3.4)
Thus, solving (5.3.3) and (5.3.4), we get x 5 and y 1 . We know that f has absolute minimum
value which is its relative minimum. Now, we use to determine whether the point (5,1) is a point of
relative minimum or not using the second partial test. It is clear that
5 25 3
f xx (5,1) , f yy (5,1) and f xy (5,1) f yx (5,1) .
2 8 4
Thus, we obtain f xx (5,1) f yy (5,1) f xy (5,1)
2 29
5
0 and f xx (5,1) .Therefore, by the
4 2
second partial test, we conclude that the point (5,1) is a point of relative minimum. Since f has
minimum value and (5,1) is the only candidate, we conclude that f attains its minimum at (5,1)
.Thus the closets point on the plane to the point for (3,2,1) is .
Page 20
AASTU APPLIED MATHEMATICS II
𝑦
Figure 5.9
Let v( x, y, z ) xyz 16 .The bottom and the top of the box costs 10(2 xy) 20( xy) . Moreover,
the sides cost 5(2 xz) 10( xz) and 5(2 yz) 10( yz) .
Thus, the cost of the box is given by
C ( x, y, z ) 20xy 10xz 10 yz
16
Since xyz 16 , we see that z = . Thus, we get c(x, y) = 20xy + 160 160 .
xy y x
Now, we find the critical points using the 1nd partial derivative .
i.e. c 20 y 160 0 and c 20 x 160 0 . Solving for the variable x and substituting,
x 2
x y 2
y
we get 8 y y 0 which gives y 0 or y 2 .Thus, we obtain x 2. By using the second partial
4
test, it is possible to check that ( 2,2) is a point of relative minimum. Hence, the least dimension of
the box with minimum cost is x 2, y 2 and z 4.
Page 21
AASTU APPLIED MATHEMATICS II
Example 50: An open-topped rectangular tank is to be constructed so that the sum of the height and
the perimeter of the base is 30 meters. Find the dimensions which maximize the surface area of the
tank. What is the maximum value of the surface area?
Solution: Let the dimensions of the box be as shown.
Figure 5.10
Let the area of the surface of the material be S. Then , S = 2xh + 2yh + xy,
S S
8 x 7 y 60 0 and 8 y 7 x 60 0 .
x x
Subtracting gives x = y and so 15x = 60, or x = y = 4. Thus h = 14 and the surface area is S = 16(- 4 -
4 - 7 + 15 + 15) = 240 square meters. Since the function S is continuous function on a closed and
bounded region, f has absolute maximum. Moreover, we have only one point of relative maximum.
Thus the absolute maximum exists at this critical point. Sometimes a function necessarily has an
absolute maximum and absolute minimum in the following case because we have a continuous
function defined on a closed bounded subset of R2. In this case exactly as in the one variable case,
we need only search the boundary and the critical points in the interior, using our ability to find local
maxima.
Page 22
AASTU APPLIED MATHEMATICS II
Solution:
f x ( x, y ) 0 y 1 and f y ( x, y) 0 x 1.
Then, (1, -1) is the only critical point of f in the interior of the disk D. One can show that (1, -1) is
a saddle point. Then, we search the maximum/minimum/ on the boundary of D. i.e. on the circle x2
+ y2 = 4. One of the parametric equation of x 2 y 2 4 is x(t ) 2 cos t , y (t ) 2 sin t ,0 t 2 . .
Thus, by substituting x and y in , we get
f ( x, y ) f (t ) 4 sin t cos t 2 sin t 2 cos t 1 . Thus, by the second derivative test, one can
show that f assumes maximum at
1 3 3 1 1 3 3 1 .
,
and
,
2 2 2 2
One of the applications of the implicit function theorem is the method of finding extreme values of a
function f on the contour line of another function. In this topic, we introduce the procedure called
Lagrange Multiplier Method.
Page 23