Skip to content

Metric Variation Identities

Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

Scrollable table. Use Left and Right arrow keys to reveal additional columns.

Scrollable figure. Use Left and Right arrow keys to inspect hidden content.

Varying a curvature action requires a small set of identities used with one metric variable consistently. The determinant supplies the trace term, the Levi-Civita connection supplies derivatives of the variation, and the Palatini identity separates the Ricci variation into a divergence. Retaining that divergence is essential: it is the source of the gravitational boundary term and presymplectic potential.

Required background. We use covariant variational calculus, the curvature tensor, and hypersurface geometry.

Helpful background. The flat limit comes from special relativity; tensor operations and classical field variations supply the algebraic method.

Vary the identity gacgcb=δbag^{ac}g_{cb}=\delta^a_b:

δgab=−gacgbdδgcd,δgab=−gacgbdδgcd.\delta g^{ab}=-g^{ac}g^{bd}\delta g_{cd}, \qquad \delta g_{ab}=-g_{ac}g_{bd}\delta g^{cd}.

Thus δgab\delta g^{ab} and δgab\delta g_{ab} are not related merely by raising indices; there is a minus sign. Choose one as the independent variable and translate every term together.

Jacobi’s determinant formula gives δg=g gabδgab\delta g=g\,g^{ab}\delta g_{ab}. Since g<0g<0 for a Lorentzian metric of signature (−,+,+,+)(-,+,+,+),

δ−g=12−g gabδgab=−12−g gabδgab.\delta\sqrt{-g} =\frac12\sqrt{-g}\,g^{ab}\delta g_{ab} =-\frac12\sqrt{-g}\,g_{ab}\delta g^{ab}.

The two versions are a valuable sign check. Reall derives them before varying the curvature scalar Reall 2013, § 10.2, pp. 116–117, Eqs. (10.8)–(10.13), PDF.

Although the connection is not a tensor, the difference between two connections is. Therefore δΓabc\delta\Gamma^a{}_{bc} is a tensor under a fixed coordinate identification. Vary metric compatibility or the Christoffel formula to obtain

δΓabc=12gad(∇bδgdc+∇cδgdb−∇dδgbc).\delta\Gamma^a{}_{bc} =\frac12g^{ad} \left( \nabla_b\delta g_{dc} +\nabla_c\delta g_{db} -\nabla_d\delta g_{bc} \right).

If δgab\delta g^{ab} is independent, substitute δgab=−gacgbdδgcd\delta g_{ab}=-g_{ac}g_{bd}\delta g^{cd} only after taking account of metric compatibility. The result contains one covariant derivative of the metric variation.

This formula can be derived at any chosen event in normal coordinates, where Γabc=0\Gamma^a{}_{bc}=0 and ∇\nabla reduces to ∂\partial at the event. Because both sides are tensors, equality in that frame establishes equality in every frame. Normal coordinates simplify the proof; they do not set δΓ\delta\Gamma to zero.

The connection variation in this convention is given in Reall 2013, § 10.2, p. 117, Eqs. (10.14)–(10.16), PDF.

With

Rabcd=∂cΓadb−∂dΓacb+ΓaceΓedb−ΓadeΓecb,R^a{}_{bcd} =\partial_c\Gamma^a{}_{db}-\partial_d\Gamma^a{}_{cb} +\Gamma^a{}_{ce}\Gamma^e{}_{db} -\Gamma^a{}_{de}\Gamma^e{}_{cb},

variation and regrouping into covariant derivatives gives

δRab=∇cδΓcab−∇bδΓcac.\delta R_{ab} =\nabla_c\delta\Gamma^c{}_{ab} -\nabla_b\delta\Gamma^c{}_{ac}.

This is the Palatini identity for the site’s curvature convention. It is a divergence before contraction, but it is not zero. The scalar curvature varies as

δR=Rabδgab+gabδRab.\delta R =R_{ab}\delta g^{ab} +g^{ab}\delta R_{ab}.

Define

vc=gabδΓcab−gacδΓbab.v^c=g^{ab}\delta\Gamma^c{}_{ab} -g^{ac}\delta\Gamma^b{}_{ab}.

Metric compatibility turns the last term into gabδRab=∇cvcg^{ab}\delta R_{ab}=\nabla_cv^c. In terms of the inverse metric variation,

