Riemannian metrics and geodesics
Add lengths to a smooth manifold and distinguish locally straight motion from a globally shortest route.
On this page
The question for today
What you’ll understand
- Compute lengths using a declared positive-definite metric.
- State what the geodesic equation guarantees locally.
- Distinguish coordinate effects, completeness, and global minimization.
Smooth coordinates make differentiation possible, but they do not tell us which directions are long or perpendicular. A Riemannian metric supplies an inner product on every tangent space, varying smoothly from point to point. It turns a velocity into a speed and a path into a length. Geodesics then describe motion with no intrinsic acceleration. They generalize straight lines locally, yet a geodesic can travel far enough to stop being a shortest connection between its endpoints.
The metric is a field of inner products
A Riemannian metric is a smooth symmetric positive-definite bilinear form g at each point. Positive definiteness makes the squared length of every nonzero tangent vector strictly positive. In a chart it is represented by a symmetric matrix, but that matrix must transform with the coordinates. Rescaling a coordinate changes its metric coefficient rather than changing physical length. An indefinite Lorentzian metric is a different structure with different causal and variational interpretations, so the Riemannian shortest-length discussion does not transfer unchanged.
For a piecewise smooth curve, integrate the norm of its velocity to obtain length. The length is unchanged by an orientation-preserving smooth reparametrization of the same route. The metric also identifies covectors with vectors: if df has components ∂ᵢf, the gradient has components , where the superscript matrix is the inverse metric. Thus changing the metric changes what steepest ascent means, even when the function and its differential remain fixed.
Straightness is intrinsic, not a coordinate shape
The Levi-Civita connection associated with g defines covariant acceleration. A geodesic with an affine parameter has zero covariant acceleration and satisfies a second-order differential equation involving Christoffel coefficients. It need not have constant coordinate components. A straight line in the Euclidean plane looks curved in polar coordinates, while the plane remains intrinsically flat. On a round sphere, great circles are geodesics even though their embeddings curve visibly in three-dimensional space. Intrinsic and extrinsic curvature answer different questions.
Given a point and an initial tangent velocity, smoothness gives a unique local geodesic. A sufficiently short geodesic segment minimizes length between its endpoints in an appropriate normal neighborhood. A long segment need not minimize: following a great circle more than halfway around the unit sphere is longer than going the other way. The geodesic equation encodes a local stationary-path condition, not a promise that every solution is the unique global winner among all routes.
Global conclusions need global hypotheses
Removing a point from the Euclidean plane leaves a smooth Riemannian manifold, but a straight trajectory aimed at the missing point can end after finite parameter time. This manifold is geodesically incomplete. For a connected finite-dimensional Riemannian manifold without boundary, the Hopf-Rinow theorem relates metric completeness to geodesic completeness and guarantees a length-minimizing geodesic between any two points when the manifold is complete. The finite-dimensional Riemannian hypotheses are part of the statement.
Completeness does not imply uniqueness of a minimizing geodesic. Antipodal points on a sphere are joined by many equal-length semicircles. Nor does completeness force zero curvature or compactness; ordinary Euclidean space is complete and noncompact. When applying geometry to optimization or physical configuration spaces, specify whether a theorem is local, whether the domain has excluded boundaries, and whether a numerical path finder is seeking any stationary route or a global minimum.
Work it through
Measure and raise an index
On the plane choose the constant metric . Find the speed of v=(3,1) and the gradient corresponding to df=2dx+8dy.
The metric matrix is diag(1,4), so . The speed is √13. The path γ(t)=(3t,t), 0≤t≤1, therefore has length √13.
The inverse metric is diag(1,1/4). Applying it to the covector components (2,8) gives gradient components (2,2). No coordinate change was made; a metric converted one type of object to another.
Check the defining pairing on v: . Independently, df(v)=2·3+8·1=14, as required.
The speed is √13 and the gradient is (2,2). Treating the covector components as vector components would fail the metric pairing test.
The living notebook
Explore the model
Interactive lab · vectors
Declare which ruler the diagram uses
At a fixed magnitude, rotate the vector and compare its Cartesian projections. The displayed magnitude uses the ordinary Euclidean metric, so it stays fixed during rotation. Predict why the same coordinate vectors would have angle-dependent lengths under dx²+4dy². This is a comparison exercise: the lab does not change its metric, solve geodesics, or display a curved manifold.
- x component
- 1.393
- y component
- 0.975
- Magnitude
- 1.7
Playback traces a fixed vector and its projections. Angle and magnitude set the geometry; the moving marker does not change them. 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 plotted arrow has a declared ruler; coordinate components alone do not specify a Riemannian length.
Pause & reason
Check your understanding
Your turn
Try it yourself
In the Euclidean polar-coordinate metric , find the speed at r=3 of a velocity with components (ṙ,θ̇)=(0,2).
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Use the metric coefficient of the angular direction before taking a square root.
Compare with the solution
The squared speed is , so the speed is 6. The angular coordinate rate two is not a physical speed on its own. A coordinate circle has circumference scale set by r, even though this metric describes an intrinsically flat plane away from the polar-coordinate singularity.
Keep the idea
Take it with you
- A smooth positive-definite metric adds lengths and gradients to a manifold.
- Geodesics are intrinsically unaccelerated, with only local minimizing guarantees by default.
- Completeness and uniqueness are separate global questions.
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.