The Einstein-Hilbert Action

Every other field theory in physics is handed to us as an action, its equations of motion following by stationary action. General relativity is no exception — but for a long time it looked like one. Einstein reached his field equations in November 1915 by a hard climb through tensor calculus, physical reasoning, and the demand that the theory reduce to Newton's in the weak field. Almost simultaneously David Hilbert reached the same equations from a single line: write down the simplest generally covariant scalar built from the metric, integrate it over spacetime, and demand the result be stationary. That functional is the Einstein-Hilbert action, and the scalar is the Ricci curvature RR. The economy is startling. The metric gμνg_{\mu\nu} is the dynamical field; its first derivatives live in the Christoffel symbols and its second derivatives in RR. A Lagrangian with second derivatives should naively give fourth-order equations — yet the second-derivative part of RR collapses into a total divergence, and the surviving equations are only second order in gμνg_{\mu\nu}, exactly what a sensible Cauchy problem needs. Out of δ ⁣∫ ⁣R−g d4x=0\delta\!\int\! R\sqrt{-g}\,\mathrm d^4x=0 falls the Einstein tensor, and a matter action sources it: Gμν=8πG TμνG_{\mu\nu}=8\pi G\,T_{\mu\nu}. This article is the variational keystone of the chapter. It takes the Einstein tensor from aq-gr-einstein-tensor-gr4 and the stress-energy tensor from aq-gr-stress-energy-tensor and aq-gr-variational-stress-energy-tensor, and shows that both — and the conservation law binding them — descend from one scalar and one symmetry. The boundary term, cosmological constant, and full sourced equations belong to the articles that follow.

Key takeaways
  • The Einstein-Hilbert action SEH=116πG∫R−g d4xS_{\mathrm{EH}}=\frac{1}{16\pi G}\int R\sqrt{-g}\,\mathrm d^4x is the simplest diffeomorphism-invariant functional of the metric whose stationary points are the vacuum Einstein equations.
  • Varying with respect to gμνg^{\mu\nu} and discarding a total divergence gives Rμν−12Rgμν=0R_{\mu\nu}-\tfrac12 R g_{\mu\nu}=0 — the vanishing of the Einstein tensor.
  • A matter action SMS_{\mathrm M} sources curvature: the full equations Gμν=8πG TμνG_{\mu\nu}=8\pi G\,T_{\mu\nu} appear with Tμν≡−2−g δSM/δgμνT_{\mu\nu}\equiv-\tfrac{2}{\sqrt{-g}}\,\delta S_{\mathrm M}/\delta g^{\mu\nu} defined variationally.
  • The dropped divergence is not innocuous: a well-posed variational principle with the metric fixed on the boundary needs the Gibbons-Hawking-York term to cancel it.
  • Diffeomorphism invariance of SEH+SMS_{\mathrm{EH}}+S_{\mathrm M} forces ∇μTμν=0\nabla^\mu T_{\mu\nu}=0 automatically — local conservation is a Noether consequence, not a separate postulate.
  • The coupling is fixed by the Newtonian limit to 8πG/c4≈2.08×10−43 m−1 kg−1 s28\pi G/c^4\approx 2.08\times10^{-43}\ \mathrm{m^{-1}\,kg^{-1}\,s^{2}}, the tiny number that makes spacetime stiff.
  • Key idea: gravity is the principle of stationary action applied to the simplest generally covariant scalar, the integrated Ricci scalar; the field equations are not assumed but are the condition that SS be stationary under metric variations.
The core insight

Gravity is the principle of stationary action applied to the simplest generally covariant scalar — the integrated Ricci scalar. The field equations are not postulated; they are the statement that SS is stationary under variations of the metric.

Where this lives today

The action is the working language of every modern programme in gravity. In quantum gravity, the path integral ∫Dg eiSEH/ℏ\int\mathcal D g\,e^{iS_{\mathrm{EH}}/\hbar} underlies both covariant and non-perturbative (loop, spin-foam) approaches, and the boundary term is indispensable: the Euclidean action of a black hole reproduces the Bekenstein-Hawking entropy S=A/4S=A/4. In cosmology, the cosmological-constant term is the leading dark-energy model, and the gap between its measured value (ρΛ∼6×10−27 kg/m3\rho_\Lambda\sim6\times10^{-27}\ \mathrm{kg/m^3}) and quantum-field-theory estimates (∼10120\sim10^{120} times larger) is the notorious cosmological-constant problem. In gravitational-wave astronomy the graviton and wave equation come from expanding SEHS_{\mathrm{EH}} to quadratic order, and LIGO-Virgo-KAGRA now test general relativity against f(R)f(R) and other modified-action theories. And in effective field theory, SEHS_{\mathrm{EH}} is the lowest-order term of a curvature expansion with calculable quantum corrections — Einstein gravity as the infrared limit of some deeper theory.

