Finding the Nature of Critical Points Using Hessian

  • Thread starter Thread starter MuIotaTau
  • Start date Start date
  • Tags Tags
    Extrema Hessian
Click For Summary

Homework Help Overview

The discussion revolves around identifying and determining the nature of critical points for the function $$f(x,y,z) = (x^2 + 2y^2 + 1) \cos z$$. Participants are exploring the conditions under which critical points occur and how to apply the second derivative test using the Hessian matrix.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the calculation of critical points by setting the derivative equal to zero and express confusion about the implications of the second derivative test. There is a focus on identifying critical points of the form $(0,0,k\pi)$ and exploring additional points based on the function's structure. Questions arise regarding the evaluation of the Hessian matrix and the significance of its determinants.

Discussion Status

The conversation is ongoing, with participants providing insights and corrections to each other's calculations. Some guidance has been offered regarding the evaluation of the Hessian matrix and the interpretation of its determinants, but there is no explicit consensus on the conclusions drawn from the Hessian results.

Contextual Notes

Participants note that certain assumptions about the critical points may be incorrect, and there is a discussion about the necessity of ensuring that the conditions for critical points are met. The presence of typos and errors in calculations has also been acknowledged, which may affect the analysis of the Hessian.

MuIotaTau
Messages
82
Reaction score
3

Homework Statement



Identify and determine the nature of the critical points of the function $$f(x,y,z) = (x^2 + 2y^2 + 1) cos z$$

Homework Equations



##\vec{x}## is a critical point ##\iff Df(\vec{x}) = 0##

##\vec{x}## is a minimum ##\iff## every determinant of upper left submatrix of Hessian is positive

##\vec{x}## is a maximum ##\iff## every odd determinant of upper left submarix of Hessian is negative and every even determinant is positive

##\vec{x}## is a saddle point otherwise

The Attempt at a Solution



The derivative of ##f## is the row matrix with elements ##2xcosz##, ##4ycosz##, ##(-x^2-2y^2-1)sinz##.

Setting each component equal to zero, I try to find the critical point, but I feel as if something is going wrong. The first critical point (or rather, set of critical points) I find is ##(0,0,2k\pi)##, where ##k## is a positive integer. But how am I supposed to use the second derivative test on something like that? I'm just a bit lost.
 
Physics news on Phys.org
MuIotaTau said:

Homework Statement



Identify and determine the nature of the critical points of the function $$f(x,y,z) = (x^2 + 2y^2 + 1) cos z$$

Homework Equations



##\vec{x}## is a critical point ##\iff Df(\vec{x}) = 0##

##\vec{x}## is a minimum ##\iff## every determinant of upper left submatrix of Hessian is positive

##\vec{x}## is a maximum ##\iff## every odd determinant of upper left submarix of Hessian is negative and every even determinant is positive

##\vec{x}## is a saddle point otherwise

The Attempt at a Solution



The derivative of ##f## is the row matrix with elements ##2xcosz##, ##4ycosz##, ##(-x^2-2y^2-1)sinz##.

Setting each component equal to zero, I try to find the critical point, but I feel as if something is going wrong. The first critical point (or rather, set of critical points) I find is ##(0,0,2k\pi)##, where ##k## is a positive integer. But how am I supposed to use the second derivative test on something like that? I'm just a bit lost.

You are missing some critical points. k doesn't have to be positive. And, for example, ##(0,0,\pi)## is also a critical point. Then your next job is to write down the Hessian matrix and evaluate it at the critical points. What does it look like? The answer is really pretty simple.
 
  • Like
Likes   Reactions: 1 person
Dick said:
You are missing some critical points. k doesn't have to be positive. And, for example, ##(0,0,\pi)## is also a critical point. Then your next job is to write down the Hessian matrix and evaluate it at the critical points. What does it look like? The answer is really pretty simple.

Oh sorry, you're right, what I have written down on paper is ##k## is an integer (which is still wrong, only less so :wink:). So that particular set of critical points should be ##(0,0,k\pi)## where ##k## is any integer. And I have additional points, do I not? ##(2y^2 - 1 , y, (k + \frac{1}{2})\pi)## for any ##y##, right?

