Professional Documents
Culture Documents
2.003SC Recitation 8 Notes: Cart and Pendulum (Lagrange)
2.003SC Recitation 8 Notes: Cart and Pendulum (Lagrange)
003SC
Recitation 8 Notes: Cart and Pendulum (Lagrange)
Kinematics
The linear velocity of the pendulum’s center of mass, vG , is given by
2 lθ̇ lθ̇
vG = (ẋ + cosθ)2 + ( sinθ)2
2 2
1
2 lẋθ̇ lθ̇ lθ̇
vG = ẋ2 + 2 cosθ + ( )2 cos2 θ + ( )2 sin2 θ
2 2 2
2 ˙ l2 θ̇2
vG = ẋ2 + ẋθlcosθ +
4
Kinetic Energy
1 1 1
T = m1 ẋ2 + m2 vG 2 + IG θ̇2
2 2 2
1 2 1 2 ˙ l2 θ̇2 1 ml2
2
T = m1 x˙ + m2 (x˙ + x˙ θlcosθ + )+ ( )θ̇
2 2 4 2 12
Potential Energy
1 l
V = kx2 + m2 g (1 − cosθ)
2 2
Lagrangian
L=T −V
1 1 ˙ l2 θ̇2 1 ml2 2 1 2 l
L = m1 ẋ2 + m2 (ẋ2 + ẋθlcosθ + )+ ( )θ̇ − kx − m2 g (1 − cosθ)
2 2 4 2 12 2 2
d ∂L ∂L
( )− = Qx
dt ∂ẋ ∂x
yields the first equation of motion.
m2 l ¨ m2 l 2
(m1 + m2 )ẍ + θcosθ − θ̇ sinθ + kx = 0 (1)
2 2
d ∂L ∂L
( )− = Qθ
dt ∂θ̇ ∂θ
yields the second equation of motion.
m2 l2 m2 l2 ¨ m2 l l
( + )θ + xcosθ
¨ + m2 g sinθ = 0 (2)
4 12 2 2
2
Cart and Pendulum - Problem Statement
Assume that the cart and pendulum system now contain a damper/dashpot of constant b between the cart
and ground, as well as an external force, F (t) , applied to the cart.
Derive the equations of motion for this system by Lagrange. Specifically, show the generalized forces.
Generalized Forces
N
N n
N
nc
δW = finc · δRi = Qj δξj
i j=1
Qx = −bẋ + F (t) Qθ = 0
m2 l ¨ m2 l 2
(m1 + m2 )ẍ + θcosθ − θ̇ sinθ + kx = −bẋ + F (t)
2 2
m2 l ¨ m2 l 2
(m1 + m2 )ẍ + θcosθ − θ̇ sinθ + bẋ + kx = F (t) (3)
2 2
and
m2 l2 m2 l2 ¨ m2 l l
( + )θ + xcosθ
¨ + m2 g sinθ = 0 (4)
4 12 2 2
3
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.