How to get lagragean when hamiltonian is given

  • Thread starter Thread starter vrinda mukund
  • Start date Start date
  • Tags Tags
    Hamiltonian
Click For Summary

Homework Help Overview

The discussion revolves around deriving the Lagrangian from a given Hamiltonian for a particle, specifically focusing on the relationship between the two formulations in classical mechanics. The Hamiltonian provided is H = [(p*p)/2m + pq], where p represents the canonical momentum and q is the generalized coordinate.

Discussion Character

  • Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore the relationship between the Hamiltonian and Lagrangian, discussing how to express the Lagrangian in terms of generalized coordinates and velocities without including momentum. There are references to Hamilton's equations and the need to eliminate momentum from the expressions.

Discussion Status

Some participants have provided insights into the necessary steps to derive the Lagrangian, including the use of Hamilton's equations to express momentum in terms of generalized velocities. There is an acknowledgment of the need to express the Lagrangian as a function of generalized coordinates and velocities, while also noting the distinction between the two formulations.

Contextual Notes

Participants note that the Lagrangian must be a function of q, dq/dt, and time, while the Hamiltonian is a function of q, p, and time. This distinction is crucial in the transition from Hamiltonian to Lagrangian mechanics.

vrinda mukund
Messages
36
Reaction score
0
hai everyone,

the question is " the hamiltonian of a particle is H = [(p*p)/2m + pq] where q is the generalised coordinate and p is the corresponding canonical momentum. the lagragean is ....?

i know that H = p(dq/dt) - L. but the answer should not contain p. how can i solve it? answer is (m/2)(dq/dt - q)2
 
Physics news on Phys.org
Remember Hamilton's equations, specifically:

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

Use this to get an expression for [itex]p[/itex] in terms of [itex]\dot{q}[/itex].
 
You've given the answer yourself, already: You calculate the Lagrangian,

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

and express [itex]p[/itex] via [itex]\dot{q}[/itex], where

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

In your case you get

[tex]\dot{q}=\frac{p}{m}+q \; \Rightarrow \; p=m(\dot{q}-q).[/tex]

and

[tex]L=\dot{q} p-\frac{p^2}{2m}-p q<br /> =m \dot{q} (\dot{q}-q) - \frac{m}{2} (\dot{q}-q)^2 - m q(\dot{q}-q).[/tex]

A bit simplified this gives

[tex]L=\frac{m}{2} (\dot{q}-q)^2.[/tex]
 
thank u sir!
 
An important point here is that the Lagrangian is always a function of q, dq/dt, and time, whereas the Hamiltonian is always a function of q, p and time. So to get from the Hamiltonian to the Lagrangian we must get rid of p, and to get from the Lagrangian to the Hamiltonian we must get rid of dq/dt
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
56
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
12
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
4K
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K