Hamiltonian in cylindrical coordinates

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 16K views
Piano man
Messages
73
Reaction score
0
Hi, I'm trying to find the Hamiltonian for a system using cylindrical coordinates.

I start of with the Lagrangian [tex]L=\frac{1}{2}m(\dot{r}^2+r^2\dot{\theta}^2+\dot{z}^2)-U(r,\theta,z)[/tex]

From that, using [tex]H=\sum p\dot{q}-L[/tex]
[tex]=p_r\dot{r}+p_\theta\dot{\theta}+p_z\dot{z}-\frac{1}{2}m(\dot{r}^2+r^2\dot{\theta}^2+\dot{z}^2)+U(r,\theta,z)[/tex]
[tex]=\frac{1}{m}(p_r^2+p_\theta^2+p_z^2)-\frac{1}{2m}(p_r^2+p_\theta^2r^2+p_z^2)+U(r,\theta,z)[/tex]
[tex]=\frac{1}{2m}[p_r^2+(2-r^2)p_\theta^2+p_z^2]+U(r,\theta,z)[/tex]

But the standard answer is
[tex]H=\frac{1}{2m}(p_r^2+\frac{p_\theta^2}{r^2}+p_z^2)+U(r,\theta,z)[/tex]

So where did I go wrong?

Thanks for any help :)
 
Physics news on Phys.org
Ah, of course!
Kind of obvious really...
:redface:

Thanks for the help :)