vc=∇c(gabδgab)−∇bδgbc.v^c=\nabla^c(g_{ab}\delta g^{ab})-\nabla_b\delta g^{bc}.

The curvature identity, its contraction, and the resulting divergence are developed without discarding the boundary term in Reall 2013, § 10.2, pp. 117–118, Eqs. (10.17)–(10.23), PDF.

Combine the determinant and scalar-curvature identities:

δ(−gR)=R δ−g+−g δR=−g Gabδgab+−g ∇cvc.\begin{aligned} \delta(\sqrt{-g}R) &=R\,\delta\sqrt{-g}+\sqrt{-g}\,\delta R\\ &=\sqrt{-g}\,G_{ab}\delta g^{ab} +\sqrt{-g}\,\nabla_cv^c. \end{aligned}

After integration, Stokes’ theorem converts the divergence into a boundary integral. For compactly supported variations it vanishes. On a finite region it contains normal derivatives of δgab\delta g_{ab} and cannot be removed by merely fixing the induced metric.

The cosmological density provides a separate check:

δ(−2Λ−g)=Λ−g gabδgab.\delta(-2\Lambda\sqrt{-g}) =\Lambda\sqrt{-g}\,g_{ab}\delta g^{ab}.

It contributes +Λgab+\Lambda g_{ab} to the equation when the action contains R−2ΛR-2\Lambda.

The integration step assumes that the underlying manifold and the coordinate location of its boundary are held fixed during variation. If the boundary itself moves, its displacement changes both the integration domain and the induced geometric data, producing additional terms. Distributional metrics likewise require more care than the smooth identities given here. Within the stated smooth fixed-domain problem, however, the divergence theorem is exact and the boundary term is part of the result rather than a negligible correction.

It is also useful to distinguish a tensor from a tensor density. The combination −ggab\sqrt{-g}g^{ab} appearing after integration by parts has density weight one; an affine covariant derivative acting on it includes the corresponding trace of the connection. In the metric calculation this subtlety is hidden by Levi-Civita compatibility, but it becomes explicit in an independent-connection variation.

Three errors tend to travel together: forgetting the minus sign between δgab\delta g^{ab} and δgab\delta g_{ab}, using a Palatini identity from the opposite Riemann convention, and discarding gabδRabg^{ab}\delta R_{ab} before specifying boundary support. A robust check is to redo the determinant and cosmological variations with gabg_{ab} as the independent field; translating at the end must reproduce the same equation.

A nonconstant conformal variation tests the derivative terms as well. In DD dimensions set δgab=2ω(x)gab\delta g_{ab}=2\omega(x)g_{ab}. The identities give

δ−g=Dω−g,va=−2(D−1)∇aω,\delta\sqrt{-g}=D\omega\sqrt{-g}, \qquad v^a=-2(D-1)\nabla^a\omega,

and hence

δR=−2ωR−2(D−1)□ω.\delta R=-2\omega R-2(D-1)\Box\omega.

The constant-ω\omega limit checks curvature’s inverse-length-squared scaling. Allowing ω\omega to vary is essential: a constant rescaling would never detect a missing surface divergence. In D=4D=4 the curvature-density variation is −g(2ωR−6□ω)\sqrt{-g}(2\omega R-6\Box\omega), which also follows by inserting δgab=−2ωgab\delta g^{ab}=-2\omega g^{ab} into the Einstein-tensor formula.

Starting from gacgcb=δbag^{ac}g_{cb}=\delta^a_b, derive the inverse-metric variation and use it to show that the two formulas for δ−g\delta\sqrt{-g} agree.

Solution

Variation gives (δgac)gcb+gacδgcb=0(\delta g^{ac})g_{cb}+g^{ac}\delta g_{cb}=0. Multiplying by gbdg^{bd} yields δgad=−gacgbdδgcb\delta g^{ad}=-g^{ac}g^{bd}\delta g_{cb}. Hence

gabδgab=−gabδgab,g^{ab}\delta g_{ab} =-g_{ab}\delta g^{ab},

and substitution into δ−g=(1/2)−ggabδgab\delta\sqrt{-g}=(1/2)\sqrt{-g}g^{ab}\delta g_{ab} gives the inverse-metric form with a minus sign.

  • Reall, Harvey S. General Relativity. Cambridge Part III lecture notes (2013). PDF.