Lagrangian Mechanics: Pendulum & Trolley

AI Thread Summary
The discussion centers on deriving the Lagrangian for a simple pendulum attached to a trolley, focusing on the kinetic and potential energy terms. The first term of the Lagrangian represents the kinetic energy of the trolley, which is solely dependent on its velocity, \dot{x}, rather than the pendulum's motion. The potential energy term is based on the height of the mass relative to a chosen reference point, which can affect the Lagrangian's formulation. The participants clarify that while the pendulum's motion influences the system, the kinetic energy of the trolley is independent of the pendulum's velocity in the chosen coordinate system. Understanding the reference point for potential energy is crucial, as it can vary the Lagrangian's expression.
ian2012
Messages
77
Reaction score
0
Hi, Hope someone can help me clear up this question. I know the answer but I am unsure of the reasoning behind it, so here it is:

Question:A simple pendulum of mass m and length l hangs from a trolley of mass M running on smooth horizontal rails. The pendulum swings in a plane parallel to the rails.

(a)Using the position x of the trolley and the angle of inclination θ of the pendulum as generalised coordinates, show that the Lagrangian may be written as

L=\frac{1}{2}(M+m)\dot{x}^{2}+ml\dot{x}\dot{\theta}cos\theta+\frac{1}{2}ml^{2}\dot{\theta}^{2}+mglcos\theta

Answer:Use X=lsin\theta and Y=lcos\theta as the Cartesian coordinates of the pendulum relative to the trolley.

L=\frac{1}{2}M\dot{x}^{2}+\frac{1}{2}m[(\dot{X}+\dot{x})^{2}+\dot{Y}^{2}]+mgY

And the answer falls out when you follow this through...

I don't understand why the first term is 1/2M\dot{x}^{2}
and not 1/2M(\dot{X}+\dot{x})^{2}. And I also don't understand why the last potential energy term is only mgY and not mg(l-Y)?

Would appreciate if someone could help me out on this, or if there is an easier way to go about the answer! Many thanks!
 
Last edited:
Physics news on Phys.org
ian2012 said:
I don't understand why the first term is 1/2M\dot{x}^{2}
and not 1/2M(\dot{X}+\dot{x})^{2}.
That first term is just the KE of the trolley.
And I also don't understand why the last potential energy term is only mgY and not mg(l-Y)?
Measured from a reference point at the top of the pendulum, V = -mgY.
 
Yes I am aware that it is the KE of the trolley. Why isn't the trolley displaced by the pendulum? Since the pendulum is displaced by the trolley? Shouldn't there be an extra displacement term in the KE of the trolley.
 
ian2012 said:
Then why isn't the trolley displaced by the pendulum? Since the pendulum is displaced by the trolley?
Any displacement of the trolley will be reflected in a change in its position x. The KE of the trolley depends only on the speed of the trolley, which is given by \dot{x}.
 
The second term, the KE of the pendulum depends on the velocity of the trolley, whereas the first term, the KE of the trolley, has no dependence on the velocity of the pendulum. How is this possible since a movement of the pendulum will also affect the trolley? I don't understand why the logic breaks down here.
 
ian2012 said:
The second term, the KE of the pendulum depends on the velocity of the trolley, whereas the first term, the KE of the trolley, has no dependence on the velocity of the pendulum. How is this possible since a movement of the pendulum will also affect the trolley? I don't understand why the logic breaks down here.
No, the KE of the pendulum depends only on the velocity of the pendulum. Since your coordinates are x and θ, the horizontal position of the pendulum is given by x + Lcosθ and is thus indirectly dependent on the position of the trolley. The speed of the pendulum only indirectly depends on the speed of the trolley, since Lcosθ is with respect to the trolley. Since the position of the trolley is one of the generalized coordinates, the KE of the trolley only depends on \dot{x}.
 
Two things:

1. Remember, the Lagrangian is for a system of particles, not just one so that
L=\sum (T-U)
i.e. you have to include BOTH the trolley and the pendulum into the calculation.

2. When dealing with a system of particles, I don't believe using relative coordinates suffices.
 
ian2012 said:
The second term, the KE of the pendulum depends on the velocity of the trolley, whereas the first term, the KE of the trolley, has no dependence on the velocity of the pendulum. How is this possible since a movement of the pendulum will also affect the trolley? I don't understand why the logic breaks down here.
Just to be clear: I'm not saying that the motion of the pendulum is independent of the motion of the trolley. Not at all. All I'm saying is that in terms of your chosen coordinates, the KE of the trolley is fully specified by 1/2M\dot{x}^{2}.

The coupling of the motion comes in when you specify the KE of the pendulum (which includes \dot{x}) and in applying the Euler-Lagrange equations.
 
I understand your reasoning and it makes sense now, thanks.

For the PE term of the answer, how would one know to use the reference point as the top of the pendulum instead of the position of the mass m?
 
  • #10
ian2012 said:
For the PE term of the answer, how would one know to use the reference point as the top of the pendulum instead of the position of the mass m?
Any point in the laboratory frame will do as a reference for specifying gravitational PE, since only changes in PE are physically significant. Here we measure the position of the mass m with respect to the top of the top of the pendulum in order to specify its PE, but we could just as well measure its position from the lowest point of the pendulum.

But you can't take the position of the mass itself as a reference point--for one thing, the mass is accelerating; for another, its the PE of that mass that we are trying to specify.
 
  • #11
Yea, sorry I meant the lowest point of the pendulum as the reference point. Yeah sure that makes sense. Then the Lagrangian will be different depending on the reference point taken. One will have to spot from the question to take the reference point from the top of the pendulum.
 

Similar threads

Back
Top