Physics
Graduategeneral-relativity

Curved Spacetime and the Metric Tensor

Gravity can be erased at any single point by letting go, and yet it cannot be erased everywhere at once. Exactly one mathematical structure has that peculiar signature — and it is not a force field, it is a geometry.

Before this, you should know:

Release two ball bearings side by side, a hundred metres apart, high above the ground, and watch them fall.

According to the equivalence principle, each one individually is doing nothing at all: ride along with either bearing and you are in a perfectly good inertial frame, with no gravity in it anywhere. Drop a third bearing next to the one you're riding and it just floats there beside you. Every local experiment says: no gravity here.

And yet the two bearings, a hundred metres apart, slowly drift toward each other. They must — both are falling toward the same center of the Earth, so their paths converge. Ride along with the left one and you will see the right one accelerate gently sideways toward you, for no reason you can locally account for. Ride the right one and you see the mirror image. Neither of you feels any force. Neither of you can find a frame in which nothing is happening between you.

That drift is the leftover. It is the part of gravity that no choice of reference frame removes, and it is therefore the only part with a right to be called real. Everything the equivalence principle let us delete — the weight, the 9.81 m/s29.81\ \text{m/s}^2, the whole apparent downward pull — was frame-dependent bookkeeping. What remains is a statement about relative motion of neighbouring free-fallers: initially parallel free-fall trajectories do not stay parallel.

Read that last sentence again, but pretend you have never heard of gravity. Initially parallel straight lines that fail to stay parallel. That is not a sentence about forces. That is the definition of a curved space.

Two ways of being fictitious, and the difference between them

Before committing to the geometric picture, it's worth being precise about what the equivalence principle did and did not establish, because there is a trap here that catches people.

The centrifugal force in a rotating frame is purely an artifact: transform to the non-rotating frame and it is gone, everywhere, permanently, in one step. Gravity is not like that. You can transform it away at a point (fall freely), but the transformation that kills it at your location does not kill it at your neighbour's. There is no single global coordinate change that removes gravity from all of space at once — because if there were, the two ball bearings would not converge.

So gravity sits in a strange middle ground: locally removable, globally not. And the trap is to conclude, from the local removability, that gravity is "just" a coordinate effect, or from the global irremovability, that it must "really" be a force after all. Both conclusions are wrong. The correct conclusion is the one that fits both facts, and to see what it is, look at what happened in tensor calculus when we merely switched to polar coordinates on an ordinary flat plane.

There, the line element came out as

ds2=dr2+r2dθ2,ds^2 = dr^2 + r^2\,d\theta^2,

so the metric components were

gij=(100r2),g_{ij} = \begin{pmatrix}1&0\\0&r^2\end{pmatrix},

which is emphatically not the identity matrix, and which varies from point to point. A particle moving in a straight line at constant speed across that plane has, in these coordinates, non-constant r¨\ddot r and θ¨\ddot\theta — it looks accelerated, and if you insisted on Newtonian language you would say a force was acting on it. That "force" is entirely an artifact of the coordinate grid: the plane is flat, the particle is going straight, and a single global change of coordinates back to Cartesian (x,y)(x,y) removes the whole apparent effect at every point simultaneously.

So a position-dependent metric does not by itself mean curvature. This is the single most common misunderstanding in the subject and it is worth nailing down: gijg_{ij} having non-constant components can mean nothing more than that you chose curvy coordinates on a flat space.

Curvature is the statement that no coordinate change works. It is the failure of the metric to be reducible to constant components over a finite region, no matter how cleverly you re-coordinate. On the flat plane in polar coordinates, the map x=rcosθ, y=rsinθx=r\cos\theta,\ y=r\sin\theta exists and flattens everything. On a sphere, no such map exists — and the test that proves it needs nothing but a tape measure.

Two panels. Left: a flat plane with a faint polar grid, a marked center point, an amber arrow of length rho drawn from the center to a heavy blue circle, and the label C equals two pi rho exactly. Right: a sphere with a faint dashed equator and two faint meridian arcs, a marked north pole, a short amber arrow running down the surface from the pole labeled rho, and a heavy blue circle of latitude drawn as a flattened ellipse, labeled C equals two pi a sine of rho over a, which is less than two pi rho.

The same experiment on a flat plane and on a sphere: walk out the same distance in every direction and measure the circumference of the circle you reach. On the plane you always get two pi times the distance walked. On the sphere you always get less — and since both the circumference and the distance walked are invariant lengths, no choice of coordinates can make the shortfall go away.