The physical picture

Think of the metric gμν(x)g_{\mu\nu}(x) as a field spread over the spacetime manifold, the way an elastic displacement field is spread over a solid. At each point the Ricci scalar RR measures how sharply the geometry departs from flatness — a local "curvature density." The action sums it over the manifold, weighted by −g d4x\sqrt{-g}\,\mathrm d^4x, and stationary action selects the geometry for which no infinitesimal reshaping changes the total to first order. Vacuum solutions — Schwarzschild, a passing gravitational wave — are exactly the geometries that make SEHS_{\mathrm{EH}} stationary.

Figure
Stationary action selects the geometry — the Einstein-Hilbert action S(g) is stationary at the physical metric, where δS/δg^μν = 0 yields G_μν = 8πG T_μν with coupling 8πG/c⁴ ≈ 2.08×10⁻⁴³ in SI units
The field equations are where the action stops changing S_EH = (1/16πG) ∫ R √(−g) d⁴x space of metrics g_μν (each point = one geometry) action S(g) δS/δg^μν = 0 horizontal tangent = stationary point G_μν = 8πG T_μν the physical geometry at the red dot

Why the Ricci scalar and not R2R^2 or RμνRμνR_{\mu\nu}R^{\mu\nu}? The filter is the demand for second-order field equations. RR contains the second derivatives of gg only linearly, and they gather into a total divergence that integrates away; every higher-curvature scalar leaves fourth-order terms and extra, often ghost-like, degrees of freedom. So RR is the unique leading choice. The variation itself is worth previewing: the integrand R−g=gμνRμν−gR\sqrt{-g}=g^{\mu\nu}R_{\mu\nu}\sqrt{-g} has three factors, and varying each sends it to bulk equations or a boundary term. The second figure is that anatomy, carrying the number that sets gravity's coupling.

Figure
One variation, three factors, two destinations — δg^μν and δ√−g build the bulk Einstein tensor while g^μν δR_μν peels off as a boundary term; the bulk coupling is 8πG/c⁴ ≈ 2.08×10⁻⁴³ m⁻¹ kg⁻¹ s²
Where the three pieces of δ(R√−g) go vary R √(−g) d⁴x vary g^μν → R_μν δg^μν vary √(−g) → −½ R g_μν δg^μν vary R_μν (Palatini) → ∇_ρ v^ρ (divergence) BULK: G_μν = 8πG T_μν the Euler-Lagrange equation of gravity BOUNDARY → Gibbons-Hawking-York coupling 8πG/c⁴ = 2.08×10⁻⁴³ m⁻¹ kg⁻¹ s² — stiff

The factor −g\sqrt{-g} is not decoration: −g d4x\sqrt{-g}\,\mathrm d^4x is the coordinate-invariant four-volume, what makes SEHS_{\mathrm{EH}} a true scalar — the same number in any coordinates. That diffeomorphism invariance is, through Noether's theorem, the source of the contracted Bianchi identity ∇μGμν=0\nabla^\mu G_{\mu\nu}=0 and of energy-momentum conservation.

The core equations

Among all scalars you could integrate against −g\sqrt{-g}, the Ricci scalar is the lowest in derivatives that curves.

SEH=116πG∫MR −g d4x(1)S_{\mathrm{EH}}=\frac{1}{16\pi G}\int_{\mathcal M} R\,\sqrt{-g}\,\mathrm d^4x \qquad (1)

where: RR — Ricci scalar, R=gμνRμνR=g^{\mu\nu}R_{\mu\nu}; gg — determinant of gμνg_{\mu\nu}, negative for Lorentzian signature; −g d4x\sqrt{-g}\,\mathrm d^4x — invariant four-volume; GG — Newton's constant (geometrized units set G=c=1G=c=1); M\mathcal M — the region of integration. The prefactor 1/16πG1/16\pi G is a convention repaid when the Newtonian limit fixes the coupling to 8πG8\pi G. Matter enters through its own action; the total is the sum, and additivity lets each field define its own curvature source.

S=116πG∫R−g d4x+SM[gμν,ψ](2)S=\frac{1}{16\pi G}\int R\sqrt{-g}\,\mathrm d^4x+S_{\mathrm M}[g_{\mu\nu},\psi] \qquad (2)

where: SMS_{\mathrm M} — matter action; ψ\psi — the matter fields (scalars, spinors, gauge fields). The metric appears in SMS_{\mathrm M} because every field must be told how to measure lengths and times — and that dependence defines TμνT_{\mu\nu}. Two identities do the heavy lifting. The first — how the volume element responds to a metric nudge — gives the −12Rgμν-\tfrac12 R g_{\mu\nu} half of the Einstein tensor.

