For the minimally coupled scalar field, keep the metric tensor fixed and vary . A scalar's first covariant derivative equals its ordinary derivative, so
Apply integration by parts for tensor fields. The boundary contribution is proportional to and vanishes under the given boundary condition, leaving
The interior variation is arbitrary. Thus the scalar equation of motion is
Here the d'Alembert operator contains the Levi-Civita connection in the second covariant derivative, even though the first derivative of the scalar field is ordinary.
The metric dependence of the minimally coupled scalar field Lagrangian is . Part (ii) therefore gives the stress-energy tensor
Use metric compatibility and the symmetric Hessian of a scalar field to compute
This is the scalar stress-energy divergence identity, an instance of the diffeomorphism Noether identity for a scalar field. On the scalar equation of motion it gives stress-energy conservation, .