Multivariable function differentiation
Partial differentiation
Given a function
The partial derivative with respect to
General approach
To compute the partial derivative of a function
We proceed in a similar way for computing the partial derivative with respect to the variable
Totally differentiable functions
A function
In this case,
If
Construction of the derivative matrix
Let
is so-called Jacobian matrix of
The existence of the partial derivatives at a point
Sufficient condition for total differentiability
Let
and for all - the partial derivative functions
and are continuous at the point
Then, the function
Continuously differentiable functions
A function
- There exists a neighborhood
such that - every partial derivative is continuous at the point
Partial derivatives of second order
Let
is called the partial derivative of the second order of the function
Twice differentiable functions
The function
- There exists a neighborhood
such that at every point the partial derivative is differentiable at the point
Then the matrix
is called the Hessian matrix of the function
Young's theorem
If
Twice continuously differentiable functions
A function
- There exists a neighborhood
such that - Every partial derivative of second order is continuous at the point
Local extrema of functions
We say that a function
In this case, the point
Similarly, the notions of local minimum point and local minimum of the function
Necessary condition for local extrema
Assume that
- the function
has a local extremum at the point
Then
Sufficient condition for local extrema
Let
Define the discriminant
Then
- If
and , then has a local maximum at the point - If
and , then has a local minimum at the point - If
, then has no local extremum at the point (saddle point) - If
, then the test is inconclusive
Global extrema of functions on compact sets
Weierstrass theorem
Assume that
(global maximum) (global minimum)
Let
Then
Example 1 (partial derivatives)
Find the partial derivatives of the following function:
Solution
The partial derivative of
The partial derivative of
Example 2 (partial derivatives)
Find the partial derivatives of the following function:
Solution
The partial derivative of
The partial derivative of
Example 3 (local extrema)
Find the local extreme values and their points of the following function:
Solution
The partial derivatives of the function
Necessary condition for local extrema is
Solving the system of equations, we get
From the first equation, we get
The solutions of the quadratic equation are
For
Therefore, possible points of local extrema
Sufficient condition for local extrema
The Hessian matrix of the function
The discriminant of the Hessian matrix is
For the point
For the point
Example 4 (local extrema)
Find the local extreme values and their points of the following function:
Solution
The partial derivatives of the function
Necessary condition for local extrema is
Solving the system of equations, we get
From the first equation, we get
For
Therefore, possible points of local extrema
Sufficient condition for local extrema
The Hessian matrix of the function
The discriminant of the Hessian matrix is
For the point
For the point
For the point
Example 5 (global extrema)
Find the global extreme values and their points of the following function:
Solution
The function
Boundary of the set
We can see that at
Therefore, the set
Function of the parabola is
We are interested in vertices, namely
- Checking segment
:
is constant, therefore, global extremum may occur at any point in the segment
- Checking segment
:
is increasing, therefore, global extremum may occur at the points
- Checking segment
:
So global extremum may occur at the point
Determine potential stationary points
The partial derivatives of the function
Necessary condition for local extrema is
Solving the system of equations, we get
Simple solution
Therefore, possible points of local extrema
However, the point
Determine global extrema
Totally, we have 4 points to check:
Therefore, the global maximum of the function
Example 6 (global extrema)
Find the global extreme values and their points of the following function:
Solution
The function
Boundary of the set
We can see that on set
Therefore, the set
Vertices of the triangle are
- Checking segment
:
We need to consider point
- Checking segment
:
We need to consider point
- Checking segment
:
Function is strictly decreasing, therefore, global extremum may occur at the point
Determine potential stationary points
The partial derivatives of the function
Necessary condition for local extrema is
Solving the system of equations, we get
Simple solution
Therefore, possible points of local extrema
However, only points
Determine global extrema
Totally, we have 8 points to check:
Therefore, the global maximum of the function
