Here I’m assuming some prior knowledge of QFT and the basics of differential geometry, and I will try from those basics to motivate the construction of the well-known Yang-Mills gauge Lagrangian:

What do we require of a term going into the Lagrangian? Simply that it be of **dimension** , **Lorentz invariant** and **gauge invariant**. Let us then consider the oriented manifold , equiped with a Lie group G and its corresponding Lie algebra . Let , the *gauge potential*, be a -valued 1-form: ; where and satisfies .

What other objects can we build from ? Well, we can start by defining the covariant derivative

$

with which we can build a 2-form from any 1-form . In particular:

$

where $$F$ is the *gauge field strength tensor* we’re ultimately after. These two objects generate equivalence classes under gauge transformations:

where . Wedging the 2-form with its (-2)-form Hodge dual , we produce an -form : a potential candidate for our Lagrangian. As an -form, it is a pseudoscalar form and thus a proper Lorentz invariant. We have therefore already checked two boxes out of three; there remains only to decide whether it is also gauge invariant:

where we used the linearity of the wedge operator. Our pseudoscalar form is therefore not gauge invariant (as it transforms in the adjoint representation), but taking the trace removes this gauge dependence (by cyclicity). Thus the only Lorentz- and gauge- invariant -form built from gauge fields and that can enter the Lagrangian is . The Yang-Mills Lagrangian and equations then read:

Let’s now reduce the problem to dimensions and consider the special case , i.e. when we have and . Then: