For , the first derivatives are and . Both vanish at the origin. The local expansion is
There are no constant, linear or quadratic terms, so every second derivative vanishes at the origin and the Hessian determinant is zero. The second-order test therefore cannot classify the point.
The cubic term does determine the behaviour: along , has the sign of . Every neighbourhood contains values above and below , so it is neither a maximum nor a minimum. It is a nonisolated stationary point with nearby values of both signs. Indeed the whole line is stationary, so this is not an isolated nondegenerate quadratic saddle.
Let and . Its partial derivatives are
so both vanish at and . Evaluating the second derivatives at a point with gives
Therefore the Hessian determinant is . Its two diagonal entries are negative at and positive at . Hence
These are also global extrema: for positive , the factor maximizes the positive value at , and differentiating fixes its positive maximum at . Oddness in supplies the corresponding global minimum.
At a stationary point, the linear terms vanish, so , with , , . Let be the Hessian determinant. For , completing the square gives
The second-derivative test therefore yields
When the quadratic form is indefinite, including the case , . When , the quadratic approximation is degenerate and the test is inconclusive: higher-order terms may produce a minimum, maximum or saddle. For nondegenerate cases the quadratic term dominates the Taylor remainder sufficiently close to the point.
Write , , and let , and be evaluated at the critical point. Assuming is twice continuously differentiable nearby, the Taylor expansion is
The linear terms vanish because the gradient is zero. For , completing the square gives
Consequently the requested constant is the Hessian determinant
The displayed identity in the question is an identity for the quadratic part; for a general , its right-hand side needs the remainder .
If , the quadratic form is positive for every nonzero . On the unit circle it has a positive minimum, so it dominates the remainder sufficiently near the critical point. Hence the point is a strict local minimum.
If , along the quadratic term is , whereas along it is . Along each line the remainder is of smaller order. Thus values both above and below occur arbitrarily nearby, giving a saddle point.
The critical points satisfy
Substitute to obtain . Thus the only critical points are and .
The Hessian matrix and Hessian determinant are
At , , so this is a saddle point. At , and , so this is a strict local minimum. Therefore
The value at the local minimum is ; there is no local maximum.
For a twice continuously differentiable function, an interior local extremum requires . At such a critical point, put . The second-derivative test gives a strict local minimum if and , a strict local maximum if and , and a saddle point if . When , the test is inconclusive. More generally the Hessian matrix is necessarily positive semidefinite at a local minimum and negative semidefinite at a local maximum, but these non-strict signs alone are not sufficient.
For this polynomial,
Subtracting the two stationarity equations gives . If , then ; if , the remaining equation gives or . Thus the only critical points are and .
At , , so it is a saddle point. At the determinant is zero, but along the value is , which takes both signs arbitrarily near zero. Therefore
In particular a vanishing Hessian determinant does not exclude a saddle point.