Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Analytical Dynamics Homework 7 - Solution
Use Lagrangeβs Equations to determine the equations of motion for the following systems.
Problem 1: The cart with mass 4m rolls without friction on the ground and is attached to the wall
with a spring of stiffness 2k. The cart forms a wedge with interior angle ΞΈ. On top of the cart is a
smaller mass which is attached with a spring of stiffness k. Determine the equations of motion for
the system.
Solution: This is a 2DOF problem, and we choose as generalized coordinates the horizontal
displacement of the cart, x, and the movement of the block along the top of the cart, s. The
movements of the cart and block are given by
π₯
π«π = { }
0
π₯ + π cos π
π«π = {
}
βπ sin π
The velocities of each mass are
π₯Μ
π«Μπ = { }
0
π₯Μ + π Μ cos π
π«Μπ = {
}
βπ sin π
The kinetic energy of the cart is
ππ =
1
(4π)π«Μπ β
π«Μπ = 2ππ₯Μ 2
2
And the kinetic energy of the block is
ππ =
1
1
ππ«Μπ β
π«Μπ = π(π₯Μ 2 + 2π₯Μ π Μ cos π + π Μ 2 )
2
2
Thus, the total kinetic energy is
1
π=
1
π(5π₯Μ 2 + 2π₯Μ π Μ cos π + π Μ 2 )
2
The potential energy is provided by the springs and gravity:
1
1
π = (2π)π₯ 2 + ππ 2 β πππ sin π
2
2
Now take the appropriate derivatives
ππ
= π(5π₯Μ + π Μ cos π)
ππ₯Μ
ππ
= π(π Μ + π₯Μ cos π)
ππ Μ
π ππ
( ) = π(5π₯Μ + π Μ cos π)
ππ‘ ππ₯Μ
π ππ
( ) = π(π Μ + π₯Μ cos π)
ππ‘ ππ Μ
ππ
=0
ππ₯
ππ
=0
ππ
ππ
= 2ππ₯
ππ₯
ππ
= ππ β ππ sin π
ππ
Thus, the equations of motion for the system are
π(5π₯Μ + π Μ cos π) + 2ππ₯ = 0
π(π Μ + π₯Μ cos π) + ππ = ππ sin π
Or, in matrix form
[
5
cos π
2ππ₯β
cos π π₯Μ
π
]{ } = {
}
ππ β + π sin π
π Μ
1
π
2
Problem 2: Each link in the double pendulum has mass m and length l. Determine the equations of
motion for the pendulum if an applied horizontal force F(t) acts at point C.
Solution: The moment of inertia of each thin rod is
πΌ=
ππ 2
12
This is also a 2DOF problem, and we choose ΞΈ1 and ΞΈ2 as generalized coordinates. First, find a
vector to the point of application of the force
π«πΆ = π {
cos π1 + cos π2
}
sin π1 + sin π2
The virtual displacement at point C in terms of the generalized coordinates is
πΏππΆ = π {
β sin π1
β sin π2
} πΏπ1 + π {
} πΏπ2
cos π1
cos π2
The force at point C is entirely horizontal, so that
πΉ
π
={ }
0
The virtual work performed by this force is then
πΏπ = βπΉπ sin π1 πΏπ1 β πΉπ sin π2 πΏπ2
Thus, the generalized forces are
π1 = βπΉπ sin π1
π2 = βπΉπ sin π2
3
Remember that the angles shown in the figure are negative, so the generalized forces will create positive
moments for each generalized coordinate. The locations of the centers of mass are
π cos π1
π«1 = {
}
2 sin π1
π«2 = π {
π cos π2
cos π1
}+ {
}
sin π1
2 sin π2
The velocities of the centers of mass are
π«Μ1 =
ππΜ1 β sin π1
{
}
2 cos π1
π«Μ2 = ππΜ1 {
ππΜ2 β sin π2
β sin π1
}+
{
}
cos π1
2 cos π2
The kinetic energy of the top pendulum is
1
1 2 ππ 2 2 ππ 2 2 ππ 2 2
π1 = ππ«Μ1 β
π«Μ1 + πΌπΜ1 =
πΜ +
πΜ =
πΜ
2
2
8 1
24 1
6 1
The kinetic energy of the bottom pendulum is
π2 =
1
1
ππ«Μ2 β
π«Μ2 + πΌπΜ22
2
2
1
π2
ππ 2 2
π2 = π (π 2 πΜ12 + π 2 πΜ1 πΜ2 (sin π1 sin π2 + cos π1 cos π2 ) + πΜ22 ) +
πΜ
2
4
24 2
π2 =
ππ 2 2 ππ 2
ππ 2 2
πΜ1 +
πΜ1 πΜ2 cos(π2 β π1 ) +
πΜ
2
2
6 2
Thus, the total kinetic energy is
ππ 2 4 2 1 2
π=
( πΜ + πΜ + πΜ1 πΜ2 cos(π2 β π1 ))
2 3 1 3 2
The potential energy is
π=
πππ
πππ
sin π1 + πππ sin π1 +
sin π2
2
2
π=
3πππ
πππ
sin π1 +
sin π2
2
2
Now take the appropriate derivatives
ππ
ππ 2 8
=
( πΜ + πΜ2 cos(π2 β π1 ))
2 3 1
ππΜ1
ππ
ππ 2 2
=
( πΜ + πΜ1 cos(π2 β π1 ))
2 3 2
ππΜ2
4
π ππ
ππ 2 8
( πΜ + πΜ2 cos(π2 β π1 ) β πΜ2 (πΜ2 β πΜ1 ) sin(π2 β π1 ))
(
)=
ππ‘ ππΜ1
2 3 1
π ππ
ππ 2 2
( πΜ + πΜ1 cos(π2 β π1 ) β πΜ1 (πΜ2 β πΜ1 ) sin(π2 β π1 ))
(
)=
ππ‘ ππΜ2
2 3 2
ππ
ππ 2
=
πΜ πΜ sin(π2 β π1 )
ππ1
2 1 2
ππ
ππ 2
=β
πΜ πΜ sin(π2 β π1 )
ππ2
2 1 2
ππ
3πππ
=
cos π1
ππ1
2
ππ
πππ
=
cos π2
ππ2
2
Finally, the equations of motion are:
ππ 2 8
3
[ πΜ 1 + πΜ 2 cos(π2 β π1 ) β πΜ22 sin(π2 β π1 )] + πππ cos π1 = βπΉπ sin π1
2 3
2
ππ 2 2 Μ
1
2
[ π2 + πΜ 1 cos(π2 β π1 ) + πΜ 1 sin(π2 β π1 )] + πππ cos π2 = βπΉπ sin π2
2 3
2
Or, in slightly simplified form
8 Μ
3π
2πΉ
π + πΜ 2 cos(π2 β π1 ) β πΜ22 sin(π2 β π1 ) +
cos π1 = β sin π1
3 1
π
ππ
2 Μ
π
2πΉ
2
π2 + πΜ 1 cos(π2 β π1 ) + πΜ 1 sin(π2 β π1 ) + cos π2 = β sin π2
3
π
ππ
5
Problem 3: The cylinder of radius r and mass m rolls without slipping in the cylindrical cavity in the
cart, which has radius R. The cart, which has mass M, is attached to the wall with a spring of
stiffness k. An applied force, F(t) acts on the cart in the horizontal direction. Neglecting friction,
what are the equations of motion for the system?
Solution: This is also a 2DOF problem, and we choose x and ΞΈ as generalized coordinates. The
cylinder has moment of inertia
ππ 2
πΌ=
2
Since the cylinder rolls without slipping, the velocity of its center point is the same as the tangential
velocity of the rolling cylinder. Let us define
π =π
βπ
Then the velocity of the center of the cylinder is
π£πΆ = ππΜ
If we define the angular velocity of the cylinder to be πΜ , then the tangential velocity of the cylinder
is
π£πΆ = ππΜ
Thus,
πΜ =
π
πΜ
π
The displacement and velocity of the cart is
π₯
π«π = { }
0
π₯Μ
π«Μπ = { }
0
6
Assuming that the βneutralβ position of the cylinder is at the bottom of the cart, when ΞΈ = 0, the
displacement and velocity of the cylinder is
π₯ β π sin π
π«πΆ = {
}
π(1 β cos π)
π₯Μ β ππΜ cos π
π«ΜπΆ = {
}
ππΜ sin π
The kinetic energy of the cart is
1
ππ = ππ₯Μ 2
2
and the kinetic energy of the cylinder is
ππΆ =
1
1
ππ«ΜπΆ β
π«ΜπΆ + πΌπΜ 2
2
2
1
1 ππ 2 π2 2
ππΆ = π(π₯Μ 2 β 2ππ₯Μ πΜ cos π + π2 πΜ 2 ) + (
) πΜ
2
2 2 π2
ππΆ =
1
3
π(π₯Μ 2 β 2ππ₯Μ πΜ cos π + π2 πΜ 2 )
2
2
The total kinetic energy is
π=
1
3
(π + π)π₯Μ 2 β πππ₯Μ πΜ cos π + ππ2 πΜ 2
2
4
The potential energy is
1
π = ππ₯ 2 + πππ(1 β cos π)
2
Now take the appropriate derivatives
ππ
= (π + π)π₯Μ β πππΜ cos π
ππ₯Μ
ππ
3
= βπππ₯Μ cos π + ππ2 πΜ
2
ππΜ
π ππ
( ) = (π + π)π₯Μ β πππΜ cos π + πππΜ 2 sin π
ππ‘ ππ₯Μ
π ππ
3
( ) = βπππ₯Μ cos π + πππΜ π₯Μ sin π + ππ2 πΜ
Μ
ππ‘ ππ
2
7
ππ
=0
ππ₯
ππ
= πππ₯Μ πΜ sin π
ππ
ππ
= ππ₯
ππ₯
ππ
= πππ sin π
ππ
Collect all terms to form the equations of motion
2
(π + π)π₯Μ β πππΜ cos π + πππΜ sin π + ππ₯ = πΉ
3
ππ2 πΜ β πππ₯Μ cos π + πππ sin π = 0
2
8