Variables in lagrangian vs hamiltonian dynamics

Click For Summary

Discussion Overview

The discussion centers on the treatment of variables in Lagrangian versus Hamiltonian dynamics, specifically focusing on the independence of position and velocity in the Lagrangian formalism compared to the independence of position and momentum in the Hamiltonian formalism. The scope includes theoretical considerations and conceptual clarifications regarding these two frameworks in classical mechanics.

Discussion Character

  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • Some participants assert that in the Lagrangian formalism, position ##q## and velocity ##\dot q## are treated as dependent variables, while in the Hamiltonian formalism, position ##q## and momentum ##p## are considered independent.
  • Others argue that the choice of independent parameters is subjective, suggesting that one can define ##\dot q## in terms of ##q## and ##p##, thus treating them as independent variables through a change of variables.
  • A participant contends that the variation of the action in the Lagrangian formalism requires treating ##q## and ##\dot q## as independent to avoid using the chain rule.
  • Another participant challenges this view, stating that neither formalism treats the variables as truly independent, providing an example of an oscillator to illustrate the dependence between ##q## and ##\dot q##.

Areas of Agreement / Disagreement

Participants express disagreement regarding the independence of variables in both the Lagrangian and Hamiltonian formalisms. There is no consensus on whether ##q## and ##\dot q## should be considered independent in the Lagrangian framework, nor on the implications of this for the Hamiltonian framework.

Contextual Notes

Some participants reference specific mathematical relationships and examples to support their claims, but the discussion remains unresolved regarding the fundamental treatment of variables in each formalism.

copernicus1
Messages
98
Reaction score
0
In the lagrangian formalism, we treat the position ##q## and the velocity ##\dot q## as dependent variables and talk about configuration space, which is just the space of positions. In the hamiltonian formalism we talk about canonical positions and momenta, and we consider them independent. Is the independence based on the additional parameters in momenta (namely the mass), or is it based on the fact that the canonical momentum is separate from the physical momentum?

Thanks!
 
Last edited by a moderator:
Physics news on Phys.org
The choice of which parameters are independent from each other is completely up to you. In lagrangian mechanics one chooses q and \dot q, so you have two independent variables. When you define the conjugate momentum you are going to have:
$$
\frac{\partial L}{\partial \dot q}=p(q,\dot q).
$$
Now, there is nothing wrong in inverting this relation to obtain \dot q(q,p) and then re-write everything in terms of q and p, you will still have two independent variables, just with a different meaning. This is nothing but a change of variables.
 
I think you may have misread my question. My question was referring to the dependence of q and q-dot in the Lagrangian formalism versus the independence of q and p in the Hamiltonian. In Lagrangian dynamics, q and q-dot are not independent. I'm wondering about the difference between the two formalisms.
 
Actually in the lagrangian formalism q and q-dot are treated as independent variables. When, for example, you take the variation of the action you derive first w.r.t. q and then w.r.t. q-dot, this can only be done if they are considered as independent, otherwise you would have to use the chain rule.
 
Einj said:
Actually in the lagrangian formalism q and q-dot are treated as independent variables. When, for example, you take the variation of the action you derive first w.r.t. q and then w.r.t. q-dot, this can only be done if they are considered as independent, otherwise you would have to use the chain rule.

That is false. You would not have to use the chain rule, you merely might, which would lead you nowhere. Lagrange's insight was that instead of using the chain rule, one should use integration by parts, which eliminates q-dot (except he did not use the dot notation all) and results in Euler-Lagrange equations immediately.

Neither in Lagrangian nor in Hamiltonian formalism are the variables truly independent. As an example, take an oscillator, whose (reduced) Lagrangian is ## {\dot q^2 \over 2} - k{q^2 \over 2} ##, the E-L equation is ## \ddot q + k q = 0 ##. This equation can be trivially converted to ## \dot q^2 + k q^2 = h ##, where the dependence between ##q## and ##\dot q## is manifest. Why this example proves that the variables in the Hamiltonian formalism are likewise not independent is left as an exercise.
 
  • Like
Likes   Reactions: ZetaOfThree

Similar threads

  • · Replies 20 ·
Replies
20
Views
10K
  • · Replies 2 ·
Replies
2
Views
842
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K