Solution
= Solution
Integrating the Euler-Lagrange equation and applying the <divergence theorem> on the compact boundaryless manifold gives
$$
\int_M f\,d\operatorname{vol}_g
=-\int_M\Delta_gu\,d\operatorname{vol}_g=0.
$$
Equivalently, if this integral were nonzero, replacing $u$ by $u+C$ would leave the gradient term unchanged and make the energy unbounded below in one direction, so no minimizer could exist.