Chaptre 8
Chaptre 8
Antiquity and Middle Ages: The Greeks (Euclid, Archimedes) studied surfaces and
volumes. Arab mathematicians developed algebra.
17th century: Descartes introduced analytic geometry, while Newton and Leibniz
developed differential calculus.
18th and 19th centuries: Euler formalized partial derivatives, Lagrange developed
optimization, and Gauss applied these concepts to physics and geometry.
20th and 21st centuries: Applications in physics, economics, and artificial
intelligence, with advancements driven by computing.
8.1. Norm
Equivalence of Norms. Two norms ‖𝑥‖ and‖𝑥‖′ are called equivalent if there exist two
positive scalars 𝑎 and b such that
If two norms are equivalent, then they induce the same notions of open sets (same topology). In
particular, if a sequence an converges to the limit a with respect to the norm, then this sequence
converges to the same limit with respect to the equivalent norm.
1
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
‖𝑣 ‖∞ ≤ ‖𝑣 ‖2 ≤ ‖𝑣 ‖1 , ‖𝑣 ‖2 ≤ √2‖𝑣 ‖∞ ,
‖𝑣 ‖1 ≤ 2‖𝑣 ‖∞ , ‖𝑣 ‖1 ≤ 2‖𝑣 ‖2 .
Distance
Let 𝐸 be a non-empty set. A distance (or metric) on 𝐸 is a function d: 𝐸 × 𝐸 → [0, +∞[ that satisfies
for all 𝑥, 𝑦 𝑎𝑛𝑑 𝑧 ∈ 𝐸, the following three properties:
Usual distance on ℝ𝟐 : Let 𝐴(𝑥𝐴 , 𝑦𝐴 ) and 𝐵(𝑥𝐵 , 𝑦𝐵 ) be two points in the planeℝ𝟐
a) Manhattan distance 𝑑1 (𝐴, 𝐵) = |𝑥𝐴 − 𝑥𝐵 | + |𝑦𝐴 − 𝑦𝐵 |.
b) Euclidean Distance: 𝑑2 (𝐴, 𝐵) = 𝑑((𝑥𝐴 , 𝑦𝐴 ), (𝑥𝐵 , 𝑦𝐵 )) = √(𝑥𝐴 − 𝑥𝐵 )2 + (𝑦𝐴 − 𝑦𝐵 )2 .
c) Maximum distance :𝑑∞ (𝐴, 𝐵) = 𝑚𝑎𝑥(|𝑥𝐴 − 𝑥𝐵 |, |𝑦𝐴 − 𝑦𝐵 |)
Definition
Let A be a point in the plane ℝ2 , 𝑟 a strictly positive real number and 𝑑 a distance (or metric)
on ℝ2
The open ball centered at A with radius 𝑟, denoted B(A, 𝑟), is defined as:
𝐵(𝐴, 𝑟) = { 𝑀 ∈ ℝ2 ∣ 𝑑(𝐴, 𝑀) < 𝑟 }.
The closed ball centered at A with radius 𝑟, denoted 𝐵̅(A, 𝑟), is defined as:
𝐵̅ (𝐴, 𝑟) = {𝑀 ∈ ℝ2 ∣ 𝑑(𝐴, 𝑀) ≤ 𝑟}.
2
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Open set in ℝ2 . We say that U is an open set of ℝ2 if, for any point A ∈ U, U contains an open
ball centered at A.
Examples:
3
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Bounded Sets
Definition
Definition of a Neighborhood in ℝ2
4
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Definition3(Graph of function).
The graph of a function 𝑓 with two variables 𝑥 𝑎𝑛𝑑 𝑦 is the surface 𝑧 = 𝑓(𝑥, 𝑦) formed
by the points (𝑥, 𝑦, 𝑧) 𝑖𝑛 𝑥𝑦𝑧-space with (𝑥, 𝑦) in the domain of the function 𝑓 and
𝑧 = 𝑓(𝑥, 𝑦).
Level curves. The level curves of a function f of two variables are the curves with equations
𝑓(𝑥, 𝑦) = 𝑘, where k is a constant (in the range of 𝑓 ).
5
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Uniqueness of limit. If limit of 𝑓(𝑥, 𝑦) 𝑎𝑠 (𝑥, 𝑦) approaches (𝑎, 𝑏) exists, then it is unique.
6
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝑥 2 −𝑥𝑦
Example2. Find lim
(𝑥,𝑦)→(0,0) √𝑥−√𝑦
0
It’s an indeterminate form of the form 0, we multiply by the conjugate we get:
• For a function of one variable, there are only two directions for approaching a point; from
left and from right.
• Whereas for a function of two variables, there are infinitely many directions, and infinite
number of paths on which one can approach a point.
• If the limit exists, then 𝑓(𝑥, 𝑦) must approach the same limit no matter how (𝑥, 𝑦)
approaches (𝑎, 𝑏).
•Thus, if we can find two different paths of approach along which the function 𝑓(𝑥, 𝑦) has
different limits, then it follows that limit of 𝑓(𝑥, 𝑦) 𝑎𝑠 (𝑥, 𝑦) approaches (𝑎, 𝑏) does not
exist.
𝑥𝑦
Example2. Prove that lim does not exist.
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
7
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝑥𝑦
We obtained a different limit. So, lim does not exist.
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
𝑥2𝑦
Example2. Prove that lim = 0 along the path 𝑦 = 𝑚𝑥 for all 𝑚 but this limit
(𝑥,𝑦)→(0,0) 𝑥 4 +𝑦 2
does not exist.
𝑥2𝑦 𝑥4
lim = lim
(𝑥,𝑦)→(0,0) 𝑥 4 + 𝑦 2 (𝑥,𝑥 2 )→(0,0) 𝑥 4 + 𝑥 4
𝑦=𝑥 2
𝑥2𝑦 𝑥4 1
lim = lim = .
(𝑥,𝑦)→(0,0) 𝑥 4 + 𝑦 2 (𝑥,𝑥 2 )→(0,0) 2𝑥 4 2
𝑦=𝑥 2
𝑥2𝑦
This proves that lim does not exist.
(𝑥,𝑦)→(0,0) 𝑥 4 +𝑦 2
Remark. Make sure that the path you select goes through the point at which we are computing
the limit.
8
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Polar coordinates
Proposition
𝑥 3 +𝑦 3
Example1. Using polar coordinates, Find lim
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
𝑥 = 𝑟𝑐𝑜𝑠𝜃, 𝑦 = 𝑟𝑠𝑖𝑛𝜃
9
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
(𝑠𝑖𝑛𝜃)2 sin(𝑟𝑐𝑜𝑠𝜃)
= 𝑙𝑖𝑚+
𝑟→0 (𝑐𝑜𝑠𝜃)2 + (𝑠𝑖𝑛𝜃)2
= 𝑙𝑖𝑚+(𝑠𝑖𝑛𝜃)2 sin(𝑟𝑐𝑜𝑠𝜃) = 0
𝑟→0
Because 𝜃 → 𝑠𝑖𝑛2 𝜃 is bounded and sin(𝑟𝑐𝑜𝑠𝜃) → 0 for all 𝜃
Squeeze Theorem
If 𝑔 (𝑥, 𝑦) ≤ 𝑓 (𝑥, 𝑦) ≤ ℎ (𝑥, 𝑦) for all (𝑥, 𝑦) ≠ (𝑎, 𝑏) in a disk centered at (𝑎, 𝑏)
and if lim 𝑔(𝑥, 𝑦) = lim ℎ(𝑥, 𝑦) = 𝑙 then lim 𝑓(𝑥, 𝑦) = 𝑙 .
(𝑥,𝑦)→(𝑎,𝑏) (𝑥,𝑦)→(𝑎,𝑏) (𝑥,𝑦)→(𝑎,𝑏)
10
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
There is also an equivalent of the squeeze theorem. we use it when we suspect that
lim 𝑓(𝑥, 𝑦) = 𝑙 .
(𝑥,𝑦)→(𝑎,𝑏)
Theorem. Suppose that |𝑓(𝑥, 𝑦) − 𝑙| ≤ 𝑔 (𝑥, 𝑦) for every (𝑥; 𝑦) inside a disk centered
at (𝑎; 𝑏) except maybe at (𝑎; 𝑏). If lim 𝑔(𝑥, 𝑦) = 0 then lim 𝑓(𝑥, 𝑦) = 𝑙 .
(𝑥,𝑦)→(𝑎,𝑏) (𝑥,𝑦)→(𝑎,𝑏)
Remark. we usually use certain key or basic inequalities such as:
1) |𝑥| ≤ √𝑥 2 + 𝑦 2 ;
2) |𝑦| ≤ √𝑥 2 + 𝑦 2 ;
𝑥2
3) ≤ 1;
𝑥 2 +𝑦 2
𝑥
4) ≤ 1;
𝑥+1
𝑥 2 +𝑦 2
5) |𝑥𝑦| ≤ .
2
(𝑦−1)2 𝑠𝑖𝑛𝑥
Example1. Find lim
(𝑥,𝑦)→(0,1) 𝑥 2 +(𝑦−1)2
(𝑦 − 1)2
| |≤1
𝑥 2 + (𝑦 − 1)2
Multiplying both sides by |𝑠𝑖𝑛𝑥|
(𝑦 − 1)2
| 2 | |𝑠𝑖𝑛𝑥| ≤ |𝑠𝑖𝑛𝑥|
𝑥 + (𝑦 − 1)2
(𝑦 − 1)2
| 2 𝑠𝑖𝑛𝑥| ≤ |𝑠𝑖𝑛𝑥|
𝑥 + (𝑦 − 1)2
(𝑦−1)2 𝑠𝑖𝑛𝑥
Since lim |𝑠𝑖𝑛𝑥|=0, it follows by the squeeze theorem that lim = 0.
(𝑥,𝑦)→(0,1) (𝑥,𝑦)→(0,1) 𝑥 2 +(𝑦−1)2
Iterated limits
Suppose that lim 𝑓(𝑥, 𝑦) = 𝑙 and that the following one-dimensional limits
(𝑥,𝑦)→(𝑎,𝑏)
Then
If
11
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Example
𝑥 2 −𝑦 2
Hence, the limit lim does not exist.
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
8.2.3. Continuity
Definition1. A function 𝑓 is said to be continuous at a point (𝑎; 𝑏) if the following is true:
1. (𝑎; 𝑏) is in the domain of 𝑓.
2. lim 𝑓(𝑥, 𝑦) exist.
(𝑥,𝑦)→(𝑎,𝑏)
3. lim 𝑓(𝑥, 𝑦) = 𝑓(𝑎, 𝑏).
(𝑥,𝑦)→(𝑎,𝑏)
𝑥𝑦 2
| | ≤ |𝑥|
𝑥2 + 𝑦2
𝑥𝑦 2
Since lim |𝑥|=0, it follows by the squeeze theorem that lim = 0 = 𝑓(0,0)
(𝑥,𝑦)→(0,0) (𝑥,𝑦)→(0,0) 𝑥 2 +𝑦2
So, 𝑓 is said to be continuous at a point (0, 0).
Definition2 (discontinuous function). If a function 𝑓 is not continuous at a point (a; b), we say
that it is discontinuous at (a; b).
12
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝑥𝑦 2
Example1. Where 𝑖𝑠 𝑡ℎ𝑒 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 𝑓 𝑑𝑒𝑓𝑖𝑛𝑒𝑑 𝑏𝑦 𝑓 (𝑥, 𝑦) =𝑥 2 +𝑦 2 continuous?
13
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Exactly the same rules of differentiation apply as for a function of one variable. If we have a
𝜕𝑓
function of two variables 𝑓(𝑥; 𝑦) we treat y as a constant when calculating𝜕𝑥 , and treat 𝑥 as
𝜕𝑓
a constant when calculating 𝜕𝑦.
The first order partial derivatives are denoted by
𝜕𝑓 𝜕
= 𝜕𝑥 𝑓(𝑥, 𝑦) = 𝜕𝑥 𝑓(𝑥, 𝑦) = 𝑓𝑥 .
𝜕𝑥
𝜕𝑓 𝜕
= 𝑓(𝑥, 𝑦) = 𝜕𝑦 𝑓(𝑥, 𝑦) = 𝑓𝑦 .
𝜕𝑦 𝜕𝑦
Example1. Find the first order partial derivatives of the function 𝑓 defined on ℝ2 by
𝑓(𝑥, 𝑦) = 𝑦𝑠𝑖𝑛(𝑥𝑦)
2
Solution. For all (𝑥, 𝑦) ∈ ℝ , we have
𝜕𝑓 𝜕𝑓
= 𝑦 2 𝑐𝑜𝑠(𝑥𝑦), = 𝑠𝑖𝑛(𝑥𝑦) + 𝑥𝑦𝑐𝑜𝑠(𝑥𝑦).
𝜕𝑥 𝜕𝑦
Example2
𝜕𝑓 𝜕𝑓
Determine (0, 0) and (0, 0).
𝜕𝑥 𝜕𝑦
Solution
𝑓(𝑥, 𝑦0 ) − 𝑓(𝑥0 , 𝑦0 ) 𝑓(𝑥, 0) − 𝑓(0,0)
lim = lim
𝑥→𝑥0 𝑥 − 𝑥0 𝑥→0 𝑥−0
1
(𝑥 2 )𝑠𝑖𝑛 2
√𝑥 = lim 𝑥𝑠𝑖𝑛 1
= lim
𝑥→0 𝑥 𝑥→0 √𝑥 2
1 1
We have |𝑠𝑖𝑛 √𝑥 2 | ≤ 1 ⟹ |𝑥| |𝑠𝑖𝑛 √𝑥 2 | ≤ 1|𝑥|
1 𝜕𝑓
Since lim |𝑥| = 0 and by Squeeze theorem lim |𝑥| |𝑠𝑖𝑛 √𝑥 2 | = 0 then (0, 0) = 0.
𝑥→0 𝑥→0 𝜕𝑥
𝑓(𝑥0 , 𝑦) − 𝑓(𝑥0 , 𝑦0 ) 𝑓(0, 𝑦) − 𝑓(0,0)
lim = lim
𝑦→𝑦0 𝑦 − 𝑦0 𝑦→0 𝑦−0
1
(𝑦 2 )𝑠𝑖𝑛
√𝑦 2 1 𝜕𝑓
= lim = lim 𝑦𝑠𝑖𝑛 =0= (0, 0).
𝑥→0 𝑦 𝑥→0 √𝑦 2 𝜕𝑦
14
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝜕𝑓
(𝑥0 , 𝑦0 )gives the slope of the tangent at the point(𝑥0 , 𝑦0 , 𝑓(𝑥0 , 𝑦0 ))to the curve of intersection
𝜕𝑥
the surface with a vertical plane y =𝑦0 .
𝜕𝑓
(𝑥0 , 𝑦0 )gives the slope of the tangent at the point(𝑥0 , 𝑦0 , 𝑓(𝑥0 , 𝑦0 ))to the curve of intersection
𝜕𝑦
Of the surface with a vertical plane 𝑥 = 𝑥0 .
Remark. The existence of partial derivatives at a point does not necessarily imply that the
function is continuous at that point.
𝑓(𝑥, 0) − 𝑓(0,0) 0
lim = lim = 0
𝑥→0 𝑥−0 𝑥→0 𝑥
𝑓(0, 𝑦) − 𝑓(0,0) 0
lim = lim = 0.
𝑦→0 𝑦−0 𝑦→0 𝑦
So,
𝜕𝑓 𝜕𝑓
(0, 0) = (0, 0) = 0.
𝜕𝑥 𝜕𝑦
15
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝑥𝑦
lim = lim 0 = 0.
(𝑥,𝑦)→(0,0) 𝑥 2 + 𝑦 2 (𝑥,𝑦)→(0,0)
𝑥=0
2
𝑥 𝑥2 1 𝑥𝑦
lim = lim = ≠ lim
(𝑥,𝑦)→(0,0) 𝑥 2 + 𝑥 2 (𝑥,𝑦)→(0,0) 2𝑥 2 2 (𝑥,𝑦)→(0,0) 𝑥 2 + 𝑦 2
𝑥=𝑦 𝑥=0
𝑥𝑦
Therefore lim does not exist, then the function 𝑓 is not continuous at(0,0).
(𝑥,𝑦)→(0,0) 𝑥 2 +𝑦 2
Definition
Let 𝐷 be a subset of ℝ2 and let 𝑓: ℝ2 ⟶ ℝ be a function defined on 𝐷. We say that 𝑓 is of
class 𝑪𝟏 on 𝐷 if
It has first-order partial derivatives on 𝐷,
And these two partial derivatives are continuous on 𝐷.
Theorem2
Every polynomial function is of class 𝑪𝟏 on ℝ2 .
Definition
16
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Theorem3
Theorem4
17
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝑓(𝑥, 𝑦) = 𝑥 3 + 2𝑥 2 𝑦 + 𝑥𝑦 3 − 4𝑦 2 .
Solution
𝜕𝑓 𝜕𝑓 𝜕 2𝑓
(𝑥, 𝑦) = 3𝑥 2 + 4𝑥𝑦 + 𝑦 3 , (𝑥, 𝑦) = 2𝑥 2 + 3𝑥𝑦 2 − 8𝑦, (𝑥, 𝑦) = 6𝑥 + 4𝑦,
𝜕𝑥 𝜕𝑦 𝜕𝑥 2
18
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝜕 2𝑓 𝜕 2𝑓 𝜕 2𝑓
(𝑥, 𝑦) = 6𝑥𝑦 − 8𝑦, (𝑥, 𝑦) = 4𝑥 + 3𝑦 2 , (𝑥, 𝑦) = 4𝑥 + 3𝑦 2 .
𝜕𝑦 2 𝜕𝑥𝜕𝑦 𝜕𝑦𝜕𝑥
Exercise
Let 𝛼 ∈ ℝ and let 𝑓: ℝ2 ⟶ ℝ be defined by
𝑥2𝑦2
, (𝑥, 𝑦) ≠ (0,0);
𝑓(𝑥, 𝑦) = {(𝑥 2 + 𝑦 2 )𝛼
0, 𝑖𝑓 (𝑥, 𝑦) = (0,0).
19
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝜕𝑓 2𝑥𝑦 2 (𝑥 2 + 𝑦 2 − 𝛼𝑥 2 )
lim = lim
(𝑥,𝑦)⟶(0,0) 𝜕𝑥 𝑟⟶0 (𝑥 2 + 𝑦 2 )𝛼+1
𝜕𝑓
lim = lim 𝑟 3−2𝛼 𝑠𝑖𝑛𝜃𝑐𝑜𝑠 2 𝜃(1 − 𝛼𝑠𝑖𝑛2 𝜃).
(𝑥,𝑦)⟶(0,0) 𝜕𝑦 𝑟⟶0
We have
|𝑐𝑜𝑠𝜃𝑠𝑖𝑛2 𝜃(1 − 𝛼𝑐𝑜𝑠 2 𝜃)| ≤ 1 + |𝛼| and |𝑠𝑖𝑛𝜃𝑐𝑜𝑠 2 𝜃(1 − 𝛼𝑠𝑖𝑛2 𝜃)| ≤ 1 + |𝛼|.
So
3
• If 3 − 2𝛼 > 0 that is to say 𝛼 < 2 , lim (1 + |𝛼|)𝑟 3−2𝛼 = 0 then by squeeze theorem
𝑟⟶0
lim 𝑟 3−2𝛼 𝑐𝑜𝑠𝜃𝑠𝑖𝑛2 𝜃(1 − 𝛼𝑐𝑜𝑠 2 𝜃) = 0 and lim 𝑟 3−2𝛼 𝑠𝑖𝑛𝜃𝑐𝑜𝑠 2 𝜃(1 − 𝛼𝑠𝑖𝑛2 𝜃) = 0
𝑟⟶0 𝑟⟶0
20
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
So
𝜕𝑓 𝜕𝑓
lim (𝑥, 𝑦) = 0 = (0,0).
(𝑥,𝑦)⟶(0,0) 𝜕𝑥 𝜕𝑥
And
𝜕𝑓 𝜕𝑓
lim (𝑥, 𝑦) = 0 = (0,0).
(𝑥,𝑦)⟶(0,0) 𝜕𝑦 𝜕𝑦
𝜕𝑓 𝜕𝑓
In this case 𝜕𝑥 and 𝜕𝑦 are continious at (0,0).
3
• If 3 − 2𝛼 = 0 that is to say 𝛼 = 2
𝜕𝑓
lim = lim 𝑐𝑜𝑠𝜃𝑠𝑖𝑛2 𝜃(1 − 𝛼𝑐𝑜𝑠 2 𝜃)
(𝑥,𝑦)⟶(0,0) 𝜕𝑥 𝑟⟶0
𝜕𝑓 𝜋 𝜕𝑓 √2 𝜕𝑓
If 𝜃 = 0 lim = 0, If 𝜃 = 4 lim = 4 ≠ 0, so 𝜕𝑥 is not continuous at (0,0).
(𝑥,𝑦)⟶(0,0) 𝜕𝑥 𝜕𝑥
(𝑥,𝑦)⟶(0,0)
3
• If 3 − 2𝛼 < 0 that is to say 𝛼 > 2
3
𝜕𝑓 𝜕𝑓 2𝑥 5 (2−𝛼) 2𝑥 3−2𝛼 (2−𝛼) +∞ 𝑖𝑓 <𝛼<2
lim = lim (𝑥, 𝑥) = lim (2𝑥 2 )𝛼+1 = lim (2)𝛼+1
={ 2
(𝑥,𝑦)⟶(0,0) 𝜕𝑥 𝑥⟶0 𝜕𝑥 𝑥⟶0 𝑥⟶0 −∞ 𝑖𝑓 𝛼>2
𝑥=𝑦
𝜕𝑓
In this case is not continuous at (0,0).
𝜕𝑥
3
Conclusion: the function 𝑓 is of class 𝐶 1 on ℝ2 if and only if 𝛼 < 2.
Equivalently
Geometrically the derivative of a function at 𝑎 is interpreted as the slope of the line tangent to
the graph of 𝑓 at the point (𝑎, 𝑓(𝑎)).
21
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Equivalently
The function
Or
22
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝜕𝑓 𝜕𝑓
𝑓(𝑥, 𝑦) − 𝑓(𝑥0 , 𝑦0 ) − (𝑥 − 𝑥0 ) (𝑥0 , 𝑦0 ) − (𝑦 − 𝑦0 ) (𝑥0 , 𝑦0 )
𝜕𝑥 𝜕𝑦
lim = 0.
(𝑥,𝑦)⟶(𝑎,𝑏) 2
√(𝑥 − 𝑥0 )2 + (𝑦 − 𝑦0 )
Interpret the definition of differentiability at a point (𝑥0 , 𝑦0 )as requiring that the graph of the
function 𝑓 have a tangent plane at the point (𝑥0 , 𝑦0 , 𝑓(𝑥0 , 𝑦0 )). The equation for this
tangent plane is
𝜕𝑓 𝜕𝑓
𝑧 = 𝑓(𝑥0 , 𝑦0 ) + (𝑥 − 𝑥0 ) (𝑥0 , 𝑦0 ) + (𝑦 − 𝑦0 ) (𝑥0 , 𝑦0 )
𝜕𝑥 𝜕𝑦
Example1
Since
23
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
And
The application
𝜕𝑓 𝜕𝑓
And is defined by 𝑑𝑓 = 𝜕𝑥 𝑑𝑥 + 𝑑𝑦.
𝜕𝑦
We have
𝜕𝑓 𝜕𝑓
𝑓(𝑎 + ℎ, 𝑏 + 𝑘) − 𝑓(𝑎, 𝑏) − ℎ (𝑎, 𝑏) − 𝑘 (𝑎, 𝑏)
𝜕𝑥 𝜕𝑦
√ℎ2 + 𝑘 2
24
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝜕𝑓 𝜕𝑓
𝑓(0+ℎ,0+𝑘)−𝑓(0,0)−ℎ𝜕𝑥(0,0)−𝑘𝜕𝑦(0,0)
=
√ℎ2 +𝑘 2
𝑓(ℎ,𝑘)−𝑓(0,0)−ℎ+3𝑘
=
√ℎ2 +𝑘 2
ℎ4
ℎ−3𝑘+ 2 2 −ℎ+3𝑘
ℎ +𝑘
=
√ℎ2 +𝑘 2
ℎ4
= 3
(ℎ2 +𝑘 2 )2
We have
𝜕𝑓 𝜕𝑓
𝑓(0 + ℎ, 0 + 𝑘) − 𝑓(0,0) − ℎ (0,0) − 𝑘 (0,0) ℎ4
𝜕𝑥 𝜕𝑦
= 3
√ℎ2 + 𝑘 2 (ℎ2 + 𝑘 2 )2
And
ℎ4 ℎ4 ℎ4
0 ≤ 3 ≤ 3 = = |ℎ| →0
2 2 2 (|ℎ|)3 (ℎ,𝑘)⟶(0,0)
(ℎ + 𝑘 )2 (ℎ )2
So
𝜕𝑓 𝜕𝑓
𝑓(0+ℎ,0+𝑘)−𝑓(0,0)−ℎ (0,0)−𝑘 (0,0)
𝜕𝑥 𝜕𝑦
0≤ ≤ |ℎ| →0
√ℎ2 +𝑘 2 (ℎ,𝑘)⟶(0,0)
𝜕𝑓 𝜕𝑓
And the differential is defined by 𝑑𝑓 = 𝜕𝑥 𝑑𝑥 + 𝑑𝑦.
𝜕𝑦
⇒𝑓 𝑖𝑠 𝑐𝑜𝑛𝑡𝑖𝑛𝑢𝑜𝑢𝑠
𝑓 ∈ 𝐶 1 ⟹ 𝑓 is differentiable 𝜕𝑓 𝜕𝑓
⇒ 𝑎𝑛𝑑 𝑒𝑥𝑖𝑠𝑡
𝜕𝑥 𝜕𝑦
25
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Theorem1
Theorem2
26
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Remark. It should be noted that the linear combination, the product, and the quotient
(provided that the denominator does not vanish) of 𝐶 2 functions on 𝐷 are still 𝐶 2 functions on
𝐷.
27
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Solution
Step 1: First-order partial derivatives
𝜕𝑓 𝜕𝑓
(𝑥, 𝑦) = 3𝑥 2 + 4𝑥𝑦 + 𝑦 3 , (𝑥, 𝑦) = 2𝑥 2 + 3𝑥𝑦 2 − 8𝑦,
𝜕𝑥 𝜕𝑦
Step 2: Second-order partial derivatives
𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
(𝑥, 𝑦) = 6𝑥 + 4𝑦, (𝑥, 𝑦) = 6𝑥𝑦 − 8𝑦, (𝑥, 𝑦) = (𝑥, 𝑦) = 4𝑥 + 3𝑦 2 .
𝜕𝑥 2 𝜕𝑦 2 𝜕𝑥𝜕𝑦 𝜕𝑦𝜕𝑥
is differentiable, and the chain rule states that the derivative of the composite function
𝑔(𝑡) = 𝑓(𝑥(𝑡), 𝑦(𝑡))is given by:
28
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
In General
A tree diagram is a visual way to organize information that may help you remember “which
derivatives go where” in the Chain Rule formula. Write the name of the first function at the
top of the diagram. Draw branches to x and y, the names of the independent variables of 𝑓.
Then draw more branches to t, the independent variable of 𝑥 and 𝑦. Then add in the
derivative notations as shown in the diagram below.
Solution: we have
𝜕𝑓 𝜕𝑓 𝜕𝑥 𝜕𝑦
= 2𝑥 + 2𝑦, = 2𝑥, = 2𝑡, = 𝑒𝑡.
𝜕𝑥 𝜕𝑦 𝜕𝑡 𝜕𝑡
29
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Example.
Solution:
𝜕𝑧 𝜕𝑓 𝜕𝑥 𝜕𝑓 𝜕𝑦
= + = 2𝑥𝑦𝑐𝑜𝑠𝜃 + 𝑥 2 𝑠𝑖𝑛𝜃.
𝜕𝑟 𝜕𝑥 𝜕𝑟 𝜕𝑦 𝜕𝑟
𝜕𝑧
= 2𝑟 𝑐𝑜𝑠(𝜃) 𝑟 𝑠𝑖𝑛(𝜃) 𝑐𝑜𝑠(𝜃) + 𝑟 2 𝑐𝑜𝑠 2 (𝜃)𝑠𝑖𝑛𝜃.
𝜕𝑟
𝜕𝑧
= 3𝑟 2 𝑐𝑜𝑠 2 (𝜃) 𝑠𝑖𝑛(𝜃)
𝜕𝑟
𝜕𝑧
Now we compute 𝜕𝜃
𝜕𝑧 𝜕𝑓 𝜕𝑥 𝜕𝑓 𝜕𝑦
= +
𝜕𝜃 𝜕𝑥 𝜕𝜃 𝜕𝑦 𝜕𝜃
30
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝜕𝑧
= 2𝑥𝑦(−𝑟𝑠𝑖𝑛𝜃) + 𝑥 2 𝑟 𝑐𝑜𝑠(𝜃)
𝜕𝜃
𝜕𝑧
= 2𝑟 𝑐𝑜𝑠(𝜃) 𝑟 𝑠𝑖𝑛(𝜃)(−𝑟𝑠𝑖𝑛𝜃) + 𝑟 2 𝑐𝑜𝑠 2 (𝜃)𝑟 𝑐𝑜𝑠(𝜃)
𝜕𝜃
𝜕𝑧
= −2𝑟 3 𝑐𝑜𝑠(𝜃) 𝑠𝑖𝑛2 (𝜃) + 𝑟 3 𝑐𝑜𝑠 3 (𝜃).
𝜕𝜃
Method 2
𝑧 = 𝑓 (𝑥, 𝑦) = 𝑥 2 𝑦 = 𝑟 3 𝑐𝑜𝑠 2 (𝜃)𝑠𝑖𝑛𝜃.
𝜕𝑧
= 3𝑟 2 𝑐𝑜𝑠 2 (𝜃) 𝑠𝑖𝑛(𝜃)
𝜕𝑟
𝜕𝑧
= 𝑟 3 (−2 𝑐𝑜𝑠(𝜃) 𝑠𝑖𝑛2 (𝜃) + 𝑐𝑜𝑠 3 (𝜃)).
𝜕𝜃
31
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Particular case
Proposition
Theorem
𝑔(𝑥, 𝑦) = 𝑥𝑐𝑜𝑠𝑦
1) Determine the Jacobian matrix of 𝑓 and the Jacobian matrix of 𝑔.
2) Determine the Jacobian matrix of 𝑔𝑜𝑓 by two methods.
Solution
𝜕𝑓1 𝜕𝑓1
𝜕𝑥 𝜕𝑦
1) The Jacobian matrix of 𝑓 is 𝐽𝑓 (𝑥, 𝑦) = ( 𝜕𝑓2 𝜕𝑓2
) such that
𝜕𝑥 𝜕𝑦
𝑓1 (𝑥, 𝑦) = 𝑥 + 2𝑦 and 𝑓2 (𝑥, 𝑦) = 𝑒 𝑥−𝑦
32
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
So
𝐽𝑓 (𝑥, 𝑦) = (𝑒 𝑥−𝑦1 2
−𝑒 𝑥−𝑦
).
𝜕𝑔 𝜕𝑔
The Jacobian matrix of 𝑔 is 𝐽𝑔 (𝑥, 𝑦) = (𝜕𝑥 ) = (𝑐𝑜𝑠𝑦 − 𝑥𝑠𝑖𝑛𝑦).
𝜕𝑦
2) To obtain the Jacobian matrix of the composition 𝑔𝑜𝑓: ℝ2 → ℝ , we apply the formula
for the product of matrix:
1 2
𝐽𝑔𝑜𝑓 (𝑥, 𝑦) = (𝑐𝑜𝑠(𝑒 𝑥−𝑦 ) − (𝑥 + 2𝑦)𝑠𝑖𝑛(𝑒 𝑥−𝑦 )) ( )
𝑒 𝑥−𝑦 − 𝑒 𝑥−𝑦
𝐽𝑔𝑜𝑓 (𝑥, 𝑦) = (𝑐𝑜𝑠(𝑒 𝑥−𝑦 ) − 𝑒 𝑥−𝑦 (𝑥 + 2𝑦)𝑠𝑖𝑛(𝑒 𝑥−𝑦 ) 2𝑐𝑜𝑠(𝑒 𝑥−𝑦 ) + 𝑒 𝑥−𝑦 (𝑥 + 2𝑦)𝑠𝑖𝑛(𝑒 𝑥−𝑦 ))
Second method
𝑔𝑜𝑓(𝑥, 𝑦) = 𝑔(𝑓(𝑥, 𝑦))
= 𝑔(𝑥 + 2𝑦 , 𝑒 𝑥−𝑦 )
= (𝑥 + 2𝑦)𝑐𝑜𝑠( 𝑒 𝑥−𝑦 ).
𝜕𝑔𝑜𝑓
= 𝑐𝑜𝑠( 𝑒 𝑥−𝑦 ) − 𝑒 𝑥−𝑦 𝑠𝑖𝑛( 𝑒 𝑥−𝑦 )(𝑥 + 2𝑦),
𝜕𝑥
𝜕𝑔𝑜𝑓
= 2𝑐𝑜𝑠( 𝑒 𝑥−𝑦 ) + 𝑒 𝑥−𝑦 𝑠𝑖𝑛( 𝑒 𝑥−𝑦 )(𝑥 + 2𝑦),
𝜕𝑦
We have 𝑔𝑜𝑓: ℝ2 → ℝ , so the Jacobian matrix of the composition 𝑔𝑜𝑓 has one row and two
columns.
𝜕𝑔𝑜𝑓 𝜕𝑔𝑜𝑓
𝐽𝑔𝑜𝑓 (𝑥, 𝑦) = ( ))
𝜕𝑥 𝜕𝑦
𝐽𝑔𝑜𝑓 (𝑥, 𝑦) = (𝑐𝑜𝑠(𝑒 𝑥−𝑦 ) − 𝑒 𝑥−𝑦 (𝑥 + 2𝑦)𝑠𝑖𝑛(𝑒 𝑥−𝑦 ) 2𝑐𝑜𝑠(𝑒 𝑥−𝑦 ) + 𝑒 𝑥−𝑦 (𝑥 + 2𝑦)𝑠𝑖𝑛(𝑒 𝑥−𝑦 )).
33
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
If we put 𝑥 = 𝑥0 + ℎ, 𝑦 = 𝑦0 + 𝑘 then ℎ = 𝑥 − 𝑥0 , 𝑘 = 𝑦 − 𝑦0
We obtain
𝜕𝑓 𝜕𝑓
𝑓(𝑥, 𝑦) = 𝑓(𝑥0 , 𝑦0 ) + (𝑥 − 𝑥0 ) (𝑥0 , 𝑦0 ) + (𝑦 − 𝑦0 ) (𝑥0 , 𝑦0 )
𝜕𝑥 𝜕𝑥
1 𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
+2 ቂ(𝑥 − 𝑥0 )2 𝜕𝑥 2 (𝑥0 , 𝑦0 ) + 2(𝑥 − 𝑥0 )(𝑦 − 𝑦0 ) 𝜕𝑥𝜕𝑦 (𝑥0 , 𝑦0 ) + (𝑦 − 𝑦0 )2 𝜕𝑦 2 (𝑥0 , 𝑦0 )ቃ
+o(‖(𝑥 − 𝑥0 , 𝑦 − 𝑦0 )‖2 ).
• We also say that 𝑓 admits a second-order Taylor expansion at the point (𝑥0 , 𝑦0 )
• Recall that if we choose the Euclidean norm, then ∥ (ℎ, 𝑘) ∥2 =ℎ2 + 𝑘 2, and that 𝑜(∥ (ℎ, 𝑘) ∥2 )
refers to a function equal to ∥ (ℎ, 𝑘) ∥2 𝜀(ℎ, 𝑘) with 𝜀(ℎ, 𝑘) → 0 as (ℎ, 𝑘) → (0,0).
34
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Example1
Example2
Compute a first and second-order Taylor’s expansion around point (𝑎, 𝑏) = (1, −1) of a
function 𝑓 and give an approximate value of 𝑓(1.01, −0.98).
𝑓(𝑥, 𝑦) = 𝑒 𝑥𝑦
35
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
𝑓(1, −1) = 𝑒 −1
𝜕𝑓 𝜕𝑓
(𝑥, 𝑦) = 𝑦𝑒 𝑥𝑦 , (𝑥, 𝑦) = 𝑥𝑒 𝑥𝑦
𝜕𝑥 𝜕𝑦
𝜕 2𝑓 𝜕 2𝑓 𝜕 2𝑓 𝜕 2𝑓
(𝑥, 𝑦) = 𝑦 2 𝑒 𝑥𝑦 , (𝑥, 𝑦) = 𝑥𝑦𝑒 𝑥𝑦 = (𝑥, 𝑦), (𝑥, 𝑦) = 𝑥 2 𝑒 𝑥𝑦
𝜕𝑥 2 𝜕𝑥𝜕𝑦 𝜕𝑥𝜕𝑦 𝜕𝑦 2
So
𝜕𝑓 𝜕𝑓
(1, −1) = −𝑒 −1 , (1, −1) = 𝑒 −1
𝜕𝑥 𝜕𝑦
𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
2
(1, −1) = 𝑒 −1 , (1, −1) = −𝑒 −1 = (1, −1), (1, −1) = 𝑒 −1 .
𝜕𝑥 𝜕𝑥𝜕𝑦 𝜕𝑥𝜕𝑦 𝜕𝑦 2
We have
ℎ = 𝑥 − 𝑥0 , 𝑘 = 𝑦 − 𝑦0
So
𝑓(1.01, −0.98) = 𝑓(1 + 0,01, −1 + 0,02) ≈ 𝑒−1 − 0,01𝑒−1 − 0,02𝑒−1 = 0,97𝑒−1 .
36
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Solution
37
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
1 𝑦3
𝑓(𝑥, 𝑦) = 0 + 𝑥(0) + 𝑦(1) + 2𝑥𝑦(1) + 2 𝑥 2 𝑦 − 6 + o(‖(ℎ, 𝑘)‖3 )
1 𝑦3
𝑓(𝑥, 𝑦) = 0 + 2𝑥𝑦 + 𝑥 2 𝑦 − + o(‖(ℎ, 𝑘)‖3 ).
2 6
Example
Determine the critical points of the function
Solution
1. Compute the partial derivatives:
38
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
8.6.5. Regular point. A point (𝑥0 , 𝑦0 ) is regular for the function 𝑓 if at least one of the
partial derivatives is nonzero at this point.
Proposition
Theorem
• If 𝑟𝑡 − 𝑠 2 < 0 , 𝑓(𝑥0 , 𝑦0 ) is neither local minimum nor local maximum the point (𝑥0 , 𝑦0 ) is a
saddle point.
• If 𝑟𝑡 − 𝑠 2 = 0, no definitive conclusion can be drawn based on second-order conditions alone.
39
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
Proof
If 𝑟 ≠ 0, we can write
𝑠𝑘 2 𝑟𝑡 − 𝑠 2 2
𝑞(ℎ, 𝑘) = 𝑟 ((ℎ + ) + 𝑘 )
𝑟 𝑟2
From this, we conclude the following:
• If 𝑟𝑡 − 𝑠 2 > 0 𝑎𝑛𝑑 𝑟 > 0, then 𝑞(ℎ, 𝑘) > 0 for all vectors (ℎ, 𝑘) ≠ (0,0).
Therefore, 𝑓(𝑥0 , 𝑦0 ) is local minimum.
• If 𝑟𝑡 − 𝑠 2 > 0 𝑎𝑛𝑑 𝑟 < 0, then 𝑞(ℎ, 𝑘) > 0 for all vectors (ℎ, 𝑘) ≠ (0,0).
Therefore, 𝑓(𝑥0 , 𝑦0 ) is local minimum
40
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
• If 𝑟𝑡 − 𝑠 2 < 0 𝑎𝑛𝑑 , the sigh of 𝑞(ℎ, 𝑘) varies dependly on the relative values of ℎ 𝑎𝑛𝑑 𝑘. In this
case the point (𝑥0 , 𝑦0 ) is a saddle point.
Example1 :
There exist four critical points are: 𝐴(1,2), 𝐵(−1, −2), 𝐶(2,1), 𝐷(−2, −1).
𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
For 𝐴(1,2) ቂ𝑟 = 𝜕𝑥 2 (1,2) = 6 , 𝑠 = 𝜕𝑥𝜕𝑦 = 12 , 𝑡 = 𝜕𝑦 2 (1,2) = 6ቃ.
𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
For 𝐵(−1, −2) ቂ𝑟 = 𝜕𝑥 2 (1,2) = −6 , 𝑠 = 𝜕𝑥𝜕𝑦 = −12 , 𝑡 = 𝜕𝑦 2 (1,2) = −6ቃ.
For points A and B: 𝑟𝑡 – 𝑠 2 = −108 < 0 therefore, f does not have an extremum at these
points.
𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
For 𝐶(2,1) ቂ𝑟 = 2
(1,2) = 12 , 𝑠 = = 6 ,𝑡 = (1,2) = 12ቃ
𝜕𝑥 𝜕𝑥𝜕𝑦 𝜕𝑦 2
𝑟𝑡 – 𝑠² = 108 > 0 𝑎𝑛𝑑 𝑟 > 0: the function f has a local minimum at the point (2, 1), and
this minimum is f(2, 1) = –28.
𝜕2 𝑓 𝜕2 𝑓 𝜕2 𝑓
For 𝐷(−2, −1) ቂ𝑟 = 𝜕𝑥 2 (1,2) = −12 , 𝑠 = 𝜕𝑥𝜕𝑦 = −6 , 𝑡 = 𝜕𝑦 2 (1,2) = −12ቃ
𝑟𝑡 – 𝑠² = 108 > 0 𝑎𝑛𝑑 𝑟 < 0: the function f has a local maximum at the point (–2, –1),
and this maximum is 𝑓(−2, −1) = 28.
41
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
42
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
43
National Polytechnic School
Preparatory cycle-ENP Math Analysis2 F.FELLAG
44