A charged particle moves in a plane subject to the oscillatory potential:
$U(r)=\frac{m\omega^2 r^2}{2}$
There is also a constant EM-field described by:
$\vec{A}=\frac{1}{2}[\vec{B}\times\vec{r}]$
where B is normal to the plane.
This produces the Lagrangian:
$L=\frac{m}{2}\dot{\vec{r}}^2+\frac{e}{2}\dot{\vec{r}}\vec{A}-U(r)$
Now my friend says we need to transform this into polar coordinates and that produces:
$L=\frac{m}{2}(\dot{r}^2+r^2\dot{\phi}^2)-mr^2\omega_L\dot{\phi}-U(r)$
where $\omega_L$ is the Larmor precession frequency:
$\omega_L=-\frac{eB}{2mc}$
My question is, How does he get this transformation? I don't really understand where the second term is coming from in the mechanical kinetic energy.
