Canonical: https://knowlpedia.com/fiber-bundles/yangmills-functional/

# Yang–Mills functional

The energy of a connection defined as the L2 norm of its curvature on a Riemannian manifold.

Let \(M\) be an oriented [Riemannian manifold](https://knowlpedia.com/differential-geometry/riemannian-manifold/), let \(G\) be a [Lie group](https://knowlpedia.com/fiber-bundles/lie-group/) with an \(\mathrm{Ad}\)-invariant positive-definite inner product on its Lie algebra (as for a compact [structure group](https://knowlpedia.com/fiber-bundles/structure-group/)), and let \(\pi\colon P\to M\) be a [principal G-bundle](https://knowlpedia.com/fiber-bundles/principal-g-bundle/).

Fix a [principal connection](https://knowlpedia.com/fiber-bundles/principal-connection/) \(A\) on \(P\) with [curvature](https://knowlpedia.com/fiber-bundles/curvature/) \(F_A\in \Omega^2(M;\operatorname{ad}(P))\).

The **Yang–Mills functional** is
\[
\mathrm{YM}(A) := \frac12\int_M |F_A|^2\,\mathrm{vol}_g\in[0,+\infty],
\]
where the norm combines the Riemannian metric with the chosen invariant inner product; the integral may be infinite on a noncompact base.

## Equivalent formula and properties

Equivalently, \(\mathrm{YM}(A)=\frac12\int_M \langle F_A\wedge *F_A\rangle\) using the Hodge star of the Riemannian metric and the chosen inner product.

It is invariant under gauge transformations of \(P\), so it descends to a functional on the moduli space of connections modulo gauge.

On a closed manifold, critical points of this functional are precisely [Yang–Mills connections](https://knowlpedia.com/fiber-bundles/yangmills-connection/), characterized by the [Yang–Mills equation](https://knowlpedia.com/fiber-bundles/yangmills-equation/).

## Examples

1. **Flat connections.** If \(F_A=0\) then \(\mathrm{YM}(A)=0\), which is the minimum possible value.
2. **Abelian case (Maxwell energy).** For \(G=U(1)\), the curvature is an ordinary closed 2-form, and \(\mathrm{YM}(A)\) reduces to the classical electromagnetic energy \(\frac12\int |F|^2\).
3. **Four dimensions and self-duality.** On a closed oriented 4-manifold, connections with self-dual or anti-self-dual curvature minimize \(\mathrm{YM}\) within their topological class (the functional splits into a topological term plus a nonnegative remainder).
