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:(adsbygoogle = window.adsbygoogle || []).push({});

Question:A simple pendulum of massmand lengthlhangs from a trolley of massMrunning on smooth horizontal rails. The pendulum swings in a plane parallel to the rails.

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

[tex]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[/tex]

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

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

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

I don't understand why the first term is [tex]1/2M\dot{x}^{2}[/tex]

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

Would appreciate if someone could help me out on this, or if there is an easier way to go about the answer! Many thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Lagrangian Mechanics: Pendulum & Trolley

**Physics Forums | Science Articles, Homework Help, Discussion**