Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/ii/paper-1/8d/a/solution

Under the stated gauge transformation, the charged-particle electromagnetic Lagrangian becomes
Thus
The action changes only by , whose variation vanishes for fixed endpoints. By total-time-derivative invariance of a Lagrangian, the Euler-Lagrange equation is unchanged.

New to topics? Read the docs here!