[guided]We have arrived at the local pointwise identity (IBP):
\begin{align*}
\operatorname{div}(W) = \langle \nabla\alpha, \beta\rangle + \sum_{i=1}^n g\big(\alpha, i(e_i)(\nabla_{e_i}\beta)\big).
\end{align*}
The strategy now is to integrate this identity over $M$ and use the Divergence Theorem to kill the divergence term, leaving an integral identity that matches the defining property (Adj) of $\nabla^*\beta$. The fundamental lemma then upgrades the integral identity into a pointwise formula. Let us execute these moves carefully and verify every hypothesis.
**Integrating (IBP) over $M$.** Because $M$ is compact and every term in (IBP) is a smooth function on $M$, all integrals against the volume form $\omega_g$ are finite, so we may integrate (IBP) termwise:
\begin{align*}
\int_M \operatorname{div}(W)\,\omega_g = \int_M \langle \nabla\alpha, \beta\rangle\,\omega_g + \int_M \sum_{i=1}^n g\big(\alpha,\, i(e_i)(\nabla_{e_i}\beta)\big)\,\omega_g.
\end{align*}
**Why the left-hand side vanishes.** We invoke the [Divergence Theorem](/theorems/2754) to assert $\int_M \operatorname{div}(W)\,\omega_g = 0$. The Divergence Theorem on a Riemannian manifold without boundary states that for any smooth, compactly supported vector field $W$,
\begin{align*}
\int_M \operatorname{div}(W)\,\omega_g = \int_{\partial M} g(W, \nu)\,d\mathcal{H}^{n-1} = 0,
\end{align*}
where the second equality uses $\partial M = \emptyset$. We must check the hypotheses: (i) $M$ is oriented — given in the theorem hypotheses; (ii) $M$ is compact — given (we say "closed", meaning compact without boundary); (iii) $\partial M = \emptyset$ — given; (iv) $W$ is smooth — true since $\alpha$, $\beta$, the frame vectors $e_i$, and the metric $g$ are smooth, so $h_i = g(\alpha, i(e_i)\beta)$ is smooth and $W = \sum_i h_i e_i$ is smooth on $U$ and patches globally via partition of unity; (v) $W$ has compact support — automatic on the compact $M$. All hypotheses verified. Therefore
\begin{align*}
\int_M \operatorname{div}(W)\,\omega_g = 0.
\end{align*}
**The resulting integral identity.** Substituting back, the integrated form of (IBP) becomes
\begin{align*}
0 = \int_M \langle \nabla\alpha, \beta\rangle\,\omega_g + \int_M \sum_{i=1}^n g\big(\alpha,\, i(e_i)(\nabla_{e_i}\beta)\big)\,\omega_g.
\end{align*}
Recognizing the inner sum as the inner product on $\Gamma(T^*M)$ pairing $\alpha$ with the $1$-form $\sum_i i(e_i)(\nabla_{e_i}\beta)$, we rearrange:
\begin{align*}
\int_M \langle \nabla\alpha, \beta\rangle\,\omega_g = -\int_M \Big\langle \alpha,\, \sum_{i=1}^n i(e_i)(\nabla_{e_i}\beta)\Big\rangle\,\omega_g \qquad \text{for every } \alpha \in \Omega^1(M).
\tag{T}
\end{align*}
This is the key integral identity. It says: **on the closed manifold $M$, the operator $-\sum_i i(e_i)\nabla_{e_i}$ is an $L^2$-adjoint of $\nabla$.** The minus sign — which is the only signed object in the identity — comes entirely from the cancellation of $\int_M \operatorname{div}(W)\,\omega_g = 0$ moving across the equality.
**Comparison with the defining property (Adj).** The codifferential $\nabla^*$ is defined (in (Adj) of Step 1) by
\begin{align*}
\int_M \langle \alpha, \nabla^*\beta\rangle\,\omega_g = \int_M \langle \nabla\alpha, \beta\rangle\,\omega_g \qquad \text{for every } \alpha \in \Omega^1(M).
\end{align*}
Combined with (T), this gives
\begin{align*}
\int_M \langle \alpha, \nabla^*\beta\rangle\,\omega_g = -\int_M \Big\langle \alpha,\, \sum_{i=1}^n i(e_i)(\nabla_{e_i}\beta)\Big\rangle\,\omega_g \qquad \text{for every } \alpha \in \Omega^1(M).
\end{align*}
Subtracting the right-hand side from both sides and using bilinearity of the inner product:
\begin{align*}
\int_M \Big\langle \alpha,\, \nabla^*\beta + \sum_{i=1}^n i(e_i)(\nabla_{e_i}\beta)\Big\rangle\,\omega_g = 0 \qquad \text{for every } \alpha \in \Omega^1(M).
\end{align*}
**From integral identity to pointwise identity via the fundamental lemma.** Set $\gamma := \nabla^*\beta + \sum_i i(e_i)(\nabla_{e_i}\beta) \in \Omega^1(M)$. We have shown $\int_M \langle \alpha, \gamma\rangle\,\omega_g = 0$ for every $\alpha \in \Omega^1(M)$, and we want to conclude $\gamma = 0$ pointwise. This is the fundamental lemma of the calculus of variations applied to $1$-forms. Let us verify it. Suppose $\gamma(p) \neq 0$ at some $p \in M$. Choose a coordinate neighborhood $V \ni p$ on which $\gamma$ is expressed in a local frame $\{\xi_1, \ldots, \xi_n\}$ for $T^*M$, and pick the component $\gamma_k := \gamma(\xi_k^\sharp) \neq 0$ at $p$. By continuity, $\gamma_k$ has constant sign on a smaller neighborhood $V' \ni p$. Choose a non-negative bump function $f \in C^\infty(M)$ supported in $V'$ with $f(p) > 0$, and set $\alpha := f\,\xi_k$. Then
\begin{align*}
\int_M \langle \alpha, \gamma\rangle\,\omega_g = \int_{V'} f(x)\,\gamma_k(x)\,\omega_g(x) \neq 0,
\end{align*}
since the integrand has constant sign and is strictly nonzero at $p$ — a contradiction. Therefore $\gamma \equiv 0$, i.e.,
\begin{align*}
\nabla^*\beta = -\sum_{i=1}^n i(e_i)(\nabla_{e_i}\beta) \qquad \text{pointwise on } M.
\end{align*}
**Why this is independent of the chosen frame.** A subtle point: we computed everything in a *local* orthonormal frame on $U$. Why is the conclusion a *global* identity on $M$? Because the right-hand side $\sum_i i(e_i)\nabla_{e_i}\beta$, computed in any orthonormal frame, is the metric trace of $\nabla\beta$ in the first two slots — this is a tensorial, frame-independent expression. So the local formula in any orthonormal frame defines the same global tensor on $M$, and the identity holds globally.
**Why this formula matters.** This is the foundation of the **Bochner technique**: the operator $\nabla^*\nabla$ — the **connection Laplacian** — is the composition of $\nabla : \Omega^1 \to \Gamma(T^*M \otimes T^*M)$ with $\nabla^*$ in the reverse direction, and the formula we just proved gives the explicit local expression $\nabla^*\nabla\alpha = -\sum_i (\nabla_{e_i}\nabla_{e_i}\alpha - \nabla_{\nabla_{e_i} e_i}\alpha)$ in any orthonormal frame — the standard "trace of Hessian minus frame correction". The Bochner–Weitzenböck identity $\Delta = \nabla^*\nabla + \mathcal{R}$ (Hodge Laplacian = connection Laplacian + curvature term) takes off from here.[/guided]