Physics
Graduategeneral-relativity

The Einstein Field Equations

Ten equations relating the curvature of spacetime to the energy and momentum inside it. This page will not derive them — nobody can, honestly — but it will say exactly what every symbol means and put real numbers through the coupling constant.

Before this, you should know:

Take a sealed steel box of hydrogen gas, put it on a scale, and record the reading. Now heat the gas. No atoms have been added; nothing has entered or left the box. The scale reading goes up.

It has to. The molecules are moving faster, so the box's total energy has increased, and by E=mc2E=mc^2 from special relativity that energy has inertia — and, since mg=mim_g = m_i to fifteen decimal places, it must gravitate too. Heat the gas by ΔE\Delta E and the box gains gravitational mass ΔE/c2\Delta E/c^2. The effect is absurdly small — heating a kilogram of hydrogen gas by 1000 K1000\ \text{K} takes about 107 J10^{7}\ \text{J}, which buys 107/c21010 kg10^7/c^2 \approx 10^{-10}\ \text{kg} of extra weight — but it is not zero, and it is not optional.

So the source of gravity is not mass. It is energy.

That single correction wrecks any attempt to write Newton's field equation

2Φ=4πGρ\nabla^2\Phi = 4\pi G\rho

relativistically. Because energy is not an invariant. Watch the same box from a passing rocket: it now has kinetic energy, so its energy density is larger — and its volume is length-contracted, making the density larger again. Different observers assign completely different values to ρ\rho. Meanwhile, whatever Φ\Phi is supposed to be, 2\nabla^2 involves only spatial derivatives, so the equation as written also implies that changing the mass here changes the potential everywhere instantaneously — which is exactly the kind of thing relativity forbids.

The problem is worse still. Energy is one component of the four-vector pμ=(E/c,p)p^\mu = (E/c, \vec p), and a Lorentz transformation mixes energy into momentum. If gravity couples to energy, it must couple to momentum as well, or the coupling would be frame-dependent — and a frame-dependent law of gravity is no law at all. And momentum flux is stress: pressure, tension, shear. All of it has to be in there.

So the right-hand side of the equation we are looking for cannot be a single number per point. It has to be an object with enough slots to hold energy density, the three components of momentum density, and the nine components of stress. And the left-hand side, whatever it is, must be an object of exactly the same type, built out of the curvature of gμνg_{\mu\nu}.

The right-hand side: the stress-energy tensor

The object that holds all of that is the stress-energy tensor TμνT^{\mu\nu}, a symmetric rank-2 tensor of the kind tensor calculus constructed. Its physical reading, with x0=ctx^0=ct as always:

Tμν=(energy densityenergy fluxmomentum densitymomentum flux (stress)),T^{\mu\nu} = \begin{pmatrix} \text{energy density} & \text{energy flux} \\[2pt] \text{momentum density} & \text{momentum flux (stress)} \end{pmatrix},

or written out component by component:

Every component has the units of energy density. That uniformity is what makes the dimensional analysis in the worked example clean.

The standard example, and the one that covers stars, dust clouds, and the universe as a whole, is a perfect fluid — a material with a density ρ\rho and an isotropic pressure pp and no viscosity or shear:

Tμν=(ρ+pc2)uμuν+pgμν,T^{\mu\nu} = \left(\rho + \frac{p}{c^2}\right)u^\mu u^\nu + p\,g^{\mu\nu},

where uμ=dxμ/dτu^\mu = dx^\mu/d\tau is the fluid's four-velocity. In the fluid's own rest frame this collapses to the diagonal matrix diag(ρc2,p,p,p)\mathrm{diag}(\rho c^2,\,p,\,p,\,p) — energy density in the time slot, pressure in the three space slots — which is as transparent as it gets.

The crucial structural property of TμνT^{\mu\nu} is that it is locally conserved. In flat spacetime that reads μTμν=0\partial_\mu T^{\mu\nu}=0, four equations expressing conservation of energy (ν=0\nu=0) and of the three components of momentum (ν=i\nu=i). In curved spacetime the ordinary derivative is replaced by its covariant version:

μTμν=0.\nabla_\mu T^{\mu\nu} = 0.

Remember this. It is about to dictate the entire form of the left-hand side.

The left-hand side: curvature

