Chapter 4: Partial Differentiation
Section 4.8: Unconstrained Optimization
Find and classify the critical (i.e., stationary) points for fx,y=x3−y3−3 x y+4.
Critical points are the solution of the equations ∇f=0, that is, of the equations
There are two solutions, namely, P:−1,1 and Q:0,0. The Second-derivative test declares P to be a local (relative) maximum with function value 5, whereas it declares Q to be a saddle with function value 4.
To implement the Second-Derivative test at P, calculate fxxP= −6, fyyP= −6, and fxyP=−3 so that
Since T>0 but fxxP<0, the critical point P is a local maximum.
To apply Sylvester's criterion to P, obtain the Hessian H=fxx(P)fxy(P)fxy(P)fyy(P) = −6−3−3−6 and the sequence of principal minors with 1 prepended: 1,−6,27. The signs alternate, so the critical point P is a local maximum.
To implement the Second-Derivative test at Q, calculate fxxQ= 0, fyyQ= 0, and fxyQ=−3 so that
Since T= −9<0, the critical point P is a saddle.
The Hessian at Q is H=fxx(Q)fxy(Q)fxy(Q)fyy(Q) = 0−3−30 and one of the principal minors zero, so Sylvester criterion does not apply.
Figure 4.8.4(a) shows that portion of the surface generated by f that is consistent with the claim that P is a local maximum, and that Q is a saddle. The contour map in Figure 4.8.4(b) reveals the maximum at P (surrounded by the closed loop) and the saddle at Q.
Figure 4.8.4(a) Surface generated by f
Figure 4.8.4(b) Level curves for f
Maple Solution - Interactive
Student Multivariate Calculus
Context Panel: Assign Name
f=x3−y3−3 x y+4→assign
Solution via task template
Calculus - Multivariate≻Optimization≻
Critical Points and the Second Derivative Test
Objective Function f
List of Independent Variables
Second Derivative Test
Hessians and their Eigenvalues
Temp≔StudentMultivariateCalculusSecondDerivativeTest,v=,output=hessian: for k to nopsTemp do Tempk,convertLinearAlgebraEigenvaluesTempk,list; end do;
The critical point −1,1 is a local (relative) maximum. The first Hessian matrix in the last line of the task template is the matrix of second partial derivatives evaluated at this 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 1,Q1,Q2=1,−6,27 alternate, the critical point is a local maximum.
The critical point 0,0 is a saddle. The Hessian at this point will have zero for one of its principal minors. Hence, the Sylvester criterion cannot be used.
Find critical points via first principles
Calculus palette: Partial derivative operator
Press the enter key.
Context Panel: Solve≻Solve (explicit)
∂∂ x f=0,∂∂ y f=0
Alternate calculation of the critical points
Type f and press the Enter key.
Context Panel: Student Multivariate Calculus≻
Context Panel: Conversions≻To List
Context Panel: Conversions≻Equate to 0
→equate to 0
Second-Derivative test at −1,1
Expression palette: Evaluation template
Calculus palette: Partial-derivative operators
Context Panel: Evaluate and Display Inline
∂2∂x2 f⋅∂2∂y2 f−∂2∂ y⁢∂ x f2x=a|f(x)x=−1,y=1 = 27
∂2∂x2 fx=a|f(x)x=−1,y=1 = −6
Expression palette: Evaluation template
fx=a|f(x)x=−1,y=1 = 5
Second-Derivative test at 0,0
∂2∂x2 f⋅∂2∂y2 f−∂2∂ y⁢∂ x f2x=a|f(x)x=0,y=0 = −9
The function value at 0,0 is easily seen to be 4.
Maple Solution - Coded
Install the Student MultivariateCalculus package.
f≔x,y→x3−y3−3 x y+4:
Obtain critical points
Use the Gradient, Equate, and solve commands to solve the equations resulting from ∇f=0.
Note the use of the parameter "explicit" in the solve command.
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, T=fxxfyy−fxy2 is a function evaluated at the one critical point.
At the critical point −1,1, T=27>0 and fxx<0, so the critical point is a local (relative) maximum; this maximum value is f−1,1=5
. At the critical point 0,0, T= −9<0, so this critical point is a saddle, at which point f has the value 4.
Apply Sylvester's criterion at −1,1
Use the SecondDerivativeTest command to return the Hessian matrix
Generate the sequence 1,Q1,…,Qn, where the Qk are the principal minors.
Obtain a principal minor by applying the Determinant command to the appropriate submatrix of H.
Use the seq command to form the sequence of principal minors.
An alternative way to obtain the Hessian:
Apply Sylvester's criterion at 0,0
<< Previous Example Section 4.8
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2023. 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
Download Help Document