Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/iii/paper-305/3/d/solution

Promoting to a spacetime-dependent parameter makes the scalar kinetic term vary by both terms linear and quadratic in the gauge field. Merely adding accounts for the linear term but is not invariant because the scalar current itself changes under a local transformation.
With
minimal coupling gives
The missing term is the seagull vertex . This agrees exactly with replacing partial derivatives by gauge covariant derivatives.
The Dirac kinetic term is first order in derivatives:
Its expansion is only linear in , so the current coupling already completes the gauge-invariant fermion kinetic term and no term arises.

New to topics? Read the docs here!