Differential Geometry
Riemannian Metric
g_p: TₚM × TₚM → ℝ — measures lengths, angles, and volumes on a manifold
A Riemannian metric on a smooth manifold M is a smoothly-varying inner product g_p on each tangent space TₚM. In local coordinates, g is represented by a positive-definite symmetric matrix g_ij(x). The metric defines: arc length of curve γ: ∫ √(g_γ(γ̇, γ̇)) dt; angle between vectors v, w: cos θ = g(v,w)/(‖v‖‖w‖); geodesics (locally length-minimizing curves) — solutions of geodesic equation γ̈^k + Γ^k_ij γ̇^i γ̇^j = 0 where Γ are the Christoffel symbols. Defined by Bernhard Riemann (1854 lecture Über die Hypothesen, welche der Geometrie zu Grunde liegen) — a foundational moment for modern geometry. Examples: Euclidean (g_ij = δ_ij on ℝⁿ), spherical (induced from ambient ℝ^(n+1)), hyperbolic (Poincaré disc with g = 4/(1−|z|²)² δ), Schwarzschild (rotating black holes). Foundation of general relativity (Lorentzian metric on 4D spacetime).
- Objectg_p: TₚM × TₚM → ℝ symmetric pos-def
- Local formg_ij(x) matrix
- Arc length∫√g(γ̇, γ̇) dt
- Geodesicγ̈^k + Γ^k_ij γ̇^i γ̇^j = 0
- DefinedRiemann 1854
- GRLorentzian metric on 4D spacetime
Watch the 60-second explainer
A condensed visual walkthrough — narrated, captioned, under a minute.
Why Riemannian metric matters
- General relativity. Spacetime is a 4D Lorentzian manifold; the metric tensor g_μν is the dynamical field. Einstein's equations R_μν − ½ g_μν R = 8πG T_μν / c⁴ determine the metric from matter; geodesics are world-lines of free-falling particles.
- Mesh processing and computer graphics. Discrete differential geometry on triangle meshes uses cotan-Laplacian metrics for parameterization, smoothing, and remeshing.
- Manifold learning. Many machine-learning data sets lie near low-dimensional submanifolds of ℝ^d. Diffusion maps, ISOMAP, and Riemannian gradient descent treat parameter space as Riemannian.
- Ricci flow and Perelman. Hamilton's Ricci flow ∂g/∂t = −2 Ric(g) deforms a metric toward uniform curvature. Perelman (2002–2003) used Ricci flow with surgery to prove the Poincaré conjecture; the only Fields Medal that has been declined.
- Optimization on manifolds. Many problems (Stiefel, Grassmann, SO(n)) live on manifolds; gradient descent generalizes via Riemannian gradient and exponential map.
- Information geometry. The Fisher information metric makes a parametrized family of probability distributions a Riemannian manifold; geodesics give natural-gradient descent.
- Robotics and motion planning. Configuration spaces are manifolds with metrics from kinetic energy; minimum-action paths are geodesics.
Formal definition
Let M be a smooth n-manifold. A Riemannian metric g is a smooth section of the symmetric tensor bundle T*M ⊗ T*M, such that for every p ∈ M, the bilinear form g_p: TₚM × TₚM → ℝ is symmetric and positive-definite. Equivalently, in any chart (U, x¹, ..., xⁿ), g is given by a smooth matrix-valued function:
g = g_ij(x) dx^i ⊗ dx^j (Einstein summation)
with g_ij = g_ji and (g_ij(x)) positive-definite for every x ∈ U. The matrix transforms tensorially under coordinate change: g'_kl = (∂x^i / ∂x'^k)(∂x^j / ∂x'^l) g_ij.
Arc length and distance
For a piecewise C¹ curve γ: [a, b] → M:
ℓ(γ) = ∫_a^b √(g_γ(t)(γ̇(t), γ̇(t))) dt
The distance d(p, q) between two points is the infimum of ℓ(γ) over all curves from p to q. (M, d) is a metric space. The Hopf–Rinow theorem says: for a connected Riemannian manifold, the following are equivalent: (i) (M, d) is complete; (ii) every closed bounded set is compact; (iii) geodesics extend for all time. Under any of these, every pair of points is joined by a length-minimizing geodesic.
Canonical examples
- Euclidean. M = ℝⁿ, g_ij = δ_ij. Geodesics are straight lines; curvature is zero everywhere.
- Round sphere. M = S² ⊂ ℝ³, g induced from ambient. In coordinates (φ, θ): g = R²(dφ² + sin²φ dθ²). Geodesics are great circles. Constant positive sectional curvature 1/R².
- Hyperbolic plane (Poincaré disc). M = {z ∈ ℂ : |z| < 1}, g = 4/(1 − |z|²)² (dx² + dy²). Geodesics are arcs of circles meeting the boundary at right angles. Constant negative curvature −1.
- Flat torus. M = ℝ²/ℤ², g = dx² + dy². Compact, flat (zero curvature), but not isometric to a subset of ℝ²; can't be embedded in ℝ³ flatly.
- Schwarzschild metric. Outside a non-rotating massive body of mass M: ds² = −(1 − r_s/r) c² dt² + (1 − r_s/r)⁻¹ dr² + r²(dθ² + sin²θ dφ²) with r_s = 2GM/c². Lorentzian, not Riemannian, but the spatial slices are Riemannian.
- Fubini–Study metric. On ℂP^n: the unique (up to scale) U(n+1)-invariant metric. Foundation of complex projective geometry and Calabi–Yau studies.
Christoffel symbols and the Levi-Civita connection
The fundamental theorem of Riemannian geometry: there is a unique connection ∇ on M that is (i) torsion-free and (ii) compatible with g (i.e., ∇g = 0). It's called the Levi-Civita connection. In coordinates:
Γ^k_ij = (1/2) g^{kl} (∂_i g_jl + ∂_j g_il − ∂_l g_ij)
where g^{ij} is the inverse matrix of g_ij. Christoffel symbols are not tensors — they vanish in normal coordinates at any chosen point and transform with an inhomogeneous correction. The covariant derivative of a vector field Y in direction X is (∇_X Y)^k = X^i (∂_i Y^k + Γ^k_ij Y^j).
Geodesics
A curve γ is a geodesic if its tangent is parallel-transported along itself: ∇_{γ̇} γ̇ = 0. In coordinates this becomes the geodesic equation:
d²x^k/dt² + Γ^k_ij(γ(t)) (dx^i/dt)(dx^j/dt) = 0
Equivalently, geodesics are critical points of the length functional or of the energy functional E(γ) = ½ ∫ g(γ̇, γ̇) dt. For initial conditions (p, v) ∈ TM, there's a unique geodesic γ with γ(0) = p, γ̇(0) = v on a maximal interval. The exponential map exp_p: TₚM → M sends v to γ_v(1) — the time-1 endpoint.
Curvature tensors
The Riemann curvature tensor:
R(X, Y) Z = ∇_X ∇_Y Z − ∇_Y ∇_X Z − ∇_{[X,Y]} Z
measures how covariant differentiation fails to commute. In coordinates:
R^l_{ijk} = ∂_i Γ^l_jk − ∂_j Γ^l_ik + Γ^l_im Γ^m_jk − Γ^l_jm Γ^m_ik
Contractions:
- Ricci tensor R_ij = R^k_{ikj}, symmetric (n × n) matrix.
- Scalar curvature R = g^{ij} R_ij, a single number at each point.
- Sectional curvature K(σ) for a 2-plane σ ⊂ TₚM: K(σ) = R(X, Y, X, Y) / (‖X‖²‖Y‖² − ⟨X, Y⟩²) for any basis X, Y of σ.
Constant sectional curvature: model spaces — sphere (K > 0), Euclidean (K = 0), hyperbolic (K < 0).
Volume form
The metric induces a volume form on an orientable manifold:
dV = √(det g_ij) dx¹ ∧ ... ∧ dxⁿ
Total volume Vol(M) = ∫_M dV. For a sphere S² of radius R: dV = R² sin φ dφ dθ; total area 4πR². The volume form is invariant under isometries — the natural measure for integration on a Riemannian manifold.
General relativity
In GR, spacetime is a 4D Lorentzian manifold — signature (−, +, +, +) so that g(v, v) can be negative. Tangent vectors are classified:
- Timelike: g(v, v) < 0. Worldlines of massive particles.
- Null: g(v, v) = 0. Light rays.
- Spacelike: g(v, v) > 0. Spatial separations.
The Einstein field equations R_μν − ½ g_μν R + Λ g_μν = (8πG/c⁴) T_μν are second-order PDEs for g_μν. Free-falling particles follow timelike geodesics; light follows null geodesics. Gravitational time dilation, perihelion precession of Mercury, gravitational lensing, and gravitational waves all emerge from the geometry.
Ricci flow
Hamilton (1982) introduced Ricci flow:
∂g_ij/∂t = −2 R_ij(g)
An evolution equation for the metric, analogous to the heat equation for functions. Tends to homogenize curvature. Perelman (2002–2003) used Ricci flow with surgery — pinching off neck-like singularities — to prove Thurston's geometrization conjecture, which implies the Poincaré conjecture: every simply connected closed 3-manifold is homeomorphic to S³. Earned a Fields Medal Perelman declined.
Common misconceptions
- "A metric is a function." A Riemannian metric is a (0, 2)-tensor field — a section of T*M ⊗ T*M. At each point it's a bilinear form; varying smoothly across M.
- "Always Euclidean locally." Locally, you can find normal coordinates where g_ij = δ_ij at one point, but the second derivatives encode curvature and can't be eliminated. Manifolds are flat only if the Riemann tensor vanishes everywhere.
- "Only for surfaces." Riemannian geometry works in any dimension; GR uses dimension 4, string theory uses 10 or 11.
- "Metric = distance." The metric tensor g defines distances by integrating along curves — distance is a derived notion. Two metrics can give the same distance function (conformally equivalent metrics agree on angles, not lengths).
- "Geodesics minimize globally." Only locally. Going the long way around the equator solves the same geodesic equation but isn't a global minimizer.
- "Christoffel symbols are tensors." No — they transform inhomogeneously. The covariant derivative ∇ is the geometrically meaningful object; Christoffels are coordinate components of ∇ minus the partial derivatives.
- "Lorentzian = Riemannian with extra signs." Mathematically yes (signature change), but the analytic theory differs sharply: Lorentzian metrics have causal structure, light cones, and singularities not present in Riemannian geometry.
Frequently asked questions
What does a Riemannian metric mean intuitively?
It tells you how to measure on a curved space the way you'd measure on flat space. At each point p, the metric g_p picks out, for any two tangent vectors v and w, a real number g_p(v, w) — their 'inner product at p'. From this you get lengths ‖v‖ = √g(v,v), angles cos θ = g(v,w)/(‖v‖‖w‖), arc lengths of curves by integrating ‖γ̇‖, and ultimately distances, areas, and volumes. Without a metric, a manifold is just rubbery — no notion of size.
How do you compute arc length?
For a smooth curve γ: [a, b] → M, arc length is ℓ(γ) = ∫_a^b √(g_γ(t)(γ̇(t), γ̇(t))) dt. In coordinates this is ∫ √(g_ij(x) dx^i/dt · dx^j/dt) dt. For a circle of radius R on the sphere parameterized by latitude φ at fixed longitude, with the round metric ds² = R²(dφ² + sin²φ dθ²), the equator has length 2πR and any meridian also has length 2πR. The arc length is invariant under reparameterization.
What is a geodesic and why does it minimize length?
A geodesic is a curve γ that locally minimizes arc length — equivalently, parallel-transports its own tangent vector. Critical points of the length functional, computed by Euler-Lagrange equations, satisfy γ̈^k + Γ^k_ij γ̇^i γ̇^j = 0, the geodesic equation. On the sphere, geodesics are great circles. Locally they minimize, but globally they may not — the long way around a great circle has the same equation. Hopf-Rinow theorem: for complete metric, any two points are joined by a length-minimizing geodesic.
What are Christoffel symbols Γ^k_ij?
Γ^k_ij are the components of the Levi-Civita connection in coordinates: Γ^k_ij = ½ g^{kl}(∂_i g_jl + ∂_j g_il − ∂_l g_ij). They tell you how to differentiate vector fields covariantly along the manifold — accounting for the curvature so that the result is itself a tensor. Christoffels appear in the geodesic equation, the covariant derivative ∇_X Y, and the curvature tensor. They are NOT a tensor — their transformation rule has a non-tensor inhomogeneous part.
What is curvature in this language (Riemann tensor)?
The Riemann curvature tensor R^l_ijk = ∂_i Γ^l_jk − ∂_j Γ^l_ik + Γ^l_im Γ^m_jk − Γ^l_jm Γ^m_ik measures how parallel transport around an infinitesimal loop fails to return a vector to itself. Contractions give Ricci tensor R_ij = R^k_ikj and scalar curvature R = g^ij R_ij. Riemann zero ⇔ flat (locally Euclidean). Sectional curvature K(σ) = R(X, Y, X, Y)/(‖X‖²‖Y‖² − ⟨X,Y⟩²) for a 2-plane σ generalizes Gaussian curvature.
How does general relativity use a Lorentzian metric?
GR uses a Lorentzian metric on 4D spacetime — signature (−, +, +, +) instead of all-positive. Tangent vectors are timelike (g(v,v) < 0), null (g(v,v) = 0), or spacelike (g(v,v) > 0). Free-falling particles follow timelike geodesics; light follows null geodesics. The Einstein field equations R_μν − ½ g_μν R = 8πG T_μν determine the metric from matter content. The Schwarzschild solution describes a non-rotating black hole; Kerr handles rotation. Without Riemannian/Lorentzian geometry, GR doesn't exist.