So let's see if I can get away with not trying to TeX up the matrix and just write the determinants. $$d_1 = 2 cos z$$ $$d_2 = 8 (cos z)^2$$ $$d_3 = 8(x^2 + 2y^2 + 1)(cos z)^2 (sin z) - 16x^2 (cos z)^3$$

So for ##(0,0,k\pi)##, I get that ##d_1## is either positive or negative, ##d_2## is always positive, and ##d_3## is always zero. So does that mean I simply discard the result from ##d_3## and I get that critical points of this form are either minima or maxima? Specifically, if ##k## is even, it's a minimum, and if ##k## is odd, it's a maximum?

And assuming I have all that right, does the Hessian not give me any information on my other set of critical points, since all the determinants equal zero?
 
Last edited:
MuIotaTau said:
Oh sorry, you're right, what I have written down on paper is ##k## is an integer (which is still wrong, only less so :wink:). So that particular set of critical points should be ##(0,0,k\pi)## where ##k## is any integer. And I have additional points, do I not? ##(2y^2 - 1 , y, (k + \frac{1}{2})\pi)## for any ##y##, right?

So let's see if I can get away with not trying to TeX up the matrix and just write the determinants. $$d_1 = 2 cos z$$ $$d_2 = 8 (cos z)^2$$ $$d_3 = 8(x^2 + 2y^2 + 1)(cos z)^2 (sin z) - 16x^2 (cos z)^3$$

So for ##(0,0,k\pi)##, I get that ##d_1## is either positive or negative, ##d_2## is always positive, and ##d_3## is always zero. So does that mean I simply discard the result from ##d_3## and I get that critical points of this form are either minima or maxima? Specifically, if ##k## is even, it's a minimum, and if ##k## is odd, it's a maximum?

And assuming I have all that right, does the Hessian not give me any information on my other set of critical points, since all the determinants equal zero?

Yes, the set of all critical points is ##(0,0,k\pi)## for k any integer. There aren't any others. An expression for a critical point is just a number or a vector, right? It can't contain any of the variables defining the function. And I'm not sure what you are trying to say about the Hessian. Just tell me what you get for it. You don't have to tex it up. Just tell me what you are getting for each of the three rows. It's a lot easier to insert the numerical values of the critical points first, especially x=0 and y=0, and then find the determinants.
 
Dick said:
Yes, the set of all critical points is ##(0,0,k\pi)## for k any integer. There aren't any others. An expression for a critical point is just a number or a vector, right? It can't contain any of the variables defining the function.

Yeah, sorry, I guess I meant any points ##(2b^2 - 1, b, (k + \frac{1}{2})\pi)## where ##b## is any real number and ##k## is any integer. That satisfies the condition that ##Df = 0##, doesn't it?

And I'm not sure what you are trying to say about the Hessian. Just tell me what you get for it. You don't have to tex it up. Just tell me what you are getting for each of the three rows.

Okay, sure thing! For the first row: ##2cosz##, ##0##, ##-2xcosz##
For the second: ##0##, ##4cosz##, ##-4ysinz##
For the third: ##-2xcosz##, ##-4ysinz##, ##(-x^2 - 2y - 1)sinz##

It's a lot easier to insert the numerical values of the critical points first, especially x=0 and y=0, and then find the determinants.

Yeah, that's definitely true. So my matrix entries should be:

##2cos(k\pi)##, ##0##, ##0##
##0##, ##4cos(k\pi)##, ##0##
##0##, ##0##, ##0##

Therefore ##d_1 = 2cos(k\pi)## and ##d_2 = 8(cos(k\pi))^2##.

So for those points where ##k## is even, both ##d_1## and ##d_2## are positive, so those are minima. And for those points where ##k## is odd, ##d_1## is negative and ##d_2## is positive, so those are maxima. ##d_3##, however, is zero, but can we just ignore that and base our conclusion off of ##d_1## and ##d_2## only? Or does ##d_3## being zero invalidate the whole test?
 
