Choose the convention for a field in the defining representation and . Requiring gives the Yang-Mills gauge transformation
The gauge field strength is the curvature , so
For an adjoint field , the adjoint covariant derivative is , and direct substitution gives . Consequently transforms by conjugation too.
The Killing-form invariance under a Lie-group adjoint action gives . Its proof is that the adjoint matrices are conjugated by the same invertible map, leaving their trace product unchanged. With , both and are therefore gauge invariant.
For their field equations, take a compactly supported variation . Curvature varies by
The invariant form permits gauge-covariant integration by parts, because . Antisymmetry of gives
Integrating, the power of the Yang-Mills invariant gives the equation
For this recovers the Yang-Mills equations. For larger , keep the displayed product form, including at .
For the derivative-squared action, write . Varying the derivative as well as the curvature gives
Its first variation is
Integrate the first term once, substitute , and integrate again. It becomes , where . Invariance converts the second term into . Nondegeneracy of the Killing form and arbitrary variations yield the derivative-squared Yang-Mills action equation
The derivative order matters because covariant derivatives generally do not commute. In an abelian limit the commutator term vanishes and the equation reduces to , a useful check on the fourth-order equation for the potential.