Finding the Hamiltonian if I'm given the Lagrangian

In summary, the Hamiltonian for an an-harmonic oscillator with the Lagrangian L(x,\dot x )=\frac{\dot x ^2}{2}-\frac{\omega ^2 x^2}{2}-\alpha x^3 + \beta x \dot x ^2 is given by H(p,q,t)= p_x ^2 \frac{\left (\frac{1}{2}+\beta x \right ) }{1+4 \beta x +4 \beta ^2 x^2}+\omega ^2 \frac{x}{2}+ \alpha x^3. The Hamiltonian usually depends on p_i^2 rather than p_i, but in some cases such as an acoustic phonon
  • #1
fluidistic
Gold Member
3,923
261

Homework Statement


Determine the Hamiltonian corresponding to the an-harmonic oscillator having the Lagrangian [itex]L(x,\dot x )=\frac{\dot x ^2}{2}-\frac{\omega ^2 x^2}{2}-\alpha x^3 + \beta x \dot x ^2[/itex].


Homework Equations


[itex]H(q,p,t)=\sum p_i \dot q _i -L[/itex].
[itex]p _i=\frac{\partial L}{\partial \dot q _i}[/itex].

The Attempt at a Solution


Using the equations in 2), I get [itex]p_x= \dot x +2 \beta x \dot x[/itex].
So that [itex]p_x ^2= \dot x ^2 (1+4 \beta x +4 \beta ^2 x^2)[/itex].
Now if I can write the following function in function of only p, q and t then it would be the Hamiltonian, but I couldn't do it.
Here's the function: [itex]\dot x^2 \left ( \frac{1}{2} +\beta x \right ) +\omega ^2 \frac{x^2}{2}+\alpha x^3[/itex].
I see absolutely no way to get rid of the x's terms (or q in this case).
Any help is appreciated. Thanks!
 
Physics news on Phys.org
  • #2
I don't see what the issue is here. You already know how to exchange all [itex]\dot{x}[/itex] for momenta based off your first calculation. So just do that.
 
  • #3
fluidistic said:
I see absolutely no way to get rid of the x's terms (or q in this case).
Any help is appreciated. Thanks!

Why do you want to get rid of [itex]x[/itex]? The term you want to get rid of are [itex]\dot{x}[/itex], with the help of the definition of momenta.

But you are on the right track.
 
  • #4
Whoops guys you are right. This is so new to me that I don't have almost any intuition in this stuff yet.
I get [itex]H(p,q,t)= p_x ^2 \frac{\left (\frac{1}{2}+\beta x \right ) }{1+4 \beta x +4 \beta ^2 x^2}+\omega ^2 \frac{x}{2}+ \alpha x^3[/itex]. I hope it's right and it's the answer the exercise is looking for.
By the way so far it seems like that the Hamiltonians I've seen so far depend on [itex]p _i ^2[/itex] rather than [itex]p_i[/itex]. Is there any example of a system whose Hamiltonian depends on [itex]p_i[/itex] rather than [itex]p_i ^2[/itex]?
 
  • #5
fluidistic said:
... Is there any example of a system whose Hamiltonian depends on [itex]p_i[/itex] rather than [itex]p_i ^2[/itex]?

The problem there is that to carry out the Legendre transformation from [itex]L(q,\dot{q})[/itex] to [itex]H(q,p)[itex], the mapping must be invertible. You need to be able to express [itex]\dot{q} = F(q,p)[itex] where [itex] p \equiv \partial L / \partial \dot{q}[/itex].

In particular the matrix of elements [itex]M_{ij} = \frac{\partial^2 }{\partial \dot{q}_i\partial \dot{q}_j}L[/itex] must be invertible.

Given it is symmetric it can be diagonalized via a linear transformation on the q's. To be invertible none of the diagonal terms can be zero.

From there I think you can get to a definite No to your question.

Now you can get only mixed quadratic factors. For [itex] L = \dot{x}\dot{y}[/itex] you'll get [itex]H = p_x p_y[/itex].
 
  • #6