δ−g=−12−g gμν δgμν(3)\delta\sqrt{-g}=-\tfrac12\sqrt{-g}\,g_{\mu\nu}\,\delta g^{\mu\nu} \qquad (3)

where: δgμν\delta g^{\mu\nu} — variation of the inverse metric, the independent field variation. It follows from Jacobi's formula, established in the first derivation. The second handles the curvature factor: varying the Ricci tensor gives not a new algebraic term but a total covariant divergence — why the highest derivatives never reach the equations.

δRμν=∇ρ(δΓμνρ)−∇ν(δΓμρρ)(4)\delta R_{\mu\nu}=\nabla_\rho\big(\delta\Gamma^\rho_{\mu\nu}\big)-\nabla_\nu\big(\delta\Gamma^\rho_{\mu\rho}\big) \qquad (4)

where: Γμνρ\Gamma^\rho_{\mu\nu} — Christoffel symbols; δΓμνρ\delta\Gamma^\rho_{\mu\nu} — connection variation, a genuine (1,2)(1,2)-tensor (difference of two connections); ∇ρ\nabla_\rho — metric-compatible covariant derivative. The point of this Palatini identity: δRμν\delta R_{\mu\nu} is a divergence, so under the integral it becomes a surface term. Assembling (3) and (4) gives the functional derivative of the action — the Einstein tensor.

1−gδSEHδgμν=116πG(Rμν−12Rgμν)=116πG Gμν(5)\frac{1}{\sqrt{-g}}\frac{\delta S_{\mathrm{EH}}}{\delta g^{\mu\nu}}=\frac{1}{16\pi G}\left(R_{\mu\nu}-\tfrac12 R g_{\mu\nu}\right)=\frac{1}{16\pi G}\,G_{\mu\nu} \qquad (5)

where: Gμν=Rμν−12RgμνG_{\mu\nu}=R_{\mu\nu}-\tfrac12 R g_{\mu\nu} — the Einstein tensor, automatically symmetric and, by the contracted Bianchi identity, divergence-free. In vacuum it gives Gμν=0G_{\mu\nu}=0, i.e. Rμν=0R_{\mu\nu}=0. The matter side is the mirror image: how SMS_{\mathrm M} responds to the same variation defines the stress-energy tensor.

Tμν≡−2−gδSMδgμν(6)T_{\mu\nu}\equiv-\frac{2}{\sqrt{-g}}\frac{\delta S_{\mathrm M}}{\delta g^{\mu\nu}} \qquad (6)

where: TμνT_{\mu\nu} — the symmetric (Hilbert) stress-energy tensor. This definition makes its symmetry manifest and, as the second derivation shows, guarantees conservation for free. Demanding stationarity of the total action combines (5) and (6) into the field equations.

Rμν−12Rgμν=8πG Tμν(7)R_{\mu\nu}-\tfrac12 R g_{\mu\nu}=8\pi G\,T_{\mu\nu} \qquad (7)

where: 8πG8\pi G — the coupling, fixed by matching the weak-field limit to Newton's law (third derivation). Restoring cc, the source is (8πG/c4) Tμν(8\pi G/c^4)\,T_{\mu\nu} with 8πG/c4≈2.08×10−43 m−1 kg−1 s28\pi G/c^4\approx2.08\times10^{-43}\ \mathrm{m^{-1}\,kg^{-1}\,s^{2}} — why it takes a planet's worth of energy to bend spacetime. Finally, the boundary term dropped in the variation is not optional: a variational principle with the metric fixed on ∂M\partial\mathcal M needs an explicit surface term to be well posed.

SGHY=18πG∮∂MK ∣h∣ d3y(8)S_{\mathrm{GHY}}=\frac{1}{8\pi G}\oint_{\partial\mathcal M} K\,\sqrt{|h|}\,\mathrm d^3y \qquad (8)

where: KK — trace of the extrinsic curvature of the boundary; hh — determinant of the induced metric habh_{ab} on ∂M\partial\mathcal M; yy — boundary coordinates. This Gibbons-Hawking-York term, owned by aq-gr-gibbons-hawking-york-term, is the cure for the surface piece.

Derivation AVarying the Einstein-Hilbert action to the vacuum field equations

The goal is to carry out δSEH=0\delta S_{\mathrm{EH}}=0 explicitly and watch the Einstein tensor precipitate out of the bulk while the highest-derivative piece drains away as a surface integral. We write the integrand as three metric-dependent factors, vary each with the determinant and Palatini identities, and collect the terms multiplying δgμν\delta g^{\mu\nu} — those, and only those, become the field equations.

