Chapter 4: Partial Differentiation
Section 4.8: Unconstrained Optimization
|
Example 4.8.1
|
|
Find and classify the critical (i.e., stationary) points for .
|
|
|
|
Solution
|
|
|
Mathematical Solution
|
|
•
|
Critical points are the solution of the equations , that is, of the equations
|
•
|
There is but the one solution, namely, P:. This point, subjected to the Second-Derivative test, proves to be a local (relative) maximum; at this point, .
|
•
|
To implement the Second-Derivative test, calculate , , and so that
|
Since but , the critical point P is a local maximum.
•
|
To apply Sylvester's criterion, obtain the Hessian = and the sequence of principal minors with 1 prepended: . The signs alternate, so the critical point P is a local maximum.
|
•
|
Figure 4.8.1(a) shows that portion of the surface generated by that is consistent with the claim that the critical point is a local maximum.
|
|
Figure 4.8.1(a) The surface defined by
|
|
|
|
|
Maple Solution - Interactive
|
|
Initialize
|
•
|
Tools≻Load Package:
Student Multivariate Calculus
|
|
Loading Student:-MultivariateCalculus
|
•
|
Context Panel: Assign Name
|
|
|
Solution via task template
|
Tools≻Tasks≻Browse:
Calculus - Multivariate≻Optimization≻
|
Critical Points and the Second Derivative Test
|
Objective Function
|
| (1) |
|
List of Independent Variables
|
|
Equations
|
>
|
|
| (3) |
|
Critical Points
|
>
|
|
|
Second Derivative Test
|
>
|
|
| (5) |
|
Hessians and their Eigenvalues
|
>
|
|
|
|
|
|
|
|
|
|
The one critical point, namely, , is a local (relative) maximum. The Hessian matrix in the last line of the task template is the matrix of second partial derivatives evaluated at the critical point. Since a discussion of eigenvalues is beyond the scope of the typical multivariate calculus course, apply Sylvester's criterion to the Hessian. Since the signs in the sequence alternate, the critical point is a local maximum.
Find critical points via first principles
|
•
|
Calculus palette: Partial derivative operator
Press the enter key.
|
•
|
Context Panel: Solve≻Solve
|
|
|
Alternate calculation of the critical points
|
•
|
Type and press the Enter key.
|
•
|
Context Panel: Student Multivariate Calculus≻
Differentiate≻Gradient
|
•
|
Context Panel: Conversions≻To List
|
•
|
Context Panel: Conversions≻Equate to 0
|
•
|
Context Panel: Solve≻Solve
|
|
|
Second-Derivative test
|
•
|
Expression palette: Evaluation template
Calculus palette: Partial-derivative operators
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
=
|
Obtain
|
•
|
Expression palette: Evaluation template
|
•
|
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Approximate≻5 (digits)
|
|
=
|
|
|
|
|
Maple Solution - Coded
|
|
Initialize
|
•
|
Install the Student MultivariateCalculus package.
|
|
|
|
|
Obtain critical points
|
•
|
Use the Gradient, Equate, and solve commands to solve the equations resulting from .
|
|
|
Apply the SecondDerivativeTest command to the critical point
|
|
Apply the second-derivative test from first principles
|
•
|
The differential operator D, applied to a function, returns a function. Hence, is a function evaluated at the one critical point.
|
|
|
|
|
At the critical point, and , so the critical point is a local (relative) maximum; this maximum value is = .
Apply Sylvester's criterion
|
|
=
|
Generate the sequence , where the are the principal minors.
|
•
|
Obtain a principal minor by applying the Determinant command to the appropriate submatrix of .
|
•
|
Use the seq command to form the sequence of principal minors.
|
|
|
|
|
An alternative way to obtain the Hessian:
=
|
|
|
|
|
|
<< Chapter Overview Section 4.8
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
|