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.
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