I'm trying to understand how we set up the lagrangian for a charged particle in an electromagnetic field.
I know that the lagrangian is given by $$L = \frac{m}{2}\mathbf{\dot{r}}\cdot \mathbf{\dot{r}} -q\phi +q\mathbf{\dot{r}}\cdot \mathbf{A} $$
I can use this to derive the Lorentz force law...