Einstein field equations from the Hilbert action and Bianchi identity
Statement
Stationary points of the Einstein–Hilbert action S[g]=∫M(16πGc4(R−2Λ)+Lmatter)−gd4x with respect to variations δgμν of a Lorentzian metric satisfy Rμν−21Rgμν+Λgμν=c48πGTμν, and the contracted Bianchi identity ∇μGμν=0 implies ∇μTμν=0.
Why is it true?
Just as Euler–Lagrange turns stationary action into a differential equation for a particle path, varying the scalar curvature integrated over spacetime turns stationary action into a partial differential equation for the metric itself. The −21Rgμν term comes specifically from varying the volume factor −g, and it is the exact term needed to make the curvature side divergence-free via the contracted Bianchi identity — matching the conservation of energy and momentum on the matter side.
Proof sketch
Step 1 (decompose the variation of the gravitational integrand). Write R=gμνRμν. By the product rule, δ((R−2Λ)−g)=Rμν−gδgμν+gμν(δRμν)−g+(R−2Λ)δ−g.
**Step 2 (Jacobi's formula for δ−g and the Palatini identity).** Using Jacobi's identity δ(detg)=(detg)gμνδgμν=−(detg)gμνδgμν, we get δ−g=−21−ggμνδgμν. Meanwhile, the Palatini identity expresses the Ricci variation as a covariant divergence, gμνδRμν=∇α(gμνδΓμνα−gανδΓμνμ), which integrates to zero on M by Stokes's theorem for variations δgμν supported away from the boundary.
**Step 3 (assemble δS=0).** Combining Steps 1 and 2 and the definition Tμν≡−−g2δgμνδSmatter, δS=∫M[16πGc4(Rμν−21Rgμν+Λgμν)−21Tμν]δgμν−gd4x=0. Since δgμν is an arbitrary symmetric tensor variation, the bracket must vanish pointwise, giving Rμν−21Rgμν+Λgμν=c48πGTμν.
Step 4 (contracted Bianchi identity and conservation). The second Bianchi identity ∇λRρσμν+∇ρRσλμν+∇σRλρμν=0, contracted twice with gλμgρν, yields ∇μRμν−21∇νR=0, i.e. ∇μGμν=0 for Gμν=Rμν−21Rgμν. Because ∇μgμν=0 (metric compatibility), taking ∇μ of Rμν−21Rgμν+Λgμν=c48πGTμν forces ∇μTμν=0.