With the stated curvature convention, the Ricci tensor is and the scalar curvature is . Contract the differential Bianchi identity once to give the divergence of the Riemann tensor, then again with the inverse metric. The curvature antisymmetries yield , so .
The Einstein field equations are , with . The contracted Bianchi identity makes the left side divergence-free, enforcing the local stress-energy conservation law and ensuring consistency of the matter equations with the gravitational constraints.
For a scalar, second covariant derivatives commute. Commuting a further derivative past the resulting covector introduces Ricci curvature, giving .
Now implies . Taking its divergence and using that commutation formula gives , hence . Meanwhile . Adding proves
In Riemannian signature this is the steady gradient Ricci soliton scalar identity, with soliton potential .