The Lagrangian of a particle of mass m and charge q moving in an electromagnetic field described by scalar and vector potentials ϕ(r,t) and A(r,t) is
L=21m∣r˙∣2+q(−ϕ+r˙⋅A)
where r(t) is the position vector of the particle and r˙=dr/dt.
(a) Show that Lagrange's equations are equivalent to the equation of motion
mr¨=q(E+v×B),
where
E=−∇ϕ−∂t∂A,B=∇×A
are the electric and magnetic fields.
(b) Show that the related Hamiltonian is
H=2m∣p−qA∣2+qϕ,
where p=mr˙+qA. Obtain Hamilton's equations for this system.
(c) Verify that the electric and magnetic fields remain unchanged if the scalar and vector potentials are transformed according to
where f(r,t) is a scalar field. Show that the transformed Lagrangian L~ differs from L by the total time-derivative of a certain quantity. Why does this leave the form of Lagrange's equations invariant? Show that the transformed Hamiltonian H~ and phase-space variables (r,p~) are related to H and (r,p) by a canonical transformation.
[Hint: In standard notation, the canonical transformation associated with the type-2 generating function F2(q,P,t) is given by
p=∂q∂F2,Q=∂P∂F2,K=H+∂t∂F2.]
ϕ↦ϕ~=ϕ−∂t∂f,A↦A~=A+∇f,