Let PMP\to M be a principal GG-bundle over an oriented .

A AA on PP is called a Yang–Mills connection if it satisfies the

dA(FA)=0,d_A(*F_A)=0,

where FAF_A is its .

Variational interpretation

If the Lie algebra carries an Ad-invariant positive-definite inner product, the equation is equivalent to being a critical point of the on a closed base. For a noncompact base, assume finite energy and use compactly supported variations; with boundary, impose boundary conditions or keep variations away from the boundary.

Examples
  1. Flat connections. Any flat connection is Yang–Mills, since its curvature vanishes.
  2. Anti-self-dual connections. On an oriented 4-manifold, ASD (or SD) connections are Yang–Mills; these are the basic instanton solutions in .
  3. Constant curvature on surfaces. On a closed oriented surface, the Yang–Mills equation says that the curvature coefficient FA*F_A is covariantly constant. For an irreducible connection this coefficient is central; for reducible connections it may lie in a larger holonomy centralizer.