Solving a Lagrangian using an Ansatz

  • Thread starter Thread starter bantalon
  • Start date Start date
  • Tags Tags
    Lagrangian
AI Thread 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.
 
Thread 'Gauss' law seems to imply instantaneous electric field propagation'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Thread 'A scenario of non-uniform circular motion'
(All the needed diagrams are posted below) My friend came up with the following scenario. Imagine a fixed point and a perfectly rigid rod of a certain length extending radially outwards from this fixed point(it is attached to the fixed point). To the free end of the fixed rod, an object is present and it is capable of changing it's speed(by thruster say or any convenient method. And ignore any resistance). It starts with a certain speed but say it's speed continuously increases as it goes...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...
Back
Top