Maxima Minima
Maxima Minima
function/minima/maxima/saddle point
Prerequisite knowledge for the lecture: Basic Differentiation, basic idea on partial
derivatives, basic idea of dependent and independent variables.
dy
= 2x + 3
dx
d2y dy
+ 3 + ay = 0
dx 2 dx
4
d 3 y dy
+ + 6y = 3
dx
3
dx
𝜕2𝑢 2
𝜕2𝑢 u is the function of x and t, u = u (x, t)
=𝑐
𝜕𝑡 2 𝜕𝑥 2
𝜕𝑢 2
𝜕2𝑢
=𝑐 u is the function of x and t, u = u (x, t)
𝜕𝑡 𝜕𝑥 2
𝜕2𝑢 𝜕2𝑢
+ =0
𝜕𝑥 2 𝜕𝑦 2 u is the function of x and t, u = u (x, y)
𝜕2 𝑢 𝜕2 𝑢
+ =0
𝜕𝑥 2 𝜕𝑦 2
Here u is dependent variable and x,y are independent variable of PDE
𝜕4𝑢 𝜕4𝑢
+ =0
𝜕𝑥 2 𝜕𝑡 2
𝜕2𝑢 𝜕 2 𝑢 𝜕𝑢
= −
𝜕𝑥 2 𝜕𝑥 2 𝜕𝑡
• The total differential of a function is a way to express how the function's value changes with respect to changes in all its
independent variables.
• The total derivative is the derivative with respect to of the function that depends on the variable not only directly but also
via the intermediate variables . It can be calculated using the rule.
• This rule is called the chain rule for derivatives and partial derivatives of functions.
𝒅𝒖 𝝏𝒖 𝒅𝒙 𝝏𝒖 𝒅𝒚
= + …………(i)
𝒅𝒕 𝝏𝒙 𝒅𝒕 𝝏𝒚 𝒅𝒕
𝜕𝑢 𝜕𝑢
𝑑𝑢 = 𝑑𝑥 + 𝑑𝑦
𝜕𝑥 𝜕𝑦
Then , 𝑑𝑢 is called the total differential of 𝑢.
𝜕𝑢 𝜕𝑢
• Here , are the partial derivatives of u with respect to x and y respectively.
𝑑𝑥 𝑑𝑦
• dx and dy represent infinitesimally small changes in x and y.
𝑑𝑥 𝑑𝑦
• , are the ordinary derivative of x and y with respect to “t”
𝑑𝑡 𝑑𝑡
• The total differential is useful in estimating changes in the function and is widely applied
in physics, engineering and economics.
04-01-2025 School of Basic Sciences 7
Example 1:
𝒅𝒖
If 𝒖 = 𝒙𝟐 𝒚𝟑 , where 𝒙 = log(t), 𝒚 = 𝒆𝒕 find
𝒅𝒕
Solution:
Using chain rule for derivatives we have:
𝑑𝑢 𝜕𝑢 𝑑𝑥 𝜕𝑢 𝑑𝑦
= +
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝜕𝑦 𝑑𝑡
given 𝑢 = 𝑥 2 𝑦 3 , 𝑥 = log(t), 𝑦 = 𝑒 𝑡
𝜕𝑢 𝑑𝑥 1 𝜕𝑢 𝑑𝑦
= 2𝑥𝑦 3 , = , = 3𝑥 2 𝑦 2 , = 𝑒𝑡
𝜕𝑥 𝑑𝑡 𝑡 𝜕𝑦 𝑑𝑡
Therefore,
𝑑𝑢 𝜕𝑢 𝑑𝑥 𝜕𝑢 𝑑𝑦
= +
𝑑𝑡 𝜕𝑥 𝑑𝑡 𝜕𝑦 𝑑𝑡
Therefore,
𝑑𝑢 𝜕𝑢 𝑑𝑥 𝜕𝑢 𝑑𝑦
= 𝜕𝑥 𝑑𝑡 + 𝜕𝑦 𝑑𝑡
𝑑𝑡
1
= 2𝑥𝑦 3 . 𝑡 + 3𝑥 2 𝑦 2 . 𝑒 𝑡 …………………………(i)
Example 2:
1 𝐝𝐮
If 𝑢 = 𝑥𝑦 + 𝑦𝑧 + 𝑧𝑥, where 𝑥 = 𝑡 , 𝑦 = et , 𝑧 = e−t . Find 𝐝𝐭
Solution:
1
Given 𝑢 = 𝑥𝑦 + 𝑦𝑧 + 𝑧𝑥, 𝑥 = , 𝑦 = 𝑒 t , 𝑧 = 𝑒 −t
𝑡
𝜕𝑢 𝜕𝑢 1 𝜕𝑢 1
= 𝑦 + 𝑧 = et + e−t ; = 𝑥 + 𝑧 = 𝑡 + e−t ; = 𝑥 + 𝑦 = 𝑡 + et
𝜕𝑥 𝜕𝑦 𝜕𝑧
𝑑𝑥 −1 𝑑𝑦 𝑑𝑧
= ; = 𝑒𝑡; = −𝑒 −𝑡
𝑑𝑡 𝑡2 𝑑𝑡 𝑑𝑡
𝑑𝑢 1
= (𝑦 + 𝑧) − 2 + (𝑥 + 𝑧)𝑒 𝑡 + (𝑦 + 𝑥) −𝑒 −𝑡
𝑑𝑡 𝑡
1
Put 𝑥 = 𝑡 , 𝑦 = et , 𝑧 = e−t
𝒅𝒖 − 𝒆𝒕 + 𝒆−𝒕 𝟏 −𝒕 𝒕 𝒕
𝒍
= + +𝒆 𝒆 + 𝒆 + −𝒆−𝒕
𝒅𝒕 𝒕𝟐 𝒕 𝒕
❖ Estimate the change in 𝐳 = 𝐱 𝟐 y, when x changes from 2 to 2.1 and y changes from 3 to 3.5
Solution:
dz 𝜕z dx 𝜕z dy
= 𝜕x dt + 𝜕y dt
dt
𝜕z 𝜕z
➔ dz = 𝜕x. dx + 𝜕y. dy
Now we have:
𝜕z 𝜕z
= 2xy, 𝜕y = x 2 , dx = 2.1 – 2 = 0.1, dy= 3.5-3 = 0.5
𝜕x
Therefore we get;
dz = 2.2.3.(0.1)+𝟐𝟐 . 𝟎. 𝟓 = 𝟏. 𝟒
1. Suppose that 𝑧 = 𝑥 2 𝑦, 𝑥 = 𝑡 2 , 𝑦 = 𝑡 3 .
𝑑𝑧
Use the chain rule to find .
𝑑𝑡
2. If 𝑧 = 𝑥 2 𝑦 + 3𝑥𝑦 4 ; 𝑥 = 𝑠𝑖𝑛2𝑡; 𝑦 =
𝑑𝑧
𝑐𝑜𝑠𝑡. Find when t=0.
𝑑𝑡
3. If 𝒘 = 𝒙𝟐 + 𝒚𝟐 + 𝒛𝟐 , 𝑥 = 𝑐𝑜𝑠𝜃; 𝑦 =
𝑠𝑖𝑛𝜃, 𝑧 = 𝑡𝑎𝑛𝜃. Use the chain rule to find
𝑑𝑤 𝜋
, when 𝜃 = .
𝑑𝜃 2
𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦 𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦
= . + . and = . + .
𝜕𝑢 𝜕𝑥 𝜕𝑢 𝜕𝑦 𝜕𝑢 𝜕𝑣 𝜕𝑥 𝜕𝑣 𝜕𝑦 𝜕𝑣
𝐮 𝛛𝐳 𝛛𝐳
𝐅𝐨𝐫 𝐳 = 𝐞𝐱𝐲 , 𝐱 = 𝟐𝐮 + 𝐯, 𝐲 = 𝐯. Find 𝛛𝐮 , 𝛛𝐯 using the chain rule.
Solution:
Using chain rule we have the following:
𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦
= . + . ……(i)
𝜕𝑢 𝜕𝑥 𝜕𝑢 𝜕𝑦 𝜕𝑢
𝜕𝑧 𝜕𝑧 𝜕𝑥 𝜕𝑧 𝜕𝑦
= . + . …… (ii)
𝜕𝑣 𝜕𝑥 𝜕𝑣 𝜕𝑦 𝜕𝑣
Now,
𝜕𝑧 𝜕𝑧
= 𝑦𝑒 𝑥𝑦 , = 𝑥𝑒 𝑥𝑦 ,
𝜕𝑥 𝜕𝑦
𝜕𝑥 𝜕𝑦
=2, = 𝑣 −1
𝜕𝑢 𝜕𝑢
𝜕𝑥 𝜕𝑦
= 1, = −𝑢𝑣 −2
𝜕𝑣 𝜕𝑣
Putting the appropriate values in (i) and after simple simplification we obtain the following:
𝟐𝐮𝟐 +𝐮𝐯
𝛛𝐳 𝟒𝐮+𝐯
=𝐞 𝐯 .[ ]
𝛛𝐮 𝐯
Again,
Putting all the appropriate in (ii) and after simple simplification we obtain the following
𝟐𝒖𝟐 +𝒖𝒗
𝝏𝒛 𝟐𝒖𝟐
=−𝒆 𝒗 . [ 𝟐 ]
𝝏𝒗 𝒗
Solution:
problem: ➔
04-01-2025 School of Basic Sciences 16
What is explicit/implicit function ?
• To find dy/dx
Solution:
We differentiate each term with respect to 𝑥 :
𝑑 2 𝑑 3 𝑑 3 𝑑 𝑑
𝑦 + 𝑥 − 𝑦 + 6 = 3𝑦
𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥 𝑑𝑥
Differentiating functions of 𝑥 with respect to 𝑥 is straightforward. But when differentiating a function of 𝑦 with respect to 𝑥
we must remember the chain rule discussed previously.
𝑑 2 𝑑𝑦 2
𝑑 3 𝑑𝑦 𝑑 𝑑𝑦
𝑦 × + 3𝑥 − 𝑦 × +0= (3𝑦) ×
𝑑𝑦 𝑑𝑥 𝑑𝑦 𝑑𝑥 𝑑𝑦 𝑑𝑥
𝑑𝑦 𝑑𝑦 𝑑𝑦
2𝑦 + 3𝑥 2 − 3𝑦 2 =3
𝑑𝑥 𝑑𝑥 𝑑𝑥
𝑑𝑦
We rearrange this to collect all terms involving 𝑑𝑥 together.
𝑑𝑦 𝑑𝑦 𝑑𝑦
3𝑥 2 = 3 − 2𝑦 + 3𝑦 2
𝑑𝑥 𝑑𝑥 𝑑𝑥
Then,
𝑑𝑦
3𝑥 2 = 3 − 2𝑦 + 3𝑦 2
𝑑𝑥
so that, finally,
𝒅𝒚 𝟑𝒙𝟐
=
𝒅𝒙 𝟑−𝟐𝒚+𝟑𝒚𝟐
𝑑𝑦
This is our expression for 𝑑𝑥
Minima:
A function 𝑓 𝑥1 , 𝑥2 , … , 𝑥𝑛 has a minimum at a point 𝐚 = 𝑎1 , 𝑎2 , … , 𝑎𝑛 if:
𝜕2 𝑓 𝜕 𝜕𝑢
• = ( ) =𝑓𝑥𝑥 ;
𝜕𝑥 2 𝜕x 𝜕𝑥
𝜕2 𝑓 𝜕 𝜕𝑓
• = ( ) =𝑓𝑦𝑦 ;
𝜕𝑦 2 𝜕y 𝜕𝑦
𝜕 𝜕𝑓 𝜕2 𝑓
• = = 𝑓𝑥𝑦 ;
𝜕x 𝜕𝑦 𝜕x𝜕𝑦
NOTE 1 : In case (c) the point (x0 , y0 ) is called a saddle point of 𝑓 and the graph of 𝑓 crosses its tangent
plane at (x0 , y0 ).
NOTE 2: If 𝐷 = 0, the test gives no information: 𝑓 could have a local maximum or local minimum at
(x0 , y0 ), or (x0 , y0 ) could be a saddle point of 𝑓.
𝑓𝑥𝑥 𝑓𝑥𝑦 2
𝐷= = 𝑓𝑥𝑥 𝑓𝑦𝑦 − 𝑓𝑥𝑦
𝑓𝑦𝑥 𝑓𝑦𝑦
2
𝐷(𝑥, 𝑦) = 𝑓𝑥𝑥 𝑓𝑦𝑦 − 𝑓𝑥𝑦 = (1)(18𝑦 + 18) − (−3)2 = 18𝑦 + 9.
Since 𝐷(3, −2) = −36 + 9 < 0, we know that (3, −2) is a saddle point of 𝑓. Since
𝐷(12,1) = 18 + 9 > 0 and 𝑓𝑥𝑥 (12,1) = 1 > 0, we know that 12,1 is a local
minimum of 𝑓.
SOLUTION:
𝑓𝑥 = 4𝑥 3 − 4𝑦; 𝑓𝑦 = 4𝑦 3 − 4𝑥
𝑥 3 − 𝑦 = 0 and 𝑦 3 − 𝑥 = 0
To solve these equations we substitute 𝑦 = 𝑥 3 from the first equation into
the second one. This gives
0 = 𝑥9 − 𝑥 = 𝑥 𝑥8 − 1 = 𝑥 𝑥4 − 1 𝑥4 + 1 = 𝑥 𝑥2 − 1 𝑥2 + 1 𝑥4 + 1
so there are three real roots: 𝑥 = 0,1, −1. The three critical points are (0,0), (1,1), and (−1, 1).
Since 𝐷(0,0) = −16 < 0, it follows that the origin is a saddle point; that is, 𝑓
has no local maximum or minimum at(0,0). Since
𝐷(1,1) = 128 > 0 and 𝑓𝑥𝑥 (1,1) = 12 > 0, we see that 𝑓(1,1) = −1
is a local minimum. Similarly, we have 𝐷(−1, −1) = 128 > 0
and 𝑓𝑥𝑥 (−1, −1) = 12 > 0, so 𝑓(−1, −1) = −1 is also a
local minimum.
04-01-2025 School of Basic Sciences 36
Maxima/ Minima /Saddle Point
Example 3: Determine the critical points and locate any relative minima, maxima and saddle points of function 𝑓
defined by
𝑓(𝑥, 𝑦) = 2𝑥 2 + 2𝑥𝑦 + 2𝑦 2 − 6𝑥
The critical points satisfy the equations 𝑓𝑥 (𝑥, 𝑦) = 0 and 𝑓𝑦 (𝑥, 𝑦) = 0 simultaneously.
Hence. 4𝑥 + 2𝑦 − 6 = 0
2𝑥 + 4𝑦 = 0
The above system of equations has one solution at the point (2, −1).
We now need to find the second order partial derivatives 𝑓𝑥𝑥 (𝑥, 𝑦), 𝑓𝑦𝑦 (𝑥, 𝑦) and 𝑓𝑥𝑦 (𝑥, 𝑦).
𝑓𝑥𝑥 (𝑥, 𝑦) = 4
𝑓𝑦𝑦 (𝑥, 𝑦) = 4
𝑓𝑥𝑦 (𝑥, 𝑦) = 2
We now need to find 𝐷 defined above.
2 (2, −1) = (4)(4) − 22 = 12
𝐷 = 𝑓𝑥𝑥 (2, −1)𝑓𝑦𝑦 (2, −1) − 𝑓𝑥𝑦
Since 𝐷 is positive and 𝑓𝑥𝑥 (2, −1) is also positive, according to the above theorem
The 3-Dimensional graph of function 𝑓 given above shows that 𝑓 has a local minimum at
𝑓𝑥 (𝑥, 𝑦) = 4𝑥 − 4𝑦
𝑓𝑦 (𝑥, 𝑦) = −4𝑥 + 4𝑦 3
Determine the critical points by solving the equations 𝑓𝑥 (𝑥, 𝑦) = 0 and 𝑓𝑦 (𝑥, 𝑦) = 0 simultaneously. Hence.
4𝑥 − 4𝑦 = 0
−4𝑥 + 4𝑦 3 = 0
4𝑦 −1 + 𝑦 2 = 0
𝑦 = 0, 𝑦 = 1 and 𝑦 = −1
We now use a table to study the signs of 𝐷 and 𝑓𝑥𝑥 (𝑎, 𝑏) and use the above theorem
to decide on whether a given
critical point is a saddle point, relative maximum or minimum.
04-01-2025 School of Basic Sciences 40
Maxima/ Minima /Saddle Point
Example 5: Determine the critical points and locate any relative minima, maxima and
saddle points of function 𝑓 defined by:
𝑓(𝑥, 𝑦) = −𝑥 4 − 𝑦 4 + 4𝑥𝑦
−4𝑥 3 + 4𝑦 = 0
−4𝑦 3 + 4𝑥 = 0
The first equation gives 𝑦 = 𝑥 3 . Combined with the second equation, we obtain.
−4 𝑥 3 3 + 4𝑥 = 0
Which may be written as .
𝑥 𝑥4 − 1 𝑥4 + 1 = 0
Which has the solutions.
𝑥 = 0, −1 and 1
The table below shows the signs of 𝐷 and 𝑓𝑥𝑥 (𝑎, 𝑏). Then the above theorem is used to
A 3-Dimensional graph of function 𝑓 shows that 𝑓 has two local maxima at (−1, −1,2)
and (1,1,2) and a saddle point at (0,0,0).
1. Find the stationary point of the surface 𝑓(𝑥, 𝑦) = 𝑥 2 + 𝑦 2 and determine its
2. Find the maxima, minima and saddle points for the following functions:
(a) 𝑓(𝑥, 𝑦) = 𝑥 2 + 𝑦 2 − 2𝑥 + 4𝑦 + 8
(b) 𝑓(𝑥, 𝑦) = 𝑥 2 − 𝑦 2 − 2𝑥 + 4𝑦 + 8
(c) 𝑓(𝑥, 𝑦) = 2𝑥 + 2𝑦 − 2𝑥𝑦 − 2𝑥 2 − 𝑦 2 + 4.
ANSWERS:
(a) _____ at (1, −2)
(b) _____ at (1,2)
(c) ______at Maximum at (0,1)
04-01-2025 School of Basic Sciences 45
Practice Questions
minimum.
Answer: 4 m by 4 m by 2 m,surface area = 48 m2