Take a local gauge transformation acting on the adjoint field by . The connection convention is compatible with
Indeed, differentiating gives the extra commutator , exactly cancelled by the inhomogeneous term in the transformed gauge potential.
For a direct proof of the Yang-Mills gauge transformation of curvature, put and . Differentiation gives
Substituting into the Yang-Mills field strength cancels all terms involving and leaves
This direct calculation also applies when the adjoint action has a kernel.
Expand . The mixed second derivatives of cancel in pairs. The first-derivative terms from differentiating cancel the terms from . The remaining sum is
by the Jacobi identity. Thus the gauge-theory Bianchi identity is
For the variation of the Yang-Mills action, write . Differentiating the curvature gives . Invariance of the Killing form implies
This is invariant integration by parts for a gauge covariant derivative. Using symmetry of the Killing form, antisymmetry of , and compactly supported variations,
Since the Killing form of a semisimple Lie algebra is nondegenerate and the variations are arbitrary, the Yang-Mills equations are
For the constant Yang-Mills theta term, symmetry under exchanging the two antisymmetric index pairs gives
up to the boundary variation of the Yang-Mills theta term. Contracting the gauge-theory Bianchi identity with makes the last integrand vanish. Therefore a constant theta term does not alter the bulk Yang-Mills equations: . Its variation is a boundary term, so this conclusion uses compact support or boundary conditions that remove that term.
Finally apply to the gauge-theory Bianchi identity, obtaining
The adjoint covariant derivative obeys . Commute past the other derivative. The differentiated divergences vanish by the Yang-Mills equations, leaving
In the last line the second commutator needs its sign tracked carefully: directly,
Thus the simplified sum gives the covariant wave equation for the Yang-Mills field strength
All spacetime derivatives and index manipulations here use the fixed flat metric.