The motion of a particle of charge q and mass m in an electromagnetic field with scalar potential ϕ(r,t) and vector potential A(r,t) is characterized by the Lagrangian
L=2mr˙2−q(ϕ−r˙⋅A)
(a) Show that the Euler-Lagrange equation is invariant under the gauge transformation
ϕ→ϕ−∂t∂Λ,A→A+∇Λ
for an arbitrary function Λ(r,t).
(b) Derive the equations of motion in terms of the electric and magnetic fields E(r,t) and B(r,t).
[Recall that B=∇×A and E=−∇ϕ−∂t∂A.]