Before this section. 3.1 All-order multivariable Taylor theorem, Finite-dimensional compactness and attained extrema.
A derivative predicts the first-order change. A Hessian predicts how that rate changes with direction. Taylor's theorem makes the approximation quantitative, while convexity turns local derivative information into global comparisons. The hypotheses and the order of the remainder are part of each result.
1 Hessians and Taylor formulas
Let , let be open, and let be . Its Hessian is . Here is a direct proof of symmetry that does not exchange integrals. For distinct coordinate directions, take a small coordinate rectangle around inside and put
Apply the one-variable mean value theorem first to the difference as a function of the th coordinate and then to the resulting difference of in the th coordinate. For nonzero sufficiently small , this expresses as at a point of that rectangle. Reversing the order expresses the same quotient as at another point. Both points tend to ; continuity of the second partials proves equality at . Diagonal entries need no comparison.
The C2 integral remainder and local Peano estimate
Let , let be open, and let be . Its Hessian is .
For a fixed whose whole segment lies in , set . The chain rule gives and . One-variable integration by parts gives
Consequently the exact segment identity is
For the local conclusion let inside a fixed ball centered at contained in . Subtracting under the integral gives the degree-two remainder
Continuity at makes the supremum tend to zero because every point of the segment is within of . Thus
This proof requires , not . Separately, a bound along a fixed whole segment bounds the first-order remainder by . A bound only at does not justify that segment estimate.
Worked example 3.2.1
(A C2 remainder that is small but not of third order)
Let and write . Away from the origin, , and at the origin ; the same holds for . Differentiating again away from the origin,
Since and , every second partial is bounded by a constant times and tends to at the origin; the difference quotients of the first partials at the origin, such as , also tend to . So is with , and .
The degree-two Taylor polynomial at the origin is therefore , and the remainder is . The Peano estimate holds, since . But : no bound of the form is possible. This is why a third-order remainder estimate needs a third-derivative hypothesis, which does not satisfy at the origin.
2 Local extrema and coercive quadratic terms
The compact-sphere input in the classification below is proved in finite-dimensional Heine–Borel and attained extreme values. For integer , the unit sphere is nonempty and compact. A continuous positive-definite quadratic form attains its minimum there at a unit vector, so that attained minimum is strictly positive. Scaling gives for ; the zero displacement is immediate. This supplies the uniform lower bound used by Taylor, rather than inferring it from positivity at one direction.
Second-derivative classification theorem. Let , let be an interior point of an open domain, and let the real scalar function be near . The sufficient classifications below all assume the stationary condition . Positive-definite gives a strict local minimum; negative-definite gives a strict local maximum. If the quadratic form has both a positive and a negative direction, every neighborhood contains points with values above and below .
Proof. In the positive-definite case, the continuous quadratic form has a positive minimum on the compact unit sphere. Homogeneity gives for every . The stationary condition removes the linear term, so Taylor gives
for sufficiently small nonzero , since there. Apply the same argument to for a negative-definite Hessian. For fixed directions of opposite quadratic sign, substitute and ; after division by , the remainder tends to zero and the signs agree with those quadratic values for sufficiently small nonzero . This proves the third claim.
At a differentiable interior local extremum, restricting to each coordinate line proves by the two-sided derivative sign test. At a local minimum the Hessian must be positive semidefinite, because for every ,
The maximum case gives the opposite inequality. When the Hessian is semidefinite but neither positive definite nor negative definite, the second-order test is inconclusive: it does not in general settle strictness or even the existence of an extremum. Nor can stationarity be omitted from the sufficient theorem: has but , and zero is not a local minimum. This is a counterexample to the missing-hypothesis version, not to the theorem just proved.
Worked comparison: the same zero Hessian gives three different outcomes. On , put , , and . Their gradients all vanish at the origin. Their Hessians are respectively , , and , so all three have the same zero Hessian at the origin. Yet away from the origin, giving a strict global minimum there, and away from it, giving a strict global maximum. For every , and ; arbitrarily small such points prove that the origin is a saddle. In these cases the quartic terms determine the outcome left undecided by the zero quadratic term. Positive- and negative-definite Hessians remain covered by the sufficient theorem above.
Worked example. At the origin,
has zero gradient and Hessian . The quadratic part is , positive away from zero, so the origin is a strict local minimum. It is not a global minimum on all of , because along , as . Local Taylor information must not be promoted to an unproved global claim.
Worked example 3.2.2
(Classifying every stationary point of a cubic)
Let . Then , which vanishes exactly at and . The Hessian is .
At the Hessian is , positive definite, so is a strict local minimum, with . At it is , with a negative and a positive direction, so is a saddle. The two directions can be checked exactly: for , while for .
The local minimum is not global: as . The theorem classifies the stationary points; it says nothing about the function far from them.
3 Convexity and supporting planes
On a convex set , a function is convex if
If differentiable on an open convex set, convexity is equivalent to the supporting-plane inequality
Proof. Convexity bounds above by ; let . Conversely, put and apply the supporting inequality at to both and . Multiply by and and add; the derivative terms cancel.
For functions on open convex sets, convexity is equivalent to being positive semidefinite everywhere. Restrict to each line: its second derivative is . Nonnegative second derivative makes the line restriction convex; the converse follows from second differences of a convex line restriction.
Thus every stationary point of a differentiable convex function is a global minimum. Positive-definite Hessian everywhere implies strict convexity and at most one minimizer, but does not imply that a minimizer exists: is strictly convex on and has no minimum. If for one fixed , then the stronger inequality
follows from the integral remainder. This is strong convexity, not merely strict convexity.
Counterexample mode
A positive Hessian everywhere does not give one fixed constant
Claim: if is positive definite at every , then a single gives the strong-convexity inequality. Take on , so . With and , , the inequality would read . For the right side exceeds , while ; no works. The repair is a bound with independent of .
Worked example 3.2.3
(A convex function that is not strictly convex)
Let and . Then and . Since and ,
The Hessian is positive semidefinite everywhere, so is convex on by the criterion. It is not strictly convex: along the direction , is affine, and the Hessian annihilates at every point. Consequently has no minimizer either: its gradient never vanishes. Positive semidefiniteness gives convexity; it gives neither strictness nor a minimum.
From stationarity to a quantitative global certificate
For , solve and . The second equation gives ; substituting gives , so the stationary point is and . Write , . Expanding cancels every linear term:
This identity proves uniqueness and global minimality directly and gives a distance certificate: if with , then . Merely reporting a positive Hessian would hide how objective error controls location error.
Practice. If a computed point has objective at most , what distance from the minimizer can be certified?
Full solution. Its distance from the unique minimizer is at most . This uses the global quadratic identity. A local Hessian estimate valid only near the minimizer would first require evidence that the computed point lies in that neighbourhood.
Gradient residual certificates for strong convexity
The previous certificate used objective error. Often an algorithm reports the gradient instead, so we ask what a small gradient guarantees. Throughout, let , let be , and fix with for every . Section 3 then gives, for all ,
Existence, uniqueness and stationarity. Take and use Cauchy–Schwarz:
The sublevel set contains , is closed by continuity, and every satisfies , hence . So is a nonempty compact set, and attains its minimum on at some . Points outside have values above , so is a global minimizer. It is an interior point of , so . If is also a minimizer, the inequality at gives ; equal values force .
Distance certificate. Fix , write and . Apply the inequality at with , and at with :
Adding and using Cauchy–Schwarz gives . If there is nothing to prove; otherwise divide by . In both cases . In particular forces , so . We never divide by the gradient norm.
Objective certificate. In the lower bound at , put and complete the square:
Hence . Since is a minimizer, . When this upper bound is zero, consistent with .
Proof X-ray
One hypothesis, used three different ways
Uniform strong convexity is the only hypothesis. For existence it forces at least quadratic growth, so a sublevel set is bounded and compactness supplies . For the distance bound, the key move is to write the lower bound twice, from toward and back, and add: the function values cancel and only the gradient at and the distance remain. For the objective bound, completing the square computes the worst case of the lower bound over every possible position of .
Worked check. For , E2 gives , and the minimizer is with value . At we have , so and . With , , the true gap is , below the bound . The true distance is , below .
Existence versus estimates. The two estimates are proved after a minimizer is known to exist; the existence step used compactness of sublevel sets in all of . On a proper open convex domain that step can fail. On , has , so , and the strong-convexity inequality holds there. Yet the sublevel set is not compact, and the infimum is not attained. A small gradient near cannot certify distance to a minimizer, because no such exists in the domain. In this example it does certify closeness to the infimum: .
Check. Suppose on and . What can be certified?
Answer. A unique minimizer exists, , and .
Quick check
(Find and classify the stationary points of . Is the result a global minimum?)
Solve the two gradient equations and test the constant Hessian.
Solution · Answer
The gradient is . The second equation gives ; then , so the only stationary point is , with . The Hessian has determinant and positive diagonal, so it is positive definite at every point. Hence is strictly convex and the stationary point is its unique global minimum, not merely a local one.
Quick check
(The functions and have the same gradient and Hessian at the origin. Compute that Hessian and decide what each function does at the origin.)
The Hessian is semidefinite; inspect the -axis.
Solution · Answer
Both have zero gradient and Hessian at the origin, positive semidefinite but not definite, so the sufficient test does not apply. For , every nonzero point gives a positive value, so the origin is a strict global minimum. For , and for , so the origin is a saddle. The zero direction of the Hessian is decided by the quartic term.
Quick check
(For , find the largest uniform strong-convexity constant , and use the gradient certificate at .)
The Hessian is constant; its smallest eigenvalue is the best .
Solution · Answer
The Hessian has eigenvalues and , so and is the largest valid constant. The minimizer is the origin. At , , with . The certificates give distance at most and objective gap at most . The true values are and , both within the bounds.
Exercises with complete solutions
E1 Foundation. Obtain the second-order Taylor polynomial of at zero and bound the error on by a constant times .
S1. Put . The polynomial is . The one-variable Lagrange remainder has magnitude at most when .
E2 Convexity. Show is strongly convex and find a valid value of .
S2. The Hessian is with eigenvalues 1 and 3. Thus , so works.
E3 Counterexample. Decide whether is strictly convex, strongly convex with a positive uniform constant on , and whether its Hessian at zero determines a strict minimum.
S3. Its derivative is strictly increasing, which gives strict convexity. It cannot be strongly convex with because . The zero Hessian does not decide strictness; the explicit nonnegative fourth power proves a strict global minimum at zero.
E4 Application. Find and certify the global minimum of .
S4. Stationarity gives and , hence with value . The Hessian is the same positive-definite matrix as in E2. Strong convexity makes this the unique global minimum. Equivalently, translating the point leaves the positive quadratic increment .
Summary
Taylor formulas quantify local approximation through controlled remainders. Definite quadratic terms classify local stationary points. Convexity adds a global supporting inequality; strictness, strong convexity and existence of a minimizer are different properties.