jambaugh said:
The problem there is that to carry out the Legendre transformation from [itex]L(q,\dot{q})[/itex] to [itex]H(q,p)[itex], the mapping must be invertible. You need to be able to express [itex]\dot{q} = F(q,p)[itex] where [itex] p \equiv \partial L / \partial \dot{q}[/itex].

In particular the matrix of elements [itex]M_{ij} = \frac{\partial^2 }{\partial \dot{q}_i\partial \dot{q}_j}L[/itex] must be invertible.

Given it is symmetric it can be diagonalized via a linear transformation on the q's. To be invertible none of the diagonal terms can be zero.

From there I think you can get to a definite No to your question.

Now you can get only mixed quadratic factors. For [itex] L = \dot{x}\dot{y}[/itex] you'll get [itex]H = p_x p_y[/itex].
Thank you very much. I must admit it's over my head for now; I hope I'll be able to fully understand this after taking the mathematical methods used in physics course.
But the answer is good to know for me, at least I can know I obtained an error when I get that the Hamiltonian of a system depends on p_i alone.
By the way, it seems what you said concern only systems where the energy is not dissipated, i.e. the Lagrangian and Hamiltonian do not depend explicitly on time. Would the conclusion be the same if [itex]L(q,\dot q ,t)[/itex] and [itex]H(p,q,t)[/itex] rather than just [itex]L(q, \dot q)[/itex] and [itex]H(p,q)[/itex]? I'm guessing that it's an obvious "yes", but I just want to be 100% sure.
Thanks.
 
  • #7
fluidistic said:
By the way so far it seems like that the Hamiltonians I've seen so far depend on [itex]p _i ^2[/itex] rather than [itex]p_i[/itex]. Is there any example of a system whose Hamiltonian depends on [itex]p_i[/itex] rather than [itex]p_i ^2[/itex]?

Yes, acoustic phonon (quantum of lattice vibration) in solid has low energy effective Hamiltonian [itex]H = v |p|[/itex], where [itex]v[/itex] is the speed of sound in the solid.

You can't really have [itex]H \propto p[/itex] because then you can keep have larger negative momentum and having lower and lower energy, which is strange. Well not completely, but that's a whole different discussion involving special relativity.
 

1. How do I find the Hamiltonian if I'm given the Lagrangian?

The Hamiltonian can be found by simply taking the Legendre transformation of the Lagrangian. This involves solving for the generalized momenta and substituting them into the Lagrangian. The resulting expression is the Hamiltonian.

2. What is the significance of finding the Hamiltonian from the Lagrangian?

The Hamiltonian is a useful quantity in classical mechanics as it can provide information about the energy of a system and how it evolves over time. It also allows for the use of Hamilton's equations, which can simplify the equations of motion for a system.

3. Can the Hamiltonian be found for any system with a given Lagrangian?

Yes, the Hamiltonian can be found for any system that has a well-defined Lagrangian. However, the resulting Hamiltonian may be a complicated expression depending on the complexity of the system.

4. Are there any limitations to finding the Hamiltonian from the Lagrangian?

One limitation is that the Hamiltonian may not always be a well-defined quantity for systems with constraints, such as a system with fixed constraints or holonomic constraints. In these cases, other methods, such as the Hamiltonian-Jacobi method, may need to be used to find the Hamiltonian.

5. How does finding the Hamiltonian relate to the principle of least action?

The Hamiltonian is related to the principle of least action through the Euler-Lagrange equations, which are derived from the principle of least action. The Hamiltonian can also be used to derive the equations of motion for a system, which can then be solved using the principle of least action.

Similar threads

Replies
6
Views
974
  • Advanced Physics Homework Help
Replies
2
Views
474
  • Advanced Physics Homework Help
Replies
2
Views
824
  • Advanced Physics Homework Help
Replies
1
Views
691
  • Advanced Physics Homework Help
Replies
1
Views
495
  • Advanced Physics Homework Help
Replies
6
Views
2K
  • Advanced Physics Homework Help
Replies
6
Views
2K
Replies
7
Views
5K
  • Advanced Physics Homework Help
Replies
0
Views
462
  • Advanced Physics Homework Help
Replies
7
Views
1K
Back
Top