Constrained Lagrangian equetion (barbell)

  • Thread starter Thread starter Jengalex
  • Start date Start date
  • Tags Tags
    Lagrangian
AI Thread Summary
The discussion centers on the dynamics of a barbell-shaped object using Lagrangian mechanics. The original Lagrangian included kinetic and potential energy terms, with a constraint defined by the distance between two points. The user derived equations of motion but encountered an inconsistency, suspecting an error in their approach. A response suggested that the degrees of freedom should be three instead of four due to the constraint, recommending a reformulation of the Lagrangian using three independent generalized coordinates. The user confirmed that this new approach resolved their issue.
Jengalex
Messages
2
Reaction score
0
Hi!

I tried to compute an ideal barbell-shaped object's dynamics, but my results were wrong.
My Langrangian is:

## L = \frac{m}{2} ( \dot{x_1}^2 + \dot{x_2}^2 + \dot{y_1}^2 + \dot{y_2}^2 ) - U( x_1 , y_1 ) - U ( x_2 , y_2 ) ##

And the constraint is:

## f = ( x_1 - x_2 )^2 + ( y_1 - y_2 )^2 - L^2 = 0 ##

I dervated L + λf by ## x_1, x_2, y_1, y_2 ## and λ:

## m \ddot x = - \frac{\partial U}{\partial x_1 } + \lambda ( x_1 - x_2 ) ## (1)
Four equtions similar to this and the constraint.

Then I expressed ## \ddot x_2 , \ddot y_1 , \ddot y_2 ## with ## \ddot x_1 , x_1 , x_2 , y_1 , y_2 ## and U's partial derivates' local values:

## m \ddot x_2 + \frac{\partial U}{\partial x_2} = - m \ddot x_1 - \frac{\partial U}{\partial x_1} ##
## m \ddot y_2 + \frac{\partial U}{\partial y_2} = - m \ddot y_1 - \frac{\partial U}{\partial y_1} ##
## ( m \ddot y_1 + \frac{\partial U}{\partial y_1} )(x_1 - x_2) = (- m \ddot x_1 - \frac{\partial U}{\partial x_1})(y_1 - y_2) ## (2)

After expressing ## (x_1 - x_2) , (y_1 - y_2) ## and ## \lambda ## from equation (1) and (2), substituted it into the constraint equation I got an equation like this:

## (m \ddot x_1 + \frac{\partial U}{\partial x_1} ) * <something> = 0 ##

I think it's wrong.
Can you confirm or point on my mistake?
Thanks :)
 
Last edited:
Physics news on Phys.org
Jengalex said:
Hi!

I tried to compute an ideal barbell-shaped object's dynamics, but my results were wrong.
My Langrangian is:

## L = \frac{m}{2} ( \dot{x_1}^2 + \dot{x_2}^2 + \dot{y_1}^2 + \dot{y_2}^2 ) - U( x_1 , y_1 ) - U ( x_2 , y_2 ) ##

And the constraint is:

## f = ( x_1 - x_2 )^2 + ( y_1 - y_2 )^2 - L^2 = 0 ##I dervated L + λf by ## x_1, x_2, y_1, y_2 ## and λ:

## m \ddot x = - \frac{\partial U}{\partial x_1 } + \lambda ( x_1 - x_2 ) ## (1)
Four equtions similar to this and the constraint.

Then I expressed ## \ddot x_2 , \ddot y_1 , \ddot y_2 ## with ## \ddot x_1 , x_1 , x_2 , y_1 , y_2 ## and U's partial derivates' local values:

## m \ddot x_2 + \frac{\partial U}{\partial x_2} = - m \ddot x_1 - \frac{\partial U}{\partial x_1} ##
## m \ddot y_2 + \frac{\partial U}{\partial y_2} = - m \ddot y_1 - \frac{\partial U}{\partial y_1} ##
## ( m \ddot y_1 + \frac{\partial U}{\partial y_1} )(x_1 - x_2) = (- m \ddot x_1 - \frac{\partial U}{\partial x_1})(y_1 - y_2) ## (2)

After expressing ## (x_1 - x_2) , (y_1 - y_2) ## and ## \lambda ## from equation (1) and (2), substituted it into the constraint equation I got an equation like this:

## (m \ddot x_1 + \frac{\partial U}{\partial x_1} ) * <something> = 0 ##

I think it's wrong.
Can you confirm or point on my mistake?
Thanks :)
I don't know what a "barbell-shaped dynamics" is, but if in your problem in the plane with two points there is a constraint, the degrees of freedom are 3, not 4, so I would have written the Lagrangian as function of 3 independent generalized coordinates, for example x1, y1 and the angle between the line connecting the two points (P1 = (x1,y1); P2 = (x2,y2)) and the x axis.
 
lightarrow said:
I don't know what a "barbell-shaped dynamics" is, but if in your problem in the plane with two points there is a constraint, the degrees of freedom are 3, not 4, so I would have written the Lagrangian as function of 3 independent generalized coordinates, for example x1, y1 and the angle between the line connecting the two points (P1 = (x1,y1); P2 = (x2,y2)) and the x axis.

Yes I've tried it now, it looks fine. Thanks!
 
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