Solving a Lagrangian using an Ansatz

  • Thread starter Thread starter bantalon
  • Start date Start date
  • Tags Tags
    Lagrangian
Click For Summary
The discussion centers on solving a Lagrangian using an ansatz, specifically with the Lagrangian L=\frac{1}{2}\dot{x}^{2}-gx. The initial solution using the Euler-Lagrange equation yields the expected result of x=-\frac{1}{2}gt^2. However, applying the ansatz x=\alpha{t}^{2} leads to an unexpected outcome where \alpha=\frac{g}{4} instead of \alpha=-g. This discrepancy arises because setting x as a fixed function imposes a constraint, altering the problem and resulting in a different minimum. The conversation highlights that allowing \alpha to be a function of time resolves the issue, indicating that the method's failure is due to the constraints imposed by the ansatz.
bantalon
Messages
3
Reaction score
0
We were working on some Lagrangian and trying to solve it using an ansatz. Due to some problems in the results we got, we started to doubt the correctness of the method in use. Here is a very simple Lagrangian which shows the problem very easily:
L=\frac{1}{2}\dot{x}^{2}-gx
We took m=1 for the mere sake of simplicity. Solving this using the Euler-Lagrange equation gives \ddot{x}=-g as expected, and finally (taking initial values to zero):
x=-\frac{1}{2}gt^2
So far so good. Now, let's assume the following ansatz on the form of the solution:
x=\alpha{t}^{2}.
Where alpha is a constant. Now the fun begins. We wish to put the ansatz for x into the Lagrangian, vary it by alpha this time, and get the solution:
\alpha=-g
We believe this should work since this ansatz suits the solution we got for x. Putting the ansatz into the Lagrangian we get:
L=2\alpha^{2}t^{2}-g\alpha{t}^{2}
Varying by alpha, we get the equation:
4\alpha{t}^{2}-gt^2=0
And finally:
\alpha=\frac{g}{4}
not quite as expected.
Needless to mention, if we allow alpha to be a general function of t instead of simply a constant, everything works seamlessly.
We would appreciate your thoughts regarding why this method does not work in this case. Can you specify the cases in which it should work?
 
Physics news on Phys.org
Setting x = αt2 is imposing a constraint, not just an ansatz. In other words, you're solving a different problem, which has a different minimum. Effectively you're adding a term λ(x-αt2) to the Lagrangian, where λ is a Lagrange multiplier. There will be a constraining force acting on the particle, forcing it to follow a parabolic path, and among this family of paths, α = -g is no longer the minimum.
 
Topic about reference frames, center of rotation, postion of origin etc Comoving ref. frame is frame that is attached to moving object, does that mean, in that frame translation and rotation of object is zero, because origin and axes(x,y,z) are fixed to object? Is it same if you place origin of frame at object center of mass or at object tail? What type of comoving frame exist? What is lab frame? If we talk about center of rotation do we always need to specified from what frame we observe?

Similar threads

  • · Replies 0 ·
Replies
0
Views
862
  • · Replies 2 ·
Replies
2
Views
706
  • · Replies 1 ·
Replies
1
Views
491
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
6
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
2K