A metric tensor is a mathematical structure that specifies local geometric measurements on a smooth manifold. It assigns a symmetric, nondegenerate bilinear form to each tangent space, varying smoothly from point to point. A positive-definite metric defines lengths and angles in Riemannian geometry; an indefinite metric underlies pseudo-Riemannian geometry, including the geometry of spacetime. It is a central object in differential geometry and general relativity. (damtp.cam.ac.uk)
Definition and algebraic structure
At a point of an -dimensional manifold , the metric is a map
It is linear in each argument and symmetric:
Nondegeneracy means that if for every , then . The tangent space is a vector space, so these conditions are statements about bilinear algebra at each point. Globally, is a covariant tensor field of type , rather than merely an array of numbers. (damtp.cam.ac.uk)
A Riemannian metric additionally satisfies for every nonzero . Thus it supplies an inner product on every tangent space. A pseudo-Riemannian metric permits positive and negative squared norms while retaining nondegeneracy. Its signature records the numbers of positive and negative directions in a diagonalized basis. A Lorentzian metric has one direction of one sign and all remaining directions of the opposite sign. Nonzero vectors with zero squared norm are possible in this indefinite setting. (damtp.cam.ac.uk)
Coordinate representation
In local coordinates , the coordinate vectors form a basis, and
Here denotes the tensor product, and repeated indices are summed according to the Einstein summation convention. The components constitute a symmetric matrix with independent entries. For tangent vectors and ,
The associated line element is conventionally written . (damtp.cam.ac.uk)
Under a coordinate change ,
Although the entries change, the bilinear pairing and line element do not. The transformation uses the Jacobian matrix of the inverse coordinate change. Consequently, a metric tensor is a coordinate-independent geometric object; its component matrix is only one representation of it. (damtp.cam.ac.uk)
Length, angle, and distance
For a Riemannian metric, a tangent vector has norm
and nonzero vectors have an angle determined by
The length of a piecewise smooth curve is the integral
This length is unchanged by regular reparametrization. On a connected manifold, taking the infimum of curve lengths between two points defines a distance function. (damtp.cam.ac.uk)
The distinction from a metric-space metric is important: pairs tangent vectors at one point, whereas a distance function pairs points of the manifold. Riemannian geometry constructs the latter from the former. An indefinite spacetime metric does not directly define an ordinary metric-space distance through the same positive-length construction. (people.maths.ox.ac.uk)
Examples
In Cartesian coordinates on Euclidean space, , the identity matrix, producing the usual Euclidean distance. In polar coordinates on the plane,
These nonconstant components describe the same flat geometry, demonstrating that coordinate-dependent entries do not by themselves establish curvature. (people.maths.ox.ac.uk)
For a sphere of radius , the metric inherited from surrounding Euclidean space is
where is colatitude. The spherical-coordinate description breaks down at the poles, although the metric itself remains smooth there. More generally, restricting an ambient Riemannian metric to tangent vectors of an embedded submanifold produces an induced metric. (people.maths.ox.ac.uk)
Inverse metric and geometric differentiation
Nondegeneracy guarantees an inverse matrix , characterized by
The metric identifies a tangent space with its dual space, converting vectors into covectors and conversely:
These operations are called lowering and raising indices. They also enable tensor contractions involving two indices of the same variance. (preposterousuniverse.com)
A metric uniquely determines the Levi-Civita connection, which is torsion-free and metric-compatible: . Its coefficients are
This connection defines the covariant derivative. Its curvature is the Riemann curvature tensor, which depends on the metric, its inverse, and its first and second coordinate derivatives. (people.maths.ox.ac.uk)
Affinely parametrized geodesics satisfy
Riemannian geodesics minimize length locally over sufficiently short segments, but need not minimize it globally. The metric also determines the invariant volume density
where the determinant compensates for coordinate changes. (people.maths.ox.ac.uk)
Role in general relativity
General relativity describes spacetime using a four-dimensional Lorentzian metric. With signature , flat spacetime has
where is the speed of light. Negative, positive, and zero squared intervals correspond locally to timelike, spacelike, and null directions. Along a timelike worldline, proper time satisfies . (preposterousuniverse.com)
The metric represents the gravitational field, rather than serving only as a fixed background. The Einstein field equations relate curvature derived from it to matter and energy. Freely falling test particles follow timelike geodesics, while light propagation follows null geodesics in the geometric-optics approximation. (damtp.cam.ac.uk)