Riemannian Metrics and Geodesics
A Riemannian metric is a smoothly varying inner product on the tangent spaces of a manifold, and geodesics are its locally length-minimizing curves — the manifold's intrinsic notion of "straight lines." Key result: geodesics satisfy a second-order ODE (the geodesic equation) determined by the Christoffel symbols of the metric, and they are exactly the critical points of the energy/length functional. Applies wherever curved spaces appear: general relativity, geometric optics, optimization on manifolds, shape analysis, and pure differential geometry. Introduced by Bernhard Riemann (1854) and developed by Christoffel, Ricci, Levi-Civita, and Cartan.
A Riemannian metric on a smooth manifold assigns to each point a positive-definite symmetric bilinear form on the tangent space , varying smoothly with . This single structure lets one measure lengths of curves, angles between vectors, volumes of regions, and ultimately curvature — turning bare topology into geometry. Geodesics are the curves that locally minimize length (equivalently, that have zero covariant acceleration), generalizing straight lines to curved spaces. The surprising fact: although the metric is purely local data, it rigidly determines global phenomena — through the Hopf–Rinow theorem, geodesic completeness, conjugate points, and the way curvature forces geodesics to focus or spread. Riemannian geometry is the mathematical backbone of Einstein's general relativity and modern geometric analysis.
The Core Insight
Give each tangent space an inner product, and all of metric geometry follows: lengths via integration of speed, distance via infimum over paths, "straight lines" via the variational principle, and curvature via how nearby geodesics fail to stay parallel. The metric is the only input; the Levi-Civita connection, geodesics, and curvature are uniquely forced by compatibility and symmetry.
Formal Statement
Riemannian Metric
Let be a smooth -dimensional manifold. A Riemannian metric is a smooth -tensor field such that each is symmetric and positive-definite. In local coordinates with coordinate basis , the metric is encoded by the component matrix :
The pair is a Riemannian manifold. The squared norm and inner product of tangent vectors at are
Length, Energy, and Riemannian Distance
For a piecewise-smooth curve , define its length and energy:
The Riemannian distance between is the infimum of lengths over connecting curves:
Levi-Civita Connection and Christoffel Symbols
There is a unique affine connection that is torsion-free () and metric-compatible (): the Levi-Civita connection. Its Christoffel symbols in coordinates are
where denotes the inverse matrix, .
Geodesic Equation
A curve is a geodesic (zero covariant acceleration, ) iff its components satisfy
Geodesics are precisely the critical points of the energy functional , and (after arclength reparametrization) the locally length-minimizing curves. They have constant speed: is conserved along .
Why It Holds / Derivation
Geodesics from the Energy Functional
We show that critical points of satisfy the geodesic equation, justifying the second-order ODE intrinsically.
Step 1 — Variation setup. Let be a smooth one-parameter family with fixed endpoints, , variation field vanishing at . The energy isBernhard Riemann | 1826–1866
In his 1854 Göttingen habilitation lecture Über die Hypothesen, welche der Geometrie zu Grunde liegen ("On the Hypotheses which lie at the Foundations of Geometry"), delivered before an audience including Gauss, Riemann introduced the concept of an -dimensional manifold equipped with a positive-definite quadratic form measuring infinitesimal length — what we now call a Riemannian metric. He proposed that the geometry of physical space is an empirical question determined by its curvature, anticipating general relativity by six decades. Riemann gave the curvature in terms of the metric and treated geodesics as the analog of straight lines, though the explicit machinery (Christoffel symbols, covariant differentiation, the tensor calculus) was supplied later by Christoffel (1869), Ricci-Curbastro, and Levi-Civita (1900).
Building Intuition
Imagine an ant living on a curved surface that cannot see the ambient space — it has access only to a ruler (the metric) measuring distances within the surface. To walk "as straight as possible," the ant minimizes turning: at each instant it never veers left or right intrinsically. That is exactly — the acceleration has no component tangent to the surface; any acceleration is purely the unavoidable bending needed to stay on the surface. The Christoffel symbols are the "correction terms" that tell the ant how the coordinate grid itself curves, so that subtracting them isolates true geometric acceleration. On a sphere, great circles are geodesics; on a flat plane, ordinary straight lines. Curvature reveals itself when you release two ants walking parallel from a baseline: on a sphere they converge (positive curvature), on a saddle they diverge (negative curvature). Geodesics minimize length only locally — over long distances a great circle path is beaten by going the other way around.
Geodesics on a sphere: two great-circle arcs from p; the shorter one is the minimizer. Parallel geodesics converge under positive curvature.
Worked Examples
Geodesics on the 2-Sphere of Radius R
Given. The round sphere in spherical coordinates , colatitude , longitude . The induced metric isGeodesics in the Hyperbolic Upper Half-Plane
Given. The Poincaré upper half-plane with metricCommon Misconceptions
"Geodesics are always the shortest paths." False globally. Geodesics are only locally length-minimizing. Past a conjugate point or cut point, a geodesic ceases to minimize: on the sphere, a great-circle arc longer than is no longer the shortest path between its endpoints. Geodesics are critical points of energy, not necessarily minima. "The metric determines distances, so it must be the Euclidean dot product in some coordinates." False in general. A metric can be brought to the identity at a single point (orthonormal frame) and even to "flat to second order" (normal coordinates), but it can be flattened in a whole neighborhood iff the Riemann curvature tensor vanishes there. "Energy and length minimizers are the same." They give the same images but length is reparametrization-invariant while energy is not — energy minimizers are automatically constant-speed (affinely parametrized) geodesics, whereas length minimizers can be parametrized arbitrarily. This is why one usually varies , not . Incompleteness wrecks existence of minimizers. Take the punctured plane with the flat Euclidean metric. The points and have (the infimum), but the straight segment realizing it passes through the missing origin. No geodesic of length 2 exists in ; minimizing sequences leave every compact set. This shows the Hopf–Rinow hypothesis (geodesic or metric completeness) is essential: on a complete Riemannian manifold any two points are joined by a minimizing geodesic, but completeness cannot be dropped.Connections
Riemannian metrics sit at the crossroads of several theories. The metric uniquely determines the Levi-Civita Connection, from which the Riemann Curvature Tensor is built; curvature in turn governs geodesic behavior via the Jacobi Equation and conjugate points. The variational viewpoint links geodesics to Calculus of Variations and the Euler–Lagrange formalism, and the energy functional connects to Morse Theory (geodesics as critical points of on the path space, with index = number of conjugate points). The distance function makes a Metric Space, bridging to metric geometry and Gromov–Hausdorff Convergence. In physics, the Lorentzian analog underlies General Relativity, where geodesics are the worldlines of free-falling particles. Optimization on the manifold of positive-definite matrices, on Lie groups, and on Stiefel/Grassmann manifolds all use Riemannian Optimization built on this same machinery.
Real-World Applications
- General Relativity (Einstein, 1915). Spacetime is a Lorentzian 4-manifold; freely falling bodies and light rays follow geodesics of the metric . GPS satellites must correct for the resulting time dilation (~38 µs/day) or positions would drift kilometers daily.
- Geometric Optics / Fermat's Principle. Light in a medium of refractive index follows geodesics of the conformal metric ; this explains mirages and gradient-index lenses.
- Robotics & Path Planning. Configuration spaces of robots are manifolds; shortest collision-free motions are geodesics in suitably penalized metrics, used in motion planning and minimum-energy trajectories.
- Medical Imaging (DTI). Diffusion tensor MRI encodes water diffusion as a metric in each voxel; tractography traces neural fibers as geodesics through the brain's white matter.
- Machine Learning / Information Geometry. The Fisher information metric makes a statistical model a Riemannian manifold; natural gradient descent follows geodesic-aware directions, and geodesic distances quantify model separation.
- Computer Graphics & Shape Analysis. Geodesic distances on triangulated surfaces (heat method, fast marching) drive texture mapping, mesh parameterization, and shape correspondence.
- Riemannian Optimization. Algorithms on manifolds of orthogonal matrices, SPD matrices, and low-rank factorizations use geodesics (or retractions approximating them) for problems in PCA, dictionary learning, and quantum control.
Historical Development
- 1827 — Gauss, Disquisitiones generales circa superficies curvas. Introduces the first fundamental form (metric of a surface) and proves the Theorema Egregium: Gaussian curvature is intrinsic, computable from the metric alone.
- 1854 — Riemann, habilitation lecture at Göttingen. Defines -dimensional manifolds with an infinitesimal length form and the notion of curvature for higher dimensions.
- 1869 — Christoffel introduces the symbols and the covariant transformation rules central to tensor calculus.
- 1888–1901 — Ricci-Curbastro & Levi-Civita develop the absolute differential calculus (tensor analysis), systematizing covariant differentiation and the curvature tensor.
- 1900 — Bianchi publishes the differential identities (Bianchi identities) for the curvature tensor.
- 1915 — Einstein uses Riemannian (Lorentzian) geometry as the language of general relativity, with geodesics modeling free fall and the field equations relating curvature to matter.
- 1917 — Levi-Civita defines parallel transport, giving geometric meaning to the connection and clarifying the role of curvature as holonomy.
- 1926 — Élie Cartan reformulates the subject with moving frames and differential forms; introduces symmetric spaces and the modern global perspective.
- 1931 — Hopf & Rinow prove the equivalence of geodesic completeness, metric completeness, and the geodesic-connectedness of complete manifolds.
Subtleties & Limits
Even with a complete classical theory, deep questions persist. The closed-geodesic problem: does every closed Riemannian manifold admit infinitely many distinct prime closed geodesics? This is known for surfaces (Bangert–Franks, 1992, via dynamics) and many cases, but remains open in general for higher dimensions, e.g. it is not fully settled for all metrics on , . Spectral rigidity / "Can one hear the shape of a drum?" asks how much of the metric is determined by the Laplace spectrum; isospectral non-isometric manifolds exist (Milnor 1964, Gordon–Webb–Wolpert 1992), so the metric is not fully recoverable from eigenvalues. The boundary rigidity and geodesic X-ray transform problems — whether boundary distance data determine the interior metric — are central in inverse problems and only partially resolved (Pestov–Uhlmann for simple surfaces). In optimal transport and metric measure spaces, extending Ricci curvature bounds to non-smooth spaces (the Lott–Sturm–Villani synthetic theory) actively generalizes geodesic geometry beyond manifolds.