In my problem we look at a relativistic particle of charge $q$ and mass $m$ in the presence of a second particle of unit charge and mass $M\gg m$, which is fixed at the origin. I need to find an expression for the total energy E of the first particle in terms of canonical coordinates using the Hamiltonian (and ignoring gravitational energy). I also need to afterwards find and expression of E in terms of the conserved angular momentum and polar coordinates.
I'm familiar with the regular classical Hamiltonian (for a time independant potential $U(\vec x)$) where we have $$ H = \frac{1}{2}m\dot{\vec{x}}^2+U(\vec x) = E, $$ where in our case we would have $U(\vec x) = \frac{1}{4\pi\epsilon_0}\frac{q}{|\vec x|}$ (because the charge at the center has unit charge). Written in polar coordinates this would give us $$ E=\frac{1}{2}m\dot{r}^2+\frac{l^2}{2mr^2}+U(r), $$ where $l$ is the conserved angular momentum.
My problem is that I don't really know what I have to change in order to take account of the fact that the particle is relativistic and if it would change anything about the angular momentum etc.
Thank you in adnvance for any help and tips!