- #1
fluidistic
Gold Member
- 3,923
- 261
Homework Statement
The problem is taken out of Landau's book on classical mechanics. I must find the Hamilton function and the corresponding Hamilton equations for a free particle in Cartesian, cylindrical and spherical coordinates.
Homework Equations
Hamilton function: [itex]H(p,q,t)= \sum p_i \dot q _i -L[/itex] where L is the Lagrangian.
Hamilton equations: [itex]\dot q_i = \frac{\partial H}{\partial p_i}[/itex] and [itex]\dot p_i =-\frac{\partial H}{\partial q _i}[/itex].
The Attempt at a Solution
I'm stuck on Cartesian coordinates so far. [itex]L=\frac{m}{2}(\dot x ^2 + \dot y^2 +\dot z^2)-U(x,y,z)[/itex].
[itex]p_i=\frac{\partial L}{\partial \dot q _i}=m \dot q_i \Rightarrow \dot p_i=m \ddot q_i[/itex].
[itex]H=m \dot x ^2 +m \dot y^2 +m \dot z ^2 - \frac{m}{2} (\dot x^2 + \dot y^2 +\dot z^2)+U(x,y,z)=\frac{m}{2}(\dot x ^2 +\dot y^2 +\dot z^2)+U(x,y,z)[/itex]. I notice that the Hamilton function is the Hamiltonian and that in this case it's worth the total energy of the system (the free particle).
However the solution given in the book is [itex]H=\frac{1}{2m} (p _x ^2+ p_y^2 +p_z ^2)+U(x,y,z)[/itex]. Why is it expressed under this form? I took Landau's expressions and definitions and land on a different answer... why?!
Edit: Hmm I guess it's because H should depend only on p, q and t. Never on [itex]\dot q[/itex]?