We need a symmetric rank-2 tensor built from gμνg_{\mu\nu}. It cannot involve only first derivatives of the metric, because geodesics showed those are exactly the Christoffel symbols, which can be made to vanish at any point — so an equation built from them would say "no gravity here" in every freely falling frame, which is wrong. It has to be second derivatives.

The object that packages the second derivatives covariantly is the Riemann curvature tensor:

R σμνρ=μΓ νσρνΓ μσρ+Γ μλρΓ νσλΓ νλρΓ μσλ.R^\rho_{\ \sigma\mu\nu} = \partial_\mu\Gamma^\rho_{\ \nu\sigma} - \partial_\nu\Gamma^\rho_{\ \mu\sigma} + \Gamma^\rho_{\ \mu\lambda}\Gamma^\lambda_{\ \nu\sigma} - \Gamma^\rho_{\ \nu\lambda}\Gamma^\lambda_{\ \mu\sigma}.

I am writing this down, not deriving it, and I want to be explicit about that. Constructing the Riemann tensor properly — from the failure of two covariant derivatives to commute, or equivalently from the failure of a vector to return to itself when parallel-transported around a closed loop — is a substantial piece of differential geometry that this track does not develop. What you should take from the formula is its anatomy: two derivatives of Γ\Gamma, hence two derivatives of the metric, arranged antisymmetrically in μν\mu\nu so that the frame-dependent pieces cancel and what survives is a genuine tensor. In four dimensions it has 2020 independent components after all its symmetries are imposed — exactly the 2020 irreducible second derivatives that curved spacetime and the metric tensor counted as un-removable by any coordinate change.

Its physical meaning is the thing we started this whole story with. The Riemann tensor governs geodesic deviation: for two nearby geodesics separated by ξμ\xi^\mu,

D2ξρdτ2=R σμνρuσξμuν,\frac{D^2\xi^\rho}{d\tau^2} = -R^\rho_{\ \sigma\mu\nu}\,u^\sigma\xi^\mu u^\nu,

which is the equation for the two falling ball bearings drifting toward each other. Riemann is the tidal field, made into a tensor.

Riemann has four indices, and we need two. Contract:

Rμν=R μρνρ,R=gμνRμν.R_{\mu\nu} = R^\rho_{\ \mu\rho\nu}, \qquad\qquad R = g^{\mu\nu}R_{\mu\nu}.

The first is the Ricci tensor — symmetric, 1010 independent components, exactly the shape we need. The second is the Ricci scalar, a single number at each point, the most compressed measure of curvature there is.

Now, which combination goes on the left? The naive guess is Rμν=κTμνR_{\mu\nu} = \kappa T_{\mu\nu}, which is what Einstein tried, and it fails — because μRμν\nabla^\mu R_{\mu\nu} is not zero in general, so it cannot equal something that is. The unique fix comes from an identity of Riemannian geometry called the contracted Bianchi identity (again quoted, not derived):

μ(Rμν12Rgμν)=0.\nabla^\mu\left(R_{\mu\nu} - \tfrac{1}{2}R\,g_{\mu\nu}\right) = 0.

That particular combination is divergence-free automatically, as a matter of geometry, with no equations of motion assumed. So define the Einstein tensor

GμνRμν12Rgμν,G_{\mu\nu} \equiv R_{\mu\nu} - \tfrac{1}{2}R\,g_{\mu\nu},

and you have a symmetric rank-2 tensor, built from second derivatives of the metric, that is identically conserved — matching, slot for slot and property for property, the tensor on the other side.

The equations

 Gμν=8πGc4Tμν. \boxed{\ G_{\mu\nu} = \frac{8\pi G}{c^4}\,T_{\mu\nu}.\ }

Ten coupled, nonlinear, second-order partial differential equations for the ten components of gμνg_{\mu\nu}. Written out, each one is a page of Christoffel symbols. And every symbol in it has now been given a meaning:

In vacuum, Tμν=0T_{\mu\nu}=0, and taking the trace of the equations then forces R=0R=0, so they collapse to the compact

Rμν=0.R_{\mu\nu} = 0.