Step 1. Write R−g=gμνRμν−gR\sqrt{-g}=g^{\mu\nu}R_{\mu\nu}\sqrt{-g} and apply the product rule: δSEH=116πG∫( δgμνRμν−g+gμν δRμν −g+gμνRμν δ−g ) d4x\delta S_{\mathrm{EH}}=\frac{1}{16\pi G}\int(\,\delta g^{\mu\nu}R_{\mu\nu}\sqrt{-g}+g^{\mu\nu}\,\delta R_{\mu\nu}\,\sqrt{-g}+g^{\mu\nu}R_{\mu\nu}\,\delta\sqrt{-g}\,)\,\mathrm d^4x. Why: separating the three factors lets each be handled by its own identity.

Step 2. Establish the determinant identity. Jacobi's formula gives δg=g gμνδgμν\delta g=g\,g^{\mu\nu}\delta g_{\mu\nu}, so δ−g=12−g gμνδgμν\delta\sqrt{-g}=\tfrac12\sqrt{-g}\,g^{\mu\nu}\delta g_{\mu\nu}; then varying gμαgαν=δνμg^{\mu\alpha}g_{\alpha\nu}=\delta^\mu_\nu gives gμνδgμν=−gμνδgμνg^{\mu\nu}\delta g_{\mu\nu}=-g_{\mu\nu}\delta g^{\mu\nu}, hence δ−g=−12−g gμνδgμν\delta\sqrt{-g}=-\tfrac12\sqrt{-g}\,g_{\mu\nu}\delta g^{\mu\nu}. Why: this makes the volume-factor variation proportional to δgμν\delta g^{\mu\nu}, supplying the −12Rgμν-\tfrac12 R g_{\mu\nu} trace term.

Step 3. Feed Step 2 into the third term: gμνRμν δ−g=−12Rgμν δgμν−gg^{\mu\nu}R_{\mu\nu}\,\delta\sqrt{-g}=-\tfrac12 R g_{\mu\nu}\,\delta g^{\mu\nu}\sqrt{-g}, using gμνRμν=Rg^{\mu\nu}R_{\mu\nu}=R. Why: it now sits beside the first term, both multiplying δgμν\delta g^{\mu\nu}, ready to combine.

Step 4. Attack the middle term with the Palatini identity. Metric compatibility ∇ρgμν=0\nabla_\rho g^{\mu\nu}=0 lets the metric slide inside, so gμνδRμν=∇ρ ⁣(gμνδΓμνρ−gμρδΓμνν)≡∇ρvρg^{\mu\nu}\delta R_{\mu\nu}=\nabla_\rho\!\big(g^{\mu\nu}\delta\Gamma^\rho_{\mu\nu}-g^{\mu\rho}\delta\Gamma^\nu_{\mu\nu}\big)\equiv\nabla_\rho v^\rho, a pure divergence. Why: a total divergence is fixed entirely by the boundary and cannot contribute to the local equations.

Step 5. Apply the divergence theorem: ∫∇ρvρ−g d4x=∮vρ dΣρ\int\nabla_\rho v^\rho\sqrt{-g}\,\mathrm d^4x=\oint v^\rho\,\mathrm d\Sigma_\rho, a surface integral over ∂M\partial\mathcal M. Why: this is the boundary term the figure tracked; on a finite boundary it must be cancelled by the Gibbons-Hawking-York term.

Step 6. Collect the bulk coefficient of δgμν\delta g^{\mu\nu}: δSEH=116πG∫(Rμν−12Rgμν)δgμν−g d4x+(boundary)\delta S_{\mathrm{EH}}=\frac{1}{16\pi G}\int\big(R_{\mu\nu}-\tfrac12 R g_{\mu\nu}\big)\delta g^{\mu\nu}\sqrt{-g}\,\mathrm d^4x+(\text{boundary}). Stationarity for arbitrary δgμν\delta g^{\mu\nu} forces the bracket to vanish, giving Gμν=0G_{\mu\nu}=0. Why: the fundamental lemma of variations turns "δS=0\delta S=0 for all variations" into the pointwise vacuum equation.

Go deeper · Derivation B · 1 minDiffeomorphism invariance forces energy-momentum conservation
Derivation BDiffeomorphism invariance forces energy-momentum conservation

The aim is to show that covariant conservation ∇μTμν=0\nabla^\mu T_{\mu\nu}=0 is not an extra assumption but a rigid consequence of the matter action being a scalar under smooth coordinate changes. The argument never touches the field equations; it uses only that SMS_{\mathrm M} is invariant when the metric flows along an arbitrary vector field, the definition of TμνT_{\mu\nu}, and one integration by parts. This is the deepest reason the two sides of Einstein's equation are consistent — the geometry side is divergence-free by Bianchi, so the matter side must be too.

