Professional Documents
Culture Documents
4.1 Introduction
So far, you have studied calculus (limit, continuity, derivative and integral) of functions of the form
𝑓: 𝐷 ⊆ ℝ → ℝ (1)
Such a function is usually defined by a formula of the type y = f(x) and it is called a (real valued) function
of a single (real) variable. In this and next chapter, we deal with calculus of functions of several
variables; i.e., functions of the form
𝑓: 𝐷 ⊆ ℝ𝑛 → ℝ (𝑛 𝜖 ℕ, 𝑛 ≥ 2) (2)
In fact, in the upcoming course you will deal with functions of the type
𝐹: 𝐷 ⊆ ℝ → ℝ𝑛 (𝑛 𝜖 ℕ, 𝑛 ≥ 2) (3)
and
𝐹: 𝐷 ⊆ ℝ𝑚 → ℝ𝑛 (𝑚, 𝑛 𝜖 ℕ, 𝑚, 𝑛 ≥ 2) (4)
The division of calculus that deals with functions of the form (1) is called single variable calculus and
calculus of functions of the form (2), (3) and (4) is called multivariable calculus. We could have two
variable calculus, three variable calculus, etc.
Notations: Let 𝑛 be a natural number. Then,ℝ𝑛 stands for the set of all finite sequences (𝑥1 , 𝑥2 , … , 𝑥𝑛 ) of
𝑛 real numbers. Geometrically ℝ is identified with a line, ℝ2 with a plane and ℝ3 can be identified with
the usual 3D space.
Definition 1: Let 𝑛 be a natural number. A function whose domain D is a subset is of ℝ𝑛 and whose
range is a subset of ℝ is called a real valued function of n real variables (briefly, we call it a function of n-
variables). Thus a function of n variables has the form:
𝑓: 𝐷 ⊆ ℝ𝑛 → ℝ
1
2
Notation: Functions of 1, 2 and 3 variables are given respectively by formulas of the type:
𝑤 = 𝑓(𝑥1 , 𝑥2 , … , 𝑥𝑛 ).
The domain and range of other functions of several variables can be defined analogously.
Example 1: Let 𝑓(𝑥, 𝑦) = 4. Then 𝑓 is a function of two variables. The domain of 𝑓 is ℝ2 and the range
of 𝑓 is {4}.
Example 2: Let 𝑓(𝑥, 𝑦) = 2xy – y2. Then 𝑓 is a function of two variables. Find
Solution:
a) 𝑓(1, −1) = − 3.
b) Since 𝑓(𝑥, 𝑦) is a real number for every pair (x, y) of real numbers, so the domain of f is ℝ2 .
𝑟+1
c) Given any real number 𝑟, we have 𝑓 (1, ) = r . Thus r ∈ range f for every r ∈ ℝ. So, the range of f
2
is ℝ.
Example 3: Let 𝑓(𝑥, 𝑦) =√4 − 𝑥 2 − 𝑦 2 . Find domain 𝑓, range 𝑓 and sketch domain 𝑓 as a region in 𝑥𝑦-
plane.
Solution:
2
3
= {(x, y) 𝜖 ℝ2 : √4 − 𝑥 2 − 𝑦 2 𝜖 ℝ }
= {(x, y) 𝜖 ℝ2 : 4 − x2 – y2 ≥ 0 }
= {(x, y) 𝜖 ℝ2 : x2 + y2 ≤ 4}
Geometrically, the domain of f is the circular region (disk) with center (0, 0) and radius 2.
Example 4: Let 𝑔(𝑥, 𝑦, 𝑧) =ln(𝑥 2 + 𝑦 2 + 𝑧 2 − 4) . Find the domain 𝑓 and sketch it as a region in 𝑥𝑦𝑧 −
space.
= {(𝑥, 𝑦, 𝑧) 𝜖 ℝ3 : 𝑥 2 + 𝑦 2 + 𝑧 2 > 4 }
Geometrically, the domain of 𝑔 is the set of all points that are not interior points of the sphere
𝑥 2 + 𝑦2 + 𝑧2 = 4
3
4
d) (𝑘𝑓)(𝑃) : = 𝑘𝑓(𝑃) , 𝑃 𝜖 𝐷 ∩ 𝐸
𝑓 𝑓(𝑃)
e) (𝑃) ≔ ,𝑃 𝜖 𝐷 ∩ 𝐸 𝑎𝑛𝑑 𝑔(𝑃) ≠ 0
𝑔 𝑔(𝑃)
Note that if 𝑓: 𝐷 ⊆ ℝ𝑛 → ℝ and 𝑔: 𝐸 ⊆ ℝ𝑛 → ℝ , the composition fog is not defined, because the range
of g is not a subset of the domain of f. For functions of several variables, composition has several
versions. We present one of these.
𝑐 𝑥 𝑛 𝑦𝑚;
where 𝑐 is a real constant; 𝑥 , 𝑦 are real variables and 𝑚, 𝑛 are whole numbers.
The sum of the exponents of the variables that appear in a term of a polynomial is called the
degree of the term. The degree of a polynomial is the highest degree of its monomials with
nonzero coefficients.
4
5
𝑃(𝑥,𝑦)
𝑅(𝑥, 𝑦) : =
𝑄(𝑥,𝑦)
Remarks:
1. We can define polynomial and rational functions of three or more variables in analogous
fashion.
Definition 6 [graph]: Let 𝑧 = 𝑓(𝑥, 𝑦) be a function of two variables with domain 𝐷. The set
We can define the graph of a function of n variables, for any natural number n; however, it is impossible
to draw the graph of a function of three or more variables, because it requires four or more dimensions
(axes) to do so.
The graph of a function of two variables in xyz coordinate space is usually a surface, unlike the graph of a
function of one variable which is usually a curve. No line perpendicular to the 𝑥𝑦- plane can intersect the
graph of 𝑓 (𝑥, 𝑦) at more than one point (Why?).
It is difficult to sketch the graph of a function of two variables. For some simple cases (such as planes,
spherical and cylindrical surfaces); we can use inspection. The so called level curves may also help in
visualizing the cross sections of the graph. For practical purposes, software packages (computer algebra
systems) such as Mathematica, Matlab and Maple may be used.
5
6
𝑓(𝑥, 𝑦) = 4
Solution: The domain of f is the set of all ordered pairs of real numbers. The graph of f is the collection
(x, y, z) of all points in space where z = 4 and x and y are arbitrary real numbers. Geometrically, the
graph of f is the plane perpendicular to Z-axis and passing through (0, 0, 4).
In general recall from vector algebra that the graph (in xyz-coordinate space) of any equation of the type
𝑎𝑥 + 𝑏𝑦 + 𝑐𝑧 = 𝑑 ;
where a, b and c are not all zero, is a plane. The equation z= 4 is of this form (take a =b=0; c=1 and d=4).
𝑥 𝑦
Example 7: Sketch the graph of the function 𝑓(𝑥, 𝑦) = 2 – –
2 3
Solution: Since this is an equation of the form 𝑎𝑥 + 𝑏𝑦 + 𝑐𝑧 = 𝑑, so the graph is a plane. The x-,
y- and z- intercepts are respectively (2, 0, 0), (0, 6, 0) and (0, 0, 2). Thus the graph of f is the plane
determined by these three points.
6
7
𝒙 𝒚
Figure 4: The Graph of 𝒇(𝒙, 𝒚) = 𝟐 – –
𝟐 𝟑
The graphs from Example 7 to 12 were plotted using a free online version of Mathematica at
https://www.wolframalpha.com/input/?i=plot3D%5Bsin(x)%5D.
The intersection of the graph of z = f(x, y) with the plane π with equation z =c is called the trace of the
graph of f in π. The orthogonal projection onto xy-plane of the trace of the graph of 𝑓 in the plane z =c is
called a level curve of the graph.
7
8
Definition 7 [level curve]: Let 𝑧 = 𝑓(𝑥, 𝑦) and 𝑐 be a number in the range of 𝑓. The graph (on xy plane
) of the equation
𝑓(𝑥, 𝑦) = 𝑐,
is called the level curve (contour curve) of the graph of 𝑓 at level 𝑐. We denote it by 𝑙𝑐 (𝑓) or just by 𝑙𝑐 .
Thus, 𝑙𝑐 (𝑓) is a curve on 𝑥𝑦 plane that connects all points on the graph of 𝑓 that are equidistant from 𝑥𝑦-
plane. (Contrast this with the contour lines in geography: A contour line is a curve on a map that
connects places on earth that have the same elevation/distance from sea level).
A level curve can be described as the projection of the intersection of the horizontal plane 𝑧 = 𝑐 with the
surface defined by 𝑓. We call this intersection the trace of the graph of 𝑓 in the plane 𝑧 = 𝑐. In general,,
we can consider the trace of the graph of 𝑓 in any plane. The projections of the traces of the graph of 𝑓 in
the planes 𝑥 = 𝑐 and 𝑦 = 𝑐 onto yz and xz planes respectively, are sometimes called sections.
The traces of the graph of f in the planes z =c, x =c and y =c and their orthogonal projections onto
coordinate planes are important in investigating the nature of the graph of f.
Two level curves never cross each other. Through every point in the domain there is exactly one level
curve.
a) Sketch enough number of level curves 𝑙𝑐 on the same 𝑥𝑦 plane for equally spaced values of 𝑐.
b) Translate each level curve 𝑙𝑐 by the vector v = c 𝑘⃗.These gives you some cross sections of the surface.
These guidelines can also be used to sketch the graphs of certain equations in 𝑥, 𝑦 and 𝑧 (which are not
functions).
Example 8: Given𝑓(𝑥, 𝑦) = 𝑥 2 + 𝑦 2 ,
Solution: 𝑥 2 + 𝑦 2 = 0 ⇔ 𝑥 = 0 and 𝑦 = 0. Thus, 𝑙0 is the origin. The level curves l1, l2, l3,l4 are
circles centered at the origin and having radii 1, √2, 3 and 2 respectively. Note that the radii of the circles
8
9
are not equally spaced, though the levels are equally spaced. The level curves get closer as the levels
increase. This indicates that the graph of 𝑓 gets steeper as one gets further up from the origin. The graph
of 𝑓 and the level curves are generated by an online version of Mathematica, as follows.
Solution: √𝑥 2 + 𝑦 2 ⇔ 𝑥 = 0 and 𝑦 = 0. Thus 𝑙0 is the origin. The level curves l1, l2, l3,l4 are
circles centered at the origin and having radii 1, 2, 3 and 4 respectively. Note that the radii of the circles
are equally spaced, just as the levels. The graph of 𝑓 is a cone.
9
10
Solution: For any constant c, the graph of 𝑥 2 – 𝑦 2 = 𝑐 on xy plane is a hyperbola. Thus the level
curves are hyperbolas. If c> 0, the level curves are horizontal hyperbolas with vertices (c, 0) and (-c,0). If
c<0, , the level curves are vertical hyperbolas with vertices (0, c) and (0,-c). The graph of the given
function is the following saddle looking surface.
Solution: The graph of the equation 𝑧 = 𝑠𝑖𝑛𝑥 on xz plane is the usual sine curve. Translation of
the curve by the vector 𝑣 = 𝑐𝑗 gives us the cross sections of the graph of 𝑧 = 𝑠𝑖𝑛𝑥 in 𝑥𝑦𝑧-space. A
Mathematica plot of the equation is presented below.
10
11
Definition 8 [level surface]: Let 𝑤 = 𝑓(𝑥, 𝑦, 𝑧). The graph (in xyz-coordinate space) of the
equation 𝑓(𝑥, 𝑦, 𝑧) = 𝑐, where 𝑐 is a constant, is called a level surface of the graph of 𝑓 and 𝑐 is called
its level.
Example 12: Describe the level surfaces of 𝑓(𝑥, 𝑦, 𝑧) = 𝑥 2 + 𝑦 2 + 𝑧 2 for c=4, 8, 12 and 16.
Note: The graph of an equation involving only two of the variables 𝑥, 𝑦 and 𝑧 in space is a cylindrical
surface. To sketch the graph of an equation involving x and y in xyz-space, first sketch the equation as a
curve on xy-plane, then translate the curve by the vector 𝑣 ≔ 𝑐𝑗 for several values of c. The translates
give the cross sections of the graph. The same method can be used to sketch the graphs of equations
involving x and z only or y and z only.
Exercise 4:1
𝑢2 +𝑣2
c) 𝑓(𝑢, 𝑣) : = 𝑙𝑛 ((𝑢2 )
−𝑣2 )2
11
12
Compiled by: Tadesse Bekeshie (PhD)
𝑃 and 𝑄 is denoted by 𝑑(𝑃, 𝑄) and it is defined by d (P, Q) : = √(𝑥1 − 𝑦1 )2 + ⋯ + (𝑥𝑛 − 𝑦𝑛 )2. The
distance between P and Q is also denoted by ‖𝑃 − 𝑄‖.
To define the limit of a function f of one variable at number ‘a’, the first requirement is that f must be
defined on some open interval I containing ‘a’ except possibly at ‘a’ itself. We now define two
dimensional and three dimensional analogies of open and closed intervals.
Definition 2(open disk and closed disk): Let 𝐴 (a1, a2) be a given point in ℝ2 and let r be a positive
number. Then set
a) 𝐷 (𝐴; 𝑟): = {P∈ ℝ2 |d (A, P) < r} is called the open disk with center A and radius r.
b) 𝐷 [𝐴; 𝑟]: = {P∈ ℝ2 |d (A, P) ≤ r} is called the closed disk with center A and radius r.
c) 𝐶 (𝐴; 𝑟): = {P∈ ℝ2|d (A, P) = r}is called the circle with center A and radius r.
Definition 3(open ball and closed ball in ℝ3 ): Let 𝐴 (a1, a2, 𝑎3 ) be a given point in ℝ3 and let 𝑟 be a
positive number. Then set
a) 𝐵 (𝐴; 𝑟): = {P∈ ℝ3|d (A, P) < r} is called the open disk with center A and radius r.
b) 𝐵 [𝐴; 𝑟]: = {P∈ ℝ3|d (A, P) ≤ r} is called the closed disk with center A and radius r.
c) 𝑆 (𝐴; 𝑟): = {P∈ ℝ3|d (A, P) = r}is called the circle with center A and radius r.
Definition 4 [boundary point and interior point]: Let S be a set of points in ℝ2 . A point P in ℝ2 is said to
be:
a) an interior point of S if there is an open disk centered at P that contains only points in S.
b) an exterior point of S if there is an open disk containing P and no points of S.
c) a boundary point of S if all open disks centered at P contain both points in S and points not in S.
The collection of all boundary points of S is called the boundary of S. It is denoted by 𝑏(𝑆) or 𝜕𝑆.
12
13
Compiled by: Tadesse Bekeshie (PhD)
Note:
1. While open balls generalize open disks and open intervals, open sets generalize open balls.
2. Definitions 3 to 5 can be extended to points and sets in ℝ𝑛 for any 𝑛.
B. Limits
Definition 6 (the limit of a function of two variables):
Let (a, b) be a fixed point in ℝ2 and let L be a fixed real number. Assume that f (x, y) is defined at all
points in an open disk D containing (a, b) except possibly at (a, b) itself. Then we say the limit of f(x,
𝑙𝑖𝑚
y) as (x, y) approaches (a, b) is L and we write (𝑥,𝑦)→(a,b) 𝑓(𝑥, 𝑦) = L if for any positive number 𝜖,
there is a positive number 𝛿 such that for all (x, y) in the domain f ,
0 < √(𝑥 − 𝑎)2 + (𝑦 − 𝑏)2 < 𝛿 ⇒ | 𝑓(𝑥, 𝑦) − 𝐿| < ∈. (1)
Remarks
𝑙𝑖𝑚
1. If there exists a real number L such that (𝑥,𝑦)→(𝑎,𝑏) 𝑓(𝑥, 𝑦) = L, then we say that the limit of f
at (a, b) exists.
2. The definition can be written briefly as follows:
𝑙𝑖𝑚
(𝑥,𝑦)→(a,b) 𝑓(𝑥, 𝑦) = L ⟺ (∀∈> 0)(∃𝛿 > 0) ∋ 0 < √(𝑥 − 𝑎)2 + (𝑦 − 𝑏)2 ⇒ | 𝑓(𝑥, 𝑦) − 𝐿| < ∈.
𝑙𝑖𝑚
Thus, in order to prove (𝑥,𝑦)→(a,b) 𝑓(𝑥, 𝑦) = L, we must prove that the quantified proposition
“(∀∈> 0)(∃𝛿 > 0) ∋ 0 < √(𝑥 − 𝑎)2 + (𝑦 − 𝑏)2 ⇒ | 𝑓(𝑥, 𝑦) − 𝐿| < ∈ " is true . And to prove the
latter, in turn, assume that a positive number 𝜀 is given. We must find a positive number 𝛿 such that the
implication
0 < √(𝑥 − 𝑎)2 + (𝑦 − 𝑏)2 < 𝛿 ⇒ | 𝑓(𝑥, 𝑦) − 𝐿| < ∈,
is true. (See the analogy with what we do when proving"(∀𝑥)(∃𝑦)(𝑥 + 𝑦 = 0)” is true, for instance.)
13
14
Compiled by: Tadesse Bekeshie (PhD)
4. Note that there is no hard and fast rule for finding 𝛿. The following two observations may help
you in guessing a value of 𝛿.
a) The implication "0 < 𝑧 < 2 ⇒ 𝑧 < 2” is true, because it is true that every number z
in(0,2) is less than 2. Likewise, in order for the implication
“0 < √(𝑥1 − 𝑦1 )2 + (𝑥2 − 𝑦2 )2 < 𝛿 ⇒ √(𝑥1 − 𝑦1 )2 + (𝑥2 − 𝑦2 )2 < ∈” to be true, we can choose
𝛿 to be ∈ itself. We can also take the value of 𝛿 to be any positive number less than ∈.
14
15
Compiled by: Tadesse Bekeshie (PhD)
𝑙𝑖𝑚 𝑙𝑖𝑚
a) (𝑥,𝑦)→(a,b) 𝑥=a b) (𝑥,𝑦)→(a,b) 𝑦 = b.
Solution (a): Let a positive number 𝜀 be given. We must find a positive number 𝛿 such that
15
16
Compiled by: Tadesse Bekeshie (PhD)
∈
⇒ 0 < √(𝑥 − 1)2 + (𝑦 − 3)2 <
5
∈
⇒ √(𝑥 − 1)2 + (𝑦 − 3)2 <
5
[Quotient Rule]
Remarks:
1. The rules can be extended to functions of three or more variables.
2. There are also versions of Substitution and Squeezing Rules for multivariable limits.
3. Simplification, rationalization, coordinate transformations and similar algebraic manipulations
may help in limit evaluation.
4. To evaluate limits we usually apply one of the following approaches.
a) For functions which are not composition or combination of other functions, guess the limit by
some means and prove that the guess is true by the formal definition.
b) For combinations and compositions of functions that are not indeterminate forms, apply the
basic limit theorems.
16
17
Compiled by: Tadesse Bekeshie (PhD)
c) For combinations and compositions of functions that are indeterminate forms, apply any
viable technique among substitution, squeezing, rationalization or simplification. But there is
no multivariable version of L’Hopital’s rule for indeterminate forms.
5. Software packages such as CAS can also be used in multivariable limit evaluations.
𝑙𝑖𝑚 2𝑥−𝑥𝑦2
Example 5[basic limit rules]: Evaluate (𝑥,𝑦)→(1,2) .
𝑥+2𝑦
2 𝑙𝑖𝑚 2
𝑙𝑖𝑚 2𝑥−𝑥𝑦 (𝑥,𝑦)→(1,2) 2𝑥−𝑥𝑦 2(1)−(1)(2)2 2
Solution: (𝑥,𝑦)→(1,2) 𝑥+2𝑦 =. 𝑙𝑖𝑚 2
= =− //.
(𝑥,𝑦)→(1,2) 𝑥+2𝑦 1+2(2) 5
𝑙𝑖𝑚 𝑥4 −𝑦4
Example 6 [simplification]: Evaluate (𝑥,𝑦)→(0,0) .
𝑥2 +𝑦2
𝑙𝑖𝑚 (𝑥 2 + 𝑦 2 ) = 0. Observe
Solution: Note that we can not apply the quotient rule, because (𝑥,𝑦)→ (0,0)
they are equal except at the point (0,0) and our interest is in the behavior of 𝑓 “near” (0,0), not in the
behavior 𝑓 at (0,0).
𝑙𝑖𝑚 𝑥4 −𝑦4 𝑙𝑖𝑚
Now, (𝑥,𝑦)→(0,0) =. (𝑥 2 − 𝑦 2 ) = 0. //
𝑥2 +𝑦2 (𝑥,𝑦)→ (0,0)
𝑙𝑖𝑚 𝑥−𝑦
Example 7 [rationalization]: Find (𝑥,𝑦)→(0,0) .
√𝑥+√𝑦
Solution: We cannot apply the quotient rule to evaluate the given limit because the denominator’s
limit is 0. Now,
𝑙𝑖𝑚 𝑥−𝑦 𝑙𝑖𝑚 𝑥−𝑦 √𝑥−√𝑦 𝑙𝑖𝑚
(𝑥,𝑦)→(0,0) 𝑥+ 𝑦.=.(𝑥,𝑦)→(0,0) 𝑥+ 𝑦 𝑥− 𝑦 = (𝑥,𝑦)→ (0,0) (√𝑥 − √𝑦) = 0. //
√ √ √ √ √ √
3
𝑙𝑖𝑚 𝑥
Example 8 [squeezing rule]: Show by squeezing rule that (𝑥,𝑦)→(0,0) 𝑥2 +𝑦2 = 0.
Solution: We cannot apply the quotient formula because the denominator’s limit is 0.
Observe that
𝑥3
0≤| | ≤ |𝑥|.
𝑥2 +𝑦2
𝑙𝑖𝑚 𝑙𝑖𝑚
Since (𝑥,𝑦)→(0,0) 0 = 0 = (𝑥,𝑦)→(0,0) |𝑥| , so a version of squeezing law for functions of two variables
yields:
3
𝑙𝑖𝑚 𝑥
(𝑥,𝑦)→(0,0) 𝑥2 +𝑦2 = 0. //
𝑙𝑖𝑚 𝑥𝑦2
Example 9 [using polar coordinates to evaluate multivariable limit]: Evaluate (𝑥,𝑦)→(0,0) .
𝑥2 +𝑦2
Solution: Again, we cannot apply the quotient rule. After evaluating the limit to be 0 on several
paths through the origin (0, 0), we believe that the limit might be 0 (but we can never be sure! It requires
17
18
Compiled by: Tadesse Bekeshie (PhD)
verification). If (𝑟, 𝜃) are the polar coordinates of (x, y), then = 𝑟𝑐𝑜𝑠𝜃 & 𝑦 = 𝑟𝑠𝑖𝑛𝜃 . Clearly, as
(𝑥, 𝑦) → (0,0),r → 0.
𝑙𝑖𝑚 𝑥𝑦2 𝑙𝑖𝑚 𝑟 3 𝑐𝑜𝑠𝜃sin2 𝜃
Thus, (𝑥, 𝑦) → (0,0) = 𝑟→0 = 0. //
𝑥2 +𝑦2 𝑟2
Caution: In using polar coordinates to evaluate the limit of a function of two variables, we must be
careful about the expressions containing 𝜃 . As 𝑟 → 0 along different paths, the 𝜃 -expression may
approach different values.
𝑙𝑖𝑚 𝑥3 +𝑦3 +𝑧 3
Example 11 [limit of function of three variables]: Evaluate (𝑥,𝑦)→(0,0) . Ans. 0
𝑥2 +𝑦2 +𝑧 2
Remark [The Two Path Rule]: Let S1 and S2 two paths passing through (a, b). If
lim 𝑓(𝑥,𝑦) lim 𝑓(𝑥,𝑦)
(𝑥,𝑦)→(a,b) ≠ (𝑥,𝑦)→(a,b) ,
(x,y)∈S1 (x,y)∈S2
lim 𝑓(𝑥,𝑦)
then (𝑥,𝑦)→(a,b) does not exist.
𝑙𝑖𝑚 𝑥𝑦
Example 12: Show that (𝑥,𝑦)→(0,0) does not exist.
𝑥2 +𝑦2
18
19
Compiled by: Tadesse Bekeshie (PhD)
Nonexistence of Limits
The limit of 𝑓 at (𝑥0 , 𝑦0 ) fails to exist for one of four reasons::
a) Every neighborhood of (𝑥0 , 𝑦0 ) contains a point at which 𝑓 is not defined. (Example 4.)
b) There exist two different paths to(𝑥0 ,𝑦0 ) giving two different limiting values for 𝑓. (Example
13.)
c) The value of |𝑓| gets larger and larger without bound as 𝑃 gets closer and closer to (𝑥0 , 𝑦0).
(Exercise 4.2#2)
d) The values of 𝑓 oscillates near(𝑥0 ,𝑦0 ). (Exercise 4.2 #3).
C. Continuity
Definition 9:
a) A function 𝑓(𝑥, 𝑦) is said to be continuous at (a, b) if
lim
(x,y)→(a,b) f(x, y) = f(a, b).
lim
b) A function 𝑓(𝑥, 𝑦) is said to be continuous on a set S if(x,y)→(a,b) f(x, y) = f(a, b) for an interior
lim
point (a, b) of S and (x,y)→(a,b) f(x, y) = f(a, b), if (a, b)is aboundary point of S.
S
Remarks:
1. Intuitively speaking, a function 𝑓 is said to be continuous at a point 𝐴 if it takes points close to 𝐴
into points close to 𝑓(𝐴).
2. Geometrically, a function is discontinuous at (𝑎, 𝑏) means the graph of 𝑓 has a hole, tear, gap, finite
jump or infinite jump at (𝑎, 𝑏).
4𝑥2 𝑦
𝑖𝑓 (𝑥, 𝑦) ≠ (0,0)
Example 13 [continuity at a point]: The function 𝑓(𝑥, 𝑦) = { 2+𝑦2
𝑥 is continuous at
0 𝑖𝑓 (𝑥, 𝑦) = (0,0)
(0,0).
19
20
Compiled by: Tadesse Bekeshie (PhD)
Example 14 [continuity on a set]: Let R be the rectangular region consisting of all points (x,y) such that
4 − 𝑥 − 𝑦 𝑓𝑜𝑟 (𝑥, 𝑦) 𝑖𝑛 𝑅
0 ≤ 𝑥 ≤ 1 𝑎𝑛𝑑 0 ≤ 𝑦 ≤ 2 . The function 𝑓(𝑥, 𝑦) = { is continuous at (0,0).
0 𝑓𝑜𝑟 (𝑥, 𝑦) 𝑛𝑜𝑡 𝑖𝑛 (0,0)
Show that f is not continuous on 𝑅 but 𝑓 is not a continuous function.
Example 15[continuous function]: Polynomial and rational functions are continuous.
Continuous functions of two variables satisfy the entire usual properties familiar from single variable
calculus: The sum of a finite number of continuous functions is a continuous function. The product of a
finite number of continuous functions is a continuous function. The quotient of two continuous functions
is a continuous function wherever the denominator is non-zero.
Example 16: The functions 𝑠𝑖𝑛(𝑥𝑦), 𝑥 2 𝑦 3 + 𝑙𝑛(𝑥 + 𝑦), and 𝑒𝑥𝑝(3𝑥𝑦) are all continuous functions on
1
the xy-plane, whereas the function |𝑥|+|𝑦| is continuous everywhere except the point (0,0).
Exercise 4.2:
1. Use the formula definition of limit to show that
𝑙𝑖𝑚
a) (𝑥,𝑦)→(a,b) √𝑥 = √𝑎 , where a > 0
3 3
𝑙𝑖𝑚 𝑥 +𝑦
b) (𝑥,𝑦)→(0,0) 𝑥2 +𝑦2 =0
𝑙𝑖𝑚
c) (𝑥,𝑦)→(a,b) 𝐶=C
𝑙𝑖𝑚
d) (𝑥,𝑦)→(0,0) √𝑥 2 + 𝑦 4 =0.
𝑙𝑖𝑚 1
2. Show that (𝑥,𝑦)→(0,0) does not exist.
𝑥2 +𝑦2
𝑙𝑖𝑚 1
3. Show that (𝑥,𝑦)→(0,0) sin( ) does not exist.
𝑥+𝑦2
𝑙𝑖𝑚 𝑥2 𝑦
4. Show that (𝑥,𝑦)→(0,0) does not exist.
𝑥4 +𝑦2
𝑙𝑖𝑚 1 1
5. Show that [𝑥 sin ( ) + 𝑦𝑠𝑖𝑛 ( )] = 0.
(𝑥,𝑦)→(0,0) 𝑦 𝑥
2𝑥2 −𝑥𝑦−𝑦2 )
b) 𝑙𝑖𝑚 (𝑥, 𝑦) → (1,1)
(𝑥2 −𝑦2
𝑙𝑖𝑚 𝑥−𝑦−1
c) (𝑥,𝑦)→(2,1) 𝑥−1− 𝑦
√ √
20
21
Compiled by: Tadesse Bekeshie (PhD)
1
𝑙𝑖𝑚 (𝑥 + 𝑦)𝑠𝑖𝑛 ( ) , 𝑥 ≠ 0
7. Show that (𝑥,𝑦)→(0,0) 𝑓(𝑥, 𝑦) = 0 where 𝑓(𝑥, 𝑦) = { 𝑥
0, 𝑥=0
𝑥−𝑦
8. Does the function 𝑓(𝑥, 𝑦) = have any discontinuities?
1+𝑥+𝑦
𝑥−𝑦
What about 𝑓(𝑥, 𝑦) = ? Explain.
1+𝑥2 +𝑦2
Let 𝑃0 (𝑥0 ,𝑦0 ) be an interior point of the domain of 𝑓(𝑥, 𝑦)and let the value of the independent
variable 𝑥 changes from 𝑥 = 𝑥0 to 𝑥 = 𝑥0 + ∆𝑥 while the value of y is kept constant at 𝑦0 . This
amounts to moving from the point 𝑃0 (𝑥0 ,𝑦0 ) to 𝑃(𝑥0 + ∆𝑥, 𝑦0 ). Let ∆𝑧 ≔ 𝑓(𝑥0 + ∆𝑥, 𝑦0 ) − 𝑓(𝑥0 , 𝑦0 )
z z
(x0 + ∆x, y0 ,f(x0 + ∆x,y0 ))
y0 ∆z
y
∆x X0
(x0 , y0 ,f(x0 ,y0 ))
x0+∆x 𝑃0
𝑃
Figure 10: Partial derivatives of f(x, y)
X
∆𝑧 ∆𝑧
The ratio is the average rate of change of 𝑓 with respect to x over [x0, x0 + ∆x] and lim ∆𝑥→∞ is the
∆𝑥 ∆𝑥
∆𝑧
instantaneous rate of change of 𝑧 with respect to x at (x0, y0). The limit, lim ∆𝑥→∞ , is called the partial
∆𝑥
derivative of 𝑓 with respect to 𝑥 at (x0, y0). Similarly, we can define the partial derivative of f with respect
to y at (x0, y0).
Definition 1: Let (𝑥0 ,𝑦0 ) be an interior point of the domain of 𝑓(𝑥, 𝑦).
a. The partial derivative of f with respect to x at (𝑥0 , 𝑦0 )written 𝑓𝑥 (𝑥0 , 𝑦0 ):is defined by
𝑓(𝑥0 +ℎ,𝑦0 )−𝑓(𝑥0 ,𝑦0 )
𝑓𝑥 (𝑥0, 𝑦0 ): = limℎ→0 , provided that this limit exists.
ℎ
b. The partial derivative of f with respect to y at (x0, y0), written 𝑓𝑦 (𝑥0 ,𝑦0 ):is defined by
𝑓(𝑥0 ,𝑦0 +ℎ)−𝑓(𝑥0 ,𝑦0 )
𝑓𝑦 (𝑥0, 𝑦0 ):: = limℎ→0 , provided that this limit exists.
ℎ
Note: 𝑓𝑥 and 𝑓𝑦 are functions of two variables and they are defined by:
21
22
Compiled by: Tadesse Bekeshie (PhD)
𝑓(𝑥+ℎ,𝑦)−𝑓(𝑥,𝑦)
i) 𝑓𝑥(𝑥, 𝑦): = limℎ→0 and
ℎ
𝑓(𝑥,𝑦+ℎ)−𝑓(𝑥,𝑦)
ii) 𝑓𝑦(𝑥, 𝑦): = limℎ→0 .
ℎ
These functions are called partial derivatives of f. The process of finding a partial derivative is called
partial differentiation.
Alternative Notations: Let 𝑧 = 𝑓(𝑥, 𝑦). Then
𝜕𝑓 𝜕𝑧
a) 𝑓𝑥= = = zx = f1 =z1 = D1f = D1z
𝜕𝑥 𝜕𝑥
𝜕𝑓 𝜕𝑧
b) 𝑓𝑦 = = = zy = f2 = D2f
𝜕𝑦 𝜕𝑦
22
23
Compiled by: Tadesse Bekeshie (PhD)
𝜕2𝑓 𝜕2 𝑓
iii) (𝑓𝑦) = 𝑓𝑦𝑥 = iv) (𝑓𝑦) = 𝑓𝑦𝑦 =
𝑥 𝜕𝑥𝜕𝑦 𝑦 𝜕𝑦2
The second order partial derivatives 𝑓𝑥𝑦 and 𝑓𝑦𝑥are called mixed partials.
Remark: We can also define
1. mth order partial derivatives where 𝑚 = 3,4,….
2. partial derivatives of functions of 𝑛 variables where 𝑛 = 3,4, …
Example 4: Let 𝑓(𝑥, 𝑦) = 𝑥 2 𝑦 + 𝑦 2 𝑥. Find 𝑓𝑥𝑦 , 𝑓𝑦𝑥 , 𝑓𝑥𝑦(1.−1) and 𝑓𝑦𝑥 (1,−1).
Answer: 𝑓𝑥𝑦=2𝑥 + 2𝑦 = 𝑓𝑦𝑥 and 𝑓𝑥𝑦 (1. −1) = 0 = 𝑓𝑦𝑥 (1, −1).
𝑥3 𝑦−𝑥𝑦3
, (𝑥, 𝑦) ≠ (0,0)
Example 5: Let 𝑓(𝑥, 𝑦) = { 𝑥2+𝑦2
0, (𝑥, 𝑦) = (0,0)
Find 𝑓𝑥𝑦(0,0)and 𝑓𝑦𝑥 (0,0).
Answer: 𝑓𝑥𝑦 (0,0) = −1 and 𝑓𝑦𝑥 (0,0) = 1.
This examples indicates that, in general, 𝑓𝑥𝑦 ≠ 𝑓𝑦𝑥.
Theorem 1[Clairaut’s Theorem: Conditions under which 𝒇𝒙𝒚 = 𝒇𝒚𝒙 ]:
If the mixed partials 𝑓𝑥𝑦 𝑎𝑛𝑑 𝑓𝑦𝑥 are continuous at every point of an open disk containing (𝑎, 𝑏), then
𝑓𝑥𝑦(𝑎, 𝑏) = 𝑓𝑦𝑥(a, b).
23
24
Compiled by: Tadesse Bekeshie (PhD)
Geometrically, 𝑓𝑥 (𝑎, 𝑏) is the slope of the line tangent to the trace of the graph of 𝑓 in the plane 𝑦 = 𝑏.
Physically, it tells you how fast z changes with respect to changes in x.
Similarly, 𝑓𝑦(𝑎, 𝑏), tells you the rate of change of z with respect to y and the slope of the line tangent to
the trace of the graph of 𝑓 in the plane 𝑥 =a .
Example 6: Find the slope of the tangent line to the trace of the graph of 𝑧 + 𝑥𝑦 2 in the plane 𝑦 = 2 at
(1,2).
Answer: 4
Note that the vectors 〈1,0, 𝑓𝑥 (𝑎, 𝑏〉 and 〈0,1, 𝑓𝑥 (𝑎, 𝑏〉 are parallel to the tangent plane to the graph of f at
(a, b). Hence, the plane spanned by these vectors is the tangent plane to the graph of f at (a, b).
Exercises 4.3:
1. Let 𝑓 (𝑥, 𝑦, 𝑧) be a continuous function. Show by using Claraiut’s theorem that 𝑓𝑥𝑦𝑦 = 𝑓𝑦𝑥𝑦 = 𝑓𝑦𝑦𝑥.
2. Given 𝑓 (𝑥, 𝑦, 𝑧) = 𝑥𝑒 𝑦𝑧, find
𝜕3 𝑓
(a)𝑓213 (b) .
𝜕𝑥2 𝑦
3. Show that 𝑓(𝑥, 𝑦) = √𝑥 2 + 𝑦 2 is continuous at (0, 0) but has no partial derivatives at (0, 0).
𝑦
4. Given 𝑧 = tan−1 ( ), show that 𝑧𝑥𝑥 + 𝑧𝑦𝑦 = 0.
𝑥
⃗⃗⃗⃗⃗⃗⃗
approaches P0 ⟺ ‖𝑃 ⃗⃗⃗⃗⃗⃗⃗ ⃗ and 𝑢
0 𝑃 ‖ approaches 0. Moreover, since 𝑃0 𝑃 || 𝑢
⃗⃗⃗⃗⃗⃗⃗
⃗ u is a unit vector, so 𝑃 0𝑃 = t 𝑢
⃗
⃗⃗⃗⃗⃗⃗⃗
for some scalar t and ‖𝑃 0 𝑃 ‖= t. The directional derivative of 𝑓 at P0(𝑥0 , 𝑦0 ) in the direction of 𝑢
⃗ is the
∆𝑧
limit of ⃗⃗⃗⃗⃗⃗⃗
as P approaches P0. It measures how sensitive the dependent variable z is to small changes
‖𝑃 0 𝑃‖
24
25
Compiled by: Tadesse Bekeshie (PhD)
P f(P0)
𝑃0
U
f(P)
Definition 1 [directional derivative]: Let 𝑓(𝑥, 𝑦) be defined at each point of an open disk D ((𝑥0 , 𝑦0 ); r)
and let 𝑢 = < 𝑢1 , 𝑢2 > be a unit vector. The directional derivative of 𝑓 at (𝑥0 , 𝑦0 ) in the direction of 𝑢 is
denoted by 𝐷𝑢 𝑓(𝑥0 ,𝑦0 ) and it is defined by:
𝑓(𝑥0 +𝑡𝑢1 ,𝑦0 + 𝑢2 𝑡)−𝑓(𝑥0 ,𝑦0 )
𝐷𝑢𝑓(𝑥0 ,𝑦0 ): =lim𝑡→0 ,
𝑡
Remarks:
1. 𝐷𝑖 𝑓(𝑃0 ) = 𝑓𝑥 (𝑃0 ) and 𝐷𝑗 𝑓(𝑃0 ) = 𝑓𝑦 (𝑃0)
2. If a is any vector (not just unit vector) we define Da(x0, y0) = Duf(x0, y0) where u is the
unit vector in the direction of a.
3. The concept of directional derivative can be extended to functions of 3 or more variables.
4. We can also define higher order directional derivatives.
√2 √2
Example 1: Let 𝑓(𝑥, 𝑦) = 6 − 3𝑥 2 − 𝑦 2 and 𝑢
⃗ = 𝑖 − 𝑗. Find 𝐷𝑢 𝑓(1,2).
2 2
√2 √2
𝑓(1+ 𝑡,2− 𝑡)−𝑓(1,2)
2 2
Solution: D u f (1, 2) = lim𝑡→0 = − √2
𝑡
Example 2: Let 𝑓(𝑥, 𝑦) = 𝑥 2 − 𝑥𝑦 + 5𝑦 and 𝑎 = 3𝑖 − 4𝑗. Find D u f (-1, 2).
3 4
Solution: The unit vector in the direction of a is 𝑢𝑎 = 𝑖 − 𝑗 .
5 5
3 4
𝑓(−1+ 𝑡,2− 𝑡)−𝑓(−1,2) 36
D a f (-1, 2) = 𝐷𝑢𝑎f (-1, 2) = lim𝑡→0 5 5
=−
𝑡 5
25
26
Compiled by: Tadesse Bekeshie (PhD)
Let
- 𝑧 = 𝑓(𝑥, 𝑦),
- 𝐴 (𝑥0 , 𝑦0 ) be an interior point of the domain of 𝑓,
- 𝑢
⃗ be a unit vector,
- 𝑙 be any line in xy-plane through (𝑥0 , 𝑦0) in the direction of 𝑢
⃗,
- 𝜋 be the plane through 𝑙 and perpendicular to xy-plane,
- 𝐶 be the trace of the graph of f in 𝜋,
- t be the tangent line to C at (𝑥0 , 𝑦0 , 𝑓((𝑥0 , 𝑦0 ) ))
Then
𝑠𝑙𝑜𝑝𝑒(𝑡) = 𝐷𝑈 𝑓(𝑥0 , 𝑦0 )
Directional derivatives can also be interpreted physically as a rate of change of a physical quantity with
respect to other physical quantities along a chosen direction.
Example 4: Find the slope of the tangent line t to the curve C at (½, ½) where C is the intersection of the
1 1 1 1
plane through the line 𝐿: 𝑃 = ( , ) + 𝑡 〈 , 〉 and the surface 𝑧 = √1 − 𝑥 2 − 𝑦 2. Ans. -1
2 2 2 2
B. The Gradient
Definition 2 [gradient]: Let 𝑓 be a function of 𝑥 and 𝑦 and let 𝑓𝑥 (𝑥0 , 𝑦0 ).Then the gradient of 𝑓 at
(𝑥0 , 𝑦0 )is the vector denoted and defined
⃗⃗⃗⃗
∇𝑓(𝑥0 ,𝑦0 ) ≔ 𝑓𝑥 (𝑥0 ,𝑦0 )𝑖+𝑓𝑦 (𝑥0, 𝑦0 )𝑗
26
27
Compiled by: Tadesse Bekeshie (PhD)
Remark:
1. The gradient of 𝑓 at (𝑥0 , 𝑦0 )is also denoted by 𝑔𝑟𝑎𝑑(𝑥0 , 𝑦0 ).
2. The gradient grad 𝑓 of a function 𝑓 of two variables is a vector valued function.
3. We can also define the gradient of a function of three or more variables.
Example 5: Let 𝑓(𝑥, 𝑦) = 𝑠𝑖𝑛 𝑥𝑦.
Find
𝜋
a) ∇𝑓( , 1)
3
b) ∇𝑓
Solution: 𝑓𝑥 = ycos xy, 𝑓𝑦 = xcos xy,
𝜋 𝜋 𝜋 1 𝜋
a) ∇𝑓( , 1) = 𝑓𝑥 ( , 1) 𝑖+𝑓𝑦 ( , 1) 𝑗 = 〈 , 〉
3 3 3 2 6
27
28
Compiled by: Tadesse Bekeshie (PhD)
Example 9: Find the equation of the tangent plane 𝜋 to the sphere 𝑥 2 + 𝑦 2 +𝑧 2 = 16 at (2, 2, 2√2).
Solution: Let 𝑓(𝑥, 𝑦, 𝑧): = 𝑥 2 + 𝑦 2 +𝑧 2
By the theorem, ∇f(2, 2, 2√2 )=〈4,4,4√2〉 is normal to the level surface 𝑥 2 + 𝑦 2 +𝑧 2 = 16 at (2, 2, 2√2 ).
An equation of plane 𝜋 is therefore 4x+4y+4 √2 z = 4 (2)+4(2)+4 √2 (2√2) or 4x+4y+4 √2 z = 32. //
Exercise 4.4:
1. If 𝐹(𝑥, 𝑦, 𝑧) = 4x2 +9y2 + z2 , then ∇𝐹 (-1, 1, 2) .
2. Calculate the directional derivative of 𝑓 = 3𝑥 2 − 3𝑦 2 in the direction j at (1,2,3).
3. Calculate the directional derivative of 𝑓 = 3𝑥 2 − 3𝑦 2 in the direction -j at (1,2,3).
4. Find a unit vector that is normal to the surface 𝑥 2 𝑦𝑧 = 1 at (1,1,1).
28
29
Compiled by: Tadesse Bekeshie (PhD)
𝑦
5. Find the maximum rate of change of the function 𝑓(𝑥, 𝑦, 𝑧) = 𝑥 + at the point (4, 3, −1).
𝑧
𝑦
6. Find the minimum rate of change of the function 𝑓(𝑥, 𝑦, 𝑧) = 𝑥 + at the point (4,3, −1).
𝑧
domain of 𝑓. Let 𝑥 be any number “near” 𝑥0 . Then the number ∆𝑥: = 𝑥 − 𝑥0 is called a change in x at
x0 . We can also denote it by 𝑑𝑥 Recall that a function 𝑓 is said to be differentiable at x0 if
𝑓(𝑥)−𝑓(𝑥0 )
lim𝑥→𝑥0 exist. This limit is denoted by 𝑓 ′ (𝑥0 ) .Geometrically, a function 𝑓 is differentiable at
𝑥−𝑥0
The function ℎ(𝑥) : = 𝑓(𝑥0 ) + 𝑓 ′ (𝑥0) (𝑥 – 𝑥0 ) represents the tangent line to the graph of 𝑓 at the point
x0.
The approximation above enables us to approximate the value of an arbitrary function 𝑓 at an arbitrary
point 𝑥 by the value of a linear function ℎ at 𝑥.
This approximation formula is called tangent line approximation.
Example 1: Using the tangent line approximation, approximate √4.1.
1
Solution: Define 𝑓(𝑥) = √𝑥 and let 𝑥0 = 4 . Then 𝑓 ′ (𝑥) = .
2√𝑥
1
Thus √4.01 ≅ √4 + (4.1-4) = 2 + 1/40. //
2√4
29
30
Compiled by: Tadesse Bekeshie (PhD)
Thus 𝑓(𝑥, 𝑦) is said to be differentiable at (𝑎, 𝑏) if as (𝑑𝑥, 𝑑𝑦) → (0,0), then ∆𝑓 → 𝑑𝑓. Geometrically,
𝑓(𝑥, 𝑦) is differentiable at (𝑎, 𝑏) means the graph of 𝑓 near (around) (𝑎, 𝑏) is almost flat (planar). For
instance, the cone 𝑓(𝑥, 𝑦) = √𝑥 2 + 𝑦 2 is not differentiable at (0, 0). The function 𝑓(𝑥, 𝑦) = |𝑥| + |𝑦| is
also not differentiable at (0, 0). The graphs of both functions have sharp point at (0, 0).
Note [Conditions under which 𝒇(𝒙, 𝒚) is not differentiable]:
A function 𝑓(𝑥, 𝑦) fails to be differentiable at (𝑎, 𝑏) for one of the following reasons:
a. 𝑓 is discontinuous at (𝑎, 𝑏).
b. the graph of f has a sharp point at (𝑎, 𝑏).
Example 2 [differentiable function: 2 variable case]: Let 𝑓(𝑥, 𝑦) = 3𝑥 − 𝑥𝑦 2 .
30
31
Compiled by: Tadesse Bekeshie (PhD)
The converse of this theorem is not true, in general. For instance, the function 𝑓(𝑥, 𝑦) = √𝑥 2 + 𝑦 2 is
continuous at (0, 0) but it is not differentiable at (0, 0). The function 𝑓(𝑥, 𝑦) = 3√𝑥𝑦 is continuous at (0, 0)
but it is not differentiable there. Note that while the first function has no partial derivatives at (0,0), the
second one has.
Theorem 2[A Sufficient condition for differentiability]: If a function 𝑓 ∶ 𝐷 ⊂ 𝑹2 → 𝑹 has
continuous partial derivatives at (𝑎, 𝑏), then 𝑓 is differentiable at (𝑎, 𝑏).
The converse of this theorem is not true, i.e., the requirement of continuous partial derivatives is more
stringent than that of differentiability. There exist some differentiable functions which do not have
continuous partial derivatives. A function satisfying the hypothesis of the above theorem is called
continuously differentiable and the class of such functions is denoted by 𝐶 1 .
Example 3: Use the above theorem to show that 𝑓(𝑥, 𝑦) = 𝑥 3 + 3𝑥𝑦 − 5𝑦 3 is differentiable everywhere.
In fact, every polynomial 𝑃(𝑥, 𝑦) is differentiable everywhere.
Note:
1. If a function is differentiable, it will be continuous and it will also have partial derivatives.
2. If a function is continuous, or has partial derivatives, or has both, it does not guarantee the function is
differentiable.
31
32
Compiled by: Tadesse Bekeshie (PhD)
D. Tangent Planes
Intuitively, it seems clear that, in a plane, only one line can be tangent to a curve at a point. However, in
three-dimensional space, many lines can be tangent to a curve at given point. If these lines lie in the same
plane, they determine the tangent plane at that point. only.
Definition 3 [tangent plane]: Let 𝑃0 = (𝑥0 ,𝑦0 , 𝑧0 ) be a point on a surface S, and let C be any curve
passing through 𝑃0 and lying entirely in S. If the tangent lines to all such curves C at 𝑃0 lie in the same
plane, then this plane is called the tangent plane to S at 𝑃0.
Derivation: To see why this formula is correct, let’s first find two tangent lines to the surface 𝑆.
The equation of the tangent line to the curve that is represented by the intersection of 𝑆 with the
vertical trace 𝑥 = 𝑥0 is 𝑧 = 𝑓(𝑥0 , 𝑦0 ) + 𝑓𝑦 (𝑥0 , 𝑦0 )(𝑦 − 𝑦0 ). Similarly, the equation of the tangent
line to the curve that is represented by the intersection of 𝑆 with the vertical plane given by 𝑦 =
𝑦0 is 𝑧 = 𝑓(𝑥0 , 𝑦0) + 𝑓𝑥 (𝑥0 , 𝑦0)(𝑥 − 𝑥0 ). A parallel vector to the first tangent line is 𝑎 = 𝑗 +
product of these two vectors is: 𝑎 × 𝑏⃗ ≔ 𝑓𝑥 (𝑥0 , 𝑦0)𝑖⃗ +𝑓𝑦( 𝑥0 , 𝑦0 )𝑗 − 𝑘⃗ . This vector is
32
33
Compiled by: Tadesse Bekeshie (PhD)
perpendicular to both lines and is therefore perpendicular to the tangent plane. We can use this
vector as a normal vector to the tangent plane, along with the point(𝑥0, 𝑦0 ) to obtain the equation
for a plane.
Example 4: Find the equation of the tangent plane to the surface defined by the function 𝑓(𝑥, 𝑦) =
𝑓𝑦(𝑥, 𝑦) = −3𝑥 + 16𝑦 − 4. Thus 𝑓𝑦 (2, −1) = −3(2) + 16(−1) − 4 = −26 . The equation is given by
𝑧 = 𝑓(2, −1) + 𝑓𝑥 (2, −1)(𝑥 − 2) + 𝑓𝑦 (2, −1)(𝑦 − (−1)),
then for values of (𝑥, 𝑦) reasonably close to(𝑥0 , 𝑦0 ) , the value of 𝑓(𝑥, 𝑦) can be approximated as
follows. If 𝑓 is differentiable at (𝑥0 ,𝑦0 ), then it follows from the definition of differentiability that 𝑑𝑓
tends to 𝑑𝑦 as ∆𝑥 tends to 0 and ∆𝑦 tends to 0. Hence, if ∆𝑥 and ∆𝑦 are small, then we have the
approximation formula
∆𝑧 ≈ 𝑑𝑧
It implies that
The function ℎ(𝑥, 𝑦) : = 𝑓(𝑥0 ,𝑦0 ) + 𝑓𝑥 (𝑥 – 𝑥0 ) + 𝑓𝑦 (𝑥 – 𝑥0 ) represents the tangent plane to the graph
of 𝑓 at the point (𝑥0 ,𝑦0 ).
33
34
Compiled by: Tadesse Bekeshie (PhD)
Exercise 4.5:
1. Find 𝑑𝑧 if 𝑧 = 𝑥𝑠𝑖𝑛𝑦𝑐𝑜𝑠𝑦.
2. Find the differential 𝑑𝑧 of the function 𝑓(𝑥, 𝑦) = 3𝑥 2 − 2𝑥𝑦 + 𝑦 2 and use it to approximate 𝛥𝑧 at
point (2, −3).
3. Find the linear approximation given by the tangent space to the function 𝑓(𝑥, 𝑦, 𝑧) = 𝑥𝑦 + 𝑥𝑧 +
9. A cylinder of radius 2 𝑖𝑛. and height 5 𝑖𝑛. is deformed to a different cylinder, now of radius 1.98 𝑖𝑛.
and height 5.03 𝑖𝑛. Use tangent plane approximation (differentials) to find the approximate change in
volume.
34
35
Compiled by: Tadesse Bekeshie (PhD)
4.6 The Chain Rule, Implicit Differentiation and Implicit Partial differentiation
A. The Chain Rule
Recall that if 𝑢, 𝑦 and x are variables such that 𝑢 is a function of 𝑦 and 𝑦 is a function of 𝑥, then 𝑢 is a
function of 𝑥 and
𝑑𝑢 𝑑𝑢 𝑑𝑦
=
𝑑𝑥 𝑑𝑦 𝑑𝑥
u depends on x,
𝑑𝑢
𝑑𝑥
u y x
𝑑𝑦
y depends on x,
u depends on y ,𝑑𝑢
𝑑𝑦
𝑑𝑥
For functions of several variables the chain rule has several versions.
Theorem 1(The Chain Rule, Version 1):
𝑑𝑥
If z is a differentiable function of x and y, defined by 𝑧 = 𝑓(𝑥, 𝑦) and if 𝑥 = 𝑔1 (𝑡), 𝑦 = 𝑔2 (𝑡), and
𝑑𝑡
𝑑𝑦
and both exist, then z is a function of t and
𝑑𝑡
𝑑𝑧 𝜕𝑧 𝑑𝑥 𝜕𝑧 𝑑𝑦
= +
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝜕𝑦 𝑑𝑡
Figure 16: Multivariable Chain Rule: two intermediate variables and one independent variable
35
36
Compiled by: Tadesse Bekeshie (PhD)
𝑑𝑧
Example 1: Let 𝑧 = 𝑒 𝑥𝑦, 𝑥 = 𝑡 2 𝑎𝑛𝑑 𝑦 = 𝑡 3. Find .
𝑑𝑡
𝑑𝑧 5
Answer: =5𝑡 4𝑒 𝑡 .
𝑑𝑡
Figure 17: Multivariable Chain Rule: two independent variables and two intermediate variables
𝜕2 𝑧
Example 2: Let 𝑧 = 𝑥𝑙𝑛𝑦, 𝑥 = 𝑡 2 + 𝑠 2 𝑎𝑛𝑑 𝑦 = 𝑡 3 − 𝑠 2. Find .
𝜕𝑡 2
⋮
𝜕𝑧 𝜕𝑧 𝜕𝑥1 𝜕𝑧 𝜕𝑥𝑛
=( )( ) +⋯ + ( )( )
𝜕𝑡𝑚 𝜕𝑥1 𝜕𝑡𝑚 𝜕𝑥𝑛 𝜕𝑡𝑚
Example 3 [chain rule in word problems]: Two sides of a triangle have lengths 𝑎 = 3𝑐𝑚 , 𝑏 = 4 𝑐𝑚,
but are increasing at a rate of 1 𝑐𝑚/. 𝑠. If the area of the triangle remains constant, at what rate is the
𝜋
angle 𝜃 between a and b changing when 𝜃 = ?
6
36
37
Compiled by: Tadesse Bekeshie (PhD)
B. Implicit Differentiation
There are two ways of expressing 𝑦 as a function of 𝑥 by an a formula. These are:
(a) 𝑦 = 𝑓(𝑥) form. This is called an explicit formula
(b) 𝐹(𝑥, 𝑦) = 0 form (where y is not uniquely solvable for x). This is called an imlicit form.
𝑑𝑦
If y is an imlicit function of x, then can be computed using the following result.
𝑑𝑥
Theorem 4(Implicit differentiation): Let the equation 𝐹(𝑥, 𝑦) = 0 defines the equation 𝑦 = 𝑓(𝑥)
implicitly. Then
𝑑𝑦 𝐹𝑥
=−
𝑑𝑥 𝐹𝑦
𝑑𝑦
Example 4: Let 𝑥 3 + 𝑦 3 = 2𝑥𝑦 defines implicitly y as a function of x. Find .
𝑑𝑥
𝑑𝑦 2𝑦−3𝑥2
Answer: .=
𝑑𝑥 3𝑦2 −2𝑥
Theorem 5(Implicit partial differentiation): Let the equation 𝐹(𝑥, 𝑦, 𝑧) = 0 defines the equation
𝑧 = 𝑓(𝑥, 𝑦) implicitly. Then
𝜕𝑧 𝐹𝑥
=−
𝜕𝑥 𝐹𝑧
𝜕𝑧 𝐹𝑦
=−
𝜕𝑦 𝐹𝑧
37
38
Compiled by: Tadesse Bekeshie (PhD)
Example 5: Let 𝑥 2 𝑧 2 = 2𝑥𝑦𝑧 − 𝑧 3 𝑦 2 defines implicitly z as a function of 𝑥 and 𝑦. Find 𝑧𝑥 , 𝑧𝑦 and 𝑧𝑥𝑥 .
Exercise 4.6:
dz
1. a) Find where z = xy2 + x2y, 𝑥 = 𝑎𝑡 2 and 𝑦 = 2𝑎𝑡, a constant
dt
b) If 𝑧 = 𝑓(𝑥, 𝑦) with 𝑥 = 𝑒 𝑢 + 𝑒 −𝑣 ; 𝑒 𝑢 + 𝑒 −𝑣 ;. Then show that
z z z z
x y
u v x y
𝜕𝑧 𝜕𝑧
2. Suppose 𝑧 = 𝑓(𝑥, 𝑦), where 𝑥 = 𝑒 𝑡 and 𝑦 = 𝑡 2 + 3𝑡 + 2. Given = 𝑥 − 𝑦 and = −𝑥, find
𝜕𝑥 𝜕𝑦
𝑑𝑧
when t=0.
𝑑𝑡
3. Find the equation of the tangent plane to theeach of the following equations at the indicated
points.
a) 𝑓(𝑥, 𝑦) = 3x2 + 4y2; at 𝑃(−2,1,16) b) 𝑒 𝑥𝑦 𝑐𝑜𝑠(𝑧𝑦) = 1; at (1, 0, 1).
38
39
Compiled by: Tadesse Bekeshie (PhD)
Definition 1 [local extrema]: A function 𝑓(𝑥, 𝑦) is said to have a local (relative) minimum value at the
point (𝑥0 ,𝑦0 ) if there exist an open disk 𝐷 centered at (𝑥0 , 𝑦0 ) such that
𝑓 (𝑥0 , 𝑦0 ) ≤ 𝑓(𝑥, 𝑦) for all (𝑥, 𝑦) ∈ 𝐷
In this case 𝑓(𝑥0 , 𝑦0 ) is called a local (relative) minimum value of 𝑓 and (𝑥0 ,𝑦0 ) is called a local
(minimum) point of f. Note that the point (𝑥0 ,𝑦0 ), 𝑓(𝑥0 , 𝑦0 )) can also be called a local minimum point of
𝑓.
Similarly, we can define local maximum value and local maximum point of 𝑓. A local extreme value of 𝑓
is a value of 𝑓 which is either a local minimum value or a local maximum value. The definition can be
extended to functions of 3 or more variables.
Proof:
Case 1: If f has a local minimum value at (𝑥0 , 𝑦0 )
Define
𝑔(𝑥): = 𝑓(𝑥, 𝑦0 )
𝐺(𝑦): = 𝑓(𝑥0 ,𝑦)
G and g are functions of single variables. Since f x(x0, y0) and fy(x0, y0) both exist and fx(x0, y0) = 𝑔′ (𝑥0 )
and 𝑓𝑦(𝑥0 ,𝑦0 ) = = 𝐺′ (𝑦0 )both exist
Since (x0, y0) is a local minimum point of f, so there is an open disk centered at (x0, y0) such that
𝑓 (𝑥0 , 𝑦0 ) ≤ 𝑓(𝑥, 𝑦) for all (x, y) ∈ D
⟹ 𝑓 (𝑥0 , 𝑦0 ) ≤ 𝑓(𝑥, 𝑦0 ) for all (𝑥, 𝑦0 ) ∈ D
⟹ 𝑔(𝑥0 ) ≤ 𝑔(𝑥) for all x in a nbd of 𝑔.
⟹ 𝑥0 is a local minimum point of 𝑔.
39
40
Compiled by: Tadesse Bekeshie (PhD)
⟹ 𝑔′ (𝑥0 ) = 0
⟹ 𝑓𝑥 (𝑥0, 𝑦0 ) = 0
Similarly, 𝑓𝑥 (𝑥0, 𝑦0 ) = 0
Case 2: If f has a local maximum at (𝑥0 ,𝑦0 ) (This case is left as exercise). ▀
Remarks:
1. We can re-state the theorem as follows: If (x0, y0) is a local extreme point of f(x, y), then either
∇𝑓(𝑥0 , 𝑦0 )= <0, 0> or ∇𝑓(𝑥0 , 𝑦0 ) does not exist.
2. The converse of remark (1) is not true.
3. From remark (1), {local extreme points of f} ⊆ {points at which grad f is 0 or does not exist}.
4. The theorem is also valid for functions of three or more variables. For instance it may be stated
for a function 𝑓 of three variables as follows.
Let 𝑓(𝑥, 𝑦, 𝑧) attains a local extreme value at (𝑥0 ,𝑦0 , 𝑧0 ) and let 𝑓𝑥 (𝑥0 ,𝑦0 , 𝑧0 ) ,𝑓𝑦(𝑥0 ,𝑦0 , 𝑧0 ) and
𝑓𝑧 (𝑥0, 𝑦0 , 𝑧0 ) exist. Then
∇𝑓(𝑥0 , 𝑦0 , 𝑧0 )= < 0, 0,0 >, i.e., 𝑓𝑥 (𝑥0, 𝑦0 , 𝑧0 ) = ,𝑓𝑦(𝑥0 ,𝑦0 , 𝑧0 )= 𝑓𝑧 (𝑥0, 𝑦0 , 𝑧0 ) = 0.
Definition 2 [critical point]: A point (𝑥0 , 𝑦0 ) in the domain of 𝑓(𝑥, 𝑦 )is called a critical point (or a
stationary point) of 𝑓 if one of the following is true:
1. 𝛻𝑓(𝑥0 ,𝑦0 ) = < 0, 0 >,
2. ∇𝑓(𝑥0 , 𝑦0 ) does not exist (i.e., 𝑓𝑥 (𝑥0, 𝑦0 ) and/or 𝑓𝑦(𝑥0 ,𝑦0 ) does not exist).
Example 1 [finding critical point]: Find all critical points of 𝑓(𝑥, 𝑦) : = 4𝑥𝑦 – 𝑥 4 – 𝑦 4.
Solution (a):
𝑓𝑥 = 4y – 4x 3 . 𝑓𝑦 = 4𝑥 − 4𝑦 3
Both fx and fy exist at all points (x, y) in ℝ2 . So, if (x, y) is a critical point of f, then ∇𝑓(𝑥, 𝑦) = < 0, 0 >.
This implies
4y – 4x 3 = 0 (1)
{
4𝑥 − 4𝑦 3 = 0 (2)
From (1) we obtain
y = x3 (3)
From (2) and (3) we obtain x=0,1 or -1.
When x=0, y=0.
When x=1, y=1.
40
41
Compiled by: Tadesse Bekeshie (PhD)
Remark:
a) The above theorem is also called Hessian test or the Critical point test.
b) The number 𝐷𝑓 (𝑥0 , 𝑦0 ) in the above theorem is called the discriminant of 𝑓 at (𝑥0 , 𝑦0 ).
𝑓𝑥𝑥(𝑥0 ,𝑦0 ) 𝑓𝑥𝑦 (𝑥0, 𝑦0 )
c) The matrix 𝐻𝑓( 𝑥0 , 𝑦0 ): = [ ]is called the Hessian matrix of 𝑓 at
𝑓𝑦𝑥 (𝑥0, 𝑦0 ) 𝑓𝑦𝑦(𝑥0 ,𝑦0 )
( 𝑥0 , 𝑦0 ).
Note that the determinant of 𝐻𝑓( 𝑥0 , 𝑦0 ) is 𝐷𝑓 (𝑥0 ,𝑦0 ). Note also that 𝐻𝑓 is a matrix valued
function.
d) The Hessian matrix often plays a role analogous to the ordinary second derivative in single
variable calculus. Most notably, it arises in quadratic approximations of multivariable functions
and the second partial derivative test.
e) The theorem can be extended to functions of 3 or more variables. The Hessian matrix of
an n variable real-valued function 𝑧 = 𝑓(𝑥1 , 𝑥2 , . . . , 𝑥𝑛 ) = 𝑓(𝒙) (where 𝒙 = (𝑥1 , 𝑥2 , . . . , 𝑥𝑛 ))
whose second partial derivatives exist is defined by:
𝑓11 𝑓12 ⋯ 𝑓1𝑛
𝑓 𝑓22 ⋯ 𝑓2𝑛
𝐻𝑓= [ 21 ]
⋮ ⋮ ⋱ ⋮
𝑓𝑛1 𝑓𝑛2 ⋯ 𝑓𝑛𝑛
41
42
Compiled by: Tadesse Bekeshie (PhD)
Example 2 [finding local extrema]: Find all local minimum and local maximum points of 𝑓(𝑥, 𝑦) : =
4𝑥𝑦 – 𝑥 4 – 𝑦 4.
Step 1: Find all critical points of f.
From Example 1, the only critical points of f are (0,0), (1, 1) and (−1,−1).
Step 2: Apply the Second Partial derivative test. The discriminant of f is given by
𝐷𝑓(𝑥, 𝑦) = 𝑓𝑥𝑥 𝑓𝑦𝑦 – 𝑓𝑥𝑦 𝑓𝑦𝑥
=(−12𝑥 2 )(−12𝑦2 ) − (4𝑦)(4𝑥)
=144𝑥 2 𝑦 2 − 16
The values of 𝑓𝑥𝑥 and 𝐷𝑓(𝑥, 𝑦) at the critical points and the corresponding conclusions are given in the
next table.
Critical point, (𝑥0 , 𝑦0 ) Discriminant, 𝐷(𝑥0 , 𝑦0 ) 𝑓𝑥𝑥 (𝑥0 ,𝑦0 ) conclusion
Example 3 [Hessian of a function of three variables]: Find the Hessian matrix of the
function 𝑓(𝑥, 𝑦, 𝑧) = 𝑥 2 + 𝑦 2 + 𝑧 2 .
42
43
Compiled by: Tadesse Bekeshie (PhD)
Definition 5 [conditional global and local extrema]: Let 𝑧 = 𝑓(𝑥, 𝑦), 𝑅 ⊆domain of 𝑓 and (𝑥0 ,𝑦0 ) ∈
𝑅. The function 𝑓 is said to have:
a) global minimum value on 𝑅 at (x0, y0) if
𝑓(𝑥0 , 𝑦0 ) ≤ 𝑓(𝑥, 𝑦) ∀(𝑥, 𝑦) ∈ 𝑅.
b) local minimum value on 𝑅 at (x0, y0) if there exists an open disk D containing (x0, y0) such that
f(x0, y0) ≤ f(x, y) ∀(𝑥, 𝑦) ∈ D ∩ R.
Similarly we can define global and local maximum value and point on a set. The set R in the above
definition is sometimes called a constraint set.
A function 𝑓 may or may not have an extreme value on a subset 𝑅 of its domain.
Example 5: Let
𝑓(𝑥, 𝑦) = 𝑥 + 𝑦
𝑥
𝑖𝑓, 𝑦 ≠ 0
𝑔(𝑥, 𝑦) = { 𝑦
0 𝑖𝑓 , 𝑦 = 0
R1 = {(x, y): 0 < 𝑥 < 1; 0 < 𝑦 < 1}
R2 = {(x, y): 0 ≤ 𝑥 ≤ 1; 0 ≤ 𝑦 ≤ 1}.
R3 = {(x, y): x ≥ 0 and ≥ 0 } (first quadrant)
Clearly, 𝑓 has no extreme value on R 1 ; it has both extreme values on R2 and it has minimum value but
not maximum value on R3. Note that R1 is not a closed set and R3 is not a bounded set. The function g has
no extreme values on the three sets. Note that g is discontinuous on these sets.
Theorem 3 [Extreme value theorem for a function of two variables]: Let 𝑅 be a closed and bounded
region in xy-plane and 𝑓(𝑥, 𝑦) be continuous on 𝑅. Then 𝑓 has both minimum and maximum values on 𝑅.
Procedures for finding the extreme values of a continuous function f(x, y) on a compact set R
Step 1: Evaluate 𝑓 at all of its critical points in R.
Step 2: Find the extreme values of 𝑓 on the boundary of 𝑅. Note that 𝜕𝑅 is usually a curve.
Step 3: Compare the values obtained in steps 1 and 2. The largest is the maximum value and the smallest
is the minimum value .
43
44
Compiled by: Tadesse Bekeshie (PhD)
To accomplish step 2, we can use either the so called Lagrange multiplier method or substitution method
(i.e., converting the problem into one variable extremum problem by using substitution). The Lagrange
multiplier methods are based on the orthogonal gradient theorems of section 4.6 and it will be explained
soon.
Example 6: Find the extreme values of 𝑓(𝑥, 𝑦) = 𝑥 2 − 𝑦 2 − 𝑥 on the disk 𝑅: = {(𝑥, 𝑦): 𝑥 2 + 𝑦 2 ≤ 4}.
Solution:
1 1 1
Step 1: The only critical point of 𝑓 is ( , 0), it is interior to R and 𝑓 ( , 0) = − .
2 2 4
Step 2: The boundary of R is the circle 𝐶: 𝑥 2 + 𝑦 2 = 4. To find the extreme values of 𝑓 on 𝐶 let us apply
substitution. Observe that 𝑥 2 + 𝑦 2 = 4 ⇔ 𝑦 = ±√4 − 𝑥 2. Hence, 𝑓(𝑥, 𝑦) = 𝑥 2 − 𝑦 2 − 𝑥 = 𝑥 2 −
(4 − 𝑥 2 ) − 𝑥=2𝑥 2 – 𝑥 − 4 (for −2 ≤ 𝑥 ≤ 2).
Thus on C, 𝑓 can be treated as a function of 𝑥 only. Applying the theory of extrema for single variable
1 √63 33
calculus we obtain 𝑓(−2,±0) = 6 as the maximum value and 𝑓 ( , ± )= − as the minimum value
4 4 8
of 𝑓 on C.
Step 3: By comparing the values of 𝑓 at the critical point in Step 1 and at the boundary points in Step 2 at
33
last we get that 6 is the maximum value and − is the minimum value of 𝑓 on R.
8
44
45
Compiled by: Tadesse Bekeshie (PhD)
Remark:
a. The number 𝜆 in the above theorem is called Lagrange multiplier.
b. The equation 𝑔(𝑥, 𝑦) = 0 is called constraint.
c. To find the critical points (𝑥, 𝑦) of a function 𝑓(𝑥, 𝑦) on a (level) curve 𝑔(𝑥, 𝑦) = 0, we need to
solve the following system of equations
⃗⃗⃗⃗ (𝑥, 𝑦) = 𝜆∇𝑔
∇𝑓 ⃗⃗⃗⃗⃗ (𝑥, 𝑦)
{
g(x, y) = 0
for 𝑥, 𝑦 and 𝜆. This is equivalent to the system of equations below:
𝑓𝑥 (𝑥, 𝑦) = 𝜆𝑔𝑥 (𝑥, 𝑦
𝑓𝑦 (𝑥, 𝑦) = 𝜆𝑔𝑦 (𝑥, 𝑦
g(x, y) = 0
d. Lagrange’s theorem can be extended to functions of three or more variables.
Tips for solving the system of equations arising from Lagrange multiplier theorem:
1. First, Solve for 𝜆 in terms of 𝑥, 𝑦 and 𝑧.
2. Try first solving for one of the variables in terms of the others.
3. Be careful when you do certain operations such as taking square roots, dividing an
expression by another, etc.
45
46
Compiled by: Tadesse Bekeshie (PhD)
Example 7 [extrema on circle]: Use Lagrange multiplier method to find the extreme values of 𝑓(𝑥, 𝑦) =
𝑥 2 − 𝑦 2 − 𝑥 on 𝐶: 𝑥 2 + 𝑦 2 = 4.
⃗⃗⃗⃗⃗ (𝑥, 0) ≠ 〈0,0〉 on C, so the extreme values of 𝑓 on 𝐶 are obtained by comparing its
no endpoints and ∇𝑔
1 √63
values on the critical points only. We get that 𝑓(−2,±0) = 6 is the maximum value and 𝑓 ( , ± ) =
4 4
33
− is the minimum value of 𝑓 on C. //
8
The above theorem can be extended to functions of three or more variables. For three variables,
Example 8 [extrema on hyperobola]: (a)Find the values of 𝑥 and 𝑦 that make 𝑓 = 𝑥 2 + 𝑦 2 as small as
possible, while satisfying the constraint 𝑔: 𝑥𝑦 = 1. Sketch some level curves of 𝑓 and 𝑔 on 𝑥𝑦 plane and
through it explain why the Lagrange method works.
Solution:
(a) (1, 1) and (−1, −1)
(b)
The red level curves are level curves of 𝑓 and the blue one is the constraint curve (which is also a level
curve of g). It turns out that at the level curve of 𝑓 through an extreme point of f must be tangent to the
constraint curve. To see why, it helps to look at a point where the curves are not tangent, such as the
orange point. Since the red and blue level curves aren’t tangent to each other there, they cross each
46
47
Compiled by: Tadesse Bekeshie (PhD)
other. Since they cross, moving one direction along the blue curve moves up in the red valley, and
moving the other direction moves down. In other words, there is a local change to that preserves the
constraint g(x, y)=0 and causes the objective function f(x, y) to decrease, and the opposite change causes
it to increase. There’s no way it can be a constrained minimum or maximum. Since the minimum can’t
be at a point where the level curves cross, it has to be at a point where they are tangent. This happens
when
⃗⃗⃗⃗ ⃗⃗⃗⃗⃗
∇𝑓 = 𝜆∇𝑔
If the boundary curve 𝐶 of a region R is described by more than one formula, then finding the extrema of
a function on 𝐶 can require consideration of many cases, as shown in the next example.
Example 9 [extrema on triangular region]: Find the absolute maximum and minimum values of
𝑓(𝑥, 𝑦) = 5 − 3𝑥 + 4𝑦 on a closed triangular region R with vertices (0,0), (4,0), and (4,5).
Remark: Lagrange method for a function of three variables can be extended to the case of two
constraints. (Read!)
Example 10 [constrained extrema of function of three variables): Find the minimum and
maximum values of 𝑓 = 𝑥𝑦𝑧 subject to 𝑥2 + 𝑦2 + 𝑧2 = 1.
Example 11: Find the dimensions of the box with largest volume if the total surface area is 64𝑐𝑚2 .
32
Answer: x= 𝑦 = 𝑧 = √
3
47
48
Compiled by: Tadesse Bekeshie (PhD)
Exercise 4.7:
5. Find the maximum and minimum values of 𝑓(𝑥, 𝑦, 𝑧) = 𝑥𝑦𝑧 subject to the constraint 𝑥 + 𝑦 + 𝑧 =
1.
6. Find the absolute maximum and minimum values of 𝑓(𝑥, 𝑦) = 𝑥 2 + 4𝑦 2 − 2𝑥 2 𝑦 + 4 on the
rectangle 𝑅: −1 ≤ 𝑥 ≤ 1 and −1 ≤ 𝑦 ≤ 1.
y
7. Find the extreme values of 𝑓(𝑥, 𝑦) = tan−1 ( ) on the region bounded by 𝑥 = 2 , 𝑥 = 4 , 𝑦 =
x
1
−𝑥 , 𝑦 = − 𝑥.
2
8. Determine the point on the plane 4𝑥 − 2𝑦 + 𝑧 = 1 that is closest to the point (−2, −1,5).
48