research33 min studyLesson 914 in Mathematics

Riemannian Hessians and second-order conditions

Differentiate the gradient covariantly and retain the curvature correction that an ambient Hessian alone misses.

On this page

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.

Hess⁡f(x)[η]=∇ηgrad⁡f,Hess⁡f(x)[η]=Px∇2fˉ(x)[η]−(x⊤∇fˉ(x))η(M=Sn−1)\operatorname{Hess}f(x)[\eta]=\nabla_\eta\operatorname{grad}f,\qquad\operatorname{Hess}f(x)[\eta]=P_x\nabla^2\bar f(x)[\eta]-(x^\top\nabla\bar f(x))\eta\quad(\mathcal M=S^{n-1})
The second formula assumes the induced sphere metric and η tangent. The scalar correction comes from differentiating the tangent projector.↔ Scroll wide equations horizontally.

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.

d2dt2f(c(t))∣0=gx(η,Hess⁡f(x)[η])+gx(grad⁡f(x),ac(0)),c(0)=x, c′(0)=η\left.\frac{d^2}{dt^2}f(c(t))\right|_0=g_x(\eta,\operatorname{Hess}f(x)[\eta])+g_x(\operatorname{grad}f(x),a_c(0)),\qquad c(0)=x,\ c'(0)=\eta
The vector a_c(0) is intrinsic acceleration. It vanishes for exponential curves and second-order retraction curves at zero, or its contribution vanishes at a critical point.↔ Scroll wide equations horizontally.

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.

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₁.

  1. At e₂ the ambient gradient is 3e₂, entirely normal, so the projected gradient is zero. The tangent space is spanned by e₁ and e₃.

  2. 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.

  3. 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 result

The ambient Hessian A is positive definite everywhere, but its constrained intrinsic Hessian at e₂ is indefinite. The normal-gradient correction changes the classification.

Explore the model

Interactive lab

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.

Inspect the two signs of a tangent quadratic modelThis 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. Current readings: y at chosen x: 0.608; Tangent slope · 2ax: 1.35; Signed area · ax³/3: 0.182. All parameters are adjustable with the labeled controls below.−2.4−1.201.22.4−9−4.504.59xy(x, ax²)
y = ax²TangentSigned integral
y at chosen x
0.608
Tangent slope · 2ax
1.35
Signed area · ax³/3
0.182
t = 0 s

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.

Check your understanding

At a noncritical point, when does a retraction pullback’s Hessian at zero equal the Riemannian Hessian?

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.

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.