That is exactly the structure the two ball bearings demanded. Locally: choose freely falling coordinates and gravity vanishes (the metric becomes constant at your point). Globally: it cannot vanish everywhere (the metric cannot be made constant over a region). Gravity is curvature. Not "like" curvature, not "analogous to" curvature — the same thing.

From the flat interval to a general metric

Special relativity built one invariant out of space and time. Two events separated by Δt\Delta t and Δx,Δy,Δz\Delta x,\Delta y,\Delta z in some inertial frame have

s2=(cΔt)2(Δx)2(Δy)2(Δz)2,s^2 = (c\Delta t)^2 - (\Delta x)^2 - (\Delta y)^2 - (\Delta z)^2,

and the whole point of that page's central derivation was that every inertial observer computes the same s2s^2, even while disagreeing about all of the ingredients separately.

From here onward we write the same object infinitesimally, and with the overall sign flipped:

ds2=c2dt2+dx2+dy2+dz2.ds^2 = -c^2dt^2 + dx^2 + dy^2 + dz^2.

A word on that sign, because sloppiness about it causes real errors. The two expressions differ by an overall factor of 1-1 (ds2=s2ds^2 = -s^2 for infinitesimal separations); which one you call "the interval" is pure convention, and no physical statement depends on the choice. What does depend on it is every explicit sign you will write for the rest of this track, so we fix it once: the signature used here is (,+,+,+)(-,+,+,+), timelike separations have ds2<0ds^2<0, spacelike separations have ds2>0ds^2>0. The reason for preferring it in general relativity is that the spatial part then reduces to the ordinary positive Euclidean dx2+dy2+dz2dx^2+dy^2+dz^2, which is exactly the ds2=gijdxidxjds^2=g_{ij}dx^idx^j that tensor calculus built for spatial geometry. Purely spatial formulas carry over unchanged; only the time slot is unusual.

Now introduce the index notation from that same page. Label the four spacetime coordinates

xμ=(x0,x1,x2,x3)=(ct, x, y, z),x^\mu = (x^0, x^1, x^2, x^3) = (ct,\ x,\ y,\ z),

with Greek indices running 00 to 33 (Latin indices, when they appear, run over the three spatial values only). Absorbing the cc into x0x^0 means every coordinate has units of length, which keeps the metric components dimensionless. Then flat spacetime has the line element

ds2=ημνdxμdxν,ημν=(1000010000100001),ds^2 = \eta_{\mu\nu}\,dx^\mu dx^\nu, \qquad \eta_{\mu\nu} = \begin{pmatrix}-1&0&0&0\\0&1&0&0\\0&0&1&0\\0&0&0&1\end{pmatrix},

with the Einstein summation convention doing its usual work: the repeated upper-lower pairs on μ\mu and ν\nu are summed, sixteen terms in all, twelve of which vanish here. This particular metric is called the Minkowski metric, and it is the special-relativistic interval written as a tensor equation.

And now the generalization, which is a single act of erasure. Delete the requirement that the metric be ημν\eta_{\mu\nu}. Allow it to be any symmetric, position-dependent tensor gμν(x)g_{\mu\nu}(x):

 ds2=gμν(x)dxμdxν. \boxed{\ ds^2 = g_{\mu\nu}(x)\,dx^\mu dx^\nu.\ }

This is the central object of general relativity, and there is nothing in it that tensor calculus did not already supply. The metric tensor gμνg_{\mu\nu} is a symmetric (0,2)(0,2) tensor, so it has 1010 independent components rather than 1616 (gμν=gνμg_{\mu\nu}=g_{\nu\mu} because dxμdxνdx^\mu dx^\nu is symmetric, so any antisymmetric part would contribute nothing). It lowers indices, Vμ=gμνVνV_\mu = g_{\mu\nu}V^\nu. Its matrix inverse gμνg^{\mu\nu}, defined by gμνgνρ=δρμg^{\mu\nu}g_{\nu\rho}=\delta^\mu_\rho, raises them. It converts a bare coordinate velocity into an invariant — exactly the job it did in producing r˙2+r2θ˙2\dot r^2 + r^2\dot\theta^2 from (r˙,θ˙)(\dot r,\dot\theta) in that page's worked example.

What is genuinely new is not the mathematics. It is the physical claim attached to it:

gμν(x)g_{\mu\nu}(x) is not a fixed background. It is a dynamical field, it is what we have been calling the gravitational field, and there is no such thing as "the" metric of spacetime independent of what matter is in it.

Ten functions of four variables, replacing Newton's single potential Φ\Phi. That is a lot of new freedom, and finding the equation those ten functions obey is what the Einstein field equations are for.

Local flatness: the equivalence principle as a theorem about gμνg_{\mu\nu}

