Physlib

Physlib.ClassicalMechanics.Pendulum.SlidingPendulum

Sliding Pendulum

Description: A simple pendulum of mass m2m_2 attached to a mass m1m_1 as its point of support via a string of length ll. The mass m1m_1 is free to move horizontally. The Lagrangian of the system is to be found.

Solution: First, the constraints are identified: y1=0(x2x1)2+(y2y1)2=l2 \begin{aligned} y_1 &= 0\\ (x_2 - x_1)^2 + (y_2 - y_1)^2 &= l^2 \end{aligned} And the second constraint gives: x2x1=lsinϕy2y1=y2=lcosϕ \begin{aligned} x_2 - x_1 &= l\sin\phi\\ y_2 - y_1 &= y_2 = -\,l\cos\phi \end{aligned} with the generalized coordinate ϕ\phi being the angle the string makes with the vertical.

The Lagrangian is obtained as: L=T1+T2V1V2\mathcal{L} = T_1 + T_2 - V_1 - V_2 where

T1=12m1x˙12,V1=0,T2=12m2(x˙22+y˙22)=12m2(l2ϕ˙2+x˙12+2lϕ˙x˙1cosϕ),V2=m2gy2=m2glcosϕ \begin{aligned} T_1 &= \tfrac{1}{2} m_1 \dot{x}_1^2, & V_1 &= 0,\\[4pt] T_2 &= \tfrac{1}{2} m_2(\dot{x}_2^2 + \dot{y}_2^2) = \tfrac{1}{2} m_2\bigl(l^2\dot{\phi}^2 + \dot{x}_1^2 + 2l\dot{\phi}\dot{x}_1\cos\phi\bigr), & V_2 &= m_2 g y_2 = -m_2 g l \cos\phi \end{aligned}

Thus the Lagrangian is L=12(m1+m2)x˙12+12m2(l2ϕ˙2+2lϕ˙x˙1cosϕ)+m2glcosϕ \mathcal{L} = \tfrac{1}{2}(m_1 + m_2)\dot{x}_1^2 + \tfrac{1}{2} m_2\bigl(l^2\dot{\phi}^2+ 2l\dot{\phi}\dot{x}_1\cos\phi\bigr) + m_2 g l \cos\phi

1 declaration

definition

Configuration space of the sliding pendulum system

The configuration space of a sliding pendulum system, which consists of a mass m1m_1 moving along a horizontal axis and a mass m2m_2 attached to m1m_1 by a string of length ll. The configuration is characterized by the horizontal position x1x_1 of the mass m1m_1 and the angle ϕ\phi of the pendulum relative to the vertical.