Generating function and Lagrangian invariance

AI Thread Summary
The discussion focuses on the role of the generating function G in Lagrangian mechanics, particularly its dependence on coordinates and momenta. It emphasizes that while G can be expressed in terms of both old and new coordinates, its total derivative can be added to the Lagrangian without altering the equations of motion. The proof provided shows that transformations involving G lead to equivalent equations of motion, reinforcing the concept of invariance under canonical transformations. The distinction between the Hamiltonian and Lagrangian formulations is highlighted, noting that Hamilton's principle allows for independent variation of configuration variables and their conjugate momenta. This results in a broader scope of invariance in Hamiltonian mechanics compared to Lagrangian mechanics.
Coffee_
Messages
259
Reaction score
2
To make my explanation easier open the ''Generating function approach'' section on this wiki article:

http://en.wikipedia.org/wiki/Canonical_transformation

The function ##\frac{dG}{dt}## represents the function that always can be added to the Lagrangian without changing the mechanical equations.

However, in the Lagrangian mechanics formulation the function ##G## is only allowed to be a function of the coordinates and time ##G(q,t)##.

If I look further down in the wiki article I find that ##G## is allowed to have other variables like ##G(p,Q,t)##. It isn't very clear why it is trivial or easy to see that this won't give any problems.
 
Physics news on Phys.org
Let's start from the Type 1 generating function described in the provided link.
This G_1 is a function of the old and new general coordinates.
Then, we can get the same equations of motion. This can be proved by the argument shown in
https://en.wikibooks.org/wiki/Classical_Mechanics/Lagrange_Theory#Is_the_Lagrangian_unique.3F
because the boundary value of the old and new coordinates are fixed.

Sofar we have proved that if there are the transformations Q(q,p,t),\, P(q,p,t) satisfying
<br /> \begin{align}<br /> \mathbf{p} &amp;= \frac{\partial G_{1}}{\partial \mathbf{q}} \\<br /> \mathbf{P} &amp;= -\frac{\partial G_{1}}{\partial \mathbf{Q}} \\<br /> K &amp;= H + \frac{\partial G_{1}}{\partial t},<br /> \end{align}<br />
then the resultant equations of motion are identical.

