AS101 - Topic 4 - Partial Derivatives - Revised
AS101 - Topic 4 - Partial Derivatives - Revised
AS101 - Topic 4 - Partial Derivatives - Revised
1. The formal definition of functions of two variables, and their fundamental properties.
2. The domain and range of functions of two or more variables.
3. The limits and continuity of functions of two or more variables.
4. Partial derivatives of functions of two or more variables and related concepts.
5. The Chain Rule formulae for functions of two or more variables.
6. Implicit differentiation formulae for functions of two or more variables.
In the course of your study thus far, we have only dealt with the calculus of functions of a single
variable. However, in the real world, physical quantities often depend on two or more variables.
So in this chapter, you will be introduced to the concept of a function of several variables and
subsequently, the basic ideas of differential calculus for such functions will be studied.
Definition 1
A function 𝑓 of two variables is a rule that assigns to each ordered pair of real numbers (𝑥, 𝑦) in a set
𝐷 a unique real number denoted by 𝑓(𝑥, 𝑦). The set 𝐷 is the domain of 𝑓 and its range is the set of
values that 𝑓 takes on, that is, {𝑓(𝑥, 𝑦): (𝑥, 𝑦) ∈ 𝐷}.
Note:
1. We often write 𝑧 = 𝑓(𝑥, 𝑦) to make explicit the value taken on by 𝑓 at the general point
(𝑥, 𝑦).
2. The variables 𝑥 and 𝑦 are the independent variables and 𝑧 is the dependent variable.
3. If the function 𝑓 is given by a formula and no domain is specified, then the domain of 𝑓 is
understood to be the set of all pairs (𝑥, 𝑦) for which the given expression is a well-defined
real number.
For functions of two variables, the domain and range are as defined below:
Range: The maximum and minimum values that can be assumed by the function 𝑧 = 𝑓(𝑥, 𝑦).
Question 1
For each of the following functions, evaluate 𝑓(3, 2) and find the domain.
√𝑥+𝑦+1
(a) 𝑓(𝑥, 𝑦) = 𝑥−1
(b) 𝑓(𝑥, 𝑦) = 𝑥 ln(𝑦 2 − 𝑥)
(a) 𝑔(𝑥, 𝑦) = √9 − 𝑥 2 − 𝑦 2 .
(b) ℎ(𝑥, 𝑦) = 4𝑥 2 + 𝑦 2
A company makes three sizes od cardboard boxes: small, medium and large. It costs $2.50 to make
a small box, $4.00 to make a medium box and $4.50 to make a large box. Fixed costs are $8000.
(a) Express the cost of making 𝑥 small boxes, 𝑦 medium boxes and 𝑧 large boxes as a function
of three variables: 𝐶 = 𝑓(𝑥, 𝑦, 𝑧).
(b) Find 𝑓(3000, 5000, 4000) and interpret it.
(c) What is the domain of 𝐶?
Let 𝐹(𝑥, 𝑦) = 1 + √4 − 𝑦 2 .
(a) 𝑓(𝑥, 𝑦) = √𝑥 + 𝑦
(b) 𝑓(𝑥, 𝑦) = √𝑥𝑦
(c) 𝑓(𝑥, 𝑦) = ln(9 − 𝑥 2 − 9𝑦 2 )
Similar to the study of single variable calculus, here we study the limits and continuity of functions
of two variables.
The informal definition of the limit of a function of two variables are as given below:
Definition 2
Let 𝑓 be a function of two variables whose domain 𝐷 includes points arbitrarily close to (𝑎, 𝑏). Then
we use the notation
lim 𝑓(𝑥, 𝑦) = 𝐿
(𝑥,𝑦)→(𝑎,𝑏)
to indicate that the values of 𝑓(𝑥, 𝑦) approach the number 𝐿 as the point (𝑥, 𝑦) approaches the point
(𝑎, 𝑏) along any path that stays within the domain of 𝑓.
In other words, we can make the values of 𝑓(𝑥, 𝑦) as close to 𝐿 as we like by taking the point (𝑥, 𝑦)
sufficiently close to the point (𝑎, 𝑏), but not equal to (𝑎, 𝑏).
The formal definition of the limit of a function of two variables are as given below:
Let 𝑓 be a function of two variables whose domain 𝐷 includes points arbitrarily close to (𝑎, 𝑏). Then
we say that the limit of 𝑓(𝑥, 𝑦) as (𝑥, 𝑦) approaches (𝑎, 𝑏) is 𝐿 and we write
lim 𝑓(𝑥, 𝑦) = 𝐿
(𝑥,𝑦)→(𝑎,𝑏)
if for every number 𝜀 > 0 there is a corresponding number 𝛿 > 0 such that if (𝑥, 𝑦) ∈ 𝐷 and
1. Other commonly used notations for the limit of functions of two variables given in
Definition 1 are:
i. lim 𝑓(𝑥, 𝑦) = 𝐿
𝑥→𝑎
𝑦→𝑏
2. Notice that |𝑓(𝑥, 𝑦) − 𝐿| is the distance between the numbers 𝑓(𝑥, 𝑦) and 𝐿 and
√(𝑥 − 𝑎)2 + (𝑦 − 𝑏)2 is the distance between the point (𝑥, 𝑦) and (𝑎, 𝑏). Therefore
Definition 3 says that the distance between 𝑓(𝑥, 𝑦) and 𝐿 can be made arbitrarily small by
making the distance from (𝑥, 𝑦) and (𝑎, 𝑏) sufficiently small but not 0.
The non-existence of a limit for a function of two variables are as given below:
Definition 4
Let 𝑓 be a function of two variables whose domain 𝐷 includes points arbitrarily close to (𝑎, 𝑏).
If 𝑓(𝑥, 𝑦) → 𝐿1 as (𝑥, 𝑦) → (𝑎, 𝑏) along a path 𝐶1 (i.e. along the 𝑥 -axis) and 𝑓(𝑥, 𝑦) → 𝐿2 as
(𝑥, 𝑦) → (𝑎, 𝑏) along a path 𝐶2 (i.e. along the 𝑦-axis), where 𝐿1 ≠ 𝐿2 , then lim 𝑓(𝑥, 𝑦) = 𝐿
(𝑥,𝑦)→(𝑎,𝑏)
does not exist.
Just as for functions of one variable, the calculation and computation of limits can be greatly
simplified by the use of properties of limits. The limit laws that was previously studied in AS100
can be extended to the functions of two variables. The main properties of limits are as given below:
3. The limit of a constant times a function is the constant times the limit of the function:
5. The limit of a quotient is the quotient of the limits (provided that the limit of the
denominator is not 0):
𝑓(𝑥) lim 𝑓(𝑥)
lim [ ] = 𝑥→𝑎 , provided that lim 𝑔(𝑥) ≠ 0
𝑥→𝑎 𝑔(𝑥) lim 𝑔(𝑥) 𝑥→𝑎
𝑥→𝑎
7. The limit of the nth root of a function is the nth root of the limit of the function:
𝑛
lim √𝑓(𝑥) = 𝑛√ lim 𝑓(𝑥)
𝑥→𝑎 𝑥→𝑎
9. For functions of two variables, the following properties also hold true:
i. lim 𝑥=𝑎
(𝑥,𝑦)→(𝑎,𝑏)
Question 1
Determine whether the limit of the following function exists for (𝑥, 𝑦) → (0, 0).
𝑥2 − 𝑦2
𝑓(𝑥, 𝑦) = 2
𝑥 + 𝑦2
Question 2
Recall that evaluating limits of continuous functions of a single variable function is easy. It can be
accomplished by direct substitution because the defining property of a continuous function is
lim 𝑓(𝑥) = 𝑓(𝑎). Continuity of the functions of two variables are also defined by a similar direct
𝑥→𝑎
substitution property.
The formal definition of the continuity of functions of two variables are as given below:
Definition 5
Examples:
1. A polynomial function of two variables (polynomials, for short) is a sum of terms of the
form 𝑐𝑥 𝑚 𝑦 𝑛 , where 𝑐 is a constant and 𝑚 and 𝑛 are non-negative integers.
Since any polynomial can be constructed using simple functions by multiplication,
subtraction and addition, all polynomials are continuous on ℝ𝟐 .
2. All rational functions of functions of two variables are only continuous in their respective
domains.
Question 1
(a) 𝑓(𝑥, 𝑦) = 𝑥 2 𝑦 3 − 𝑥 3 𝑦 2 + 3𝑥 + 2𝑦
𝑥 2 −𝑦 2
(b) 𝑓(𝑥, 𝑦) = 𝑥 2 +𝑦 2
Question 1
Find the limit for the following functions, if it exists, or show that the limit does not exist.
𝑥 4 −4𝑦 2
(e) lim
(𝑥,𝑦)→(0,0) 𝑥 2 +2𝑦 2
𝑥 2 +sin2 𝑦
(f) lim
(𝑥,𝑦)→(2,1) 2𝑥 2 +𝑦 2
𝑥 2 +𝑦 2
(h) lim
(𝑥,𝑦)→(0,0) √𝑥 2 +𝑦2 +1−1
2
(i) lim 1
𝑒 𝑦 tan(𝑥𝑧)
(𝑥,𝑦,𝑧)→(𝜋,0, )
3
Determine the set of points at which the following functions are continuous.
𝑥𝑦
(a) 𝑓(𝑥, 𝑦) = 1+𝑒 𝑥−𝑦
In general, if 𝑓 is a function of two variables 𝑥 and 𝑦, suppose we let only 𝑥 vary while keeping 𝑦
fixed. Then we are in fact finding the derivative of a function of a single variable, say 𝑔(𝑥). If 𝑔
has a derivative at 𝑥 = 𝑎, then we call it the partial derivative of 𝑓 with respect to 𝑥 at point (𝑎, 𝑏)
and denote it as 𝑓𝑥 (𝑎, 𝑏).
𝑔(𝑎 + ℎ) − 𝑔(𝑎)
𝑔′ (𝑎) = lim
ℎ→0 ℎ
𝑓(𝑎 + ℎ, 𝑏) − 𝑓(𝑎, 𝑏)
𝑓𝑥 (𝑎, 𝑏) = lim
ℎ→0 ℎ
Similarly, the partial derivative of 𝑓 with respect to 𝑦 at (𝑎, 𝑏), denoted by 𝑓𝑦 (𝑎, 𝑏), is obtained by
keeping 𝑥 fixed and finding the ordinary derivative at 𝑏.
𝑓(𝑎, 𝑏 + ℎ) − 𝑓(𝑎, 𝑏)
𝑓𝑦 (𝑎, 𝑏) = lim
ℎ→0 ℎ
If 𝑓 is a function of two variables, its partial derivatives are the functions 𝑓𝑥 and 𝑓𝑦 defined by
𝑓(𝑥 + ℎ, 𝑦) − 𝑓(𝑥, 𝑦)
𝑓𝑥 (𝑥, 𝑦) = lim
ℎ→0 ℎ
𝑓(𝑥, 𝑦 + ℎ) − 𝑓(𝑥, 𝑦)
𝑓𝑦 (𝑥, 𝑦) = lim
ℎ→0 ℎ
Notations
There are many alternative notations for partial derivatives. Some of the most commonly used
ones are as given in the table below.
𝜕𝑓 𝜕 𝜕𝑧
𝑓𝑥 (𝑥, 𝑦) = 𝑓𝑥 = = (𝑓(𝑥, 𝑦)) = = 𝑓1 = 𝐷1 𝑓 = 𝐷𝑥 𝑓
𝜕𝑥 𝜕𝑥 𝜕𝑥
and
𝜕𝑓 𝜕 𝜕𝑧
𝑓𝑦 (𝑥, 𝑦) = 𝑓𝑦 = = (𝑓(𝑥, 𝑦)) = = 𝑓2 = 𝐷2 𝑓 = 𝐷𝑦 𝑓
𝜕𝑦 𝜕𝑦 𝜕𝑦
Note: This rule also applies to functions of more than two variables.
If 𝑓 is a function of two variables, then its partial derivatives 𝑓𝑥 and 𝑓𝑦 are also functions of two
variables. Therefore, we can also find the partial derivatives of these derivatives, which are called
the second partial derivatives of 𝑓.
If 𝑧 = 𝑓(𝑥, 𝑦), the following notations are used for the second partial derivatives of 𝑓:
Note:
𝜕2 𝑓
(g) The notation 𝑓𝑥𝑦 or means that we first differentiate with respect to 𝑥 and then with
𝜕𝑦𝜕𝑥
Question 1
𝑥 𝜕𝑓 𝜕𝑓
(a) If 𝑓(𝑥, 𝑦) = sin (1+𝑦), calculate 𝜕𝑥 and 𝜕𝑦.
𝜕𝑧 𝜕𝑧
(b) Find 𝜕𝑥 and 𝜕𝑦 if 𝑧 is defined implicitly as a function of 𝑥 and 𝑦 by the equation
𝑥 3 + 𝑦 3 + 𝑧 3 + 6𝑥𝑦𝑧 = 1.
Find the indicated partial derivative of the following functions at the indicated points.
Use the first principles method to find 𝑓𝑥 (𝑥, 𝑦) and 𝑓𝑦 (𝑥, 𝑦).
(a) (𝑥, 𝑦) = 𝑥𝑦 2 − 𝑥 3 𝑦
𝜕𝑧 𝜕𝑧
Find 𝜕𝑥 and 𝜕𝑦 .
(a) 𝑓(𝑥, 𝑦) = 𝑥 3 𝑦 5 + 2𝑥 4 𝑦
(b) 𝑓(𝑥, 𝑦) = sin2 (𝑚𝑥 + 𝑛𝑦)
Verify that the function 𝑧 = ln(𝑒 𝑥 + 𝑒 𝑦 ) is a solution of the following differential equations.
𝜕𝑧 𝜕𝑧
(a) + 𝜕𝑦 = 1
𝜕𝑥
In this section, we deal with the chain rules and implicit differentiation for functions of more than
one variable.
The chain rule for functions of a single variable gives the rule for differentiating composite
functions of the form:
If 𝑦 = 𝑓(𝑥) and 𝑥 = 𝑔(𝑡), where 𝑓 and 𝑔 are differentiable functions, then 𝑦 is indirectly a
differentiable function of 𝑡 and
𝑑𝑦 𝑑𝑦 𝑑𝑥
=
𝑑𝑡 𝑑𝑥 𝑑𝑡
Similar chain rules are also available for dealing with functions of more than one variable. There
are several cases for these chain rules, but only the three most important cases are given here.
The Chain Rule (Case 1: For finding the derivative of 𝒛 w.r.t. 𝒕.)
Suppose that 𝑧 = 𝑓(𝑥, 𝑦) is a differentiable function of 𝑥 and 𝑦, where 𝑥 = 𝑔(𝑡) and 𝑦 = ℎ(𝑡)
are both differentiable functions of 𝑡. Then 𝑧 is a differentiable function of 𝑡 and
𝑑𝑧 𝜕𝑓 𝑑𝑥 𝜕𝑓 𝑑𝑦
= +
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝜕𝑦 𝑑𝑡
𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦
= +
𝜕𝑠 𝜕𝑥 𝜕𝑠 𝜕𝑦 𝜕𝑠
and
𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦
= +
𝜕𝑡 𝜕𝑥 𝜕𝑡 𝜕𝑦 𝜕𝑡
The Chain Rule (General Version: For finding the partial derivatives of the multi-variable
function 𝒖)
for each 𝑖 = 1, 2, … , 𝑚.
Question 1
𝑑𝑧
If 𝑧 = 𝑥 2 𝑦 + 3𝑥𝑦 4 , where 𝑥 = sin 2𝑡 and 𝑦 = cos 𝑡, find 𝑑𝑡 when 𝑡 = 0.
𝜕𝑧 𝜕𝑧
If 𝑧 = 𝑒 𝑥 sin 𝑦, where 𝑥 = 𝑠𝑡 2 and 𝑦 = 𝑠 2 𝑡, find 𝜕𝑠 and 𝜕𝑡 .
Write out the Chain Rule for the case where 𝑤 = 𝑓(𝑥, 𝑦, 𝑧, 𝑡) and 𝑥 = 𝑥(𝑢, 𝑣), 𝑦 = 𝑦(𝑢, 𝑣),
𝑧 = 𝑧(𝑢, 𝑣) and 𝑡 = 𝑡(𝑢, 𝑣).
𝜕𝑢
If 𝑢 = 𝑥 4 𝑦 + 𝑦 2 𝑧 3 , where 𝑥 = 𝑟𝑠𝑒 𝑡 , 𝑦 = 𝑟𝑠 2 𝑒 −𝑡 and 𝑧 = 𝑟 2 𝑠 sin 𝑡, find the value of when
𝜕𝑠
𝑟 = 2, 𝑠 = 1, 𝑡 = 0.
𝜕𝑔 𝜕𝑔
𝑡 +𝑠 = 0.
𝜕𝑠 𝜕𝑡
𝑑𝑧 𝑑𝑤
Use the Chain Rule to find 𝑑𝑡 or .
𝑑𝑡
(a) 𝑧 = 𝑥 2 + 𝑦 2 + 𝑥𝑦 ; 𝑥 = sin 𝑡 , 𝑦 = 𝑒 𝑡
𝜕𝑧 𝜕𝑧
Use the Chain Rule to find and .
𝜕𝑠 𝜕𝑡
𝑑𝑧
find when 𝑡 = 3.
𝑑𝑡
Let 𝑊(𝑠, 𝑡) = 𝐹(𝑢(𝑠, 𝑡), 𝑣(𝑠, 𝑡)), where 𝐹, 𝑢, 𝑣 are differentiable, and
Use the Chain Rule to find the indicated partial derivatives at the indicated points.
𝜕𝑧 𝜕𝑧 𝜕𝑧
(a) 𝑧 = 𝑥 2 + 𝑥𝑦 3 ; 𝑥 = 𝑢𝑣 2 + 𝑤 3 , 𝑦 = 𝑢 + 𝑣𝑒 𝑤 ; , , 𝜕𝑤 when 𝑢 = 2, 𝑣 = 1, 𝑤 = 0
𝜕𝑢 𝜕𝑣
when 𝑥 = 1, 𝑦 = 2, 𝑡 = 0
when 𝑢 = 2, 𝑣 = 3, 𝑤 = 4
𝐹(𝑥, 𝑦) = 0
If 𝐹 is differentiable, we can apply Case 1 of the Chain Rule to differentiate both sides of the
equation 𝐹(𝑥, 𝑦) = 0 with respect to 𝑥. Since both 𝑥 and 𝑦 are functions of 𝑥, we obtain
𝜕𝐹 𝑑𝑥 𝜕𝐹 𝑑𝑦
+ = 0.
𝜕𝑥 𝑑𝑥 𝜕𝑦 𝑑𝑥
𝑑𝑥 𝜕𝐹 𝑑𝑦
But = 1, so if ≠ 0, we can solve for and obtain
𝑑𝑥 𝜕𝑦 𝑑𝑥
𝜕𝐹
𝑑𝑦 ( ) 𝐹𝑥
= − 𝜕𝑥 = −
𝑑𝑥 𝜕𝐹 𝐹𝑦
𝜕𝑦
Similarly, for functions of three variables, the formula for implicit differentiation are as given
below:
𝜕𝐹 𝜕𝐹
𝜕𝑧 ( ) 𝐹𝑥 𝜕𝑧 ( ) 𝐹𝑦
𝜕𝑦
= − 𝜕𝑥 = − & = − =−
𝜕𝑥 𝜕𝐹 𝐹𝑧 𝜕𝑦 𝜕𝐹 𝐹𝑧
𝜕𝑧 𝜕𝑧
Question 1
Find 𝑦′ if 𝑥 3 + 𝑦 3 = 6𝑥𝑦.
𝜕𝑧 𝜕𝑧
Find and for the following functions:
𝜕𝑥 𝜕𝑦
(a) 𝑥 3 + 𝑦 3 + 𝑧 3 + 6𝑥𝑦𝑧 = 1
(b) 𝑥 2 + 2𝑦 2 + 3𝑧 2 = 1
(c) 𝑥 2 − 𝑦 2 + 𝑧 2 − 2𝑧 = 4
𝑑𝑦
Find 𝑑𝑥 for the following functions.
(a) 𝑦 cos 𝑥 = 𝑥 2 + 𝑦 2
(b) cos(𝑥𝑦) = 1 + sin 𝑦