For on a five-dimensional oriented spacetime, the action has bulk variation . Two integrations by parts make the three variations of the Chern-Simons 5-form contribute equally. Under , the extra action is , a boundary term by the Generalized Stokes theorem. Its bulk field equation is gauge invariant. The Chern-Simons term is metric-independent and has no bulk contribution to the stress-energy tensor when the differential-form field is held fixed in metric variation.
Hold the metric fixed when varying the gauge potential, put , and take variations with compact support or with appropriate fixed boundary data. The Hodge star operator then gives
For the Abelian Chern-Simons 5-form, the two occurrences of commute as even-degree differential forms. Since ,
The factor three comes from all three appearances of , including those hidden in . The bulk variation is therefore
and the Abelian Chern-Simons five-form field equation is
Under an Abelian gauge transformation , the gauge field strength stays fixed and the action changes by
Thus the local integrand is not gauge invariant, but its change is a boundary term by the Generalized Stokes theorem. With the stated boundary conditions the variational bulk equations are unchanged; they depend only on and the metric, so they are manifestly gauge invariant. On a spacetime with boundary, gauge transformations nonzero at the boundary require boundary conditions or boundary degrees of freedom; the bulk claim does not assert invariance of every possible boundary action.
For the metric variation, write the kinetic action in components,
At fixed covariant components and ,
Substituting into the given definition of the stress-energy tensor yields
The Chern-Simons 5-form uses only wedge products of differential forms and orientation, with no metric or Hodge star operator. Its bulk metric derivative is zero, so the Chern-Simons term contributes no bulk stress-energy tensor. The displayed tensor is generally not traceless in five dimensions: .
Use matrix multiplication together with the wedge product of differential forms, suppressing wedge symbols in this calculation. Set and . The gauge field strength varies as , the covariant exterior derivative of . The matrix trace has graded cyclicity, for forms of degrees . Thus the Chern-Simons 5-form can be expanded as
For example, the two cross terms in both become ; combining the remaining two terms gives the displayed coefficients. This expansion keeps track of the noncommuting products rather than treating as a scalar one-form.
Put . Vary the first term and use the graded exterior derivative to move derivatives off :
Here . For the next term use . Graded cyclicity then gives
Finally all five contributions to are equal under the matrix trace, giving . Combining these results proves the variation of the Chern-Simons 5-form:
Consequently, on an oriented five-manifold ,
The boundary term vanishes for a closed manifold, for variations supported in its interior, or when the tangential boundary connection is held fixed. A different boundary variational problem would require boundary conditions or a boundary action as well.
Write in a basis of the Lie algebra. Independent compactly supported variations of each component yield the bulk Euler-Lagrange equations
Equivalently, with , these are . The symmetry of the two curvature two-forms accounts for the anticommutator. Writing simply as a full matrix equation requires an additional assumption: variations must span a matrix algebra paired nondegenerately by the matrix trace. For a smaller Lie algebra, only its trace-paired projection is constrained. If the trace is literally taken in the adjoint representation of a semisimple Lie algebra, its symmetric cubic invariant vanishes, and these bulk equations are identically zero. Indeed, the adjoint generators are skew with respect to the nondegenerate invariant Killing form; transposition in this pairing reverses the sign of the symmetrized trace of three generators. The usual nontrivial five-dimensional theory therefore needs an invariant cubic trace that does not vanish; saying that the gauge field transforms in the adjoint alone does not specify such a trace.
Under a Yang-Mills gauge transformation, use , so . For any Lie-algebra element ,
Since is still in the Lie algebra, the right-hand side vanishes whenever the original field satisfies every equation. Every gauge transform of a bulk solution remains a bulk solution. This conclusion follows from covariance of the field equations; it does not require the action itself to be exactly invariant under all large gauge transformations or under transformations changing prescribed boundary data.