Contour plot 2026-10-14
A contour plot displays several level curves of a real-valued function of two variables, usually with labels indicating their values. It represents a surface's height on a flat page. Closely spaced level curves indicate a large change per unit distance only when the gaps between their labeled values are comparable.
Partial derivative Created 2026-09-24 Updated 2026-10-14
A partial derivative measures the local response of a function to one input while its other inputs stay fixed. For a function on an open subset of , its partial derivatives at are the limitswhen the respective limits exist. Each is an ordinary derivative of a one-variable slice: or . This is why the other variable is treated as a constant during partial differentiation.[ref]
4.3 Partial Derivatives. Calculus Volume 3, §4.3, definitions (4.12)–(4.13) and the one-variable slice interpretation
For an original example, take the polynomial functionHolding fixed gives , while holding fixed gives . At , the height is and the two partial derivatives are and . The values answer different experiments on the same mathematical model: change alone, or change alone.
The two exact slices through that point areDividing either height change by gives or ; taking the limit recovers the two slopes. At , the finite height changes are and , although their linear approximations are and . A derivative measures the limiting response, rather than an exact finite change.
Two coordinate slices through one point give different partial derivatives
. Original contour plot of , with the point and coordinate paths. The right panel compares the exact slice height changes and with their tangent line predictions and . Both slices pass through height . Details.For a function of variables, varies only its th coordinate: it is the same difference quotient along , the th standard basis vector. This gives a practical sensitivity analysis: one can compare how a mathematical model responds to changes in its individual inputs, provided the chosen system of units and the quantities held fixed are stated. Comparing the numerical sizes of two partial derivatives in different units does not by itself identify a physically preferable input.
Existence of the partial derivatives at one point is weaker than differentiability. The example under partial derivatives do not imply continuity shows how both coordinate tests can miss a bad diagonal approach. When the first partial derivatives are continuous in a neighborhood, they do give differentiability there, allowing the total differential to combine all small input changes.
Past exam of the mathematical methods II course of the University of Oxford 2017 resit 6 Solution 2026-10-25
The gradient equations are and . The critical points are and . Their Hessian matrix isAt the origin is positive definite. At either other point its determinant is , so its eigenvalues have opposite signs. ThusThe minimum value is zero and both saddle values are two. The origin is not a global minimum: at any fixed , the term makes arbitrarily negative as increases.
For the contour plot, the local contours around the origin are approximately . The exact saddle contour factors asso it is the union of and , crossing at the two saddles. Other levels obey where ; the right panel of the original figure in part 3(a) shows how these branches join around the minimum and pass through the saddle contour.
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.
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:
- At , the Hessian matrix has eigenvalues . These two points are strict local maxima, each with .
- At , the Hessian matrix has eigenvalues . These two points are strict local minima, each with .
- At , the Hessian matrix has eigenvalues , so it is a saddle point of a scalar function with .
- At , with all four sign combinations, the Hessian matrix has eigenvalues . These four points are saddle points of a scalar function, each with .
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.
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.Within the requested first-quadrant square, the stationary points visible in the contour plot are the corner minimum and the saddle . Near the origin, , so the low positive contours look like quarter-circles. Along either coordinate axis, rises monotonically. Along the diagonal, rises to at , returns to zero at , then becomes negative.
The saddle contour crosses at and separates the central positive contours from the outer diagonal region. Negative contours occur toward , where , while the axis corners and have . These checks determine both the contour ordering and the change of connectivity at the saddle; the figure shows these level sets.
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.
The most useful guide to the contour plot is the common saddle value. Direct polynomial factorization givesThus the level set is exactly the three complete linesTheir 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 coordinatesshows 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 .
Contours and gradient directions of the Hénon-Heiles potential
. Details. At each regular point, the gradientis 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 byThe figure plots representative level sets, including the critical saddle height; its second panel adds the gradient directions requested below.
At a differentiable interior stationary point, all first-order changes of the scalar field vanish. In particular, the directional derivative along each coordinate axis vanishes, so and hence . Equivalently, the first-order differential vanishes for every displacement. A differentiable interior maximum or minimum must satisfy this condition; a stationary point need not be an extremum.
The standard nondegenerate local contour plot models are for a maximum, for a minimum, and for a saddle point of a scalar function. Near a maximum, nested contours have lower values farther from the centre; near a minimum they have higher values. Near a saddle, hyperbolas occur on opposite sides of the critical level, whose contour has two intersecting tangent directions. More general nondegenerate quadratic forms deform these circles into ellipses; degenerate stationary points can have more complicated contours.
In the translated coordinates , , the zero level set is the pair of lines and . The function is positive in the quadrants and negative in those with , and tends to zero as . Thus its nonzero contours form closed curves around the four off-centre stationary points.
For an explicit description of the contour plot, use polar coordinates , :At fixed direction within a quadrant, the magnitude increases until and then decreases towards zero. Also , with equality exactly when , and similarly for . Consequently ; each positive level below encloses a positive peak in each positive quadrant, with the analogous negative contours in the negative quadrants.
To classify the stationary points, the Hessian matrix isAt it is , with eigenvalues and , so is a saddle point. At it is . Therefore and are strict local maxima, and and are strict local minima. These are also global maxima and minima by the bound just proved.
Contours and gradient directions near all five stationary points in Question 16
. Details. Separable quartic landscape with nine stationary points Created 2026-10-20 Updated 2026-10-31
The gradient of this polynomial vanishes exactly when and , giving nine stationary points. Its diagonal Hessian matrix has entries and . The second-derivative test therefore gives two strict local maxima at , with value , and two strict local minima at , with value . The origin and the four points are saddle points of a scalar function, with values zero and , respectively. Every stationary point is nondegenerate.
Completing the squares organizes the contour plot:The level set through the four outer saddle points of a scalar function factors asIt is a circle together with a hyperbola when ; for , the latter factor's complementary zero set is the pair of lines . Neither the local maxima nor the local minima are global, since the restrictions to the two coordinate axes are unbounded in opposite directions. The case , gives four outer saddle values and an exact circle-hyperbola contour crossing at all four outer saddle points of a scalar function.