The geometric picture has to reproduce the equivalence principle, and it does, exactly and provably.

Pick any point PP in any spacetime, however violently curved. Then there exists a coordinate system in which, at PP,

gμν(P)=ημν,gμνxρP=0.g_{\mu\nu}(P) = \eta_{\mu\nu}, \qquad \left.\frac{\partial g_{\mu\nu}}{\partial x^\rho}\right|_P = 0.

These are called locally inertial (or Riemann normal) coordinates, and the counting works out neatly: a general coordinate change at a point involves a 4×44\times4 Jacobian with 1616 free entries, which is more than enough to bring the 1010 components of a symmetric gμνg_{\mu\nu} to the standard form ημν\eta_{\mu\nu} (the 66 left over are exactly the Lorentz transformations, which preserve ημν\eta_{\mu\nu} — the residual freedom of choosing your velocity and orientation in the falling frame). At the next order there are 4040 first derivatives ρgμν\partial_\rho g_{\mu\nu} and 4040 free second derivatives of the coordinate transformation, so all 4040 can be killed too.

That is the equivalence principle, translated: at any point you can find coordinates in which spacetime looks exactly like flat Minkowski spacetime with no gravitational field at all. Free fall.

Go one order further and it stops. There are 100100 independent second derivatives ρσgμν\partial_\rho\partial_\sigma g_{\mu\nu} but only 8080 free third derivatives of the coordinate transformation available to cancel them. Twenty combinations survive, and no coordinate change on earth can remove them. Those 2020 leftover numbers are precisely the independent components of the Riemann curvature tensor at that point — the thing the two ball bearings were measuring.

I want to be clear that I have not derived that counting argument here beyond sketching it, and I have not constructed the Riemann tensor. What I have done is show you why there has to be one, and why it has to be built from second derivatives of the metric and not first. First derivatives of gμνg_{\mu\nu} are frame-dependent — they are the "gravitational field" in the sense of the thing you can make vanish by falling. Second derivatives are not.

Worked example

Derive the metric of a sphere of radius aa in the coordinates (θ,ϕ)(\theta,\phi), then prove the sphere is intrinsically curved — using only measurements made on the surface — by comparing the circumference of a circle to its radius. Extract the Gaussian curvature and evaluate the effect for a 1000 km1000\ \text{km} circle on Earth. (click to reveal the solution)

Setting up: this repeats, on a genuinely curved surface, exactly the calculation tensor calculus did for polar coordinates on the flat plane — embed, differentiate, substitute — and the comparison between the two results is the whole point.

A sphere of radius aa sits in three-dimensional Euclidean space as

x=asinθcosϕ,y=asinθsinϕ,z=acosθ,x = a\sin\theta\cos\phi, \qquad y = a\sin\theta\sin\phi, \qquad z = a\cos\theta,

with θ\theta the polar angle from the north pole (the colatitude) and ϕ\phi the azimuth. Here aa is a constant — we are restricting to the surface, which is exactly why the result will be a two-dimensional metric.

Differentiating:

dx=acosθcosϕdθasinθsinϕdϕ,dx = a\cos\theta\cos\phi\,d\theta - a\sin\theta\sin\phi\,d\phi, dy=acosθsinϕdθ+asinθcosϕdϕ,dy = a\cos\theta\sin\phi\,d\theta + a\sin\theta\cos\phi\,d\phi, dz=asinθdθ.dz = -a\sin\theta\,d\theta.

Substituting into the flat 3D line element ds2=dx2+dy2+dz2ds^2 = dx^2+dy^2+dz^2. Take the pieces one at a time. The dθ2d\theta^2 coefficient from dx2+dy2dx^2+dy^2:

a2cos2θcos2ϕ+a2cos2θsin2ϕ=a2cos2θ(cos2ϕ+sin2ϕ)=a2cos2θ.a^2\cos^2\theta\cos^2\phi + a^2\cos^2\theta\sin^2\phi = a^2\cos^2\theta(\cos^2\phi+\sin^2\phi) = a^2\cos^2\theta.

The dϕ2d\phi^2 coefficient from dx2+dy2dx^2+dy^2:

a2sin2θsin2ϕ+a2sin2θcos2ϕ=a2sin2θ.a^2\sin^2\theta\sin^2\phi + a^2\sin^2\theta\cos^2\phi = a^2\sin^2\theta.

The cross terms in dθdϕd\theta\,d\phi:

2a2sinθcosθsinϕcosϕ+2a2sinθcosθsinϕcosϕ=0,-2a^2\sin\theta\cos\theta\sin\phi\cos\phi + 2a^2\sin\theta\cos\theta\sin\phi\cos\phi = 0,