MuIotaTau said:
Yeah, sorry, I guess I meant any points ##(2b^2 - 1, b, (k + \frac{1}{2})\pi)## where ##b## is any real number and ##k## is any integer. That satisfies the condition that ##Df = 0##, doesn't it?

Well, no. You need sin(z)=0 to get a critical point. Then cos(z) is not zero, so x=0 and y=0. Go back to your expression for the derivative. ##(x^2+2y^2+1)## is NEVER zero.

Okay, sure thing! For the first row: ##2cosz##, ##0##, ##-2xcosz##
For the second: ##0##, ##4cosz##, ##-4ysinz##
For the third: ##-2xcosz##, ##-4ysinz##, ##(-x^2 - 2y - 1)sinz##

You've got some problems there. I think some might just be typos, but ##(-x^2 - 2y - 1)sinz## should definitely be ##(-x^2 - 2y^2 - 1)cosz##. Check it.
 
Last edited:
  • Like
Likes   Reactions: 1 person
Dick said:
Well, no. You need sin(z)=0 to get a critical point. Then cos(z) is not zero, so x=0 and y=0. Go back to your expression for the derivative. ##(x^2+2y^2+1)## is NEVER zero.

Oh man, do I ever feel dumb. I simply changed ##x^2## to ##x## at some point in my calculation, which obviously changed the problem significantly.

You've got some problems there. I think some might just be typos, but ##(-x^2 - 2y - 1)sinz## should definitely be ##(-x^2 - 2y^2 - 1)cosz##. Check it.

You're right, yet another error! I just somehow forgot to differentiate that sine term.

So, after having reviewed my work, I get that my Hessian is

##2 cos k\pi## ##0## ##0##
##0## ##4 cos \pi## ##0##
##0## ##0## ##-cos k\pi##

And so ##d_3##, being the trace of the Hessian, is no longer zero. But now when ##k## is even, ##d_1## and ##d_2## are positive, ##d_3## is negative. So even ##k## values give saddle points and odd values give maxima?
 
MuIotaTau said:
Oh man, do I ever feel dumb. I simply changed ##x^2## to ##x## at some point in my calculation, which obviously changed the problem significantly.
You're right, yet another error! I just somehow forgot to differentiate that sine term.

So, after having reviewed my work, I get that my Hessian is

##2 cos k\pi## ##0## ##0##
##0## ##4 cos \pi## ##0##
##0## ##0## ##-cos k\pi##

And so ##d_3##, being the trace of the Hessian, is no longer zero. But now when ##k## is even, ##d_1## and ##d_2## are positive, ##d_3## is negative. So even ##k## values give saddle points and odd values give maxima?

Almost right, I assume you want ##4 cos k \pi## in the second row, I'll take that to be a typo. And it gets a little blurry what you are doing after that, but if k is even then, yes, you have mixed signs, so it's a saddle point. Why do you think it's different if k is odd?
 
  • Like
Likes   Reactions: 1 person
Dick said:
Almost right, I assume you want ##4 cos k \pi## in the second row, I'll take that to be a typo. And it gets a little blurry what you are doing after that, but if k is even then, yes, you have mixed signs, so it's a saddle point. Why do you think it's different if k is odd?

Oops, yes, sorry, a simple typo. ##d_1##, the first determinant, is ##2cosk\pi##. ##d_2## is ##8 (cos k\pi)^2##. ##d_3## is ##-8 (cosk\pi)^3##. So when ##k## is odd, the cosines evaluate to negative one. This makes ##d_1## negative, ##d_2## stays positive, and ##d_3## becomes positive.

Which makes them saddle points as well.

Oops.

It's amazing what simply trying to explain your work can do, you know? Thanks for sticking with me the whole way through, I truly appreciate it. We can consider this problem solved!
 

Similar threads

Replies
4
Views
2K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
11K
  • · Replies 6 ·
Replies
6
Views
9K