Near a nondegenerate stationary point, the quadratic part of the Taylor expansion determines the local contour plot. For a strict local maximum, the model gives nested closed level sets, with values decreasing as one moves outward. For a strict local minimum, the model gives the same nested shape with values increasing outward. Unequal nonzero quadratic coefficients stretch the circles into ellipses after a rotation to the Hessian matrix's eigenvectors.
For a nondegenerate saddle point of a scalar function, the model gives hyperbolas. Levels above open along the positive-curvature direction; levels below open along the negative-curvature direction. The critical level set is the two crossing lines . Degenerate stationary points can have different local geometry, so these are the standard nondegenerate sketches.
Figure 1.
Local contours at a maximum, a minimum, and a saddle point
. Original quadratic-model sketches with contour values labelled relative to the central value zero. Maxima and minima have closed contours with opposite value ordering; the saddle has crossing zero contours and hyperbolic nearby levels. Details.
Set both first partial derivatives equal to zero:
Thus and , independently, giving exactly nine stationary points. The Hessian matrix is diagonal everywhere:
Its diagonal entries are its eigenvalues, so the second-derivative test immediately classifies the points:
In particular,
All nine stationary points are nondegenerate, so no higher-order test is needed. Neither type of local extremum is global: as , whereas as .
To organize the contour plot, complete the squares:
The level set through all four outer saddle points of a scalar function factors exactly:
It is therefore the union of the circle and the hyperbola , which cross at those four saddle points of a scalar function. Near the origin, , so the zero contours have tangents . These two exact structural features, together with the nested contours around the four local extrema, determine the requested sketch. They are an example of a separable quartic landscape with nine stationary points.
Figure 1.
All nine stationary points and contours of the separable quartic
. Original contour plot of . The two maxima, two minima and five saddles are marked. The exact level is highlighted as a circle and a hyperbola intersecting at the four outer saddles; the zero contour crosses at the origin. Details.
Expand . The Lagrange multiplier equations for are and , together with the constraint . The first two imply and . The value would make the latter equation inconsistent, so division is allowed:
Insert these into and multiply by . Simplification gives , hence
The gradient of the constraint is never zero, so the Lagrange multiplier condition is necessary at every constrained extremum. To establish a global minimum, parametrize the whole parabola by . The restricted function becomes
It is coercive: as , so it attains a global minimum. Moreover , making it strictly convex and ensuring that this minimum is unique. This proves more than the permitted assumption of one real multiplier root.
The level sets of are nested ellipses centered at the origin. In the rotated coordinates , , they have equation , with the longer axis along . The smallest one meeting the parabola is tangent to it at the unique minimizing point, approximately , where and .
Figure 1.
The smallest quadratic contour touching a parabolic constraint
. Original level-set plot. The highlighted ellipse is tangent to the parabola at the unique global minimum; larger quadratic contours intersect the constraint. Details.
Set . The gradient is a normal vector to its level set. Since on the given patch, division by its last component is valid and gives the unique normalized field
Its dot product with is one, as required; it is not generally a unit vector.
The zero level set consists of the lines and . The height is positive where and negative where that product is negative. In each of the four resulting regions, closed nonzero contours surround its extremum; levels closer to zero extend further from the extremum towards the zero-level axes and towards large distance. The height tends to zero at infinity. The figure marks the four extrema and central saddle point, and includes the downhill path used below.
Figure 1.
Contours, stationary points and the steepest downhill path on the Gaussian-weighted surface
. Details.
Multiply the quadratic form out directly:
Thus , and . Both eigenvalues are positive, so this is a positive-definite quadratic form; its positive unit level set is an ellipse. The next part exhibits its principal axes explicitly.
The cylinder is a level set of , so its outward normal vector is parallel to . At the point this is , with norm . Choosing the outward orientation gives
Its negative is the equally valid inward unit normal vector; the next directional derivative then changes sign.
The partial derivatives are and , so all stationary points are for integers . Their Hessian matrix is . At even multiples of it is a positive-definite matrix, whereas at odd multiples it has one positive and one negative eigenvalue. Consequently
There are no local maxima. Since both and are nonnegative, these are also global minima. In the requested open plotting window, the stationary points are and ; the local minima at lie on excluded edges.
For a level set , solving for the vertical coordinate gives
For these level sets are closed ovals around each local minimum. At the level sets shrink to the local minima. The level set through the saddle points is
where the two signed branches together describe the same set as . They cross at and reach . The crossing slopes at a saddle point are , as also follows from the local quadratic form . For , the upper and lower level sets remain separate and extend across the plotting window without meeting the horizontal axis.
Figure 1.
Contours of the cosine-plus-quadratic function, with its saddle level and stationary points labelled
. Details.
Write in the proposed local coordinates. The multivariable chain rule gives
Consequently
Away from the origin the Jacobian determinant is , so the inverse function theorem justifies these local coordinates. Therefore and the local general solution is
Substitution verifies the result: and , whose weighted sum vanishes.
There is a global qualification. The coordinate map is two-to-one, and a level set of has separate characteristic curve branches. A single profile on the entire plane does not follow without a branch-identification assumption. For example, take on the wedge , , and zero elsewhere. This is smooth, satisfies the equation, and has different values at and despite equal . The characteristic components of a hyperbolic first-order equation explain this obstruction. At the origin the coordinate map is singular and the original equation reads ; the boxed answer is the intended local form on a regular branch, or a global form under an additional identification of branches.
A constant real part means , so its level sets are the concentric circles
Their radii are strictly positive. The real part is independent of the logarithm's branch, so there is no branch ambiguity in these circles.
For , the equation is . If , complete the square to obtain
These circles have centres on the real axis and are tangent to the imaginary axis at the excluded origin. Positive puts the circle to the right, negative to the left. The separate case gives the punctured imaginary axis . The sketch uses an open marker at the origin to emphasize that is never defined there.
Figure 1.
Constant real-part contours of the complex logarithm and reciprocal
. Details.
For , the local minimum at the origin has . Its full level set is
The connected component containing the minimum is just the isolated origin. The same level also has the outer branches for ; these are different connected components, not curves approaching the origin.
Both saddle points have . Their common level set factors as
Its explicit equations are therefore
The two parabolas cross at each saddle, explaining the change of contour connectivity there. Each displayed equation can be restricted to the square of part (ii) if only that sketch window is wanted.
Because the exponential function is strictly increasing, the level sets are exactly those of . For they satisfy
There are no contours for , the level is the origin, and gives nested closed ovals symmetric about both axes. Their stronger fourth-power growth in makes them relatively narrower horizontally as the level rises.
For , the contour equation becomes
The central local minimum is surrounded by closed ovals for , accompanied by outer open branches. At , the level passes through the two saddle points and changes its connectivity. Levels have only outer branches, while levels above the saddle value have an upper and a lower branch. The sketch is restricted to the requested square; labels give , so they identify the corresponding contours of without exponentially large labels.
Figure 1.
Contours for the two parameter signs; labels are log f and dots mark stationary points
. Details.
The exponential function is strictly positive, so the zero level set is determined entirely by its prefactor:
This is a rectangular hyperbola with branches in the first and third quadrants.
The completed contour plot is shown in the right-hand panel. Its geometry follows from the symmetries and , together with as . For orientation, the two local minima have value , the two local maxima have value , and the saddle point has value one.
Negative level sets between and zero form separate closed curves around the two local minima in the first and third quadrants. Positive level sets below one form a single closed curve enclosing the origin and both local maxima. At level one, a critical level set crosses itself at the origin and surrounds the two local maxima in two lobes. Between one and , the level sets split into separate closed curves around those local maxima. The zero level set remains the two unbounded branches .
Near the origin, the Taylor expansion is . Consequently the crossing directions at the saddle height satisfy , giving the local shape of the critical level set.
In the positive quadrant, both components of the gradient are positive. Along the arrows point along ; near the horizontal axis they point mainly upwards, and near the vertical axis mainly rightwards. The level sets are the hyperbolas , including the coordinate axes for level zero. The gradient is orthogonal to each regular level set and points towards increasing values of .
Figure 1.
Gradient vectors and hyperbolic level sets of twice the coordinate product
. Details.
The most useful guide to the contour plot is the common saddle value. Direct polynomial factorization gives
Thus the level set is exactly the three complete lines
Their intersections are the three saddle points, and they enclose the origin in an equilateral triangle. Near the local minimum, the level sets are nearly circles because the leading term is . For , a closed contour surrounds the origin, while three separate open branches lie outside the triangular barrier. At the saddle level these components meet at the saddle points; above it the central closed contour has opened into the three outer channels.
The identity in polar coordinates
shows the rotation symmetry through . It identifies the function as the Hénon-Heiles potential and helps organize all three channels in the original sketch below. The dashed straight lines are the saddle level; labels on the other contours give .
Figure 1.
Contours and gradient directions of the Hénon-Heiles potential
. Details.
At each regular point, the gradient
is normal to the level set and points towards increasing . The arrows in the contour plot above show this direction; their lengths have been normalized to keep the outer arrows legible. Near the origin they point outwards, as expected for a local minimum. Near , write ; the linear approximation is . Thus the arrows point away along the horizontal direction and towards the point along the vertical direction. The other two saddle points have the same behaviour after rotations through . All four stationary points have zero gradient, so no direction arrow is assigned at the points themselves.
The contour plot is symmetric under either or , because depends only on their squares. Denote the three critical heights by , and , where .
For , the level set consists of separate closed curves around the two minima. At the branches meet at the two saddle points. For , there is an inner closed curve surrounding the local maximum and an outer closed curve surrounding all five stationary points. At the inner curve shrinks to the origin; for only the outer closed curve remains. At each saddle point the critical level set crosses in the two directions determined by
The figure plots representative level sets, including the critical saddle height; its second panel adds the gradient directions requested below.
Figure 1.
Contour topology and gradient directions around two minima, a maximum and two saddles
. Details.
The gradient is orthogonal to each regular level set and points towards increasing . Near either minimum, the linear approximation is , so arrows point away from the point. Near the maximum at the origin it is , so arrows point inwards. Near either saddle point it is : arrows point towards the vertical axis horizontally and away from the saddle vertically.
On the horizontal axis the gradient is . Its arrows point left on , right on , left on , and right on . On the vertical axis it is
Consequently its arrows point down on , up on , down on , and up on . These directions, and representative arrows near each stationary point, appear in the right-hand panel. The gradient itself is zero at all five stationary points.
The level set can be rearranged, without changing its domain, as
The requested special contours are therefore
The first is a parabola, the second a single point, and the last two intersecting straight lines. Moreover
with equality only at . Hence is a strict global maximum. At the crossing critical contour separates sectors with values above and below , so it is a saddle point of a scalar function.
As a Hessian matrix check, is negative definite, while is indefinite. There is no stationary minimum.