equal and opposite, cancelling exactly as they did in the polar-coordinate calculation. And finally dz2=a2sin2θdθ2dz^2 = a^2\sin^2\theta\,d\theta^2. Adding everything:

ds2=a2(cos2θ+sin2θ)dθ2+a2sin2θdϕ2,ds^2 = a^2(\cos^2\theta + \sin^2\theta)\,d\theta^2 + a^2\sin^2\theta\,d\phi^2,  ds2=a2dθ2+a2sin2θdϕ2. \boxed{\ ds^2 = a^2\,d\theta^2 + a^2\sin^2\theta\,d\phi^2.\ }

Reading off the components with (x1,x2)=(θ,ϕ)(x^1,x^2)=(\theta,\phi):

gθθ=a2,gϕϕ=a2sin2θ,gθϕ=gϕθ=0,g_{\theta\theta} = a^2, \qquad g_{\phi\phi} = a^2\sin^2\theta, \qquad g_{\theta\phi}=g_{\phi\theta}=0, gij=(a200a2sin2θ),gij=(1/a2001/(a2sin2θ)).g_{ij} = \begin{pmatrix}a^2&0\\0&a^2\sin^2\theta\end{pmatrix}, \qquad g^{ij} = \begin{pmatrix}1/a^2&0\\0&1/(a^2\sin^2\theta)\end{pmatrix}.

A warning, and the real question. Compare this with the flat plane in polar coordinates, gij=diag(1,r2)g_{ij}=\mathrm{diag}(1,r^2). Both are diagonal. Both have one constant entry and one position-dependent entry. Written down side by side they look like the same kind of object — and one describes a flat space while the other does not. So looking at the metric components settles nothing. We need a test.

The test: measure a circle. Stand at the north pole and walk a fixed distance outward in every direction, always along the surface. The set of points you reach is a circle. Now compare its circumference to its radius — and crucially, define "radius" as the distance you actually walked, not as the distance to some center buried in a third dimension we are pretending not to know about.

The walked-out radius, going from the pole (θ=0\theta=0) to colatitude θ0\theta_0 along a line of constant ϕ\phi (so dϕ=0d\phi=0):

ρ=0θ0gθθdθ=0θ0adθ=aθ0.\rho = \int_0^{\theta_0}\sqrt{g_{\theta\theta}}\,d\theta = \int_0^{\theta_0} a\,d\theta = a\theta_0.

The circumference, going once around at fixed θ=θ0\theta=\theta_0 (so dθ=0d\theta=0):

C=02πgϕϕdϕ=02πasinθ0dϕ=2πasinθ0.C = \int_0^{2\pi}\sqrt{g_{\phi\phi}}\,d\phi = \int_0^{2\pi} a\sin\theta_0\,d\phi = 2\pi a\sin\theta_0.

Now eliminate θ0\theta_0 using θ0=ρ/a\theta_0 = \rho/a:

 C(ρ)=2πasin ⁣(ρa). \boxed{\ C(\rho) = 2\pi a\sin\!\left(\frac{\rho}{a}\right).\ }

Why this settles it. Since sinu<u\sin u < u for all u>0u>0, we have asin(ρ/a)<ρa\sin(\rho/a) < \rho, and therefore

C(ρ)<2πρC(\rho) < 2\pi\rho

for every circle of nonzero radius. On the flat plane, by contrast, the identical calculation with gij=diag(1,r2)g_{ij}=\mathrm{diag}(1,r^2) gives ρ=0r0dr=r0\rho = \int_0^{r_0}dr = r_0 and C=02πr0dϕ=2πr0C = \int_0^{2\pi} r_0\,d\phi = 2\pi r_0, so C=2πρC = 2\pi\rho exactly, for every circle.

Both CC and ρ\rho are lengths of specific curves, computed by integrating dsds — which is an invariant. Their ratio is therefore a number that every coordinate system must agree on. So C/ρ<2πC/\rho < 2\pi is not something a change of coordinates could ever repair, and no map from the sphere to the flat plane can preserve all distances. The sphere is intrinsically curved, and we established it without ever leaving the surface. A two-dimensional surveyor with a tape measure and no concept of a third dimension could discover it.

Extracting the curvature. Expand the boxed result for small ρ/a\rho/a, using sinu=uu3/6+O(u5)\sin u = u - u^3/6 + O(u^5):