Step 1. Under an infinitesimal diffeomorphism generated by ξμ\xi^\mu, the metric changes by its Lie derivative, δgμν=−(∇μξν+∇νξμ)\delta g^{\mu\nu}=-(\nabla^\mu\xi^\nu+\nabla^\nu\xi^\mu), while δSM=0\delta S_{\mathrm M}=0. Why: a covariant scalar cannot depend on the labelling of points, so relabelling via ξμ\xi^\mu leaves it invariant.

Step 2. Evaluate that variation through the definition of TμνT_{\mu\nu}: 0=δSM=∫δSMδgμν δgμν d4x=−12∫Tμν δgμν−g d4x0=\delta S_{\mathrm M}=\int\frac{\delta S_{\mathrm M}}{\delta g^{\mu\nu}}\,\delta g^{\mu\nu}\,\mathrm d^4x=-\tfrac12\int T_{\mu\nu}\,\delta g^{\mu\nu}\sqrt{-g}\,\mathrm d^4x. Why: on shell for the matter fields, only the explicit metric dependence contributes — equation (6).

Step 3. Insert the Lie derivative, use the symmetry of TμνT_{\mu\nu} to write 0=∫Tμν ∇μξν−g d4x0=\int T_{\mu\nu}\,\nabla^\mu\xi^\nu\sqrt{-g}\,\mathrm d^4x, and integrate by parts (dropping the surface term for compact ξ\xi): 0=−∫(∇μTμν) ξν−g d4x0=-\int(\nabla^\mu T_{\mu\nu})\,\xi^\nu\sqrt{-g}\,\mathrm d^4x. Why: moving the derivative onto TμνT_{\mu\nu} exposes its divergence as the coefficient of an arbitrary field.

Step 4. Because ξν\xi^\nu is arbitrary, the integrand must vanish pointwise: ∇μTμν=0\nabla^\mu T_{\mu\nu}=0. This is exactly consistent with the contracted Bianchi identity ∇μGμν=0\nabla^\mu G_{\mu\nu}=0 that the geometry obeys identically. Why: symmetry of the action ⇒ conservation of the associated current — Noether's theorem, with diffeomorphisms as the symmetry and energy-momentum as the current.

Go deeper · Derivation C · 1 minFixing the coupling by the Newtonian limit
Derivation CFixing the coupling by the Newtonian limit

The goal is to pin the pure number in front of TμνT_{\mu\nu} — to show it must be 8πG8\pi G. The variational construction gives the form Gμν∝TμνG_{\mu\nu}\propto T_{\mu\nu} and the relative normalization, but the scale can only come from experiment: we demand that a weak, static field around slow, cold matter reproduce Newton's Poisson equation ∇2Φ=4πGρ\nabla^2\Phi=4\pi G\rho, which fixes the coupling once and for all.

Step 1. Trace the trial equation Gμν=κTμνG_{\mu\nu}=\kappa T_{\mu\nu}. In four dimensions gμνgμν=4g^{\mu\nu}g_{\mu\nu}=4, so gμνGμν=R−2R=−R=κTg^{\mu\nu}G_{\mu\nu}=R-2R=-R=\kappa T, giving the trace-reversed form Rμν=κ(Tμν−12Tgμν)R_{\mu\nu}=\kappa\big(T_{\mu\nu}-\tfrac12 T g_{\mu\nu}\big). Why: this isolates the Ricci tensor, which connects most directly to the Newtonian potential.

Step 2. Adopt a weak static metric g00=−(1+2Φ/c2)g_{00}=-(1+2\Phi/c^2), nearly flat spatially, and pressureless dust at rest: T00≈ρc2T_{00}\approx\rho c^2, trace T≈−ρc2T\approx-\rho c^2. Why: this is the regime where gravity is a small potential Φ\Phi and Newton should hold.

Step 3. The source component is T00−12Tg00≈ρc2−12(−ρc2)(−1)=12ρc2T_{00}-\tfrac12 T g_{00}\approx\rho c^2-\tfrac12(-\rho c^2)(-1)=\tfrac12\rho c^2, while to leading order R00≈1c2∇2ΦR_{00}\approx\tfrac{1}{c^2}\nabla^2\Phi. Why: trace reversal turns raw energy density into the effective active gravitational mass, and the geometry reduces to the Laplacian of Φ\Phi.

Step 4. Equate: 1c2∇2Φ=κ⋅12ρc2\tfrac{1}{c^2}\nabla^2\Phi=\kappa\cdot\tfrac12\rho c^2, i.e. ∇2Φ=12κc4ρ\nabla^2\Phi=\tfrac12\kappa c^4\rho. Matching Poisson's equation ∇2Φ=4πGρ\nabla^2\Phi=4\pi G\rho forces κ=8πG/c4\kappa=8\pi G/c^4 (8πG8\pi G with c=1c=1). Why: only this value makes general relativity contain Newtonian gravity in the weak field — the single experimental input that scales the theory. *The result is κ=8πG/c4=2.08×10−43 m−1 kg−1 s2\kappa=8\pi G/c^4=2.08\times10^{-43}\ \mathrm{m^{-1}\,kg^{-1}\,s^{2}}, confirming that the field equations reproduce Poisson's equation in the Newtonian limit.*

