How to get lagragean when hamiltonian is given

  • Thread starter vrinda mukund
  • Start date
  • Tags
    Hamiltonian
In summary, the conversation discusses the relationship between the Hamiltonian and Lagrangian equations for a particle and how to express p in terms of dq/dt. The key point is that the Lagrangian is always a function of q, dq/dt, and time, while the Hamiltonian is always a function of q, p and time. To switch between the two, we must eliminate either p or dq/dt.
  • #1
vrinda mukund
37
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
  • #2
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].
 
  • #3
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
=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]
 
  • #4
thank u sir!
 
  • #5
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
 

Related to How to get lagragean when hamiltonian is given

1. What is the Lagrangian in relation to Hamiltonian?

The Lagrangian, denoted as L, is a function that describes the dynamics of a physical system using the generalized coordinates and velocities. It is closely related to the Hamiltonian, as both represent different mathematical formulations of classical mechanics.

2. How do you calculate the Lagrangian from the Hamiltonian?

To calculate the Lagrangian from the Hamiltonian, you can use the Legendre transformation, which involves taking the partial derivatives of the Hamiltonian with respect to the generalized coordinates and velocities. Alternatively, you can also use the Hamilton's equations of motion to derive the Lagrangian.

3. What is the significance of finding the Lagrangian when the Hamiltonian is given?

The Lagrangian and Hamiltonian formulations of classical mechanics are equivalent, meaning that they both describe the same physical system. However, the Lagrangian formulation can often provide a more intuitive understanding of the system's dynamics and can simplify the calculations needed to solve the equations of motion.

4. Can the Lagrangian be used for systems with multiple degrees of freedom?

Yes, the Lagrangian can be used for systems with multiple degrees of freedom, meaning that it can describe the dynamics of more complex physical systems. In these cases, the Lagrangian will involve the generalized coordinates and velocities for each degree of freedom.

5. Are there any practical applications of using Lagrangian and Hamiltonian formulations?

Yes, the Lagrangian and Hamiltonian formulations have many practical applications in various fields, such as physics, engineering, and economics. They are used to describe the dynamics of systems ranging from simple mechanical systems to complex quantum systems, and are also important in solving optimization problems in economics and engineering.

Similar threads

  • Advanced Physics Homework Help
Replies
1
Views
707
  • Advanced Physics Homework Help
Replies
2
Views
524
Replies
12
Views
1K
  • Advanced Physics Homework Help
Replies
9
Views
1K
  • Advanced Physics Homework Help
2
Replies
56
Views
4K
  • Advanced Physics Homework Help
Replies
3
Views
820
Replies
2
Views
2K
  • Advanced Physics Homework Help
Replies
6
Views
2K
  • Advanced Physics Homework Help
Replies
6
Views
2K
  • Advanced Physics Homework Help
Replies
9
Views
290
Back
Top