Derive the Lagrange equations from the principle of stationary action
S[q]=∫t0t1L(qi(t),q˙i(t),t)dt,δS=0
where the end points qi(t0) and qi(t1) are fixed.
Let ϕ and A be a scalar and a vector, respectively, depending on r=(x,y,z). Consider the Lagrangian
L=2mr˙2−(ϕ−r˙⋅A)
and show that the resulting Euler-Lagrange equations are invariant under the transformations
ϕ→ϕ+α∂t∂F,A→A+∇F,
where F=F(r,t) is an arbitrary function, and α is a constant which should be determined.