# Note on Lie derivatives and divergences

One of Saul Teukolsky’s favorite pieces of advices is if you’re ever stuck, try integrating by parts. If we’re working with a covariant derivative , and we have some tensor quantities under an integral, then every calculus student knows that we can move the derivative from one to the other,

(Of course, this only makes sense if your integral itself makes sense—so together make the integrand a scalar.) Here is the integration region, and the boundary terms above come from Stokes’ theorem, converting the integral of a total divergence in into the integral of a flux through the boundary .

Sometimes in differential geometry, instead of dealing with a metric-compatible covariant derivative , we’re dealing with a Lie derivative along a vector field . Wouldn’t it be convenient, then, if we could integrate by parts with Lie derivatives? That is, do we have the property that

After all, integrating by parts comes from rearranging the Leibniz rule . But the Lie derivative, being a derivation, also satisfies the Leibniz rule,

But in reality all this gets us is the formula

If we want this to become Eq. \eqref{eq:Lie-int-by-parts-q}, then we
need the final term to be a total divergence. The sufficient
condition for this to be a total divergence is that *must be
divergence-free*. We can show this by detouring back through
covariant derivatives. First, notice that for this integrand
to make sense, we need all the indices in the product to be
contracted so that it is a scalar. Now the action of a Lie derivative
on a scalar is the same as the action of that vector on the scalar,
and can also be expressed in terms of any covariant derivative,

Notice that when , we can pull it inside the derivative,

When this is the case, we can turn the last term into a boundary integral,

where is the unit normal to the boundary and is the proper “area” element.

## Special case: Killing vector field

A Killing vector field (KVF) is a special case of a divergence-free vector field. If is a KVF, it generates an isometry of the metric,

where the last equality comes from taking the trace of the middle equation. Thus we have the corollary that we can “integrate by parts” the Lie derivative along any Killing vector field.