C(ρ)=2πa[ρa16ρ3a3+]=2πρ[1ρ26a2+].C(\rho) = 2\pi a\left[\frac{\rho}{a} - \frac{1}{6}\frac{\rho^3}{a^3} + \cdots\right] = 2\pi\rho\left[1 - \frac{\rho^2}{6a^2}+\cdots\right].

There is a standard result of surface geometry (quoted here, not derived — its proof belongs to differential geometry rather than this track) that for any smooth surface the circumference of a small geodesic circle obeys

C(ρ)=2πρ[1Kρ26+O(ρ4)],C(\rho) = 2\pi\rho\left[1 - \frac{K\rho^2}{6} + O(\rho^4)\right],

where KK is the Gaussian curvature at the center. Matching term by term against what we just derived:

K=1a2.K = \frac{1}{a^2}.

A big sphere is gently curved, a small sphere is sharply curved, and KK has units of 1/length21/\text{length}^2 — which is what curvature always has, and which will matter a great deal when we come to dimensional analysis of the field equations.

Numbers. Take Earth as a sphere of radius a=6371 kma = 6371\ \text{km} and walk out ρ=1000 km\rho = 1000\ \text{km} from the pole. Then ρ/a=0.15697 rad\rho/a = 0.15697\ \text{rad}, and

C=2π(6371 km)sin(0.15697)=2π(6371)(0.156326) km=6257.4 km.C = 2\pi(6371\ \text{km})\sin(0.15697) = 2\pi(6371)(0.156326)\ \text{km} = 6257.4\ \text{km}.

A flat-earth surveyor would have predicted

2πρ=2π(1000 km)=6283.2 km,2\pi\rho = 2\pi(1000\ \text{km}) = 6283.2\ \text{km},

so the measured circumference falls short by

ΔC=6283.26257.4=25.8 km,\Delta C = 6283.2 - 6257.4 = 25.8\ \text{km},

a fractional deficit of 25.8/6283.2=0.410%25.8/6283.2 = 0.410\%. Check it against the small-ρ\rho formula:

ρ26a2=(1000)26(6371)2=1062.436×108=0.411%,\frac{\rho^2}{6a^2} = \frac{(1000)^2}{6(6371)^2} = \frac{10^6}{2.436\times10^8} = 0.411\%,

agreeing to three digits, as it should for ρ/a0.16\rho/a\approx 0.16.

Interpretation. Twenty-six kilometres of missing circumference, out of six thousand — measurable with nineteenth-century surveying equipment, and detectable in principle by anyone with a long enough tape measure and no telescope. That is the model for everything general relativity does. Curvature is not a metaphysical claim about a fourth dimension for space to bend into; it is a discrepancy between measured lengths and the lengths Euclid predicts, and it is measured with rulers and clocks on the inside.

Worth noticing before we move on

The angular part of the sphere metric,

a2(dθ2+sin2θdϕ2),a^2\left(d\theta^2 + \sin^2\theta\,d\phi^2\right),

is going to reappear verbatim, embedded inside the metric of a black hole, where aa is replaced by the radial coordinate rr. That is not a coincidence: any spherically symmetric spacetime contains nested two-spheres, and this is their geometry.

And one loose end, planted deliberately. In the worked example I said "walk outward from the pole along a line of constant ϕ\phi" and computed the radius as adθ\int a\,d\theta — quietly assuming that a line of constant ϕ\phi is the shortest route, the analogue of a straight line. It is, but nothing above proved it, and on a curved surface "which curve is straight?" is a real question with a nontrivial answer. That question is the next topic, and its answer turns out to be the entire law of motion for gravity.

Where this leads

We have replaced Newton's gravitational potential Φ(x)\Phi(x) with a metric tensor gμν(x)g_{\mu\nu}(x), and replaced the notion of a gravitational force with the geometry of spacetime. That leaves two enormous holes, one on each side of the theory.

The first: given a metric, how does a particle move? Newton had F=mΦ\vec F = -m\nabla\Phi fed into F=ma\vec F = m\vec a. The geometric picture must answer instead with "the straightest available path," which means defining straightness in a curved space and then finding the equation such paths obey. Geodesics does exactly that, and it does it by taking the metric and feeding it into the principle of least action from Lagrangian mechanics — the geodesic equation turns out to be nothing but the Euler-Lagrange equation with dsds as the thing being extremized.

The second: given matter, what metric does it produce? Newton had 2Φ=4πGρ\nabla^2\Phi = 4\pi G\rho. Its replacement must relate the curvature built from second derivatives of gμνg_{\mu\nu} — the 2020 irreducible components identified above — to the energy and momentum of whatever matter is present. That is the Einstein field equations, and between the two of them the theory is complete: matter curves spacetime, and curved spacetime steers matter.