Riemannian Hessians and second-order conditions
Differentiate the gradient covariantly and retain the curvature correction that an ambient Hessian alone misses.
On this page
The question for today
What you’ll understand
- Define the intrinsic Hessian through the Levi–Civita connection.
- Compute the induced sphere Hessian including its normal-gradient correction.
- Distinguish necessary semidefiniteness, sufficient definiteness and retraction pullback effects.
Differentiating a gradient along a manifold requires comparing vectors in changing tangent spaces. The Levi–Civita connection performs that comparison consistently with the metric, producing a self-adjoint Riemannian Hessian. On an embedded manifold, differentiating a tangent projection creates terms that are absent from the ambient Hessian. Those terms can turn a positive ambient quadratic into a constrained saddle. A reliable second-order model must therefore use the intrinsic Hessian or a justified pullback equivalent, rather than simply restricting the ambient second derivative and ignoring normal curvature.
The connection differentiates tangent vector fields
For a twice continuously differentiable objective, the Riemannian Hessian maps a tangent η to the covariant derivative of grad f in direction η. The Levi–Civita connection makes its associated bilinear form symmetric. On a Euclidean embedded submanifold with induced metric, covariant differentiation projects the ambient derivative of a tangent field back onto the tangent space. This formula does not apply unchanged to a different metric: both the gradient and its compatible connection can change. The Hessian is intrinsic even when computed through an ambient extension.
On a sphere, differentiate grad f=Pₓ∇f̄ and then project. The derivative of Pₓ contributes a scalar normal-gradient correction multiplying η. Omitting it gives the wrong quadratic form unless that scalar vanishes at the point. More general embedded manifolds have an analogous Weingarten or second-fundamental-form contribution. The ambient extension can change its separate gradient and Hessian pieces, but the combined tangent expression for the restricted objective remains the same. This is a useful consistency check when an objective has several algebraically different extensions.
Pullback curvature includes acceleration
For a smooth curve c starting at x with velocity η, the second derivative of f(c(t)) is the Hessian quadratic form plus the gradient paired with the curve’s intrinsic acceleration. The radial curve of a retraction therefore has a pullback Hessian equal to the intrinsic Hessian at zero if the retraction is second order. At a critical point the acceleration term vanishes for every retraction, because the gradient is zero. Away from critical points, mere first-order retraction agreement is insufficient to identify second derivatives.
This distinction matters in numerical Hessian checks. A second-order Taylor error test along a first-order retraction may fail even when the covariant Hessian implementation is correct. Conversely, a finite-difference approximation of an ambient gradient that ignores transport and projector derivatives may appear plausible on one direction while missing the intrinsic correction. A sound check specifies the metric, retraction order and tangent direction, then compares the correct pullback expansion. Symmetry of the Hessian model should be tested in the metric used by the optimization subproblem.
Second-order tests are local and asymmetric
At a local minimum in a manifold without boundary, first-order necessity gives zero gradient and second-order necessity gives a positive-semidefinite Hessian on the entire tangent space. A positive-definite Hessian at a critical point is sufficient for a strict local minimum in finite dimensions. Semidefiniteness alone is not sufficient, and positive definiteness is not necessary: a flat fourth-order minimum can have zero Hessian. A negative Hessian direction at a critical point certifies a saddle or local maximum behavior rather than a second-order minimum.
For quadratic eigenvector objectives on spheres, the tangent Hessian at an eigenvector consists of differences between other eigenvalues and the selected one. Eigenvalue ordering therefore determines local minima, maxima and saddles even when every ambient eigenvalue is positive. Repeated eigenvalues can create zero-curvature directions and nonisolated solution sets. Algorithms seeking approximate second-order criticality must control both gradient norm and the smallest tangent-Hessian eigenvalue; a small gradient alone cannot distinguish a desired minimum from a saddle with an escape direction.
Work it through
A positive ambient quadratic has a sphere saddle
Let f(x)=xᵀAx/2 on S² with A=diag(1,3,5). Classify x=e₂ using the Riemannian gradient and Hessian, then compare e₁.
At e₂ the ambient gradient is 3e₂, entirely normal, so the projected gradient is zero. The tangent space is spanned by e₁ and e₃.
The sphere correction subtracts 3η from Aη on that tangent plane. The Hessian eigenvalues are therefore 1−3=−2 and 5−3=2, giving both descent and ascent curvature.
At e₁ the correction subtracts one, and tangent Hessian eigenvalues are 3−1=2 and 5−1=4. This critical point is a strict local minimum, unlike the saddle e₂.
The ambient Hessian A is positive definite everywhere, but its constrained intrinsic Hessian at e₂ is indefinite. The normal-gradient correction changes the classification.
The living notebook
Explore the model
Interactive lab · function
Inspect the two signs of a tangent quadratic model
Pause and Reset, then set coefficient a=−1,position x=0.50. Predict model value −0.25 and second derivative −2 for q(s)=−s². For a fresh comparison Reset and set a=1,x=0.50; predict +0.25 and second derivative +2. These are the one-dimensional Hessian-mode quadratics appearing at the worked saddle. The actual lab plots ax² and its derivative/integral, not a manifold Hessian or the full sphere objective.
- y at chosen x
- 0.608
- Tangent slope · 2ax
- 1.35
- Signed area · ax³/3
- 0.182
This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forA saddle can have opposite quadratic curvature along two tangent modes even when its first derivative vanishes.
Pause & reason
Check your understanding
Your turn
Try it yourself
Minimize f(x)=2x₃ on S² and compute the tangent Hessian at its minimizing point. Explain why the zero ambient Hessian does not mean zero intrinsic curvature.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
The minimum is at the negative vertical pole. Use the scalar xᵀ∇f in the sphere correction.
Compare with the solution
The minimum is −2 at x=−e₃. The ambient gradient is 2e₃, which is normal there, and the ambient Hessian is zero. Since xᵀ∇f=−2, the sphere Hessian is 0−(−2)η=2η for every tangent η in span(e₁,e₂). It is positive definite, agreeing with a strict constrained minimum. The curvature arises from moving along the sphere while restricting a linear ambient function, not from an ambient second derivative.
Keep the idea
Take it with you
- The intrinsic Hessian covariantly differentiates the metric gradient.
- Embedded formulas need curvature corrections from the changing tangent spaces.
- Pullback Hessians match intrinsically under second-order retractions or at critical points.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.