Show that a Lagrangian of the form L = T - V = 1/2mv^2 - qV + qA · v for a particle of mass m, charge q, and velocity v inside a general, time-dependent electromagnetic field described by electric potential V(x,t) and magnetic vector potential A(x,t) produces the correct form F = q(E + v x B) of the Lorentz force.