Maths of Hamiltonian / Lagrangian mechanics

In summary, Lagrangian and Hamiltonian mechanics can be understood from a geometric viewpoint. The tangent and cotangent bundles of the configuration space are used, with the cotangent bundle having a canonical 2-form. Hamilton's equations can be written as the flow of a vector field on the cotangent bundle, and the Legendre transform can be used to transform a Lagrangian into a Hamiltonian. Other concepts, such as the Poisson bracket and Euler-Lagrange equations, can also be understood in this context. Constraints can also be incorporated into this framework.
  • #1
burakumin
84
7
Hello everyone

I have difficulties in understanding some stuff in Lagrangian and Hamiltonian mechanics. This concerns the equations :

[tex]\dot p = - \frac{\partial H}{\partial q}[/tex]

[tex]\frac{d}{dt} \frac{\partial L}{\partial \dot q} = \frac{\partial L}{\partial q}[/tex]

First I have to say that I'm a math guy and I understand physics far better by considering things geometrically. Unfortunately, the above equations are 99% of times introduced / explained by decomposing quantities into coordinates : q becomes [itex](q_1, \cdots, q_n)[/itex], p becomes [itex](p_1, \cdots, p_n)[/itex] (even in so-called books of "physics for mathematicians"). I would prefere so much to have coordinate-free definitions because coordinate makes everything looks similar (to [itex]\mathbb{R}^n[/itex]) and make geometry-oriented thinking difficult.

Among the two equations of hamiltonian mechanics :
[tex]\dot q = \frac{\partial H}{\partial p}, \dot p = - \frac{\partial H}{\partial q}[/tex]
only the first is clear to me. Some might argue that the equations are symetric but according to me they are definitely not.

If H is a scalar field on [itex]\mathbb{R} \times T^*\mathcal{M}[/itex] where the manifold [itex]\mathcal{M}[/itex] is the configuration space, the informal derivative [itex]\frac{\partial H}{\partial p}[/itex] can be given a rigorous meaning. If time t and point q are given, [itex]p \mapsto H(t,q,p)[/itex] is a function from [itex]T^*_q\mathcal{M}[/itex] to [itex]\mathbb{R}[/itex]. Thus, it has a total derivative [itex]D( p \mapsto H(t,q,p) )[/itex] from [itex]T^*_q\mathcal{M}[/itex] to [itex]T_q\mathcal{M}[/itex]. So for a given trajectory [itex]\mathfrak{q}: \mathbb{R} \mapsto \mathcal{M}[/itex], the equation [itex]\dot{\mathfrak{q}}(t) = \frac{\partial H}{\partial p}(t,\mathfrak{q}(t),\mathfrak{p}(t))[/itex] has a precise meaning.

But for [itex]\frac{\partial H}{\partial q}[/itex], I don't understand what it could possibly mean to derivate H along q, with a constant p. When q is changing, you're moving from a fiber to another one, and the vectors p in different fibers are incomparable. Consequently, the phrase "constant p" sounds non-sensical (unless of course we have a tool to match the fibers but I have never seen any mention of a (pseudo)riemanian structure / connexion in this context)

For the same reason, I don't knwow how to interprete [itex]\frac{\partial L}{\partial q}[/itex]

I know that [itex]\mathcal{N} = T^*\mathcal{M}[/itex] is itself a manifold with interesting properties due to its canonical symplectic structure (such as the canonical isomorphism between [itex]T\mathcal{N} = TT^*\mathcal{M}[/itex] and [itex]T^*\mathcal{N} = T^*T^*\mathcal{M}[/itex]). So I have already considered a possible interpretation of [itex]\frac{\partial H}{\partial q}[/itex] as the (exterior) derivative of H, considered as a scalar field on [itex]\mathcal{N}[/itex], (the derivative [itex]dH : \mathcal{N} \mapsto T^*\mathcal{N}[/itex]). In a similar manner, for a "momentum trajectory" [itex]\mathfrak{p} : \mathbb{R} \mapsto \mathcal{N}[/itex], we can think about the derivated function [itex]\dot{\mathfrak{p}} : \mathbb{R} \mapsto T\mathcal{N}[/itex].

This could possibly match but it sounds so different from what the notation [itex]\frac{\partial H}{\partial q}[/itex] suggests ([itex]dH[/itex] is a really total derivative of H: it gives the variation of H for all "directions" of [itex]\mathcal{N} = T^*\mathcal{M}[/itex], including variations along q), that I can hardly believe the correct explanation is to be found this way.

What to think about all that ? Should I consider othe theoretical entities like Poisson Brackets ?

Thank you
 
Last edited:
Physics news on Phys.org
  • #2
Lagrangian mechanics from the geometric viewpoint is described, for example, in Godbillon's Geometrie differentielle et mecanique analytique (I'm not sure if English translation exists at all) and Abraham & Marsden's Foundations of Mechanics, Ch. III.
 
  • #3
If you're comfortable with differential geometry, it is actually very easy to make coordinate free sense of all this. Start with a manifold [itex]X[/itex] which is the configuration space. The tangent bundle [itex]TX[/itex] is the space of pairs [itex](q,v)[/itex] with [itex]q \in X[/itex] and [itex]v \in T_q X[/itex], and the cotangent bundle is the space of pairs [itex](q,p)[/itex] with [itex]q \in X[/itex] and [itex]p \in T^\ast X[/itex].