Next, we will consider another transformations Q(q,p,t),\, P(q,p,t) satisfying
<br /> \begin{align}<br /> \mathbf{p} &amp;= \frac{\partial G_{2}(q,P,t)}{\partial \mathbf{q}} \\<br /> \mathbf{Q} &amp;= \frac{\partial G_{2}(q,P,t)}{\partial \mathbf{P}} \\<br /> K &amp;= H + \frac{\partial G_{2}(q,P,t)}{\partial t}.<br /> \end{align}<br />
By Legendre transformation G&#039;(q,Q,t)=G_2(q,P,t)-PQ, we achieve
<br /> \begin{align}<br /> \mathbf{p} &amp;= \frac{\partial G&#039;}{\partial \mathbf{q}} \\<br /> \mathbf{P} &amp;= -\frac{\partial G&#039;}{\partial \mathbf{Q}} \\<br /> K &amp;= H + \frac{\partial G&#039;}{\partial t}.<br /> \end{align}<br />
You can prove these equations by carefully handling the partial derivatives.
Apparently, these equations result in the same equations of motion as the original one.

The similar arguments can be applied toG_3,\, G_4.
 
  • Like
Likes vanhees71
optophotophys said:
...

Thanks for the reply. While I agree with everything you say you never mentioned the exact problem I had. Let's take a look at the wiki page expression as well and say that we take only one variable to make it easy writing:

##p\frac{dq}{dt} - H(p,q,t) = P \frac{dP}{dt} - K(Q,P,t) + \frac{dG}{dt} ##

My point is that this is exactly equal to :

##L(q,\frac{dq}{dt},t) = L'(Q,\frac{dQ}{dt},t) + \frac{dG}{dt} ##

So clearly this function ##G## is the same frunction that one can add a total derivative of and keep the Lagrangian invariant. However it is known that such a function can only explicitly depend of position and time ##G(q,t)## and so be explicitly independent of ##\frac{dq}{dt}##

However writing ##G(q,P,t)## and likewise makes it not so clear anymore that it isn't explicitly independent of \frac{dq}{dt}.
 
Although I cannot give a qualitative explanation, here is my proof (based on the principle of least action):
<br /> \begin{align}<br /> 0&amp;=\delta \int dt (p\dot{q}-H)=\delta\int dt (P\dot{Q}-K+\frac{dG_1(q,Q)}{dt})\\<br /> &amp;=\int dt \delta P\dot{Q}+\delta\dot{Q}P-\delta P\frac{\partial K}{\partial P}-\delta Q\frac{\partial K}{\partial Q}+\frac{d \delta G_1}{dt}\\<br /> &amp;=\int dt \delta P\dot{Q}+\frac{d}{dt}(P\delta Q)-\dot{P}\delta Q-\delta P\frac{\partial K}{\partial P}-\delta Q\frac{\partial K}{\partial Q}+\frac{d \delta G_1}{dt}\\<br /> &amp;=\int dt \delta P \left( \dot{Q}-\frac{\partial K}{\partial P}\right)+\delta Q\left(-\frac{\partial K}{\partial Q}-\dot{P}\right)+\frac{d}{dt}(P\delta Q)+\frac{d \delta G_1}{dt}.<br /> \end{align}<br />
Here, we note that
<br /> \begin{align}<br /> \delta G_1(q(Q,P),Q)&amp;=\delta P \frac{\partial G_1(q,Q)}{\partial q}\frac{\partial q(Q,P)}{\partial P}+\delta Q\left[ \frac{\partial G_1(q,Q)}{\partial Q}+\frac{\partial G_1(q,Q)}{\partial q}\frac{\partial q(Q,P)}{\partial Q}\right]\\<br /> &amp;=\delta P p\frac{\partial q(Q,P)}{\partial P}+\delta Q\left[ -P+p\frac{\partial q(Q,P)}{\partial Q}\right].<br /> \end{align}<br />
Then,
<br /> \begin{align}<br /> 0&amp;=\int dt \delta P \left( \dot{Q}-\frac{\partial K}{\partial P}\right)+\delta Q\left(-\frac{\partial K}{\partial Q}-\dot{P}\right)+\frac{d}{dt}\left[ \delta P p\frac{\partial q(Q,P)}{\partial P}+\delta Qp\frac{\partial q(Q,P)}{\partial Q}\right]\\<br /> &amp;=\int dt \delta P \left( \dot{Q}-\frac{\partial K}{\partial P}\right)+\delta Q\left(-\frac{\partial K}{\partial Q}-\dot{P}\right)+\frac{d}{dt}\left(p\delta q\right)\\<br /> &amp;=p_2\delta q_2-p_1\delta q_1+\int dt \delta P \left( \dot{Q}-\frac{\partial K}{\partial P}\right)+\delta Q\left(-\frac{\partial K}{\partial Q}-\dot{P}\right).<br /> \end{align}<br />
We always fix the boundary values, when we vary the action. So,
<br /> \begin{align}<br /> 0=\int dt \delta P \left( \dot{Q}-\frac{\partial K}{\partial P}\right)+\delta Q\left(-\frac{\partial K}{\partial Q}-\dot{P}\right).<br /> \end{align}<br />
This gives the Hamilton's equations.
 
The point is that Hamilton's principle in the Hamiltonian form is extended compared to the one in Lagrangian form. In the Hamilton form you vary the configuration variables and their conjugate momenta independently from each other. The configuration variables are fixed at the endpoints, the momenta are free. The consequence is that you get the invariance of the equations of motion (i.e., the variation of the action) under canonical transformations (local symplectomorphisms on phase space) rather than only configuration-coordinate transformations (local diffeomorphisms on configuration space).
 
Thread 'Question about pressure of a liquid'
I am looking at pressure in liquids and I am testing my idea. The vertical tube is 100m, the contraption is filled with water. The vertical tube is very thin(maybe 1mm^2 cross section). The area of the base is ~100m^2. Will he top half be launched in the air if suddenly it cracked?- assuming its light enough. I want to test my idea that if I had a thin long ruber tube that I lifted up, then the pressure at "red lines" will be high and that the $force = pressure * area$ would be massive...
I feel it should be solvable we just need to find a perfect pattern, and there will be a general pattern since the forces acting are based on a single function, so..... you can't actually say it is unsolvable right? Cause imaging 3 bodies actually existed somwhere in this universe then nature isn't gonna wait till we predict it! And yea I have checked in many places that tiny changes cause large changes so it becomes chaos........ but still I just can't accept that it is impossible to solve...
Back
Top