This is emphatically not the statement that spacetime is flat. Flat means R σμνρ=0R^\rho_{\ \sigma\mu\nu}=0, all 2020 components; Rμν=0R_{\mu\nu}=0 kills only the 1010 contracted ones and leaves the other 1010 free to do whatever they like. Those surviving components are what light bending, orbital precession, black holes, and gravitational waves are all made of — every one of them happening in empty space where Tμν=0T_{\mu\nu}=0.

Einstein also noted that one more term is permitted without spoiling any of the requirements above, since gμνg_{\mu\nu} itself is symmetric and covariantly constant:

Gμν+Λgμν=8πGc4Tμν.G_{\mu\nu} + \Lambda g_{\mu\nu} = \frac{8\pi G}{c^4}T_{\mu\nu}.

The cosmological constant Λ\Lambda acts like a uniform energy density of empty space. Observation says it is not zero. It is the subject of cosmology rather than this track, and we set Λ=0\Lambda=0 from here on, which is an excellent approximation for anything smaller than a galaxy cluster.

What has, and has not, been done here

This is the point in the track where I have to be blunt about what kind of statement has just been made, because it is different in kind from everything else on this site.

The field equations are not derived. They are postulated. There is no argument that starts from something more elementary and ends at Gμν=8πGTμν/c4G_{\mu\nu} = 8\pi G\,T_{\mu\nu}/c^4. What there is, is a list of requirements — the left side must be a symmetric rank-2 tensor, built from the metric, containing at most second derivatives, identically divergence-free, reducing to 2Φ\nabla^2\Phi in the weak-field limit — and the observation that GμνG_{\mu\nu} is essentially the only object meeting all of them. That is a uniqueness argument, not a derivation, and it is a genuinely strong one (it can be made into a theorem, Lovelock's theorem, in four dimensions). But it is not the same thing.

There is also a beautiful reformulation, the Einstein-Hilbert action,

S=c416πGRgd4x+Smatter,S = \frac{c^4}{16\pi G}\int R\,\sqrt{-g}\,d^4x + S_{\text{matter}},

from which the field equations follow by varying with respect to gμνg^{\mu\nu}, exactly the way Lagrangian mechanics and classical field theory extract equations of motion from an action. This is the closest thing to a derivation there is, and it is genuinely illuminating — the simplest scalar you can build from curvature, integrated over spacetime, and the field equations drop out. But carrying out that variation requires the machinery of covariant derivatives, the variation of the metric determinant, and a good deal of tensor identity work, all of which is beyond what this track has built. I am not going to pretend otherwise by gesturing at it and moving on.

Three specific things above are quoted, not proved: the formula for the Riemann tensor, the geodesic deviation equation, and the contracted Bianchi identity. Each is a real theorem with a real proof; none of those proofs is here.

And the 8π8\pi is fixed by hand, from the Newtonian limit. Here is how, since the argument is short enough to give honestly. Rearranging the field equations into "trace-reversed" form gives the equivalent statement

Rμν=8πGc4(Tμν12Tgμν),TgμνTμν.R_{\mu\nu} = \frac{8\pi G}{c^4}\left(T_{\mu\nu} - \tfrac{1}{2}T\,g_{\mu\nu}\right), \qquad T \equiv g^{\mu\nu}T_{\mu\nu}.

For static dust, T00=ρc2T_{00}=\rho c^2 and T=ρc2T = -\rho c^2, so with g00=1g_{00}=-1 to leading order,

T0012Tg00=ρc212(ρc2)(1)=12ρc2.T_{00} - \tfrac{1}{2}T g_{00} = \rho c^2 - \tfrac{1}{2}(-\rho c^2)(-1) = \tfrac{1}{2}\rho c^2.

It is a standard weak-field computation — which I am quoting — that R002Φ/c2R_{00} \to \nabla^2\Phi/c^2 for the metric g00=(1+2Φ/c2)g_{00}=-(1+2\Phi/c^2) used in geodesics. Then the 0000 equation reads

2Φc2=8πGc4ρc222Φ=4πGρ,\frac{\nabla^2\Phi}{c^2} = \frac{8\pi G}{c^4}\cdot\frac{\rho c^2}{2} \qquad\Longrightarrow\qquad \nabla^2\Phi = 4\pi G\rho,

which is Newton's field equation exactly. Had the coupling been 4πG/c44\pi G/c^4 or 16πG/c416\pi G/c^4, we would have got the wrong gravitational constant in the solar system. So the 8π8\pi is not aesthetic; it is calibration against a falling apple.

One last honest caveat: sign conventions for the Riemann and Ricci tensors differ between textbooks, and with the opposite convention the field equations carry an overall minus sign. The signature (,+,+,+)(-,+,+,+) and the sign conventions above are the ones in Misner-Thorne-Wheeler and Wald, and they are what this track uses throughout. Nothing physical depends on the choice; every published disagreement about the sign of the field equations is a disagreement about bookkeeping.

A schematic of the field equations as a two-sided statement. On the left, under the label G-mu-nu, two blue curves start out parallel at the top alongside dashed gray vertical reference lines and bend toward each other as they descend, ending closer together than they began, with small dots marking test particles at both ends. In the center is a large equals sign with the coupling constant 8 pi G over c to the fourth written beneath it in purple, together with its numerical value. On the right, under the label T-mu-nu, a rectangular box of matter is drawn with dots inside, four amber arrows pointing outward from its faces representing pressure, and a purple diagonal arrow through it representing momentum flux. A purple double-headed arrow spans the bottom of the figure beneath both sides.

The two sides of the equation and the tiny number that connects them. On the left, the observable content of curvature: initially parallel free-fall paths that fail to stay parallel. On the right, everything matter can contribute — energy density, momentum density, pressure, and shear.

Spacetime tells matter how to move; matter tells spacetime how to curve

Wheeler's summary is the best one-sentence account of the theory, and now that both halves exist it can be stated precisely.

"Spacetime tells matter how to move" is the geodesic equation from the previous topic: given gμνg_{\mu\nu}, the worldline of a free particle is fixed.

"Matter tells spacetime how to curve" is the field equations on this page: given TμνT_{\mu\nu}, the metric is fixed (up to coordinate freedom and boundary conditions).

And the two statements are not independent, which is the part that makes general relativity hard in a way that no earlier theory on this site is hard. The field equations are nonlinear: curvature appears on the left in products, because Γg\Gamma\sim\partial g and Riemann contains ΓΓ\Gamma\Gamma. So gravitational fields gravitate. You cannot add two solutions to get a third, the way you can superpose two solutions of Maxwell's equations. Worse, μTμν=0\nabla_\mu T^{\mu\nu}=0 — the conservation law for matter — involves Christoffel symbols, hence the metric. So the source depends on the field it is sourcing. There is no "put in the matter, turn the crank, get the geometry" procedure in general; the matter distribution and the geometry have to be solved for together, self-consistently.

Which is why the exact solutions are so few, so precious, and so famous. Getting even one closed-form solution out of these equations was expected to take years. It took two months.

Worked example

Show by dimensional analysis that 8πG/c48\pi G/c^4 converts energy density into curvature, i.e. into 1/length21/\text{length}^2, and evaluate it. Then estimate the spacetime curvature produced by the Sun's own energy density, and express the answer as a radius of curvature. (click to reveal the solution)

Setting up: the field equations assert Gμν=(8πG/c4)TμνG_{\mu\nu} = (8\pi G/c^4)T_{\mu\nu}. If that is to be an equation rather than a category error, the units on both sides must match. So the claim to be checked is

[Gc4]×[energy density]=1length2.\left[\frac{G}{c^4}\right]\times\left[\text{energy density}\right] = \frac{1}{\text{length}^2}.

Why 1/length21/\text{length}^2 is the right target. Curvature always has these units, and the sphere from curved spacetime and the metric tensor shows why concretely: its Gaussian curvature came out as K=1/a2K = 1/a^2, with aa a length. Equivalently, the Riemann tensor is two derivatives of a dimensionless metric with respect to coordinates carrying units of length, so [Riemann]=m2[\text{Riemann}] = \text{m}^{-2}, and contracting with the dimensionless gμνg^{\mu\nu} changes nothing. So [Gμν]=m2[G_{\mu\nu}] = \text{m}^{-2}.

Dimensions of the coupling. Newton's constant:

[G]=m3kgs2,[G] = \frac{\text{m}^3}{\text{kg}\cdot\text{s}^2},

which you can read straight off F=GMm/r2F = GMm/r^2: [G]=[F][r2]/[M2]=(kgms2)(m2)/kg2[G]=[F][r^2]/[M^2] = (\text{kg}\cdot\text{m}\cdot\text{s}^{-2})(\text{m}^2)/\text{kg}^2. And

[c4]=m4s4.[c^4] = \frac{\text{m}^4}{\text{s}^4}.

Therefore

[Gc4]=m3kgs2s4m4=s2kgm.\left[\frac{G}{c^4}\right] = \frac{\text{m}^3}{\text{kg}\cdot\text{s}^{2}}\cdot\frac{\text{s}^4}{\text{m}^4} = \frac{\text{s}^2}{\text{kg}\cdot\text{m}}.

Dimensions of energy density. Energy is J=kgm2s2\text{J} = \text{kg}\cdot\text{m}^2\cdot\text{s}^{-2}, so

[u]=Jm3=kgms2.[u] = \frac{\text{J}}{\text{m}^3} = \frac{\text{kg}}{\text{m}\cdot\text{s}^{2}}.

Multiplying:

[Gc4][u]=s2kgmkgms2=1m2.\left[\frac{G}{c^4}\right][u] = \frac{\text{s}^2}{\text{kg}\cdot\text{m}}\cdot\frac{\text{kg}}{\text{m}\cdot\text{s}^{2}} = \frac{1}{\text{m}^2}.\quad\checkmark

Every kilogram and every second cancels, and what is left is one over a length squared. The equation is dimensionally consistent, and the coupling constant is exactly a device for turning "joules per cubic metre" into "inverse metres squared" — energy content into shape. Equivalently, [G/c4]=m/J[G/c^4] = \text{m}/\text{J}: metres of curvature per joule.

Its numerical value:

c4=(2.998×108)4 m4/s4=(8.988×1016)2=8.078×1033,c^4 = (2.998\times10^{8})^4\ \text{m}^4/\text{s}^4 = (8.988\times10^{16})^2 = 8.078\times10^{33}, 8πG=8π(6.674×1011)=25.133×6.674×1011=1.677×109,8\pi G = 8\pi(6.674\times10^{-11}) = 25.133\times 6.674\times10^{-11} = 1.677\times10^{-9}, 8πGc4=1.677×1098.078×1033=2.08×1043 mJ.\frac{8\pi G}{c^4} = \frac{1.677\times10^{-9}}{8.078\times10^{33}} = 2.08\times10^{-43}\ \frac{\text{m}}{\text{J}}.

Read that number. Pour one joule of energy into one cubic metre of space and you buy 2.08×1043 m22.08\times10^{-43}\ \text{m}^{-2} of curvature — a radius of curvature of 1/2.08×1043=2.2×1021 m1/\sqrt{2.08\times10^{-43}} = 2.2\times10^{21}\ \text{m}, about 230,000230{,}000 light-years, or twice the width of the Milky Way. This is why gravity is the weakest interaction by an absurd margin, and why it took until 1915 to notice spacetime was bent at all: the exchange rate between energy and geometry is 104310^{-43}.

Now the Sun. Its mean energy density is its total rest energy divided by its volume:

u=Mc243πR3.u_\odot = \frac{M_\odot c^2}{\tfrac{4}{3}\pi R_\odot^3}.

With M=1.989×1030 kgM_\odot = 1.989\times10^{30}\ \text{kg} and R=6.957×108 mR_\odot = 6.957\times10^{8}\ \text{m}:

Mc2=(1.989×1030)(8.988×1016)=1.788×1047 J,M_\odot c^2 = (1.989\times10^{30})(8.988\times10^{16}) = 1.788\times10^{47}\ \text{J}, 43πR3=(4.189)(6.957×108)3=(4.189)(3.368×1026)=1.410×1027 m3,\tfrac{4}{3}\pi R_\odot^3 = (4.189)(6.957\times10^{8})^3 = (4.189)(3.368\times10^{26}) = 1.410\times10^{27}\ \text{m}^3, u=1.788×10471.410×1027=1.267×1020 J/m3.u_\odot = \frac{1.788\times10^{47}}{1.410\times10^{27}} = 1.267\times10^{20}\ \text{J}/\text{m}^3.

A hundred billion billion joules per cubic metre — an enormous energy density by any human standard. Feed it through the coupling:

K8πGc4u=(2.077×1043)(1.267×1020)=2.63×1023 m2.\mathcal{K} \sim \frac{8\pi G}{c^4}u_\odot = (2.077\times10^{-43})(1.267\times10^{20}) = 2.63\times10^{-23}\ \text{m}^{-2}.

A cross-check worth doing algebraically first. Substituting u=Mc2/(43πR3)u = Mc^2/(\tfrac43\pi R^3) into the coupling gives

8πGc4Mc243πR3=6GMc2R3=3rsR3,rs2GMc2,\frac{8\pi G}{c^4}\cdot\frac{Mc^2}{\tfrac43\pi R^3} = \frac{6GM}{c^2R^3} = \frac{3r_s}{R^3}, \qquad r_s \equiv \frac{2GM}{c^2},

so the curvature scale is set by the ratio of a length rsr_s (which the next topic will name the Schwarzschild radius) to the cube of the object's size. For the Sun rs=2954 mr_s = 2954\ \text{m}, giving

3(2954)(6.957×108)3=88623.368×1026=2.63×1023 m2,\frac{3(2954)}{(6.957\times10^{8})^3} = \frac{8862}{3.368\times10^{26}} = 2.63\times10^{-23}\ \text{m}^{-2},

identical to the direct computation, as it must be.

Turning curvature into a length. A curvature of K\mathcal{K} corresponds to a radius of curvature

L=1K=12.63×1023=15.13×1012=1.95×1011 m.L = \frac{1}{\sqrt{\mathcal{K}}} = \frac{1}{\sqrt{2.63\times10^{-23}}} = \frac{1}{5.13\times10^{-12}} = 1.95\times10^{11}\ \text{m}.

Interpretation. Spacetime inside the Sun is curved on a length scale of 2×1011 m2\times10^{11}\ \text{m}. Compare that to the Sun itself:

LR=1.95×10116.957×108=280,\frac{L}{R_\odot} = \frac{1.95\times10^{11}}{6.957\times10^{8}} = 280,

and to the solar system:

L1 AU=1.95×10111.496×1011=1.30.\frac{L}{1\ \text{AU}} = \frac{1.95\times10^{11}}{1.496\times10^{11}} = 1.30.

So the Sun — a body of 1030 kg10^{30}\ \text{kg} generating 4×1026 W4\times10^{26}\ \text{W} by fusing hydrogen — bends spacetime on a scale comparable to the radius of Earth's orbit, some 280280 times its own size. Over any region small compared with 1011 m10^{11}\ \text{m}, spacetime near the Sun is flat to within a part in tens of thousands. That is the quantitative content of "gravity is weak," and it is why every calculation in the solar system works beautifully in the weak-field limit, and why Newton's theory survived for 228228 years without anyone noticing that its central equation was wrong.

It also tells you what it would take to make curvature obvious: not more mass, but the same mass in a much smaller RR, since the curvature scales as rs/R3r_s/R^3. Squeeze the Sun's mass from RR_\odot down toward rsr_s itself and the curvature radius comes down to the size of the object. That is a black hole, and it is the next topic.

Where this leads

The theory is now complete: geodesics say how matter moves in a given geometry, and the equations on this page say what geometry a given distribution of matter makes. Everything else in general relativity is consequences.

Getting those consequences is hard, because ten coupled nonlinear PDEs are hard, and the honest state of affairs is that exact solutions are rare. But the most important one arrived almost immediately. Impose spherical symmetry and vacuum (Rμν=0R_{\mu\nu}=0 outside the mass) and the equations become tractable — Karl Schwarzschild found the solution in December 1915, while serving on the Russian front, weeks after Einstein published. The Schwarzschild solution and black holes is that metric: it contains the correct light bending with the factor of two the equivalence principle could not supply, the precession of Mercury's perihelion, gravitational time dilation, and — lurking at a radius nobody initially believed was physical — an event horizon.

The other great consequence comes from going in the opposite direction: instead of looking for exact solutions, linearize. Write gμν=ημν+hμνg_{\mu\nu} = \eta_{\mu\nu} + h_{\mu\nu} with hh small, keep only first-order terms, and the nonlinear monster becomes a wave equation of exactly the type classical field theory solved. That is gravitational waves, and the fact that the linearized equations look so much like the ones behind electromagnetic waves is not an accident — it is what a massless field with a conserved tensor source is bound to look like.