Limiting cases

The single action generates a family of theories as pieces are toggled.

CaseResultMeaning
VacuumδSEHδgμν=0 ⇒ Rμν=0\dfrac{\delta S_{\mathrm{EH}}}{\delta g^{\mu\nu}}=0\ \Rightarrow\ R_{\mu\nu}=0With no matter the equations reduce to Ricci-flatness; Schwarzschild, Kerr, and gravitational waves have Rμν=0R_{\mu\nu}=0 but Rμνρσ≠0R_{\mu\nu\rho\sigma}\neq0.
Cosmological constantS=116πG∫(R−2Λ)−g d4xS=\dfrac{1}{16\pi G}\displaystyle\int(R-2\Lambda)\sqrt{-g}\,\mathrm d^4xThe unique extra term with no metric derivatives; adds +Λgμν+\Lambda g_{\mu\nu} to the field equations and drives accelerated expansion.
Weak field / linearizedgμν=ημν+hμν, S(2)∼∫(∂h)2g_{\mu\nu}=\eta_{\mu\nu}+h_{\mu\nu},\ S^{(2)}\sim\displaystyle\int(\partial h)^2Expanding to quadratic order in hμνh_{\mu\nu} gives the Fierz-Pauli action of a massless spin-2 field — the graviton.
Higher curvature / f(R)f(R)S=116πG∫f(R)−g d4xS=\dfrac{1}{16\pi G}\displaystyle\int f(R)\sqrt{-g}\,\mathrm d^4xReplacing RR by a nonlinear f(R)f(R) yields fourth-order equations and an extra propagating scalar degree of freedom.

Worked examples

1 · How stiff is spacetime? The coupling constant (fully worked)

The field equations read Gμν=(8πG/c4) TμνG_{\mu\nu}=(8\pi G/c^4)\,T_{\mu\nu} in SI units. Evaluate the coupling and estimate the curvature an everyday energy density — a tank of water — produces.

Step 1. Assemble the coupling. With G=6.674×10−11G=6.674\times10^{-11} and c=2.998×108 m/sc=2.998\times10^8\ \mathrm{m/s}, c4=8.08×1033c^4=8.08\times10^{33} and 8πG=1.677×10−98\pi G=1.677\times10^{-9}, so 8πGc4=2.08×10−43 m−1 kg−1 s2\dfrac{8\pi G}{c^4}=\mathbf{2.08\times10^{-43}\ m^{-1}\,kg^{-1}\,s^{2}}.

Step 2. Estimate the source. Water has ρ=103 kg/m3\rho=10^3\ \mathrm{kg/m^3}; at rest its dominant stress-energy component is the rest-energy density T00≈ρc2=(103)(9.0×1016)=9.0×1019 J/m3T_{00}\approx\rho c^2=(10^3)(9.0\times10^{16})=9.0\times10^{19}\ \mathrm{J/m^3} — huge, because mass is concentrated energy.

Step 3. Multiply through: R∼8πGc4 T00≈(2.08×10−43)(9.0×1019)=1.9×10−23 m−2R\sim\dfrac{8\pi G}{c^4}\,T_{00}\approx(2.08\times10^{-43})(9.0\times10^{19})=\mathbf{1.9\times10^{-23}\ m^{-2}}, so the radius of curvature is 1/R≈2.3×1011 m1/\sqrt{R}\approx2.3\times10^{11}\ \mathrm{m} — about 1.5 astronomical units, larger than Mars's orbit.

Step 4. A cubic metre of water bends spacetime on the scale of an astronomical unit — the geometry is almost perfectly flat. The tiny coupling is why gravity is the weakest interaction and why laboratory curvature is unmeasurable; only stellar or cosmological energies make RR macroscopic. The coupling 8πG/c4≈2.08×10−438\pi G/c^4\approx2.08\times10^{-43} makes spacetime enormously stiff; ordinary matter barely curves it.

2 · The cosmological-constant term as dark energy (fully worked)

Adding −2Λ-2\Lambda to the Lagrangian sources a vacuum energy. Given the observed Λ≈1.1×10−52 m−2\Lambda\approx1.1\times10^{-52}\ \mathrm{m^{-2}}, find the equivalent mass density and compare it to ordinary matter.

