Metric variation of scalar curvature Created 2026-09-24 Updated 2026-10-05
For , the Ricci scalar varies as
The last two terms form a covariant divergence and hence contribute only a boundary term to a compactly supported variation of the Einstein-Hilbert action.
For this question use the Levi-Civita connection, its metric compatibility and the usual curvature symmetries. In the index ordering of Question 1, put and . Contract the second Bianchi identity in its derivative index and curvature index . The curvature symmetries give
Now contract . The left-hand side becomes , while the right-hand side becomes . Thus
Using yields the contracted Bianchi identity
Taking the covariant divergence of the Einstein field equations, with constant , then gives . The matter equation is therefore consistent with the geometric identity rather than imposing an extra incompatible condition on the metric.
Stress-energy conservation expresses the local balance of energy and momentum, including their transport and the effects of the gravitational Levi-Civita connection. In a freely falling frame at a point it reduces there to the familiar ordinary divergence law. A global conserved energy requires additional geometric structure, such as a timelike Killing vector field; it does not follow in an arbitrary spacetime just by replacing a covariant derivative with an ordinary derivative.
For relativistic dust,
With signature , implies . Contracting gives ; where , substitution then gives . Thus the continuity law combines rest-mass conservation and free geodesic motion for this matter model.
For the Newtonian limit, take and , consistently with Question 3. Use the static weak field sourced by the time-independent, slowly moving matter, retaining first order in and leading order in the spatial speed. Write spatial gradients with here; these are Euclidean spatial indices in the Newtonian equation. The Levi-Civita connection formula gives
The exact change from proper time to in the spatial geodesic equation is
Terms containing spatial velocities are negligible at leading order, leaving
An additive constant in is immaterial to this acceleration and is normally fixed by the asymptotic time normalization. With units restored, .
At the same order, staticity and the curvature definition give
The trace of the four-dimensional Einstein equations is , so their trace-reversed form is
For nonrelativistic dust, , , so and . Keeping leading matter terms therefore gives . Combining this with the geometric expression yields
This trace reversal is essential: equating directly to would miss the factor of two. The approximation is the quasistatic Newtonian sector; arbitrary independently imposed gravitational radiation is not part of that sector.
For a perfect fluid in general relativity, let be rest-frame total energy density divided by , its isotropic pressure, and its four-velocity, normalized by . Then
The contracted Bianchi identity and the Einstein field equations give stress-energy conservation, , for a constant cosmological constant. Contract with and use the normalization to obtain
In comoving coordinates and the covariant divergence is , where a dot is a cosmic time derivative and the Hubble parameter. Therefore
For a fixed region in comoving coordinates, let be its physical volume, where is a fixed coordinate-volume integral, and let . Since ,
Thus the cosmological perfect-fluid continuity equation is exactly equivalent to the adiabatic first law of thermodynamics, , for every nonzero such region. Conversely, expanding that first law of thermodynamics and dividing by recovers the same equation. No heat or particle flux crosses the comoving boundary; interacting components separately need source terms, although the total still obeys this conservation equation.
There is a sign inconsistency in the supplied formula sheet worth isolating. Its Riemann curvature tensor and Ricci tensor conventions, together with its stated metric signature, give for with constant . Its vacuum Einstein field equations with then require , whereas its printed vacuum Friedmann equation gives . For example, , and satisfy the latter but leave the former's component equal to . Changing the geometric cosmological constant term to repairs this mismatch. The conservation derivation is unaffected; below take the geometric cosmological constant to be zero and include any vacuum energy as a fluid, so no ambiguous sign enters.
A semicolon denotes the covariant derivative for the Levi-Civita connection. For example, the four lower indices of the Riemann curvature tensor contribute four connection terms:
Here is a partial derivative, are Christoffel symbols, and repeated indices are summed from to . Write for the metric tensor, for its inverse metric, for the Ricci tensor, and for the Ricci scalar. This tensor contraction agrees with the paper's .
By metric compatibility, the inverse metric may pass through each covariant derivative. Contracting the second Bianchi identity with gives
where is the same covariant derivative as the semicolon. Next contract with . Antisymmetry of the first pair gives , so
Thus the contracted Bianchi identity is . Raising the remaining index and using metric compatibility proves
The Einstein tensor therefore has identically zero covariant divergence, without imposing any field equation. This makes the Einstein field equations compatible with stress-energy conservation, , where is the stress-energy tensor. The connection terms describe how energy and momentum are compared at neighboring points; ordinary componentwise partial derivatives would not give a coordinate-independent conservation law in curved spacetime.
Put , , and . Throughout this part use the Riemann curvature tensor convention printed in the paper. Varying gives the inverse-metric variation. The determinant identity gives the volume form variation. Together these are
In Lorentzian coordinates the latter reads .
For the connection, vary metric compatibility :
Add the equations with derivatives , subtract that with derivative , and use symmetry of the lower indices of the Levi-Civita connection. This gives
The difference of two connections is a tensor, so this formula is covariant.
Varying the coordinate curvature formula yields the Palatini identity
The contractions of the connection variation are
Finally, gives the metric variation of scalar curvature:
The double divergence may equivalently be written : relabeling the contracted dummy indices and using symmetry of gives the same expression. The derivative terms are a covariant divergence, useful when varying a curvature-dependent action.
For the torsion-free Levi-Civita connection, cyclically summing the displayed coordinate expression and using gives the algebraic first Bianchi identity
Apply the Jacobi identity to three covariant-derivative commutators, or differentiate the coordinate formula in normal coordinates. The third-derivative terms and the derivatives of quadratic connection terms cancel cyclically, giving the differential second Bianchi identity
Contracting the first and third curvature indices and then contracting once more yields
or the contracted Bianchi identity
For the metric variation ,
while the two double-divergence terms in the supplied metric variation of scalar curvature become a boundary term after integration by parts for tensor fields. The Einstein-Hilbert action therefore contributes . Varying the Proca action with respect to the metric gives the Proca stress-energy tensor, and the full Einstein-Proca theory equation is
Since , variation with respect to and one integration by parts give the covariant Proca equation
Taking its covariant divergence gives
because the resulting contractions pair the symmetric Ricci tensor with the antisymmetric electromagnetic field tensor. Since , the Lorenz constraint in Proca theory follows:
Moreover, and , so the Electromagnetic Bianchi identity is
Finally, use that identity to differentiate the matter tensor. The result groups naturally as
Both terms vanish by the Proca equation and its Lorenz constraint in Proca theory. Thus , exactly as required by the contracted Bianchi identity applied to the Einstein field equations. The vector equation is therefore consistent with the gravitational equation.
The trace of the electromagnetic stress-energy tensor in four spacetime dimensions is
For its covariant divergence, the source-free Maxwell equations eliminate the derivative of the first factor. Contracting the Bianchi identity with gives
which cancels the derivative of the trace term. Hence
For , stress-energy conservation and symmetry of now imply