The Metric Tensor
A smooth manifold, on its own, is a forgetful object. It knows which functions are differentiable and what a tangent vector is — but it has no idea how long a vector is, whether two directions are perpendicular, or how far apart two points lie. Those are exactly the data a ruler and a protractor supply, and the metric tensor is the field of infinitesimal rulers-and-protractors that supplies them. At each point it is a bilinear form that is symmetric and nondegenerate, varying smoothly from point to point; in a chart it is a symmetric matrix-valued field transforming as a tensor. From this one gadget the whole of geometry unrolls. Contract it with a displacement twice and you get the line element , the squared length of an infinitesimal step; integrate its root for arc length, extremize that for geodesics. Its inverse raises and lowers indices, welding the tangent space to its dual. Demand a connection that is torsion-free and leaves constant and you get a unique one — Levi-Civita — whose coefficients, the Christoffel symbols, are built from first derivatives of ; push to second derivatives and out falls the Riemann tensor that decides whether the space is genuinely curved. Two warnings frame everything below. A metric that varies from point to point is not by itself curved — flat space in spherical coordinates has a position-dependent and zero curvature. And the signature of is an invariant: a Riemannian metric measures ordinary lengths, while a Lorentzian metric measures spacetime intervals and carves out the causal cones of relativity. In general relativity the metric stops being a fixed backdrop and becomes the dynamical field itself, so geometry and gravity are one.
- The metric tensor is a symmetric, nondegenerate rank-two covariant tensor field assigning an inner product to every tangent space, fixing lengths, angles, and volumes.
- The line element packages all local geometry; its components are the dot products of the basis vectors.
- The inverse (defined by ) gives the musical isomorphism — raising and lowering indices.
- Torsion-free plus metric-compatible uniquely fixes the Levi-Civita connection , hence geodesics and curvature.
- Signature is invariant: Riemannian length versus Lorentzian interval; the determinant gives the measure .
- A position-dependent is not curvature: flat in spherical coordinates has yet Riemann tensor zero; a true 2-sphere has .
- Key idea: A metric is a smoothly varying, symmetric, nondegenerate inner product on tangent spaces; it turns a bare differentiable manifold into a measurable geometry — lengths, angles, volumes, the vector-covector isomorphism, and, through metric compatibility with zero torsion, a unique connection and its curvature.
A metric is a smoothly varying, symmetric, nondegenerate inner product on tangent spaces; it converts the purely topological-differentiable manifold into a measurable geometry, fixing lengths, angles, volumes, the vector-covector isomorphism, and — by metric compatibility plus zero torsion — a unique connection and its curvature.
Where this lives today
The metric is measured in laboratories and read off telescopes every day. GPS is the everyday case: each satellite's clock runs fast against the ground by about 38 microseconds per day once the Schwarzschild redshift and the orbital-speed term are combined, and without that curved-spacetime correction positioning would drift by kilometres within a day. At the opposite extreme, LIGO and Virgo detect gravitational waves as oscillations of the spatial metric itself — a passing wave stretches one arm and squeezes the other by a strain , less than a thousandth of a proton's width over a four-kilometre arm, first caught in GW150914 in 2015. The Event Horizon Telescope images the photon ring predicted by the Schwarzschild and Kerr metrics around M87 and Sgr A*, and numerical relativity solves the Einstein equations for to predict merger waveforms. Far from gravity the same mathematics reappears as information geometry: the Fisher-Rao metric turns a family of probability distributions into a Riemannian manifold whose geodesics and volume element give coordinate-invariant notions of statistical distinguishability, now standard in machine learning and quantum information.
The physical picture
Picture the metric as a local ruler-and-protractor bolted to each point. Its whole job is to eat two infinitesimal arrows and return a number, . From that single bilinear operation you extract every metric quantity there is: lengths , angles , and volumes through the determinant factor . The components are just the pairwise dot products of the coordinate basis vectors, : where coordinate lines cross at right angles the off-diagonal entries vanish, and where a basis vector stretches — like the azimuthal far from the axis — the matching diagonal entry swells, as the first figure shows for the plane in polar coordinates.
At a single point you can always tidy the metric up: symmetry diagonalizes it and nondegeneracy rescales it, so by Sylvester's law of inertia there is a local orthonormal frame with . What you generally cannot do is make constant across a neighbourhood — the obstruction is precisely curvature, measured invariantly by whether triangles close the way Euclid promised. The sharpest demonstration is a triangle on a sphere: its angles overshoot , and the overshoot equals the enclosed area divided by . That is a real, calculable number carried entirely by the metric , and the second figure pins it down for the cleanest case.
In a Lorentzian metric the inner product is indefinite, so can be positive, negative, or zero, and that sign — not any coordinate label — sorts vectors into spacelike, timelike, and null. The causal skeleton of spacetime, light cones and all, is read straight off the signature of : one tensor field carries the entire local geometry — lengths, angles, volumes, the split of space from time, and the seed of curvature.
The core equations
The one indispensable formula is the line element: contract the metric with a displacement twice for the squared length of an infinitesimal step. Everything else here specializes, differentiates, or inverts it.
where: — squared length of the infinitesimal displacement ; — covariant metric components (a symmetric matrix field); — coordinate differentials; repeated indices summed (Einstein convention). Two algebraic properties make a metric rather than a generic tensor: symmetry is free (an antisymmetric part could never contribute to ), while nondegeneracy is the load-bearing assumption that guarantees an inverse.
where: — symmetry, so the matrix is diagonalizable with real eigenvalues; — nondegeneracy, so no nonzero vector is invisible to the inner product. The inverse metric is defined purely as the matrix inverse — never by "raising indices on ", which would just reproduce the identity.
where: — contravariant metric, the matrix inverse of ; — Kronecker delta, whose existence is exactly what nondegeneracy buys. With both and in hand the tangent space and its dual become interchangeable: lowering an index with turns a vector into a covector, raising with undoes it. This is the musical isomorphism.
where: — contravariant (tangent-vector) components; — covariant (covector / one-form) components. In an orthonormal frame , so upper and lower components coincide — which is why elementary vector calculus never needs the distinction. Because is a coordinate-independent scalar, the components must transform with two lower Jacobian factors — the defining law of a tensor.
where: — new coordinates; — Jacobian of the change of coordinates. Substitute into (1) and match, and the two factors are forced. Differentiating once produces the Christoffel symbols — the unique connection coefficients that are metric-compatible and torsion-free, the hinge between algebra and calculus on a manifold.
where: — Levi-Civita connection coefficients, symmetric in ; — first partial derivatives of the metric. vanishes wherever is constant. The property that singles out this connection is metric compatibility: the covariant derivative of is zero.
where: — covariant derivative with respect to the Levi-Civita connection. It guarantees lengths and angles survive parallel transport, so a unit vector stays a unit vector as you carry it around. The determinant of supplies the scalar density every covariant integral needs — the invariant volume element.
where: — determinant ; — absolute value (Lorentzian metrics have ); — coordinate volume. The factor makes the same number in every chart. Angles come from the same machine: in the Riemannian case, with Cauchy-Schwarz keeping the ratio in .
The goal is to prove a cornerstone of Riemannian geometry: on a manifold with a metric there is exactly one connection that is both torsion-free and metric-compatible, with coefficients fixed entirely by the metric through formula (6). We do not assume the answer; we impose the two conditions on an unknown and solve the resulting linear system, watching four of the six terms cancel by symmetry.
Step 1. Write out metric compatibility using the covariant-derivative rule for a tensor: . Why: this turns the geometric demand into an algebraic relation between derivatives of and the unknown connection.
Step 2. Cyclically permute the free indices to get a second copy, . Why: the identity holds for any ordering, and a second one gives an independent equation.
Step 3. Permute once more for a third copy, . Why: three equations in the symmetric derivative combinations are exactly enough to isolate a single .
Step 4. Form (Step 2) + (Step 3) − (Step 1). Using the torsion-free symmetry , four of the six terms cancel in pairs, leaving . Why: torsion-freeness is exactly the symmetry that annihilates the unwanted terms — both conditions are needed for uniqueness.
Step 5. Contract with the inverse metric to isolate , the boxed Christoffel formula. Why: nondegeneracy guarantees exists, so the solution is unique — one and only one Levi-Civita connection. *The result is symmetric in the lower pair and vanishes identically whenever is constant.*
Go deeper · Derivation B · 1 minThe geodesic equation from extremizing arc length
The aim is to show that the straightest curves — stationary paths of the length functional — obey an equation whose coefficients are exactly the Christoffel symbols, so geodesics are determined by alone. We vary the quadratic energy (equivalent to arc length for an affine parameter), push it through Euler-Lagrange, and watch the connection assemble itself from the metric derivatives.
Step 1. Apply the Euler-Lagrange equation to . Why: extremizing length is a variational problem, and Euler-Lagrange turns "stationary path" into a differential equation.
Step 2. Compute the pieces: and . Why: the second term survives only because depends on position — the source of all the connection terms.
Step 3. Differentiate the momentum along the curve: . Why: the chain rule splits it into an acceleration piece and a metric-variation piece.
Step 4. Substitute and symmetrize over (legal, since it multiplies the symmetric ): . Why: symmetrization is what conjures the three-term Christoffel combination from a single derivative.
Step 5. Contract with to free the acceleration: . Why: the bracket is precisely from the previous derivation — geodesics and Levi-Civita are one content. *As a check: when is constant all Christoffel symbols vanish and the equation reduces to , the straight lines of flat space.*
Go deeper · Derivation C · 1 minFlat space in spherical coordinates has zero curvature
The purpose is to demolish the most common beginner's error — reading curvature off the appearance of the metric. We take flat Euclidean in spherical coordinates, where is manifestly position-dependent, build its Christoffel symbols and Riemann tensor, and watch every curvature component cancel to exactly zero — confirming that curvature lives in the second-order structure of , not its coordinate dress.
Step 1. Start from and feed it into formula (6). The nonzero Christoffels are , , , , , . Why: these are nonzero purely because the coordinate basis rotates and stretches — a coordinate effect, not yet curvature.
Step 2. Assemble and test the component . Why: if any second-order component survived, the space would be curved.
Step 3. Its two surviving pieces are the derivative term and the quadratic term , entering with opposite sign. Why: both are individually nonzero, so the vanishing is a genuine cancellation, not an absence of terms.
Step 4. Add them: , and the same cancellation occurs for every component, so everywhere. Why: a nonconstant can hide but never create curvature — always check the Riemann tensor, not itself. *This confirms is globally flat. By contrast, on the genuine 2-sphere the analogous component is , giving .*
Limiting cases
The one metric formalism collapses onto every familiar geometry when fed the right components; the table maps abstract back to cases you already know.
| Case | Result | Meaning |
|---|---|---|
| Flat Euclidean (Cartesian) | ordinary Pythagorean space, ; all Christoffel symbols vanish | |
| Minkowski (Lorentzian) | flat spacetime; the signature splits time from space and gives the invariant interval | |
| Flat space, spherical coordinates | position-dependent yet zero curvature — nonconstant alone is not curvature | |
| Local inertial (Riemann normal) frame | at any point one can flatten to first order; the irreducible second-order remainder is the Riemann tensor | |
| 2-sphere of radius | a genuinely curved Riemannian metric, constant Gauss curvature , Ricci scalar |
Worked examples
1 · The round 2-sphere, end to end (fully worked)
Take the 2-sphere of radius with . Compute the metric, its inverse, the area element, the Christoffel symbols, the curvature, and the Gauss curvature — then read off the octant area.
Step 1. Read the components off the line element: , , off-diagonal zero. The determinant is , so and the area element is ; integrating over recovers the total area , as it must.
Step 2. Invert the diagonal metric — reciprocate each diagonal entry — to get and . This is the matrix inverse, not any index-raising trick.
Step 3. Feed into the Christoffel formula (6). Only two independent symbols survive: and . Everything carrying an index is gone (no direction), and the constant radius never differentiates.
Step 4. Compute the one independent Riemann component . The pieces are and ; summing gives — the sphere is genuinely curved.
Step 5. Contract to the scalars. The Ricci tensor is , so and the Gauss curvature is — constant, positive, shrinking as the sphere grows. As a payoff, Gauss-Bonnet gives the octant (three right angles) a spherical excess , so its area is — one-eighth of the sphere, with no integration needed.
2 · Schwarzschild time dilation from a single metric component
The Schwarzschild metric outside a mass has with . Estimate for the Earth and the Sun, and the rate at which a clock on Earth's surface runs slow relative to one infinitely far away.
Step 1. The Schwarzschild radius is . For Earth, and , so — Earth's mass squeezed inside about 8.9 mm would become a black hole.
Step 2. For the Sun, gives , the familiar 2.95 km Schwarzschild radius.
Step 3. A static clock ticks at the rate . At Earth's surface , so and .
Step 4. So a surface clock loses about against a clock at infinity — the same effect (opposite sign for higher, orbiting clocks) that forces GPS to correct its atomic clocks by tens of microseconds a day. Geometry from one metric component, measured routinely in orbit.
Physics of the portrait
The metric tensor has no single inventor, but it has a decisive one: the idea that geometry is carried by an intrinsic quadratic form, freed from any embedding, belongs to Bernhard Riemann.
Origins · 1 minBernhard Riemann and how this was discovered
Bernhard Riemann held his 1854 habilitation before the Göttingen faculty — with the aging Gauss, who had proposed the topic, in the audience — and in a lecture almost devoid of formulas ("Über die Hypothesen, welche der Geometrie zu Grunde liegen") he generalized Gauss's theory of curved surfaces to any dimension. His radical move was to define distance intrinsically, by a quadratic form living on the manifold itself with no ambient space, and from that single form he extracted a notion of curvature — anticipating by six decades the mathematics Einstein would need. Riemann could not yet compute freely with as a tensor: that language was forged by Christoffel, who in 1869 introduced the three-index symbols, and by Ricci-Curbastro and his student Levi-Civita, whose 1900 "absolute differential calculus" turned the vision into a working machinery of covariant derivatives and parallel transport. When Einstein reached for it in 1915, stopped describing a fixed space and became the gravitational field itself. Riemann died at thirty-nine, but the geometry that bears his name is now the language of gravitation, cosmology, and the shape of spacetime.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, Ch. 11 (differential geometry and tensors) · Arfken & Weber, Mathematical Methods for Physicists, tensors and curvilinear-coordinates chapters · Hassani, Mathematical Physics, Part on differential geometry · Nakahara, Geometry, Topology and Physics, Ch. 7 · Byron & Fuller, Mathematics of Classical and Quantum Physics, tensor chapter · Misner, Thorne & Wheeler, Gravitation, Ch. 8 · Wald, General Relativity, Ch. 3. Key results to keep in mind: the Christoffel formula follows from the (2)+(3)−(1) cyclic permutation of metric compatibility; the geodesic equation is recovered by Euler-Lagrange on ; spherical coordinates in give nonzero but ; on the 2-sphere , , , ; and (Earth), (Sun), with gravitational surface slowing .
Prerequisites. Tensor Algebra and the Tensor Product · Covariant and Contravariant Tensors · Manifolds and Tangent Spaces. Leads to. Raising and Lowering Indices · Christoffel Symbols and Affine Connections · Parallel Transport and Geodesics · The Riemann Curvature Tensor · Hodge Star and the Codifferential.
Ask the tutor: Ask me to work any metric you like — polar, cylindrical, the 2-sphere, Schwarzschild, or FRW cosmology — all the way from to its Christoffel symbols, geodesics, and curvature, step by step.
Is the metric tensor the same thing as the distance between two points?
Not quite — it is the infinitesimal ingredient from which distance is built. The metric gives , the squared length of a tiny step, at every point. To get the distance between two finite points you integrate along a curve joining them and minimize over all such curves; the minimizer is a geodesic and its length is the geodesic distance. So the metric is local and the distance is global — the metric alone does not pick a curve until you extremize. On a sphere, the same metric yields great-circle distances only after that minimization.
What is the difference between g_μν and g^μν, really?
They are matrix inverses of each other, and that is the whole story: . The lower-index turns a vector into a covector, and the upper-index raises one back. A frequent error is to think comes from "raising the indices on " — but raising both indices of using itself just returns . Compute the honest way: write as a matrix and invert it, which for a diagonal metric means reciprocating each diagonal entry.
If a nonconstant metric is not curvature, how do I actually detect curvature?
Compute the Riemann tensor from second derivatives of the metric (via the Christoffel symbols) and ask whether it is zero. If every component vanishes the space is flat, no matter how baroque looks; if any is nonzero the space is genuinely curved and no coordinate change can hide it. Because comparing full tensors is awkward, one usually checks coordinate-invariant scalars — the Ricci scalar and the Kretschmann scalar . Flat space in spherical coordinates has all of these zero; a 2-sphere of radius has , settling the question invariantly.
Why does metric compatibility ∇g = 0 matter physically?
It keeps geometry and calculus talking to each other. Metric compatibility means the covariant derivative of vanishes, so when you parallel-transport two vectors along any curve their inner product — hence their lengths and angle — stays constant. Without it, a connection could stretch or twist vectors as it slid them, and "unit vector" or "constant speed along a geodesic" would lose meaning. Combined with zero torsion it singles out a unique connection (Levi-Civita), which is why we can speak of "the" Christoffel symbols of a metric rather than choosing among many connections. It is what makes the affine and metric structures one geometry.
What does the signature of the metric tell me?
The signature is the pattern of plus and minus signs when the metric is diagonalized to s, and by Sylvester's law of inertia it is an invariant — no coordinate transformation can change it. A Riemannian signature makes every nonzero vector have positive squared length, so the metric measures ordinary distances. A Lorentzian signature lets be negative, positive, or zero, sorting vectors into timelike, spacelike, and null and building the light cones of relativity. That single minus sign is the entire difference between a length and a spacetime interval — why time is not just a fourth spatial direction.
Can I always make the metric look flat at a point?
At a single point, yes — always. Symmetry plus nondegeneracy let you diagonalize and rescale, so there exist coordinates (Riemann normal coordinates) with and even . This is the mathematical face of Einstein's equivalence principle: a freely falling observer sees locally flat spacetime, gravity "transformed away". What you cannot kill is the second derivatives — the irreducible remainder is the Riemann tensor, so curvature is exactly the obstruction to extending a local inertial frame over a finite region. Flat at a point and to first order, yes; true curvature always shows up at second order.