The Hamiltonian and Galilean transformations

In summary, the conversation discusses the Hamiltonian for a system consisting of a mass attached to a spring mounted on a massless carriage which moves with uniform velocity U. By using different coordinates, q and Q, the Hamiltonian can have a term in U or not, leading to confusion about its physical significance. It is shown that a canonical transformation is necessary to keep the Hamiltonian form-invariant and to eliminate the term in U. This is also equivalent to a transformation in the Lagrangian formalism.
  • #1
epovo
114
21
TL;DR Summary
The effect of a coordinate transformation on the Hamiltonian is surprising (for me!)
In a classical example, for a system consisting of a mass attached to a spring mounted on a massless carriage which moves with uniform velocity U, as in the image below, the Hamiltonian, using coordinate q, has two terms with U in it.
But if we use coordinate Q, ##Q=q−Ut##, which moves with the carriage, the Hamiltonian, to my surprise, still contains a term in U.

$$ H=\frac 1 2 p^2/m+Up+\frac 1 2 kQ^2 $$

By choosing coordinate Q I assumed we have moved to a static frame of reference in which U can be ignored. But that does not seem to be the case.
I could calculate the Hamiltonian as if the carriage was static, and I would of course get

$$ H=\frac 1 2 P^2/m+\frac 1 2 kQ^2 $$

I am confused.

1683296425497.png
 
Physics news on Phys.org
  • #2
What are definitions of p and P ? I see
[tex]PE=\frac{1}{2}kQ^2[/tex]
[tex]KE=\frac{m}{2}(U+\dot{Q})^2[/tex]
 
  • #3
ok,
$$ L = \frac{m}{2}(U+\dot{Q})^2 - \frac{1}{2}kQ^2$$
$$ p = m\dot{Q} + mU $$
$$ H = \dot Q p - L = ...= \frac 1 2 p^2/m+U p+\frac 1 2 kQ^2 $$

If we ignore U completely, Kinetic Energy is simply ## KE = \frac{m}{2}\dot{Q}^2 ##. Therefore

$$ P = \frac {\partial L} { \dot Q} = m \dot Q $$
and
$$H=\frac 1 2 P^2/m+\frac 1 2 kQ^2$$

My confusion is that the first formulation of H contains a term in U and the second one, which should be equivalent, does not. Which leads me to think of the Hamiltonian as little more than a mathematical device with no physical significance.
Either formulation leads to the same, and correct, equations of motion.
 
  • Like
Likes anuttarasammyak
  • #4
Thanks for details. I got one of a diferent signature
[tex]H=\frac{p^2}{2m}-Up+\frac{k}{2}Q^2[/tex]
which gives a equation
[tex]\frac{\partial H}{\partial p}=\frac{p}{m}-U=\dot{Q}[/tex]
-Up term seems all right.
epovo said:
My confusion is that the first formulation of H contains a term in U and the second one, which should be equivalent, does not. Which leads me to think of the Hamiltonian as little more than a mathematical device with no physical significance.
Either formulation leads to the same, and correct, equations of motion.
The first one and the second one belong to different inertial frame of references, IFRs. Hamiltonian is not invariant under Galilean transformations.
 
  • Like
Likes vanhees71 and strangerep
  • #5
Note that you have to do a canonical transformation in the Hamiltonian formalism in order to have form invariance. So let's write everything a bit more careful.

You start with phase-space coordinates ##(Q,P)##. The Lagrangian reads
$$L=\frac{m}{2} (\dot{Q}+U)^2-\frac{k}{2} Q^2.$$
The canonical momentum is
$$P=\frac{\partial L}{\partial \dot{Q}}=m(\dot{Q}+U).$$
The Hamiltonian reads
$$H'(Q,P,t)=P \dot{Q}-L=m (\dot{Q}^2+U \dot{Q})-\frac{m}{2} (\dot{Q}^2+2 \dot{Q} U +U^2)+\frac{k}{2} Q^2=
\frac{m}{2} \dot{Q}^2 -\frac{m}{2} U^2 + \frac{k}{2} Q^2.$$
Now we have eliminate ##\dot{Q}## in favor of ##P##:
$$H'=\frac{m}{2} (P/m-U)^2-\frac{m}{2}U^2 + \frac{k}{2} Q^2 = \frac{1}{2m} P^2 - P U + \frac{k}{2} Q^2.$$

Now you want to change to new canonical coordinates ##(q,p)## with ##q=Q+U t##. So we have to find the corresponding canonical transformation. The most simple way is to find a generating function ##g=g(q,P,t)##. Then
$$Q=\frac{\partial g}{\partial P}, \quad p=\frac{\partial g}{\partial q}, \quad H=H'-\frac{\partial g}{\partial t}.$$
Obviously
$$g=P(q-Ut)$$
does the job, and you get
$$H=\frac{p^2}{2m} +\frac{k}{2}(q-Ut)^2,$$
which is also what you directly get from starting with the Lagrangian
$$L=\frac{m}{2} \dot{q}^2-\frac{k}{2}(q-Ut)^2.$$
 
  • #6