Step 1. Move Λ\Lambda to the source side. The term 116πG∫(R−2Λ)−g d4x\frac{1}{16\pi G}\int(R-2\Lambda)\sqrt{-g}\,\mathrm d^4x contributes +Λgμν+\Lambda g_{\mu\nu} on the left; as an effective source on the right it is a perfect fluid with ρΛ=Λc28πG\rho_\Lambda=\dfrac{\Lambda c^2}{8\pi G}.

Step 2. With Λ=1.1×10−52 m−2\Lambda=1.1\times10^{-52}\ \mathrm{m^{-2}}, c2=8.99×1016c^2=8.99\times10^{16}, and 8πG=1.677×10−98\pi G=1.677\times10^{-9}: ρΛ=(1.1×10−52)(8.99×1016)1.677×10−9=5.9×10−27 kg/m3\rho_\Lambda=\dfrac{(1.1\times10^{-52})(8.99\times10^{16})}{1.677\times10^{-9}}=\mathbf{5.9\times10^{-27}\ kg/m^3}, an energy density ρΛc2≈5.3×10−10 J/m3\rho_\Lambda c^2\approx\mathbf{5.3\times10^{-10}\ J/m^3}.

Step 3. That is roughly a few hydrogen atoms per cubic metre — negligible locally, yet because it fills all space and does not dilute as the universe expands, it dominates today's cosmic energy budget (about 70 percent) and drives accelerated expansion. A vacuum energy of only ∼6×10−27 kg/m3\sim6\times10^{-27}\ \mathrm{kg/m^3}, the unique derivative-free term in the action, is the leading candidate for dark energy.

3 · Counting the vacuum equations

In vacuum the action gives Rμν=0R_{\mu\nu}=0. How many independent equations is that, and why does the count leave room for coordinate freedom?

Step 1. The Ricci tensor is symmetric in four dimensions, so Rμν=0R_{\mu\nu}=0 is 10\mathbf{10} equations for the 10 components of gμνg_{\mu\nu} — apparently fully determined. But the contracted Bianchi identity ∇μGμν=0\nabla^\mu G_{\mu\nu}=0 gives four automatic identities, so only 10−4=610-4=\mathbf{6} are truly independent, the missing four being the freedom to choose the four coordinates. Ten equations minus four Bianchi identities leaves six dynamical equations plus four-fold coordinate freedom — the hallmark of a diffeomorphism-invariant theory.

Physics of the portrait

The action is where a mathematician's instinct for economy met a physicist's decade-long struggle — the two arrived at the same doorway within days.

Origins · 1 minDavid Hilbert and how this was discovered
DH
David Hilbert
1862–1943 · the variational formulation of general relativity

David Hilbert was the towering mathematician of Göttingen, a founder of modern axiomatics whose 1900 list of 23 problems set the agenda for a century — the sixth calling for the axiomatization of physics. In 1915, following Einstein's summer lectures at Göttingen on the still-incomplete theory, Hilbert set out to derive gravitation from a single variational principle. On 20 November 1915 he submitted "Die Grundlagen der Physik," deriving the field equations by demanding the integral of the Ricci scalar be stationary; Einstein, by a separate and more physical route, presented the equations to the Prussian Academy five days later. A long priority debate followed, but the consensus is clean: the physical theory and the equivalence-principle reasoning are Einstein's alone; Hilbert's lasting contribution is the elegant variational derivation and the recognition that gravity fits the action framework of all physics, and he always said the theory belonged to Einstein. One thread completes the story: Hilbert and Felix Klein, puzzled by how energy behaved in the new theory, invited Emmy Noether to Göttingen, and in working out exactly this question she proved the theorems tying symmetry to conservation — the machinery that shows diffeomorphism invariance forces ∇μTμν=0\nabla^\mu T_{\mu\nu}=0. Action, symmetry, and conservation law were born in the same room.

History
1915
— Hilbert derives the field equations from the action ∫R√−g d⁴x on 20 November
1915
— Einstein presents G_μν = 8πG T_μν to the Prussian Academy on 25 November
1917
— Einstein adds the cosmological constant Λ to the field equations
1918
— Noether proves that symmetry implies conservation, tying diffeomorphism invariance to ∇T = 0
1977
— Gibbons and Hawking add the boundary term needed for a well-posed action

Going further

