Mechanics 3: Lagrange's Equations Solutions
Mechanics 3: Lagrange's Equations Solutions
1
Solutions to selected questions from Assignment 2
Question 2.
The system has two degrees of freedom and the generalized
coordinates are and z
Kinematics: Set up a Cartesian coordinate system with unit
vectors
i and
Step 2: Since gravity is neglected in this problem, the potential energy is only due to the torsional
and linear springs in the system. Hence, ( )
2
2
0
1 1
2 2
t
V k z z k = +
Step 3:
( ) ( )
( )
2
2 2 2 2 2
0
2
0
2
1 1 1 1
2 2 2 2
A t
O t
L T V
L m z z J k z z k
L L
m z m z k z z
z z
L L
m z J k
=
= + +
= =
= + =
Step 4: 0 = Step 5:
2
1
2
c z =
Step 6: Apply Lagranges equations to obtain the two governing equations.
2
0
( ) 0 m z m z c z k z z + + =
2
2 0
O t
m z z m z J k + + + =
MECH 315: Mechanics 3 Winter 2012
2
Question 3. The single degree-of-freedom system shown below consists of a uniform rigid link
of total mass m and length l. The two springs are undeformed when =0, which corresponds to
the horizontal position of the link.
g
MECH 315: Mechanics 3 Winter 2012
3
Kinematics: To obtain the kinematic relationships, we draw sketches of the system in two
positions. Fig. 4(a) shows the link when 0 = and the two springs are undeformed. Fig. 4(b)
shows the system when the link has rotated by an angle , the spring
1
k is extended by
1
x , and
the spring
2
k is compressed by
1
y .
From the figures, we note that:
1
(1 cos ) x L = and
1
sin y L =
Further, the location of the center of gravity of the link can be expressed as:
1
cos i + sin j
2 2
cos i sin j
2 2
G
G
L L
r x
L L
r L
| | | |
= +
| |
\ . \ .
| | | |
=
| |
\ . \ .
Here,
i and
MECH 315: Mechanics 3 Winter 2012
4
Question 4.
The first task is to describe the kinematics of the system. We can express the displacement and
rotation of different locations on the rigid bar in terms of the generalized coordinates as follows:
Angular motion of the rod:
1 3
5
x x
l
=
Displacement of the center of mass, G:
1 3
2
G
x x
x
+
=
Displacement of the point of attachment, A:
1 1 3
2
( )
5
A
x x x x =
Next, we can obtain the equations of motion by implementing the six steps required for
Lagranges equations.
Step 1.
2 2 2
2
1 1 1
(2 ) (5 )
2 2 2
G G
T J m x m x = + +
Using
2
25
6
G
J ml = , and substituting for and
G
x , we get:
2 2
2 2 1 3 1 3
2
1 25 1 1
(2 ) (5 )
2 6 5 2 2 2
x x x x
T ml m m x
l
+ | | | | | |
= + +
| | |
\ .\ . \ .
Step 2:
2 2 2
1 3 2
1 1 1
( )
2 2 2
A
V k x k x k x x = + +
Step 3: L T V = . Hence, we have the following partial derivatives:
( )
( )
( )
1 2 3
1
1 2 3
2
1 2 3
3
34 15 6
25
3 5 2
5
6 10 29
25
L k
x x x
x
L k
x x x
x
L k
x x x
x
= +
= +
= +
( )
( )
1 3
1
2
2
1 3
3
2
3
5
2
3
L m
x x
x
L
mx
x
L m
x x
x
= +
= +
MECH 315: Mechanics 3 Winter 2012
5
Step 4:
1 1 2 2 3 3
F x F x F x = + + Step 5:
2
2
1
( )
2
A
c x x =
Step 6: Using Lagranges equations, the equations of motion of the system are:
1 3 1 2 3 1 2 3 1
2 1 9 3 6 34 3 6
3 3 25 5 25 25 5 25
mx mx cx cx cx kx kx kx F + + + + + =
2 1 2 3 1 2 3 2
3 2 3 2
5
5 5 5 5
mx cx cx cx kx kx kx F + + =
1 3 1 2 3 1 2 3 3
1 2 6 2 4 6 2 29
3 3 25 5 25 25 5 25
mx mx cx cx cx kx kx kx F + + + + + =
Question 5. The equations of motion of the system are given by:
2
2
( ) sin cos ( ) 0
sin sin 0
t
M m x ml cx kx g m M
ml ml x c mgl
(
+ + + + + + + =
+ + + =