Why is the Hamiltonian constructed from the Lagrangian?

AI Thread Summary
Constructing the Hamiltonian from the Lagrangian using a Legendre transform is often preferred because velocities are simpler to understand than momenta, making the Lagrangian easier to formulate. The relationship between velocity and momentum can be complex, especially in systems influenced by external fields, where the momentum is modified by additional terms. While it is possible to construct the Hamiltonian directly, starting with the Lagrangian provides a more straightforward path for many systems. Additionally, an equivalent Hamiltonian formalism exists that treats coordinates and momenta symmetrically, emphasizing the benefits of understanding Hamiltonian mechanics through symplectic geometry. Ultimately, this approach highlights the natural connections between these two formulations of classical mechanics.
dipole
Messages
553
Reaction score
151
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 p_i being more difficult to think about than the coordinate \dot{q_i}? 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 p_i being more difficult to think about than the coordinate \dot{q_i}? 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 A^\mu, the momentum is not m \dfrac{dx^\mu}{d \tau}, but is m \dfrac{dx^\mu}{d \tau} - e A^\mu. 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 \int L(q,\dot{q}) dt, one extremizes the action: \int (H(q,p) - p \dot{q}) dt

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.
 
Thread 'Gauss' law seems to imply instantaneous electric field'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...
Back
Top