A Lagrangian function is a function [itex]L[/itex] on [itex]TX[/itex]. A Hamiltonian function is a function [itex]H[/itex] on [itex]T^\ast X[/itex] (I will mention the Legendre transform later).

The nice thing about working with the cotangent bundle is that there is a canonical 2-form on it given locally as [itex]\omega = \sum dq^i \wedge dp^i[/itex] (and it is super-easy to check that this definition really is independent of coordinates). Two nice things about this 2-form:

(1) [itex]d\omega = 0[/itex]
(2) Thought of as a map [itex]TX \to T^\ast X[/itex] given by [itex]v \mapsto \omega(v, \cdot)[/itex], it is nondegenerate. Hence there is an inverse map [itex]\omega^{-1}: T^\ast X \to TX[/itex]. (again, this is super-easy to check in coordinates, and everything is actually independent).

Now that we have a 2-form with these 2 properties, I will never have to mention coordinates again.

Given a Hamiltonian [itex]H[/itex], its differential is a 1-form [itex]dH[/itex]. But we have a map [itex]\omega^{-1}[/itex] which takes 1-forms to vector fields (this is just the map [itex]T^\ast X \to TX[/itex]). So we have a vector field [itex]X_H = \omega^{-1}(dH)[/itex] which is canonically associated to any Hamiltonian. Then Hamilton's equations are just

[tex]\frac{dx}{dt} = X_H(x)[/tex]

Where [itex] x = (q,p) \in T^\ast X[/itex]. That is, Hamilton's equations are the equations generating the flow of the vector field [itex]X_H[/itex] on [itex]T^\ast X[/itex].

If you're still with me, some fancier stuff:

(1) The tensor [itex]\omega^{-1}[/itex] is a Poisson tensor, and defines a Poisson bracket on smooth functions on [itex]T^\ast X[/itex] given by [itex]\{f,g\} = \omega^{-1}(df, dg)[/itex].

(2) If you started with a Lagrangian [itex]L[/itex] on [itex]TX[/itex], Then you can define the Legendre transform as follows. We need to assume that we can solve [itex]p = \frac{\partial L}{\partial v}[/itex] as a function of [itex]v[/itex] (otherwise the Legendre transform is more complicated and might not be defined). By laziness, I will write the solution as [itex]v(p)[/itex]. Then you set [itex]H(q,p) = pv(p) - L(q, v(p))[/itex] and check that this is a well-defined function on [itex]T^\ast X[/itex] (for example, the product [itex]p v(p)[/itex] is pairing a covector with a vector which is well-defined and coordinate-independent).

(3) Simple calculation shows that if [itex]x(t)[/itex] is a solution of Hamilton's equations, then [itex]\frac{d}{dt}H(x(t)) = 0[/itex] is equivalent to [itex]d^2 H = 0[/itex], which of course is true by properties of the exterior derivative.

(4) You can also make coordinate-independent sense of the Euler-Lagrange equations, but it is not quite as nice as the above because the equations are second order.

(5) If you want to deal with constraints (even nonholonomic!) then go right ahead because again with a little bit of thought everything still works (though nonholonomic constraints certainly require more thought than holonomic).

(6) If the Hamiltonian is time-dependent, then the vector field [itex]X_H[/itex] is now a time-dependent vector field, but otherwise everything works. You will also see that [itex]\frac{d}{dt}H(x(t)) = \frac{\partial H}{\partial t}(x(t))[/itex]. If you want something more coordinate independent than this then you can rephrase it in terms of contact geometry.
 
Last edited:

FAQ: Maths of Hamiltonian / Lagrangian mechanics

What is Hamiltonian mechanics?

Hamiltonian mechanics is a mathematical framework used to describe the motion of particles or systems of particles. It is based on the concept of a Hamiltonian, which is a function that describes the total energy of a system in terms of its position and momentum.

What is the difference between Hamiltonian mechanics and Lagrangian mechanics?

The main difference between Hamiltonian mechanics and Lagrangian mechanics is the way they describe the motion of a system. Hamiltonian mechanics uses an approach based on the total energy of the system, while Lagrangian mechanics uses a more fundamental approach based on the principle of least action.

How are Hamiltonian and Lagrangian mechanics related?

Hamiltonian and Lagrangian mechanics are two different mathematical frameworks that can be used to describe the same physical system. They are related through a mathematical transformation called the Legendre transform, which allows us to switch between the two frameworks.

What is the role of the Hamiltonian in Hamiltonian mechanics?

The Hamiltonian plays a central role in Hamiltonian mechanics as it is used to describe the total energy of a system. It is a function that takes into account the kinetic and potential energy of the system, as well as any external forces acting on it.

What are some applications of Hamiltonian mechanics?

Hamiltonian mechanics has many applications in various fields of physics, including classical mechanics, quantum mechanics, and statistical mechanics. It is used to study the dynamics of particles and systems, and has been applied to problems in celestial mechanics, fluid dynamics, and molecular dynamics, among others.

Similar threads

Replies
3
Views
1K
Replies
2
Views
787
Replies
4
Views
1K
Replies
14
Views
2K
Replies
3
Views
2K
Replies
5
Views
1K
Replies
43
Views
4K
Replies
3
Views
1K
Back
Top