Why is the Hamiltonian constructed from the Lagrangian?

  • Context: Graduate 
  • Thread starter Thread starter dipole
  • Start date Start date
  • Tags Tags
    Hamiltonian Lagrangian
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
5 replies · 2K views
dipole
Messages
553
Reaction score
149
I understand how to use Hamiltonian mechanics, but I never understood why you construct the Hamilitonian by first constructing the Langrangian, and then performing a Legendre transform on it.

Why can't you just construct the Hamiltonian directly? Does it have to do with the generalized coordinate [itex]p_i[/itex] being more difficult to think about than the coordinate [itex]\dot{q_i}[/itex]? This seems like the only reason to start with the Lagrangian first, if your goal is to build the Hamiltonian.
 
Physics news on Phys.org
I understand that you can construct the Hamiltonian directly - it's pretty much what you do in quantum wave mechanics.

The reason it tends not to be taught that way in classical mechanics is that the Lagrangian is usually easier to build (and use.)
 
The Lagrangian is just "T-V": kinetic energy minus potential. For many systems of interest, it turns out that the Hamiltonian is T+V; however, that not need be the case. There are systems for which the Hamiltonian is not simply T+V, and I would guess that one may not be able to write down the Hamiltonian without first going through the Lagrangian.
 
dipole said:
I understand how to use Hamiltonian mechanics, but I never understood why you construct the Hamilitonian by first constructing the Langrangian, and then performing a Legendre transform on it.

Why can't you just construct the Hamiltonian directly? Does it have to do with the generalized coordinate [itex]p_i[/itex] being more difficult to think about than the coordinate [itex]\dot{q_i}[/itex]? This seems like the only reason to start with the Lagrangian first, if your goal is to build the Hamiltonian.

I think that's exactly right. Velocities are easy-to-understand quantities, and momenta are a little more complicated. The relationship between velocity and momentum is not simple, in general. For example, in the presence of an electromagnetic field corresponding to vector potential [itex]A^\mu[/itex], the momentum is not [itex]m \dfrac{dx^\mu}{d \tau}[/itex], but is [itex]m \dfrac{dx^\mu}{d \tau} - e A^\mu[/itex]. That relationship comes out automatically using a simple Lagrangian, but it would be hard to guess if you started with a Hamiltonian.

On the other hand, there is a formalism that's equivalent to Lagrangian that uses the Hamiltonian. Instead of extremizing the action [itex]\int L(q,\dot{q}) dt[/itex], one extremizes the action: [itex]\int (H(q,p) - p \dot{q}) dt[/itex]

This approach puts coordinates and momenta on sort of the same footing.
 
Interesting responses. Thanks, I see now the advantage!
 
What you will find if you learn classical mechanics from the viewpoint of symplectic geometry is that the Hamiltonian is relatively easier to start with. The cotangent bundle of the configuration space has a "god - given" symplectic 2 - form that relates the differential of the Hamiltonian to the corresponding Hamiltonian vector field via the symplectic form. If you wanted to do the same thing relating to Lagrangians; however, you would have to do some more work on your part.