Let $\pi:P\to M$ be a smooth principal $G$-bundle over a Riemannian manifold $(M,g)$, let $\mathfrak g$ be the Lie algebra of $G$, and let $(\cdot,\cdot)_{\mathfrak g}$ be an $\operatorname{Ad}$-invariant [inner product](/page/Inner%20Product) on $\mathfrak g$, meaning that
for every $a\in G$ and every $\xi,\eta\in\mathfrak g$.
paragraph
admin
Let $\omega\in\Omega^1(P;\mathfrak g)$ be a connection form with curvature $\Omega\in\Omega^2(P;\mathfrak g)$, and let $F_A\in\Omega^2(M;\operatorname{Ad}(P))$ be the associated adjoint-bundle-valued curvature form. Suppose $s_i:U_i\to P$ and $s_j:U_j\to P$ are smooth local sections over open sets $U_i,U_j\subset M$, and suppose that on $U_i\cap U_j$ there is a smooth transition map $g_{ij}:U_i\cap U_j\to G$ such that
where the pointwise norm is induced by the Riemannian metric $g$ on $\Lambda^2T^*M$ and by $(\cdot,\cdot)_{\mathfrak g}$ on $\mathfrak g$. Consequently the local densities $|F_i|^2\,d\operatorname{vol}_g$ glue to a globally defined density $|F_A|^2\,d\operatorname{vol}_g$ on $M$, and the Yang-Mills energy