I've been looking into Hamiltonian mechanics lately. Here is an opportunity to use it to derive a classic result in kinematics: the parabolic trajectory of an object under the influence of gravity. Let the standard coordinates be ( x , y ) . The Lagrangian is:
L = 2 1 m ( x ˙ 2 + y ˙ 2 ) − m g y
Then we form the Hamiltonian as follows:
H = p x x ˙ + p y y ˙ − L p x = ∂ x ˙ ∂ L p y = ∂ y ˙ ∂ L
Then the equations of motion are:
x ˙ = ∂ p x ∂ H p ˙ x = − ∂ x ∂ H y ˙ = ∂ p y ∂ H p ˙ y = − ∂ y ∂ H
What are the resulting ( x ¨ , y ¨ ) values?
( x ¨ , y ¨ ) = ?
Hint: Before evaluating the equations of motion, replace the x ˙ and y ˙ terms in the Hamiltonian with expressions written in terms of p x and p y
Note: I have read that Hamiltonian mechanics is less useful than Lagrangian mechanics for simple problems, but that it is far more useful for advanced applications such as statistical mechanics.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Please correct me if I have drawn a wrong conclusion here.
Log in to reply
I've been looking at this book chapter:
https://scholar.harvard.edu/files/david-morin/files/cmchap15.pdf
Equation 15.21 makes this clear. In the author's notation, ( q 1 , q 2 ) correspond to ( x , y ) .
Log in to reply
Thanks for sharing this. I just read that section that you pointed me to.
In the past days, I was contemplating looking into Hamiltonian mechanics but laziness prevailed. This exercise has given me a good start to it.
As far as I can tell, the Hamiltonian may contain ( x , y , p x , p y ) , but not any of their time derivatives. So I agree with you
How do you get ∂ x ∂ H = − p x and similar equation for ∂ y ∂ H ? You are doing a fundamental mistake. By writing ∂ p x ∂ ( p x x ˙ ) = x ˙ , you are assuming that p x and x ˙ are independent variables, which is obviously not true.
Log in to reply
They were typos in my solution. I have corrected them. The equation is indeed:
∂ x ∂ H = − p ˙ x
Log in to reply
Regarding your quary, are you satisfied with my argument, or you have any questions?
Log in to reply
@A Former Brilliant Member – If you are referring to your previous comment, no, I do not have questions. Thank you for pointing out the typo
From the given definitions we get p x = ∂ x ˙ ∂ L = m x ˙ , p y = ∂ y ˙ ∂ L = m y ˙ . This implies H = 2 1 m ( x ˙ 2 + y ˙ 2 ) + m g y . So p x ˙ = m x ¨ = − ∂ x ∂ H = 0 , p y ˙ = m y ¨ = − ∂ y ∂ H = − m g , and so x ¨ = 0 , y ¨ = − g
Problem Loading...
Note Loading...
Set Loading...
My two cents on this problem:
L = 2 m 1 ( p x 2 + p y 2 ) − m g y
H = p x x ˙ + p x x ˙ − L p x = m x ˙ p y = m y ˙
⟹ H = 2 m 1 ( p x 2 + p y 2 ) + m g y
Crunching out the partial derivatives gives the answer. However, I have a comment. If we stick to the given definition of the Hamiltonian, we get:
H = 2 1 ( p x x ˙ + p x x ˙ ) + m g y
Using this expression to crunch out the partial derivatives would result in:
∂ p x ∂ H = 2 x ˙ = x ˙ ∂ p y ∂ H = 2 y ˙ = y ˙ ∂ x ∂ H = 0 = − p ˙ x ∂ y ∂ H = m g = − p ˙ y
The above result is strange. So what I understand from this is that the Hamiltonian must be only a function of generalised momenta and generalised coordinates, and must be made independent of generalised velocities.