Variables in lagrangian vs hamiltonian dynamics

AI Thread Summary
In Lagrangian dynamics, position (q) and velocity (q-dot) are treated as dependent variables within configuration space, while in Hamiltonian dynamics, canonical positions and momenta are considered independent. The independence in Hamiltonian mechanics arises from the separation of canonical momentum from physical momentum and the choice of parameters. Despite this, both formalisms ultimately do not have truly independent variables, as demonstrated by the relationship in an oscillator's equations. The discussion highlights that while Lagrangian mechanics uses integration by parts to derive equations, it does not necessitate the chain rule for variable dependence. The distinction between the two approaches lies in how variables are defined and treated within their respective frameworks.
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 ZetaOfThree
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Hello everyone, Consider the problem in which a car is told to travel at 30 km/h for L kilometers and then at 60 km/h for another L kilometers. Next, you are asked to determine the average speed. My question is: although we know that the average speed in this case is the harmonic mean of the two speeds, is it also possible to state that the average speed over this 2L-kilometer stretch can be obtained as a weighted average of the two speeds? Best regards, DaTario
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Back
Top