Deriving Einstein’s equationDeriving Einstein’s equation
Curvature changes. Volume changes. Together they produce Einstein’s field equation.Curvature changes. Volume changes. Together they produce Einstein’s field equation.
1 worked example in this chapter
Before you begin
How does one scalar action produce the full tensor equation?
- Vary a path and a field with stated boundary data ↗Derive a field Euler–Lagrange equation and name the boundary variation.
- Trace reverse and identify the Newtonian source ↗Recover the factor of one half in the trace-reversed source.
By the end: Follow the Einstein–Hilbert variation, including its boundary term.
The Einstein–Hilbert action integrates scalar curvature over spacetime volume. We will vary both the curvature and the volume, then combine their changes with the matter response derived in Chapter 13.The Einstein–Hilbert action integrates scalar curvature over spacetime volume. We will vary both the curvature and the volume, then combine their changes with the matter response derived in Chapter 13.
Our dynamical variable will be the inverse metric . The connection is its Levi-Civita connection, not an independent field in this derivation. Matter fields are collectively denoted .
14.1 Choosing the gravitational action#14.1 Choosing the gravitational action
TakeTake
Why this structure? An action should not depend on arbitrary coordinate labels, so integrate a scalar using invariant volume. A constant scalar gives a cosmological term. The simplest nontrivial scalar built from a metric and its curvature at two-derivative order is .
This is a choice of theory with substantial motivation, not a proof that other terms are forbidden. Scalars such as and are also coordinate invariant; Chapter 23 explains why a modern effective theory expects higher-order terms. Here we derive the dynamics of the Einstein–Hilbert choice.
The coefficient is already calibrated by the Newtonian limit. With ,
so has units . Under an actual coordinate change from to , the invariant action keeps its prefactor: the transformed metric has and its determinant contributes . Some presentations factor that out of the determinant and write a prefactor with a reduced determinant convention. These are consistent bookkeeping choices. Do not transplant their prefactor into our formula.
The boundary term specifies part of the variational problem. For deriving the local bulk equations, we may initially choose variations supported strictly inside the region. For a finite-region variational problem that fixes the boundary geometry, an additional boundary action will be required.The boundary term specifies part of the variational problem. For deriving the local bulk equations, we may initially choose variations supported strictly inside the region. For a finite-region variational problem that fixes the boundary geometry, an additional boundary action will be required.
14.2 Varying curvature and volume#14.2 Varying curvature and volume
Write and vary the gravitational bulk term:
Here is a fixed parameter, so . Since , the product rule gives
The first term comes from changing the inverse metric used to take the trace. The second comes from changing curvature itself. Substituting the volume identity,The first term comes from changing the inverse metric used to take the trace. The second comes from changing curvature itself. Substituting the volume identity,
Most of Einstein’s equation is already visible. The trace subtraction came from volume variation, and came from multiplying by the in that same variation. The remaining term contains the variation of Ricci curvature. We must calculate it before deciding whether it contributes to the interior equation or to the boundary.
14.3 How a changing metric changes the connection#14.3 How a changing metric changes the connection
SetSet
Metric compatibility says . Varying it gives
We have used the fact that varying the covariant derivative also varies its two connection terms. Now write the analogous equations with cyclic permutations of the indices. Add the versions with derivative indices and , and subtract the version with derivative index . Symmetry of the lower two connection indices makes the unwanted terms cancel. The result is
It resembles the Christoffel formula, but ordinary derivatives have become covariant derivatives of the metric variation.It resembles the Christoffel formula, but ordinary derivatives have become covariant derivatives of the metric variation.
Why is this a tensor, when a connection is not? Two connections transform with the same inhomogeneous coordinate term, so their difference transforms tensorially. is an infinitesimal difference of connections. Its covariant derivative therefore follows the tensor rule from Chapter 6.
This comparison holds the coordinate identification of the underlying manifold fixed. A separate coordinate transformation is a different operation, even though both can be written with small parameters.This comparison holds the coordinate identification of the underlying manifold fixed. A separate coordinate transformation is a different operation, even though both can be written with small parameters.
14.4 The Palatini identity: curvature variation becomes a derivative#14.4 The Palatini identity: curvature variation becomes a derivative
Start with our Ricci convention:Start with our Ricci convention:
Vary every connection. The first two terms give derivatives of ; the product terms each give two terms containing one and one . Those product terms are exactly the connection corrections required to turn the derivatives into covariant derivatives:
This is the Palatini identity. A clean way to verify the algebra is to choose normal coordinates for the unvaried metric at one point. There , all the product-variation terms vanish at that point, and the identity reduces to varying the two ordinary derivative terms. Both sides are tensors, so equality established that way holds in every chart. Normal coordinates simplify a tensor calculation; they do not make curvature vanish.
Contract with . Because , the inverse metric moves through the derivatives:
wherewhere
Substitute the connection variation to make its content more explicit:Substitute the connection variation to make its content more explicit:
If and , then and , so equivalently
This is the key structural result. The remaining variation of curvature contributes a total divergence, rather than an additional bulk field equation.This is the key structural result. The remaining variation of curvature contributes a total divergence, rather than an additional bulk field equation.
The Einstein–Hilbert integrand contains second derivatives of the metric. Nevertheless its bulk Euler–Lagrange equations contain only second derivatives, not generic fourth derivatives: for an action linear in , the terms containing derivatives of the metric variation combine into this boundary divergence. Curvature-squared actions do not generally share that simplification.
14.5 Obtaining the field equation#14.5 Obtaining the field equation
We have establishedWe have established
For a variation supported inside the region, the second integral vanishes by the divergence theorem. Add the matter variation:For a variation supported inside the region, the second integral vanishes by the divergence theorem. Add the matter variation:
ThereforeTherefore
The ten symmetric metric variations can be chosen arbitrarily in the interior, so their coefficient vanishes:The ten symmetric metric variations can be chosen arbitrarily in the interior, so their coefficient vanishes:
Multiply by :
The geometry and matter equations arise by independent variations of the metric and matter fields. When varying the metric to derive this equation, matter fields are held fixed as field variables; when varying matter, the metric is held fixed. A physical solution must satisfy both resulting sets of equations.The geometry and matter equations arise by independent variations of the metric and matter fields. When varying the metric to derive this equation, matter fields are held fixed as field variables; when varying matter, the metric is held fixed. A physical solution must satisfy both resulting sets of equations.
We have now derived the field equation in words as well as symbols: change the metric, account for the changed trace of curvature, account for the changed spacetime volume, separate a divergence from the curvature variation, measure the matter response by its stress tensor, and require the total first-order response to vanish.We have now derived the field equation in words as well as symbols: change the metric, account for the changed trace of curvature, account for the changed spacetime volume, separate a divergence from the curvature variation, measure the matter response by its stress tensor, and require the total first-order response to vanish.
14.6 What fixed boundary values leave free#14.6 What fixed boundary values leave free
In mechanics with a first-derivative Lagrangian, fixing at the endpoints makes the integration-by-parts boundary term zero. Here contains derivatives of . Fixing the metric on a boundary does not fix its normal derivative there.
The one-dimensional analogy is a function satisfying while is completely arbitrary. The function can meet the wall at any slope. A fixed boundary metric likewise does not prevent its variation from changing immediately away from the boundary.
There are two different legitimate problems:There are two different legitimate problems:
- To derive local bulk equations, use compactly supported variations. No boundary term survives.To derive local bulk equations , use compactly supported variations. No boundary term survives.
- To define a finite-region Dirichlet variational principle, fix the induced boundary geometry and add a term cancelling normal derivatives of its variation. “Dirichlet” means fixing the field values at the boundary; here those values specify its geometry.To define a finite-region Dirichlet variational principle , fix the induced boundary geometry and add a term cancelling normal derivatives of its variation. “Dirichlet” means fixing the field values at the boundary; here those values specify its geometry.
The second problem is solved, for smooth non-null boundaries, by the Gibbons–Hawking–York term.The second problem is solved, for smooth non-null boundaries, by the Gibbons–Hawking–York term.
14.7 Induced geometry and the Gibbons–Hawking–York term#14.7 Induced geometry and the Gibbons–Hawking–York term
Let be the outward-directed unit normal to a smooth boundary segment. Set
We use for this sign so it cannot be confused with energy density . Define a tensor that removes the normal direction:
It obeys ; raising its first index gives the tangent projector. In boundary coordinates with tangent vectors , the induced metric is
It measures distances and, for a timelike boundary, times along the boundary. Its determinant gives the surface measure .
The extrinsic curvature isThe extrinsic curvature is
It describes how the normal changes as one moves along the boundary: how the boundary bends within spacetime. This differs from its intrinsic curvature. A cylindrical surface, for example, can have nonzero extrinsic curvature even while its two-dimensional intrinsic geometry is locally flat.It describes how the normal changes as one moves along the boundary: how the boundary bends within spacetime. This differs from its intrinsic curvature. A cylindrical surface, for example, can have nonzero extrinsic curvature even while its two-dimensional intrinsic geometry is locally flat.
With this definition of and outward normals, the appropriate term is
Sum over boundary segments when needed. The Lorentzian divergence theorem in these conventions usesSum over boundary segments when needed. The Lorentzian divergence theorem in these conventions uses
so the Einstein–Hilbert boundary variation is . Defining with an overall minus sign, or choosing different normal orientations, changes the displayed boundary-action signs. Always compare definitions before comparing formulas.
We can see the cancellation explicitly. Construct Gaussian normal coordinates by launching geodesics perpendicular to the boundary. Keep the boundary labels fixed along each such geodesic and use signed proper distance, or proper time multiplied by , as . Choose increasing outward. Sufficiently near the boundary these coordinates give
For variations preserving this coordinate form near the boundary, with on the boundary itself,
ThusThus
whereas, because fixed also means there,
They cancel. This local coordinate check isolates precisely the normal-derivative terms that made the original variation problematic.They cancel. This local coordinate check isolates precisely the normal-derivative terms that made the original variation problematic.
More generally, for a smooth non-null boundary, the remaining metric boundary variation takes the formMore generally, for a smooth non-null boundary, the remaining metric boundary variation takes the form
up to boundary-of-boundary contributions and the specified boundary conventions. It vanishes when the induced metric is fixed. The boundary action makes the chosen variational problem well posed; it does not change Einstein’s bulk field equation.up to boundary-of-boundary contributions and the specified boundary conventions. It vanishes when the induced metric is fixed. The boundary action makes the chosen variational problem well posed; it does not change Einstein’s bulk field equation.
There are deliberate limits to this formula. Corners and joints generally require extra terms. Null boundaries have no unit normal and a degenerate induced metric, so the displayed GHY formula cannot simply be applied to them. Their boundary and joint terms require additional choices, including the normalization or parametrization of null generators. A detailed primary treatment is Lehner, Myers, Poisson, and Sorkin, “Gravitational action with null boundaries”.There are deliberate limits to this formula. Corners and joints generally require extra terms. Null boundaries have no unit normal and a degenerate induced metric, so the displayed GHY formula cannot simply be applied to them. Their boundary and joint terms require additional choices, including the normalization or parametrization of null generators. A detailed primary treatment is Lehner, Myers, Poisson, and Sorkin, “Gravitational action with null boundaries”.
A boundary term that refuses to disappearA boundary term that refuses to disappear
What does fixing a boundary value fail to fix?What does fixing a boundary value fail to fix?
See the idea
We can test the boundary argument with a one-dimensional action containing a second derivative. Its endpoint values stay fixed, while the slopes at those endpoints can change. Calculating the variation shows exactly which data a boundary term must account for.We can test the boundary argument with a one-dimensional action containing a second derivative. Its endpoint values stay fixed, while the slopes at those endpoints can change. Calculating the variation shows exactly which data a boundary term must account for.
Work it out
- Integrate a deliberately simple action
Take . Under , its variation is the difference of endpoint derivatives of .
Why this step works The fundamental theorem of calculus exposes what the action actually depends on.
- Use an allowed fixed-value variation
Choose . It vanishes at x=0 and x=1, so both endpoint values of q stay fixed. But , giving .
Why this step works Endpoint values do not constrain endpoint derivatives.
- Match the action to the boundary problem
Adding cancels this toy action’s entire boundary dependence. There is no bulk dynamics in this deliberately pure-boundary toy. In GR the Einstein–Hilbert action has genuine bulk dynamics as well as a derivative boundary variation; the Gibbons–Hawking–York term cancels the latter under the appropriate fixed induced-metric boundary conditions.
Why this step works An action’s boundary completion depends on which boundary data the problem holds fixed.
Go deeper
For a concrete GR boundary, take a timelike cylinder r=R in Minkowski spacetime, use c=1 and outward normal . Its induced metric is . The convention in the next section gives , hence . Over a time interval , the cylinder contributes . This computes that boundary segment only; closing the region can require other segments and corner terms. The spacetime is flat even though this boundary has nonzero extrinsic curvature.
Test the idea Test the idea
FIRST, PREDICTFIRST, PREDICT
For an action containing second derivatives, is δq = 0 at the boundary alone sufficient to discard all boundary variations?For an action containing second derivatives, is δq = 0 at the boundary alone sufficient to discard all boundary variations?
Compare the reasoningCompare the reasoning
The answer depends only on spacetime being curved.The answer depends only on spacetime being curved.
The logical issue already occurs for a function on an ordinary interval.The logical issue already occurs for a function on an ordinary interval.
No. Derivatives of δq can remain.No. Derivatives of δq can remain.
The toy action provides a fixed-endpoint variation with a nonzero derivative boundary term.The toy action provides a fixed-endpoint variation with a nonzero derivative boundary term.
Yes. A boundary value fixes every derivative.Yes. A boundary value fixes every derivative.
A function can vanish at a point with a nonzero slope there.A function can vanish at a point with a nonzero slope there.
A hintA hint
Compute the variation of the supplied total-derivative action.Compute the variation of the supplied total-derivative action.
NOW CHANGE THE EXAMPLENOW CHANGE THE EXAMPLE
For , find the variation of .
A hintA hint
Evaluate .
Work through the solutionWork through the solution
, so .
A boundary term can encode essential information about the question an action is answering.A boundary term can encode essential information about the question an action is answering.
14.8 Palatini identity versus Palatini variation#14.8 Palatini identity versus Palatini variation
The Palatini identity used above is an identity for the variation of curvature. We used it while the connection was determined by the metric.The Palatini identity used above is an identity for the variation of curvature. We used it while the connection was determined by the metric.
The Palatini formulation changes the variational problem: it treats and a connection as independent fields. Assume the independent connection is torsion-free and matter does not couple to it. We will see how its equation recovers the metric connection for the Einstein–Hilbert action in dimension .
Define . This is a tensor density of weight one: under a coordinate change it transforms like an ordinary tensor, with an additional factor from the volume density. Its covariant derivative includes a correction for that factor:
The final term differentiates the volume-density factor. For a weight-one vector density, contraction makes its connection terms cancel, so its covariant divergence equals its ordinary divergence. That allows integration by parts with these densities.The final term differentiates the volume-density factor. For a weight-one vector density, contraction makes its connection terms cancel, so its covariant divergence equals its ordinary divergence. That allows integration by parts with these densities.
Hold the metric fixed and vary the independent connection in . The Palatini identity gives derivatives of . Integrating them by parts and collecting the symmetric variations gives
Set and sum. The result is . Substituting this back yields
To see why this implies metric compatibility, put . The product rule says . Contract with to obtain . Independently, the determinant identity gives
Differentiating the inverse-metric identity makes . Thus . For , and . Together with zero torsion, this selects the Levi-Civita connection by Chapter 7’s uniqueness result.
This equivalence uses the stated action and matter assumptions. Changing the curvature action, allowing matter to couple to the independent connection, or allowing torsion changes the variational equations and requires a separate analysis.This equivalence uses the stated action and matter assumptions. Changing the curvature action, allowing matter to couple to the independent connection, or allowing torsion changes the variational equations and requires a separate analysis.
The idea to keepThe idea to keep
Varying gives Ricci plus a divergence; varying the volume element gives the trace subtraction. Boundaries are part of the variational problem.
Does setting on the boundary automatically set its normal derivative to zero?
No. A function can vanish on a surface while having a nonzero normal derivative there. The Einstein–Hilbert boundary variation must be handled with suitable terms and conditions.No. A function can vanish on a surface while having a nonzero normal derivative there. The Einstein–Hilbert boundary variation must be handled with suitable terms and conditions.