Thread Closed

Hamiltonian -> Lagrangian

 
Share Thread Thread Tools
Dec9-06, 06:26 AM   #1
 
Exclamation

Hamiltonian -> Lagrangian


Consider the time-dependent Hamiltonian

[tex]H(q,p;t) = \frac{p^2}{2m \sin^2{(\omega t})} - \omega pq \cot{(\omega t)} - \frac{m}{2} \omega^2 \sin^2{(\omega t)} q^2[/tex]

with constant m and [tex]\omega[/tex].
Find a corresponding Lagrangian [tex]L = L(q,\dot{q};t)[/tex]

Ok, I know that the Hamiltonian is given by

[tex]H(q,p;t) = \dot{q}p - L(q, \dot{q};t)[/tex]

where

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

Is it as easy as

[tex]L(q, \dot{q};t) =\dot{q}p - H(q,p;t)[/tex]?

And how do I get rid of the p's?
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> 'Whodunnit' of Irish potato famine solved
>> The mammoth's lament: Study shows how cosmic impact sparked devastating climate change
>> Curiosity Mars rover drills second rock target
Dec9-06, 08:54 AM   #2
 
Since [tex]p = \frac{\partial L}{\partial \dot{q}}[/tex] you can substitute [tex]p[/tex] in [tex]L(q, \dot{q};t) =\dot{q}p - H(q,p;t)[/tex] and solve the differential equation.
 
Dec9-06, 11:35 AM   #3
 
Yeah, nice equation.. Any tip on how to solve it?
 
Dec10-06, 06:42 AM   #4
 

Hamiltonian -> Lagrangian


I still need help... Anyone?
 
Dec10-06, 08:17 AM   #5
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
You have a Hamiltonian H which is a function of q and p: H(q,p). From the Hamilton equations of motion you have that [tex] \dot{q} = \frac{\partial H(q,p)}{\partial p} [/tex]. Now think about this equation for a minute, it gives you a formula for [tex]\dot{q}[/tex] in terms of q and p. But if you rearrange the equation by solving for p, it gives you a formula for p in terms q and [tex] \dot{q}[/tex]. This is what you want! To see why form the object the [tex] p\dot{q} - H(q,p) [/tex] which is almost but not quite the Lagrangian. To make this quantity into the true Lagrangian you should substitute your formula for p in terms of q and [tex] \dot{q} [/tex] into this expression. This is the important step because you know the Lagrangian is a function of q and [tex] \dot{q} [/tex], not q and p.
 
Dec10-06, 09:12 AM   #6
 
Ok, then I get the Lagrangian

[tex]L = m \sin^2{(\omega t)} \left[ \left( \dot{q} + \omega t \cot{(\omega t)} \right) \left( \frac{1}{2} \dot{q} + \omega cot{(\omega t)} (1 - \frac{1}{2}q) \right) + \frac{1}{2} \omega^2 q^2 \right] [/tex]

Now my mission is to "obtain, by choosing a suitable new coordinate, an equivalent time-independent Lagrangian [tex]\tilde{L}[/tex]".
How is this supposed to be done?
 
Dec10-06, 10:15 AM   #7
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor
Retired Staff Staff Emeritus
I don't know if this can help you, but a Lagrangian L and L' are equivalent (generate the same dynamics) if they differ by a total derivative to time of a function of q and t only:
[tex] L' = L + \frac{d F(q_i,t)}{dt}[/tex]

I didn't check, but maybe you can get all the time depedence into that form...
 
Dec10-06, 10:20 AM   #8
 
I don't think that's what I'm supposed to do here. Referring to "by choosing a new coordinate"...
 
Dec10-06, 12:31 PM   #9
 
There are time-dependence in every term so that is not a possibility.. =/
 
Dec10-06, 03:25 PM   #10
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
Logarythmic,

The first thing you should do is check your algebra. The Lagrangian you've displayed in post 6 contains a (1-q/2) which doesn't make sense because q has units. When you get the Lagrangian right the situation will look better.
 
Dec10-06, 05:24 PM   #11
 
Ok, I forgot a q so my correct Lagrangian is

[tex]L = m \sin^2{(\omega t)} \left[ \frac{\dot{q}^2}{2} + \omega q \dot{q} \cot{(\omega t)} + \frac{1}{2} \omega^2 q^2 (1 + \cot^2{(\omega t)} ) \right][/tex]

but there is still a time dependence in every term so writing it as

[tex]L = \tilde{L} + \frac{dF(q,t)}{dt}[/tex]

will be hard..? Or?
 
Dec10-06, 08:59 PM   #12
 
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
Ok, your Lagrangian looks good now. At this point I think there is a fairly straightforward guess you can make as to what your new coordinate should be. To make it even more clear, you might try completing the square for qdot.

PS The L' = L + df/dt thing isn't really important for this problem.
 
Dec11-06, 01:56 AM   #13
 
Completing the square?
 
Dec11-06, 04:44 AM   #14
 
Completing the square

[tex]
\begin{array}{rl}
\alpha x^2 + \beta x + \gamma &= \alpha\left[ x^2 + \frac{\beta}{\alpha} x + \frac{\gamma}{\alpha}\right] \\
&= \alpha\left[ (x + \frac{\beta}{2 \alpha})^2 + (\frac{\gamma}{\alpha}-\frac{\beta^2}{4 \alpha^2}) \right]
\end{array}
[/tex]

It looks a lot neater if we take [itex]\alpha=1[/itex]:

[tex]
x^2 + \beta x + \gamma = (x + \beta /2)^2 + (\gamma-\beta^2/4)
[/tex]
 
Thread Closed
Thread Tools


Similar Threads for: Hamiltonian -> Lagrangian
Thread Forum Replies
Lagrangian and Hamiltonian Dynamics Advanced Physics Homework 0
lagrangian and hamiltonian formalism Quantum Physics 13
Lagrangian Hamiltonian Classical Physics 0
Hamiltonian/Lagrangian Mechanics Classical Physics 8