Texts. Misner, Thorne & Wheeler, Gravitation (1973), §21.2 · Wald, General Relativity (1984), §E.1 and Appendix E · Carroll, Spacetime and Geometry (2004), §4.3 · Hartle, Gravity (2003), Ch. 22 · Schutz, A First Course in General Relativity (2009), Ch. 8 · Hilbert, Die Grundlagen der Physik (1915). The key checkpoints in this article are: (1) δ−g=−12−g gμνδgμν\delta\sqrt{-g}=-\tfrac12\sqrt{-g}\,g_{\mu\nu}\delta g^{\mu\nu} via Jacobi's formula; (2) the Palatini identity; (3) the bulk integrand is the Einstein tensor; (4) the Noether argument giving ∇μTμν=0\nabla^\mu T_{\mu\nu}=0; (5) the coupling 8πG/c4=2.08×10−438\pi G/c^4=2.08\times10^{-43} and ρΛ≈5.9×10−27 kg/m3\rho_\Lambda\approx5.9\times10^{-27}\ \mathrm{kg/m^3} from Λ=1.1×10−52 m−2\Lambda=1.1\times10^{-52}\ \mathrm{m^{-2}}.

Prerequisites. The Einstein Tensor · The Stress-Energy Tensor · Variational Definition of the Stress-Energy Tensor. Leads to. The Einstein Field Equations · Variational Derivation of the Field Equations · The Gibbons-Hawking-York Boundary Term · The Cosmological Constant · Local Conservation of Energy-Momentum.

Ask the tutor: Ask me to carry out any step — the determinant identity, the Palatini divergence, the Newtonian-limit matching, or how the Gibbons-Hawking-York term cancels the boundary piece — in full index notation.

Why the Ricci scalar and not a higher-curvature invariant like R² or R_μν R^μν?

Because RR is the unique curvature scalar whose second-derivative content assembles into a total divergence, leaving second-order equations. Higher-curvature invariants leave fourth-order terms, which by Ostrogradsky's theorem introduce ghost degrees of freedom — negative-energy modes that destabilize the theory. So RR is not merely simplest; it is the leading term of an effective-field-theory expansion, the higher invariants being legitimate but Planck-suppressed corrections — the minimal healthy theory of a massless spin-2 field.

Is the Einstein-Hilbert action Hilbert's or Einstein's discovery?

Both names are deserved, for different things. Hilbert was first, by five days, to write gravity as a variational principle and derive the equations from δ ⁣∫ ⁣R−g=0\delta\!\int\! R\sqrt{-g}=0; that formulation is his. But the physical theory — the equivalence principle, the geometric interpretation, the decade of reasoning that made curved spacetime physical, and an independent derivation of the same equations — is Einstein's alone. Hilbert always credited the theory to Einstein. The modern verdict, from the surviving proof sheets, is that the two reached the same equations essentially simultaneously by different routes; the hyphenated name honours that.

Why is the metric, and not the connection, the field being varied?

In the standard (metric) formulation the Christoffel symbols are the Levi-Civita connection built from gμνg_{\mu\nu}, so the metric is the only independent field. In the alternative Palatini formulation, metric and connection are varied independently — yet for the pure Einstein-Hilbert action the connection variation forces the connection to be Levi-Civita anyway, so the two agree. They diverge once you add matter coupling to the connection (fermions) or move to f(R)f(R) theories. For plain general relativity, varying the metric is simplest and sufficient.

What exactly goes wrong if I forget the Gibbons-Hawking-York term?

The bulk field equations still come out correct — which is what makes the omission easy to miss. What breaks is the variational principle on a region with a boundary: the variation leaves a surface integral depending on the normal derivative of δgμν\delta g^{\mu\nu}, not fixed even when the metric is held fixed there, so δSEH≠0\delta S_{\mathrm{EH}}\neq0 at a solution and the action is not truly stationary. Adding SGHYS_{\mathrm{GHY}} cancels it. This matters concretely: black-hole entropy, on-shell actions in AdS/CFT, and any Euclidean path integral all need the boundary term for finite answers.

Where does the cosmological constant come from in the action?

It is the unique generally covariant term with no metric derivatives: a constant times −g\sqrt{-g}. Written as 116πG∫(R−2Λ)−g d4x\frac{1}{16\pi G}\int(R-2\Lambda)\sqrt{-g}\,\mathrm d^4x, varying it adds +Λgμν+\Lambda g_{\mu\nu} to the field equations. Having no derivatives it cannot affect the graviton but it shifts the vacuum. Quantum field theory insists it be there — vacuum fluctuations generate exactly such a term — which is why Λ=0\Lambda=0 is unnatural and the tiny observed value poses the cosmological-constant problem. It is the zeroth-order term of the curvature expansion, below RR.

How can varying an action reproduce a theory Einstein built from physical principles?

This is the recurring miracle of the action principle: a symmetry-respecting scalar, made stationary, reproduces equations found originally by other means. For gravity those means were Einstein's physical reasoning — equivalence principle, covariance, Newtonian limit — and the action encodes the same requirements compactly: covariance from a scalar and −g\sqrt{-g}, second-order equations from RR, the coupling from the Newtonian limit. It is not a coincidence but the most economical repackaging of the same physics, which is why it, not the component equations, generalizes to quantum gravity and cosmology.

Before this

Where this leads