I didn't know about canonical transformations. But I thought that by making the coordinate transformation ##Q=q-Ut##, I had changed my frame of reference, so that U loses its meaning and should not be part of the Lagrangian at all.
 
  • #7
When you work in the Hamiltonian formulation, you must use a canonical transformation to keep the formalism form-invariant (general symplectomorphism invariance of phase space). In the Lagrangian formalism you can do arbitrary transformations of the generalized coordinates (general diffeomorphism invariance of configuration space).

In the Lagrange formalism you have
$$L=\frac{m}{2} (\dot{Q}+U)^2 + \frac{k}{2} Q^2 = \frac{m}{2} \dot{Q}^2 + \frac{k}{2} Q^2 + m \dot{Q} U +\frac{m}{2} U^2=\underbrace{\frac{m}{2} \dot{Q}^2 + \frac{k}{2} Q^2}_{L'} +\frac{\mathrm{d}}{\mathrm{d} t} \left (m QU + \frac{m}{2} U^2 t \right).$$
The Lagrangian ##L'## is thus equivalent to the Lagrangian ##L##, and ##L'## is indeed independent of ##U## as it's clear from Galilei invariance.
 
  • Like
Likes epovo and anuttarasammyak
  • #8
Thank you very much @vanhees71 : That gives me peace of mind. It will probably be covered later in the text I am following, but when I saw this example I was troubled :)
 
  • #9
You can also get this within the Hamiltonian formalism. Starting again from
$$H'=\frac{1}{2m} (P-mU)^2 -\frac{1}{2m} ^2 + \frac{k}{2} Q^2,$$
we look for a canonical transformation which leads to ##p=P-mU## and ##q=Q## and such as to make ##H(q,p)## independent of ##U##.

We use again the generating function of the type ##g(q,P,t)##. Then we have
$$Q=\frac{\partial g}{P} \stackrel{!}{=}q \; \Rightarrow \; g(q,P,t)=q P + g_2(q,t).$$
Nowe we want
$$p=\frac{\partial g}{\partial q} \stackrel{!}{=}P-mU=P+\frac{\partial g_2}{\partial q} \; \Rightarrow \; g_2(q,t)=-m U q + g_3(t).$$
Then you get
$$H=H'-\frac{\partial g}{\partial t}=\frac{1}{2m} p^2 -\frac{1}{2m} U^2 + \frac{k}{2} q^2 -\dot{g}_3.$$
So setting
$$g_3(t)=-\frac{1}{2m} U^2 t$$
we finally get
$$H=\frac{1}{2m} p^2 + \frac{k}{2} q^2.$$
 
  • Like
Likes epovo

Related to The Hamiltonian and Galilean transformations

What is the Hamiltonian in classical mechanics?

The Hamiltonian in classical mechanics is a function used to describe the total energy of a system. It is typically denoted by H and is expressed in terms of the system's coordinates and momenta. The Hamiltonian is used in Hamilton's equations to describe the evolution of a system over time, providing a powerful framework for analyzing dynamical systems.

How do Galilean transformations relate to classical mechanics?

Galilean transformations are a set of equations in classical mechanics that relate the coordinates and time of events as observed in two different inertial frames moving at a constant velocity relative to each other. They are based on the principle of Galilean invariance, which states that the laws of motion are the same in all inertial frames. These transformations are crucial for understanding how measurements of space and time change between different reference frames.

What is the significance of the Hamiltonian in quantum mechanics?

In quantum mechanics, the Hamiltonian operator plays a central role as it corresponds to the total energy of the system. The time evolution of a quantum state is governed by the Schrödinger equation, where the Hamiltonian operator acts on the state vector. The eigenvalues of the Hamiltonian represent the possible energy levels of the system, making it a fundamental concept in both the formulation and interpretation of quantum mechanics.

How do Galilean transformations differ from Lorentz transformations?

Galilean transformations apply to classical mechanics and assume that time is absolute and the same for all observers, leading to transformations that preserve the form of Newton's laws. Lorentz transformations, on the other hand, are used in special relativity and take into account the constancy of the speed of light for all observers. Lorentz transformations mix space and time coordinates and lead to effects such as time dilation and length contraction, which are not present in Galilean transformations.

Can the Hamiltonian be used in relativistic mechanics?

Yes, the Hamiltonian can be extended to relativistic mechanics, but it requires modifications to account for the principles of special relativity. In relativistic mechanics, the Hamiltonian must include relativistic expressions for energy and momentum. This leads to a different form of the Hamiltonian function that respects the invariance of the speed of light and incorporates the effects of relativity into the dynamics of the system.

Similar threads

Replies
7
Views
1K
Replies
4
Views
783
Replies
3
Views
887
Replies
4
Views
866
Replies
3
Views
255
Replies
6
Views
2K
  • Advanced Physics Homework Help
Replies
1
Views
783
Replies
3
Views
1K
  • Mechanics
Replies
24
Views
1K
Replies
5
Views
1K
Back
Top