Professional Documents
Culture Documents
Thitima Jintanawan
Preface
I write this book, shortly because I love to do it. With this book, I would like to
share my own experience on Dynamics from education and researches for over
ten years with students and the people in the same field. The book is organized
and written from my viewpoints of dynamics, and it is appropriate for the one
who study dynamics in the intermediate level. Why written in English? It is about
the right time and right situation. When Chulalongkorn University started to
promote the faculties to carry out the class in English in the academic year of
2001, I joined the program and have an opportunity to teach the Advanced
Dynamics class in English. I started to write the first draft in English for the
class's lecture notes and continuingly improve it since then. It is the right situation
when we have the ME graduate foreign student attending the class in the Year
2005. Language is not the obstacle for communication. Instead good writing
communication needs a well-organized manuscript that indeed my book still has a
room for improvement.
There are two premium dynamists who are my role model. The first person is my
supervisor at the University of Melbourne, Dr. Januzt Krodkiewski. He is an icon
of the discipline and logic. The second one is my PhD advisor, Prof. Steve Shen.
He is an icon of making things simple (no matter how complicate they are). Both
of them similarly have an excellent background in Mathematics. I wish I could be
a half of the people that I admire. Therefore, it is to them that I dedicate this book.
Thitima Jintanawan
2
Copyright
c 2005
Thitima Jintanawan
Contents
1 Kinematics 5
1.1 Evolution of Kinematics . . . . . . . . . . . . . . . . . . . . . 5
1.2 Position Vector, Velocity, and Acceleration . . . . . . . . . . . 5
1.3 Angular Velocity . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.4 Rate of Change of a Constant-Length Vector . . . . . . . . . 8
1.5 Moving Coordinate Systems . . . . . . . . . . . . . . . . . . . 10
1.6 Coordinate Transformation . . . . . . . . . . . . . . . . . . . 17
1.6.1 First set of Euler angles–precession-nutation-spin (φθψ) 20
1.6.2 Second set of Euler angles–yaw-pitch-row (ψθφ) . . . . 20
1.7 Angular velocity related to Euler angles . . . . . . . . . . . . 23
1.8 A Finite Motion . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.8.1 Transformation matrices for a finite rotation . . . . . 26
1.8.2 Transformation matrices for a general motion . . . . . 30
3
4 CONTENTS
6 Lagrange Mechanics 81
6.1 Kinetic Energy . . . . . . . . . . . . . . . . . . . . . . . . . . 81
6.2 Potential Energy . . . . . . . . . . . . . . . . . . . . . . . . . 82
6.3 Remarks on Properties of Generalized Coordinates for the
System with Holonomic constraints . . . . . . . . . . . . . . . 84
6.4 Derivation of Lagrange’s equations . . . . . . . . . . . . . . . 85
6.5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
6.6 Lagrange Multiplier . . . . . . . . . . . . . . . . . . . . . . . 94
7 Stability Analysis 99
7.1 Equilibrium, Quasi-Equilibrium, and Steady States . . . . . . 99
7.2 Stability of Equilibrium or Steady State . . . . . . . . . . . . 99
Chapter 1
Kinematics
1950s and later: Express velocity v and acceleration a using vector ap-
proach
Recent years: Express the rotation with a matrix and utilize the matrix
operation for calculating the cross product. The matrix approach can
be simply implement in a computer simulation program.
5
6 CHAPTER 1. KINEMATICS
rz
particle
r
moving path
k
j ry
i Y
O
rx
Fig. 1.1 in which all coordinates are orthogonal to each other and its axes
do not change in direction. If we choose XY Z in Fig. 1.1 as an inertial or
fixed reference frame1 , the absolute motion of the particle in Fig. 1.1 can be
described by a position vector r as follows
r = rx i + ry j + rz k (1.1)
where i, j, and k are the unit vectors of XY Z and rx , ry , and rz are scalar
components of r in X, Y , and Z coordinates. The position vector r can be
alternatively presented in a matrix form as a 3 × 1 column matrix given by
r = [ rx ry rz ]T (1.2)
Note that the position vector r must be measured from the origin O of the
chosen inertial frame.
Figure 1.2 shows another set of coordinate system so called the cylindri-
cal coordinates ρθz, with their unit vectors eρ eθ ez . In Fig. 1.2, the position
vector r expressed in terms of eρ eθ ez is
r = ρeρ + zez (1.3)
The absolute velocity v is defined as a time derivative of the position vector
r given by
dr
v = (1.4)
dt
= ṙx i + ṙy j + ṙz k
= ρ̇eρ + ρθ̇eθ + żez
1
An inertial or fixed reference frame is the coordinate system whose origin O is fixed
in space
1.3. ANGULAR VELOCITY 7
z
Z
ez
eθ
θ
ρ
eρ
ρ
r
Y
θ
dv
a = (1.5)
dt
= r̈x i + r̈y j + r̈z k
= ρ̈ − ρθ̇ 2 eρ + ρθ̈ + 2ρ̇θ̇ eθ + z̈ez
dθ
ω = n (1.6)
dt
= ω 1 e1 + ω 2 e2 + ω 3 e3
e3
v e2
r
A e1
θ(t)
v = ω×r (1.8)
≡ ω̃r
Equation (1.9) indicates that the cross product can be represented by the
matrix multiplication or
v1 0 −ω3 ω2 r1
v = v2 = ω3 0 −ω1 r2 (1.9)
v3 −ω2 ω1 0 r3
X ez
ex G
C
ey
Solution
From Fig. 1.4, the position vector of point C relative to the C.G. is a
fixed length vector given in terms of the body coordinate system as
r(rel)
c = bex + aey = [ b a 0 ]T (1.11)
Hence the relative velocity of C is
vc(rel) = ω × r(rel)
c ≡ ω̃r(rel)
c (1.12)
where ω = φ̇ey + ψ̇ez is the rotation rate or the angular velocity of the
reference coordinates moving with the body. ω can be written in a matrix
form as
0 −ψ̇ φ̇
ω̃ = ψ̇ 0 0
−φ̇ 0 0
Therefore
0 −ψ̇ φ̇ b
vc(rel) = ψ̇ 0 0 = [ −aψ̇ bψ̇ −bφ̇]T
a
−φ̇ 0 0 0
As another example, the unit vectors ijk for any rotating system of
coordinates xyz is also the fixed length vector. Hence the rate of change of
these ijk vectors can be determined from the same theorem as i̇ = ω × i,
j̇ = ω × j, and k̇ = ω × k, where ω is the angular velocity of such rotating
coordinate system xyz.
10 CHAPTER 1. KINEMATICS
o
y
path of origin o
x
z Z
o Y
X
x
z
Z
path of origin o
x
Y
dr
v = (1.14)
dt
dR dρ
= +
dt dt
= Ṙ + vr + ω × ρ
In (1.14), Ṙ = dR
dt is the velocity of the origin o of the reference frame
xyz
dρ
and ω is its angular velocity. In addition vr , sometimes denoted by dt ,
rel
is a relative velocity of the particle with respect to xyz or the relative ve-
locity observed by the observer moving (both translating and rotating) with
xyz, whereas ddtρ is the relative velocity observed by the observer who only
translates but not rotates with xyz. ω × ρ in (1.14) is hence the difference
between these two relative velocities. If ρ is
ρ = ρ1 e1 + ρ2 e2 + ρ3 e3 (1.15)
12 CHAPTER 1. KINEMATICS
ω
z
e3
Z path of moving
O' e2 y reference frame
e1
x
ρ
R path of particle
r
k
j
i Y
O
Then
dρ
vr ≡ = ρ̇1 e1 + ρ̇2 e2 + ρ̇3 e3 (1.16)
dt rel
dv
a = (1.17)
dt
dρ dω
= R̈ + ar + ω × vr + ω × + ×ρ
dt dt
From (1.14)
dρ
= vr + ω × ρ (1.18)
dt
Plug (1.18) into (1.17) yields
a = R̈ + ar + ω × ω × ρ + ω̇ × ρ + 2ω × vr (1.19)
ω = Ωe3 + θ̇e2
Note that R and ω are the fixed-length vectors with constant magnitudes.
From (1.19), the absolute acceleration of point P is
ap = R̈ + ar + ω × ω × ρ + ω̇ × ρ + 2ω × vr (1.20)
where
e3
er
P
θ
s(t)
+c eθ
P
θe2
e1
Ω
e2
b
er e3
ur
u θ u3
e1 u1 e2
θ uθ
eθ
ω = [ 0 θ̇ Ω ]T
0 −Ω θ̇
ω̃ = Ω 0 0
−θ̇ 0 0
ω̇ = [ −Ωθ̇ 0 0 ]T
0 0 0
˙
ω̃ = 0 0 Ωθ̇
0 −Ωθ̇ 0
ρ = (s(t)+c)er = (s(t)+c) (cosθe3 + sinθe1 ) = (s(t)+c)[ sinθ, 0, cosθ ]T
R̈ = [ −bΩ2 0 0 ]T
Plug these terms into (1.20), we obtain ap in terms of the rotating system
of coordinates [e1 e2 e3 ] as
ap = [ −bΩ2 0 0 ]T + 0
0 −Ω θ̇ 0 −Ω θ̇ sinθ
+(s(t) + c) Ω 0 0 Ω 0 0 0
−θ̇ 0 0 −θ̇ 0 0 cosθ
0 0 0 sinθ
(1.21)
+(s(t) + c) 0 0 Ωθ̇ 0
0 −Ωθ̇ 0
cosθ
0 −Ω θ̇ sinθ
+2α Ω 0 0 0
−θ̇ 0 0 cosθ
16 CHAPTER 1. KINEMATICS
z1
z2
.
α
L
G y2
µ
Ω
β
y1
Now your task is to follow the previous procedure and express ap in terms
of the coordinate system [er eθ e2 ].
Example 1.3 :
Figure 1.11 shows a ventilator mounted on a rotating base. The base has
an oscillatory motion with α = α0 sinωt. The rotor spins with a constant
angular velocity Ω in the direction shown. Its center of gravity G is offset
by µ from the axis of rotation. Determine:
1. components of the absolute angular velocity of the rotor along the
system of coordinates fixed to the rotor.
2. components of the absolute velocity of the center of gravity of the rotor
along the same system of coordinates.
Solution:
Figure 1.12 shows the coordinate systems XY Z, x1 y1 z1 , x2 y2 z2 , and
xyz. From Fig. 1.12 coordinate transformations are:
y2 cosβ sinβ y1
=
z2 −sinβ cosβ z1
x cosαt −sinαt x2
=
z sinαt cosαt z2
1.6. COORDINATE TRANSFORMATION 17
Z, z1 y1
α
z2
Y
α
z
Ωt
X
x1
z1 y2, y
z2
Ωt
x2
y2
β
x
β
x1, x2 y1
ω = α̇ez1 + Ωey2
= α̇(sinβey2 + cosβez2 ) + Ωey2
= (α̇sinβ + Ω)ey2 + α̇cosβez2
= (α̇sinβ + Ω)Ωey + α̇cosβ(−sinΩtex + cosΩtez )
= −α̇cosβsinΩtex + (Ω + α̇sinβ)ey + α̇cosβcosΩtez
rG = Ley2 + µez
= Ley + µez
= [ 0 L µ ]T
Absolute velocity of G is
y
r
iI
X
x
Figure 1.13: A vector r and two sets of coordinate systems XY Z and xyz
r = rX I + rY J + rZ K
= rx i + ry j + rz k (1.22)
rX = r · I = (rx i + ry j + rz k) · I
rY = r · J = (rx i + ry j + rz k) · J
rZ = r · K = (rx i + ry j + rz k) · K (1.23)
Or
Ji
iJ
iY J
Z z’
φ
y’
φ
Y
φ
X
x’
z’
z’’
θ y’’
θ y’
x’ x’’
z’’ z
ψ
y
y’’
ψ
x’’
x
Z z’
ψ
y’
ψ
Y
Z X ψ
x’
ψ z’
z’’
θ
θ
θ y’ y’’
φ θ
Y x’
x’’
X
z’’ z
y
φ φ y’’
x’’ x φ
Similarly, for the second set of Euler angles, the absolute angular velocity
ω of xyz coordinates is given by
φ
x
θ y’
(1.38) and (1.40) relate the Euler angles, the rotation that measured in real
applications, with the components of the angular velocity, ωx , ωy and ωz , in
the reference coordinate system.
Example 1.4 :
A submarine shown in Fig. 1.17 undergoes a yaw rate ψ̇ = AcosΩt and a
pitch rate θ̇ = BsinΩt. If the local x-axis is in the long-body direction,
describe the velocity of the bow of the submarine relative to its center of
mass.
Solution:
From Fig. 1.17, let xyz with their unit vectors ex , ey , and ez be the body-
fixed rotating system of coordinates. The velocity of the bow observed from
the submarine C.G. is then
v =ω×ρ (1.41)
where
ρ = Lex (1.42)
and ω is the angular velocity of the body or the angular velocity of the xyz
coordinates given by
ω = ψ̇k + θ̇ey (1.43)
1.8. A FINITE MOTION 25
φ
A'
(1.46) yields
B
v = −ALcosΩtcos cosΩt ey − LBsinΩtez (1.47)
Ω
Ω , cos Ω cosΩt ≈ 1. In addition if A = B, the
For the small value of B B
r = Tr (1.49)
r = T−1 r (1.50)
Or
T
rT r = r r (1.52)
= (Tr)T Tr
= rT TT Tr
Hence
TT T = I (1.53)
The transformation T for a rotation about Z-, Y -, and X-axes can be de-
termined subsequently as follows.
1.8. A FINITE MOTION 27
X
(x, y, z)
X
θ
θ
L
φ b
θ
L
φ b
mg
O
R .
Cθ a
where e = mgL C
Io and c = Io . (1.62) together with the transformation matrix
for the finite rotation in (1.55) are used in the MatLab program to determine
the new position of the falling box. The detail of this program is presented
in Figure 1.24 and the result is shown in Figure 1.25.
clear all
% MATLAB Animation Program for Falling Box
%===Define the vertices of the box
a=0.1;
b=0.2;
x=[0 a a 0 0];
y=[0 0 b b 0];
%===Define a matrix whose column vectors are the box vertices
r=[x; y];
%===Draw the box in the initial position
figure(1), clf
axis([-0.3 0.3 -0.3 0.3])
line(x, y,'linestyle','--');
grid on
%===Define parameters
m=1;
g=9.81;
C=0.001;
L=0.5*sqrt(a^2+b^2);
I=m*(a^2+b^2)/12;
e=m*g*L/I;
c=C/I;
%===Define initial conditions
theta = 0;
omega = 0;
phi_0 = atan(a/b);
%===steps
dt = 0.001; % time step for simulation
n=10; % # of animation
M=moviein(n); % # define a matrix M for movie in
%========= Finish data input ============================
0.25
0.2
0.15
0.1
0.05
-0.05
-0.1
-0.15
-0.2
-0.25
-0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0.25 0.3
ez
A
’
r
ex
u
k
A
j y
i θ
35
36 CHAPTER 2. LINEAR AND ANGULAR MOMENTUMS
Fi
mi
vi
mN
FN
Z ρi
ri
F1 m
rc
c
m1 Y
o
F3
X
m3
F2
m2
1
rc = ri mi (2.3)
M
From Figure 2.1, the displacement of the i-th particle relative to the C.G. is
ρi = ri − rc (2.4)
In addition, sum of the first moment of each mass about C.G. is given by
ρ i mi = [r − rc ] mi
i
= ri mi − rc mi
(2.5)
= rc M − rc M
= 0
Equation (2.5) indicates that sum of the first moment of each mass about
the system’s C.G. is zero.
2.1. DYNAMICS OF A SYSTEM OF PARTICLES: A REVIEW 37
Ho = Hc + rc × M vc (2.9)
where Fi are external forces applied to the mass mi , and fij is a reaction
force that the j-th particle acts on the the i-th particle. Also note that
fij = −fji . Summation of (2.14) for all particles then yields
mi v̇i = Fi + fij ; i = j (2.15)
i i i j
Since fij = −fji , therefore fij = 0. Hence (2.15) becomes
i j
dP
= M v̇c = Fi (2.16)
dt i
(2.16) is the law of linear momentum for the system of particles, stating that
the rate of change of linear momentum of the system is equal to the sum of
all external forces applied to the system.
Now consider (2.17) term by term. The term on the left is rewritten as
dvi
(ri × mi v̇i ) = ri × mi
dt
i i
d (2.18)
= ri × mi vi
dt i
= Ḣo
The first term on the right of (2.17) is (ri × Fi ) ≡ Mo , and the second
i
term on the right is zero as shown in the following proof.
Let’s consider any two particles m and n. Since fmn = −fnm and rm − rn
is approximately colinear with fmn , then the action-reaction pair of any
arbitrary internal moments are zero, or
d
Ho = Mo
dt
= r × Fi (2.23)
i
= (r + ρi ) × Fi
c
= rc × Fi + ρi × Fi
40 CHAPTER 2. LINEAR AND ANGULAR MOMENTUMS
Z
ω
e3 e2 ρ dm
A
e1
rA r
o Y
d d d
(rc × M vc ) = rc × M vc + rc × (M vc )
dt dt dt (2.24)
= vc × M vc + rc × Fi
= 0 + rc × Fi
(2.29)
where m = dm is the mass of the rigid body and ρc is the position of
1
the body’s C.G. measured with respect to A and given by ρc = m ρdm.
Furthermore, the rotation of a rigid body can be considered as two different
cases: pure rotation and general motion (combined rotation and transla-
tion).
2. General motion
In this case if point A in Figure 2.2 is fixed at the body’s C.G, i.e.
point c. Hence rA = rc and ρc = 0. (2.29) then becomes
Ho = rc × mvc + ρ × (ω × ρ) dm (2.31)
42 CHAPTER 2. LINEAR AND ANGULAR MOMENTUMS
Hence
Ho = rc × mvc + Hc (2.33)
Next we will rewrite (2.35) in terms of its components. Let’s consider (2.35)
term by term. The first term is
(ρ · ρ)ωdm = (ρ · ρ) [δ] ωdm
ρ2 0 0
= 0 ρ2 0 ωdm
0 0 ρ2 (2.36)
ρ2 0 0
= 0 ρ2 0 dm ω
0 0 ρ 2
2.3. MASS MOMENT OF INERTIA 43
ωx x
− (ρ · ω)ρdm = − x y z ωy y dm
ωz z
x
= − (xωx + yωy + zωz ) y dm
z
2
x ωx + xyωy + xzωz
= − xyωx + y 2 ωy + yzωz dm (2.37)
xyωx + yzωy+z 2 ωz
x2 xy xz ωx
= − xy y 2 yz ωy dm
xz yz z 2 ωz
x2 xy xz
= − xy y 2 yz dm(ω)
xz yz z 2
y2 + z2 −xy −xz
H = −xy 2
x +z 2 −yz dm ω
−xz
−yz x2 + y 2
(2.38)
I11 I12 I13
= I21 I22 I23 ω = Iω
I31 I32 I33
I11 = y 2 + z 2 dm
I22 = x2 + z 2 dm (2.39)
I33 = x2 + y 2 dm
44 CHAPTER 2. LINEAR AND ANGULAR MOMENTUMS
and the off-diagonal components so called cross product of inertia are given
by
I12 = I21 = − xydm
I13 = I31 = − xzdm (2.40)
I23 = I32 = − yzdm
Any three orthogonal axes e1 e2 e3 that yields all zero cross product of inertia,
i.e. I12 = I13 = I23 = 0, are called principal axes. In this case I11 = I1 ,
I22 = I2 , and I33 = I3 are called the principal inertias. I1 , I2 , and I3 can
be determined from the eigenvalues of the matrix I. With the principal
inertias, the angular momentum of a rigid body can be simplified as
Properties of I
1. I is a symmetric matrix
3. For a basis with at least two symmetry planes, the off-diagonal terms
or the cross-product of inertia are zero.
and
(c)
Iij = Iij − mdi dj , i, j = 1, 2, 3, i = j (2.43)
where ∆k is the distance between the two parallel axes, and di and dj
are the relative displacements along i and j coordinates, respectively.
Practical methods used to determine the inertia matrix are: 1) look-up table,
2) computer calculation, and 3) experiment.
Chapter 3
In this chapter, the dynamics of a rigid body for two different cases: 1) a
pure rotation; and 2) a general motion consisting of both translation and
rotation, are analyzed using the Newton-Euler approach. According to the
laws of angular momentum stated in the previous chapter, we can formulate
the dynamics equations governing the motion of a rigid body.
Ho = I o ω (3.2)
45
46 CHAPTER 3. DYNAMICS OF A RIGID BODY
Equation (3.3) is the law of linear momentum for a rigid body or so called
the Newton’s equation, and equation (3.4) is the law of angular momentum.
For the general motion, we normally choose the reference coordinate system
such that its origin is fixed at the C.G. of the body and its coordinates rotate
with the body. If the rigid body has the angular velocity ω, then
Hc = I c ω (3.5)
and
Hc = Ic ω = I1c ω1 e1 + I2c ω2 e2 + I3c ω3 e3 (3.7)
Hence (3.1) and (3.4) can be more simplified as
M1o I1o ω̇1 0 −ω3 ω2 I1o ω1
Mo = M2o = I2o ω̇2 + ω3 0 −ω1 I2o ω2
M3o I3o ω̇3 −ω2 ω1 0 I3o ω3
(3.8)
and
M1c I1c ω̇1 0 −ω3 ω2 I1c ω1
Mc = M2c = I2c ω̇2 + ω3 0 −ω1 I2c ω2
M3c I3c ω̇3 −ω2 ω1 0 I3c ω3
(3.9)
Or they can be written in a scalar form as
and
M1c = I1c ω̇1 + (I3c − I2c ) ω2 ω3
M2c = I2c ω̇2 + (I1c − I3c ) ω1 ω3 (3.11)
M3c = I3c ω̇3 + (I2c − I1c ) ω1 ω2
Equation sets (3.10) and (3.11) are called Euler’s equations.
3.1. NEWTON-EULER EQUATIONS OF A RIGID BODY 47
u(t)
massless cart
ey
ex m, L
g θ
Fr
Fθ
ey
eθ eθ
θ c
ex θ
θ
er er
mg
Note that Ic in (3.15) is the moment of inertia about the C.G. of the rod
along z-axis. We now have three unknowns: Fr , Fθ , and θ, and three scalar
equations, two from (3.14) and one from (3.15). To derive the equation of
motion, we need to eliminate all unknown forces which are Fr and Fθ and
reduce the Newton-Euler equations to only one differential equation.
Figure 3.2 shows the two coordinate systems with the coordinate trans-
formation given by
ex = sinθer + cosθeθ
(3.16)
ey = −cosθer + sinθeθ
To eliminate Fθ , we substitute (3.15) into (3.14) and transform all coordi-
nates to {er eθ } using (3.16). Then (3.14) can be expressed in scalar form
as:
r-component:
L
mθ̇ 2 + mgcosθ = Fr + müsinθ (3.17)
2
θ-component:
mL2 mgL mL
Ic + θ̈ + sinθ = ücosθ (3.18)
4 2 2
e2
ρ C.G. e
dm 1
Z e3 Ω
ω0
Y
X
L
Fr = mθ̇ 2 + mgcosθ − müsinθ (3.19)
2
and
2Ic
Fθ = − θ̈ (3.20)
L
1. The rigid body spins about the symmetry axis with a constant speed
ωo .
body’s C.G. for the case of general motion. In these cases, e1 e2 e3 are
principal axes and I1 = I2 ≡ I. If the angular velocity of e1 e2 e3 is
Ω = Ω 1 e1 + Ω 2 e2 + Ω 3 e3
ω b = Ω + ω o e3
and
M1c = Ic Ω̇1 + (I3c − Ic ) Ω2 Ω3 + I3c ωo Ω2
M2c = Ic Ω̇2 + (Ic − I3c ) Ω3 Ω1 − I3c ωo Ω1 (3.22)
M3c = I3c Ω̇3
Equation sets (3.21) and (3.22) are for the cases of pure rotation and general
motion, respectively. The derivation of the modified Euler’s equations is
shown for the case of general motion as follows. From Figure 3.3, the angular
momentum of the rigid body about its C.G. is
Hc = (ρ × ρ̇)
dm
dρ
= ρ × dt + Ω × ρ dm
rel
=
(ρ × [(ωo e3 × ρ) + Ω × ρ]) dm
=
(ρ × (ωo e3 + Ω) × ρ) dm (3.23)
= (ρ ×
ω b × ρ) dm
Ic 0 0 Ω1
= Iω b = 0 Ic 0 Ω2
0 0 I3c Ω3 + ωo
Then
Ω̇1
Ḣc = I Ω̇2 + Ω × Hc
Ω̇3 (3.24)
Ic Ω̇1 0 −Ω3 Ω2 Ic Ω1
= Ic Ω̇2 + Ω3 0 −Ω1 Ic Ω2
I3c Ω̇3 −Ω 2 Ω 1 0 I3c (Ω 3 + ω o )
3.2. MODIFIED EULER’S EQUATIONS 51
.
ψ
e3
.
φ
L
k
e1
θ
mg
o
Note that the angular momentum of the steady gyro in (3.28) has a
constant magnitude, and the direction of the angular momentum is on
the plane of rotations, i.e. k − e3 plane. Moreover, the rate of change
of angular momentum is
Ḣo = ψ̇k × Ho (3.29)
Substituting (3.28) into (3.29) and performing a matrix operation yield
Ḣo = (I1 − I3 ) ψ̇ 2 sinθcosθ − I3 ψ̇ φ̇sinθ e2 (3.30)
From the law of angular momentum Mo = Ḣo , the moment sum
Mo about o, in this case, is due to only the gravitation force, given
by
Mo = Le3 × −mgk = −mgLsinθe2 (3.31)
Note that moment of the resultant force about o shown in (3.31) is
always perpendicular to both rotation axes (k and e3 ), resulting in
the precession. For the steady precession, this moment has a constant
magnitude due to the constant nutation angle θ. Substitution of (3.30)
and (3.31) into the law of angular momentum yields
−mgLsinθ = (I1 − I3 ) ψ̇ 2 sinθcosθ − I3 ψ̇ φ̇sinθ (3.32)
For sinθ = 0, we get the equation governing a steady precession of the
top as
mgL = I3 ψ̇ φ̇ + (I3 − I1 ) ψ̇ 2 cosθ (3.33)
From (3.33), with a given θ we can determine the relation between the
π
precession rate ψ̇ and the spin rate φ̇. For example, if θ = equation
2
(3.33) becomes
mgL
ψ̇ φ̇ = (3.34)
I3
Method 2: modified Euler’s equations The modified Euler’s equations
are presented again as follows
M1o = Io Ω̇1 + (I3o − Io ) Ω2 Ω3 + I3o ωo Ω2
M2o = Io Ω̇2 + (Io − I3o ) Ω3 Ω1 − I3o ωo Ω1 (3.35)
M3o = I3o Ω̇3
3.3. INTRODUCTION TO STABILITY OF A SPIN BODY 53
y z
where subscripts 1, 2, and 3 in (3.37) denote the principal axes of the plate.
Due to a steady spin, the system is moment-free. Hence in (3.37) M1c =
M2c = M3c = 0. Let’s assume that the plate has a steady spin about the
axis ‘1’ with a constant speed ω0 . (Note that axis-1 can be any arbitrary
principal axis, i.e. x-, y-, or z-axis in Figure 3.5.) Then the plate is perturbed
with small angular velocities η1 (t), η2 (t), and η3 (t), respectively, about all
principal axes. Hence the angular velocities in each direction are
ω1 (t) = ω0 + η1 (t)
ω2 (t) = η2 (t) (3.38)
ω3 (t) = η3 (t)
Substitution (3.38) into (3.37) and neglecting the higher order terms, such
as η1 η2 , η2 η3 , etc., yield
I1c η̇1 = 0
I2c η̇2 + (I1c − I3c ) ω0 η3 = 0 (3.39)
I3c η̇3 + (I2c − I1c ) ω0 η2 = 0
The first row of (3.39) implies that η1 (t) is constant. In addition, the last
two rows of (3.39) can be written in a matrix form as
(I1c −I3c )ω0
η̇2 (t) 0 I2c η2 (t) 0
+ (I2c −I1c )ω0 = (3.40)
η̇3 (t) 0 η3 (t) 0
I3c
or
η̇(t) + Kη(t) = 0 (3.41)
To solve (3.40), assume the solution as the following form
η2 (t) a
η(t) = = eλt (3.42)
η3 (t) b
To analyze the stability from the values of λ, we can divide λ2 into two cases
as follows
Case I: (λ2 ≤ 0) In this case, λ1,2 are positive and negative imaginary parts
and the rotation are marginally stable. Specifically, the perturbation
causes the oscillatory motion about the steady state. To satisfy this
stable condition, I1c > I2c > I3c or I1c < I2c < I3c . In other words, the
moment of inertia about the spin axis I1c should be either maximum
or minimum.
Case II: (λ2 > 0) In this case, one of the root is positive real and the other
is negative real. With the positive real root, the solution (3.46) shows
that the rotation is about to increase exponentially with time and
hence the rotation of the plate is unstable.
From this analysis together with a real demonstration, the students should
be able to figure out that in which directions the rotation of the spin plate
are stable.
56 CHAPTER 3. DYNAMICS OF A RIGID BODY
Chapter 4
Multi-Body Mechanical
System
4.2 Constraints
If any two rigid bodies are connected to each other, the mechanism con-
necting the bodies is called constraint. The constraint imposes additional
relative motion of one body with respect to anothers. With constraints, the
motion of each rigid body in all six coordinates are not independent, hence
the number of DOF for each body is reduced to less than six.
57
58 CHAPTER 4. MULTI-BODY MECHANICAL SYSTEM
φ
z
θz
θx y
A
ry
Rz
Mz
Rx
Mz
Example 3: rolling sphere Consider the spherical ball rolls without slip-
ping as shown in Fig. 4.3. The first geometric constraint relation, i.e.
rcz = a, can be simply observed. Another two relations are derived
from the fact that the contact point A on the sphere is motionless with
respect to the contact point A on the surface. Hence
Rz
z
φ
B
ψ
A θ y
Ry
x Rx
z
a
θy
c
θx
y
rcz
x rcx
A
rcy A’
From these previous examples, the number of DOFs of each body is equal
to [6 − number of constraint equations (or constraint forces)]. The chosen
DOFs in each case are called generalized coordinates.
Now let’s consider the multi-body linkages in Fig. 4.4. From the previous
examples, we can conclude that the total constraint equations is equal to 4
(from the slider) + 3 (from the spherical joint) = 7. The number of DOFs
is therefore equal to 2 × 6 − 7 = 5. The generalized coordinates, in this case,
are ry , φ, and the other three spherical coordinates at the spherical joint.
Generally speaking, the number of degrees of freedom of a multi-body
system is
M =6×N − C
z
θz
Z
θx
θy
x φ
y
Y
rY
Kinematic analysis :
Kinetic analysis :
Ω1 = α̇k1 (4.1)
4.7. EXAMPLE PROBLEM: DYNAMICS OF TWO-LINK ARMS 63
z2
y1 MAz
α MAy
Y A
α
y2
X RAy RAx
x1 RAz
c
Z, z1
FBD of link 2
mg
z2
Z, z1
A RAz
β MAy
y1
m, l y2 RAx A
rG
y;
;y
c RAy
Link 1 β MAz
Md
Link 2
Md
C
RCY MCY
a
RCX
MCX RCZ
FBD of link 1
Ω2 = α̇k1 + β̇i2
(4.2)
= β̇i2 + α̇sinβj2 + α̇cosβk2
l l
vG2 = −aα̇ − α̇sinβ i2 + β̇j2 (4.3)
2 2
where IJK, i1 j1 k1 , and i2 j2 k2 are the unit vectors of XY Z, x1 y1 z1 , and
x2 y2 z2 , respectively. The acceleration at CG of link 2 is then
v̇G2 = −aα̈ − 2l α̈sinβ − 2l α̇β̇cosβ i2
+ l
β̈ − aα̇2 cosβ − 2l α̇2 sinβcosβ j2 (4.4)
2
+ 2l β̇ 2 + aα̇2 sinβ + 2l α̇2 sin2 β k2
Kinetic analysis
Figure 4.5 shows the free body diagram of both links. First let’s consider
link 2. The Newton’s equation governing the translation of link 2 is
where the resultant forces are determined from the free body diagram as
where
ml2
I1c = I2c = , I3c = 0 (4.8)
12
ω1 = β̇, ω2 = α̇sinβ, ω3 = α̇cosβ (4.9)
l l
M1c = −RAy , M2c = RAx + MAy , M3c = MAz (4.10)
2 2
Substitution of (4.4), (4.6), and (4.8)-(4.10) into (4.5) and (4.7) yields six
scalar equations for link 2:
l l
m −aα̈ − α̈sinβ − α̇β̇cosβ = RAx (4.11)
2 2
l l
m β̈ − aα̇2 cosβ − α̇2 sinβcosβ = RAy − mgsinβ (4.12)
2 2
4.7. EXAMPLE PROBLEM: DYNAMICS OF TWO-LINK ARMS 65
l 2 l
m β̇ + aα̇2 sinβ + α̇2 sin2 β = RAz − mgcosβ (4.13)
2 2
l ml2 ml2 2
−RAy = β̈ − α̇ sinβcosβ (4.14)
2 12 12
l ml2
RAx + MAy = α̈sinβ + 2α̇β̇cosβ (4.15)
2 12
MAz = 0 (4.16)
Now let’s consider link 1. Since link 1 is massless, all components of the
resultant force and resultant couple are then zero. From FBD of link 1 in
Figure 4.5, consider only the Euler’s equation in z1 -direction which is
Or
Md RAx a
MAy = − MAz cotβ + (4.18)
sinβ sinβ
Plug (4.18) and (4.16) into (4.15) to obtain
l Md RAx a ml2
RAx + + = α̈sinβ + 2α̇β̇cosβ (4.19)
2 sinβ sinβ 12
Then plug (4.11) into (4.19) to eliminate RAx and rearrange the equation
as get
2
ma2 α̈ + ml3 α̈sin2 β + malα̈sinβ + 5 2
12 ml α̇β̇sinβcosβ (4.20)
2 α̇β̇cosβ − (M0 − ∆M α̇) = 0
+ mal
To eliminate RAy , plug (4.14) into (4.12) and rearrange the equation as
2 2
lβ̈ − lα̇2 sinβcosβ − aα̇2 cosβ + gsinβ = 0 (4.21)
3 3
Note that (4.20) and (4.21) are the set of equations of motion.
To solve the equations of motion numerically, we rewrite (4.20) and (4.21)
in state form. First, let’s define the state variables x1 = α̇, x2 = β, and
x3 = β̇. By substituting the state variables into (4.20) and (4.21), the
equations of motion can be put into in the state form as follows.
ẋ1 f1
ẋ = ẋ2 = f (x1 , x2 , x3 ) = f2 (4.22)
ẋ3 f3
66 CHAPTER 4. MULTI-BODY MECHANICAL SYSTEM
1.5
.
1
0.5
. 0
-0.5
0 1 2 3 4 5 6 7 8 9 10
time (s)
5
β (degree)
0
0 1 2 3 4 5 6 7 8 9 10
time (s)
where
M0 − ∆M x1 − (mal/2)x1 x3 cosx2 − (5ml2 /12)x1 x3 sinx2 cosx2
f1 =
ma2 + (ml2 /3)sin2 x2 + malsinx2
f2 = x3
3a 2 3g
x cosx2 − sinx2 f3 = x21 sinx2 cosx2 +
2l 1 2l
Then the state equation (4.22) is numerically solved using Matlab, where
the time response plots is shown in Figure 4.6. Note that the Matlab m-file
is described in Fig. 4.7
4.7. EXAMPLE PROBLEM: DYNAMICS OF TWO-LINK ARMS 67
F(c) = Fc n
δr · n = 0
As a result, the virtual work δW (c) done by a constraint force is zero, i.e.,
69
70 CHAPTER 5. PRINCIPLE OF VIRTUAL WORK
F(a) n
Y
δr
Path of motion
r F(c)
g X
θ
δr
(c)
F F(a)
or
r(t) = f (q1 (t), q2 (t), . . . , qM (t), t) (5.3)
r(t) = f (q1 (t), q2 (t), . . . , qM (t), q̇1 (t), q̇2 (t), . . . , q̇M (t), t) (5.4)
Note that most of the following contents, we deal with the holonomic con-
straint.
r = [ x y z ]T
where x, y, and z are spatial position variables. From (5.2), the position
vector r also can be written as a function of the generalized coordinate as
r = r(s)
dr
δr = δs ≡ jδs (5.5)
ds
1
M is the number of degrees of freedom.
72 CHAPTER 5. PRINCIPLE OF VIRTUAL WORK
Z
s(t)
v(t)
path
r
Note that the position vector r in (5.7) is an explicit function of time because
of the prescribed motion u(t) of the cart which is an explicit function of time.
Virtual displacement δr of the coin is
∂r ∂r ∂r
δr = ∂q1 δq1 + ∂q2 δq2 + ∂t δt
2
∂r (5.8)
= δqi
i=1
∂qi
5.3. GENERALIZED COORDINATES AND JACOBIAN 73
q2
Z C
q1
path
u(t)
r
Figure 5.4: Moving coin on the inclined plane of the moving cart
mN m4
m3
Z
rN mj
r1
m1
m2
For a system with holonomic constraints, the position vector is also a func-
tion of generalized coordinates:
r = r (q1 , q2 , . . . , qM )
∂r ∂r ∂r
δr = δq1 + δq2 + . . . + δqM
∂q1 ∂q2 ∂qM
M
∂r (5.11)
= δqj
j=1
∂qj
or
M
∂ri
δri = δqj ; i = 1, 2, . . . , N (5.12)
j=1
∂qj
δr = Jδq (5.13)
where
T
δq = δq1 δq2 . . . δqM (5.14)
M ×1
5.4. PRINCIPLE OF VIRTUAL WORK 75
∂rk
In (5.15), components of the Jacobian matrix Jkl = for k = 1, 2, . . . , N
∂ql
and l = 1, 2, . . . , M .
In summary, Jacobian embodies the information of unit vectors tangent
to the geometric constraints, which is determined by differentiation of the
physical or spatial variables with respect to the generalized coordinates.
Moreover, the virtual work is related to the generalized coordinates through
this Jacobian. Note that the Jacobians derived in the previous examples are
for the holonomic constraints that satisfy (5.2) or (5.3).
where Fi is the total forces acting on the i-th particle. Fi can be divided into
(a)
three types of forces: 1) applied or external forces Fi ; 2) internal spring or
damping forces between ith and j th particles fij ; and 3) constraint forces2
(c)
Fi . Therefore
(a)
N
(c)
Fi = Fi + fij + Fi , i = j (5.17)
j=1
(a)
The applied forces Fi and the internal spring or damping forces fij can
(ac)
be grouped as working forces so called active forces Fi . In cases of no
(c)
friction and plastic deformation at constraints, the constraint forces Fi are
workless forces. According to (5.1), the virtual work done by all constraint
forces is always zero, i.e.
N
(c)
Fi · δri = 0 (5.18)
i=1
2
Constraints in this case excludes the springs and dampers
76 CHAPTER 5. PRINCIPLE OF VIRTUAL WORK
N
δW = Fi · δri = 0
i=1 (5.19)
N
(ac) (c)
= Fi + Fi · δri = 0, i = j
i=1
The virtual work δW is zero because of the zero sum of all forces. With the
relation (5.18), (5.19) is simply
N
(ac)
δW (ac) = Fi · δri = 0 (5.20)
i=1
Equation (5.20) is the principle of virtual work stating that if the system
is in equilibrium then virtual work done by all active forces in the system is
zero.
where Fi is the total forces acting on the i-th particle, mi is the mass of the
i-th particle, and r̈i is the acceleration of the i-th particle. The term −mi r̈i
represents an inertia force resisting the motion of the system. From (5.21),
virtual work δW done by all forces, including the inertia force −mi r̈i , is
then zero. Or
N
δW = (Fi − mi r̈i ) · δri = 0 (5.22)
i=1
Since the virtual work done by the constraint forces is always zero, (5.22) is
simply
N
δW =
(ac)
Fi − mi r̈i · δri = 0 (5.23)
i=1
5.5. D’ALEMBERT PRINCIPLE 77
stating that the virtual work δW done by all active forces and inertia forces
is zero. For the holonomic constraints, we can substitute the Jacobian rela-
tion (5.12) into (5.23) to get
N
M
(ac) ∂ri
Fi − mi r̈i · δqk = 0 (5.24)
i=1 k=1
∂qk
Rewrite(5.24) as
N
M (ac) ∂ri
(Fi − mi r̈i ) · δqk = 0 (5.25)
k=1 i=1
∂qk
Since each δqk is independent and nonzero, therefore to satisfy (5.25), each
k-term in the bracket must be zero, i.e.
N
∂r
(ac) i
Fi − mi r̈i · = 0; k = 1, 2, . . . , M (5.26)
i=1
∂qk
∂ri
For a short notation, we define β ik ≡ for the rest of the chapter. Equa-
∂qk
tions (5.26) are the D’Alembert principle that automatically yield the equa-
tions of motion. Again the D’Alembert principle can only be applied to
dynamics of the systems with holonomic constraints.
Example: Direct application of D’Alembert principle
The sliders of masses m1 and m2 are constrained by springs and move along
the frictionless disk slot as shown in Figure 5.6. The disk also rotates about
its center with angular displacement θ. If the unstretched length of the
springs is a, derive the equations of motion.
From the system shown in Figure 5.6, let’s choose ρ1 , ρ2 , and θ as the
generalized coordinates. Hence
T
q= ρ1 ρ2 θ (5.27)
r1 = f (ρ1 , ρ2 , θ) = ρ1 er (5.28)
and
r2 = f (ρ1 , ρ2 , θ) = −ρ2 er (5.29)
78 CHAPTER 5. PRINCIPLE OF VIRTUAL WORK
Y
eθ
er
m2
θ k
θ
k X
m1
ρ2
ρ1
and
r̈2 (ρ1 , ρ2 , θ) = −ρ̈2 + θ̇ 2 ρ2 er − ρ2 θ̈ + 2ρ̇2 θ̇ eθ (5.31)
The active spring forces acting on both sliders are
(ac)
F1 = −k (ρ1 − a) er (5.32)
and
(ac)
F2 = k (ρ2 − a) er (5.33)
The components of the Jacobian matrix can be formulated as follows
∂r1
β 11 ≡ = er
∂ρ1
∂r1
β 12 ≡ = 0
∂ρ2
∂r1
β 13 ≡ = ρ1 eθ
∂θ
∂r2
β 21 ≡ = 0
∂ρ1
∂r2
β 22 ≡ = −er
∂ρ2
5.5. D’ALEMBERT PRINCIPLE 79
∂r2
β 23 ≡ = −ρ2 eθ
∂θ
Substitution of (5.30) to (5.33) into (5.26) yields three sets of equations:
For k = 1,
(ac) (ac)
F1 − m1 r̈1 · β 11 + F2 − m2 r̈2 · β 21 = 0 (5.34)
or
m1 ρ̈1 − θ̇ 2 ρ1 + K (ρ1 − a) = 0 (5.35)
For k = 2,
(ac) (ac)
F1 − m1 r̈1 · β 12 + F2 − m2 r̈2 · β 22 = 0 (5.36)
or
m2 ρ̈2 − θ̇ 2 ρ2 + K (ρ2 − a) = 0 (5.37)
For k = 3,
(ac) (ac)
F1 − m1 r̈1 · β 13 + F2 − m2 r̈2 · β 23 = 0 (5.38)
or
m1 ρ1 θ̈ + 2ρ̇1 θ̇ ρ1 + m2 ρ2 θ̈ + 2ρ̇2 θ̇ ρ2 = 0 (5.39)
Equations (5.35) and (5.37) are the equations of motions. In addition, (5.39)
can be arranged as
d
m1 ρ21 θ̇ + m2 ρ22 θ̇ = 0 (5.40)
dt
which indicates the conservation of angular momentum of the system or
Ḣo = 0.
80 CHAPTER 5. PRINCIPLE OF VIRTUAL WORK
Chapter 6
Lagrange Mechanics
where N is number of particles and mi and vi are the mass and the velocity
of the i-th particle. Kinetic energy of a rigid body as shown in Figure 6.1 is
therefore
1
T = v · vdm (6.2)
2
where v is the velocity of element dm. From Figure 6.1, the velocity v of
mass dm is
v = vc + ω × ρ (6.3)
81
82 CHAPTER 6. LAGRANGE MECHANICS
Z
ω
vc
C
ρ
rc
where ρ × (ω × ρ) dm = Hc is the angular momentum about the C.G.
Hence kinetic energy of a rigid body (6.4) is simply
1 1
T = mvc · vc + Hc · ω (6.5)
2 2
Equation (6.5) can be put in the matrix form as
1 1
T = mvcT vc + ω T Ic ω (6.6)
2 2
∂ ∂ ∂
∇= i+ j+ k
∂x ∂y ∂z
6.2. POTENTIAL ENERGY 83
Such forces in form of (6.7) are called conservative forces and the function
V is called potential energy. Consequently work done by the conservative
forces is is independent to the path of motion and equal to the change of the
potential energy ∆V . Therefore the work done by the conservative force F,
resulting in any path of motion from A to B, is
B
W = F · δr ≡ V (rA ) − V (rB ) (6.8)
A
δW = F · δr = −dV (6.9)
F = −mgez , V = mgz
2. Gravitational force
GM m GM m
F=− er , V =−
r2 r
µ0 I1 I2 µ0 I1 I2 logr
F = , V =−
2πr 2π
where µ0 = 4π × 10−7 in mks units.
Q1 Q2 Q1 Q2
F = , V =−
4πε0 r 2 4πε0 r
1
where = 8.99 × 109 in mks units.
4πε0
84 CHAPTER 6. LAGRANGE MECHANICS
ri = ri (q1 , q2 , . . . , qM , t)
dqj
where q̇j ≡ is the generalized velocity.
dt
5. Remarkable observation 1
∂ ṙi ∂ri
= , k = 1, 2, . . . , M ; i = 1, 2, . . . , N
∂ q̇k ∂qk
6.4. DERIVATION OF LAGRANGE’S EQUATIONS 85
6. Remarkable observation 2
∂ ṙi d ∂ri
= , k = 1, 2, . . . , M ; i = 1, 2, . . . , N
∂qk dt ∂qk
Consider (6.10) term by term. The first term on the left can be written as
N N
∂ri d ∂ri d ∂ri
mi r̈i · = mi ṙi · − mi ṙi · (6.11)
i=1
∂qk i=1
dt ∂qk dt ∂qk
In addition, the generalized forces can be separated into two cases: conser-
(c) (nc)
vative generalized forces Qk and nonconservative generalized forces Qk .
(c)
The conservative generalized force Qk can be expressed in term of the po-
tential energy as
(c)
N
(c) ∂ri
Qk = Fi ·
i=1
∂qk
N
∂V ∂ri
= − (q1 , q2 , . . . , qM ) ·
i=1
∂ri ∂qk
∂V
= −
∂qk
(c)
Substitution of the conservative generalized forces Qk into (6.13) yields the
Lagrange’s equations
d ∂T ∂T ∂V (nc)
− + = Qk ; k = 1, 2, . . . , M (6.15)
dt ∂ q̇k ∂qk ∂qk
g l
θ
6.5 Examples
Example 6.1 :
Derive the equation of motion of the pendulum in Figure 6.2 using the
Lagrange’s equation.
Solution
The pendulum shown in Fig. 6.2 has one degree of freedom. Let’s choose
θ as the generalized coordinate. The kinetic energy T of the pendulum is
then
1 1
T = mv 2 = ml2 θ̇ 2 (6.17)
2 2
Also the potential energy V of the pendulum (with respect to the datum at
the hinge level) is
V = −mglcosθ (6.18)
There is no external forces applied to the pendulum, hence the generalized
force is zero. The Lagrange’s equation for the pendulum is
d ∂T ∂T ∂V
− + =0 (6.19)
dt ∂ θ̇ ∂θ ∂θ
Substitution of (6.17) and (6.18) into (6.19) yields the equation of motion:
Example 6.2 :
Derive the equations of motion for the cart-pendulum as shown in Fig. 6.3.
Solution
88 CHAPTER 6. LAGRANGE MECHANICS
x
k
m1
eθ
g θ
m2
er
The cart-pendulum system has two degrees of freedom. Let the generalized
coordinates be q1 = x, q2 = θ. Absolute velocity v2 of the pendulum is
1 1
T = m1 ẋ2 + m2 v2 · v2 (6.23)
2 2
Substitute (6.22) into (6.23) to get
1 1
T = (m1 + m2 ) ẋ2 + m2 Lẋθ̇cosθ + m2 L2 θ̇ 2 (6.24)
2 2
The potential energy of the system is
1 2
V = kx − m2 gL cos θ (6.25)
2
6.5. EXAMPLES 89
and
m2 L2 θ̈ + m2 Lẍcosθ + m2 gLsinθ = 0 (6.37)
Lagrange’s equations can be used to derive equations of motion of the
rigid body or multi-body system. In this case, derivation of the Lagrange’s
equation is similar to that for the system of particles and will be omitted
here. Also the Lagrange equations for the rigid body or multi-body system
are identical to (6.15) and (6.16).
Example 6.3 :
90 CHAPTER 6. LAGRANGE MECHANICS
g
τ1 a1
m1,
I1(about G) α1
G1
a2
l1
τ2 α2 G2
m2, l2
I2(about G)
τ1
α1
g
τ2
τ2
α2
Since the whole system operates in the horizontal plane and there is no
restoring forces, the potential energy is zero, i.e. V = 0.
Generalized forces Qα1 and Qα2 :
From Figure 6.5, the virtual work done by all nonconservative torques is
Hence
Qα1 = τ1 − τ2 (6.43)
and
Qα2 = τ2 (6.44)
Formulate the Lagrange’s equations as follows:
d ∂T ∂T ∂V
− + = Qα1 (6.45)
dt ∂ α̇1 ∂α1 ∂α1
d ∂T ∂T ∂V
− + = Qα2 (6.46)
dt ∂ α̇2 ∂α2 ∂α2
where
∂T
= I1 + m1 a21 α̇1 + m2 l12 α̇1 + m2 a2 l1 α̇2 cos (α1 − α2 ) (6.47)
∂ α̇1
d ∂T
= I1 + m1 a21 + m2 l12 α̈1 + m2 a2 l1 α̈2 cos (α1 − α2 )
dt ∂ α̇1 (6.48)
−m2 a2 l1 α̇2 (α̇1 − α̇2 ) sin (α1 − α2 )
92 CHAPTER 6. LAGRANGE MECHANICS
∂T
= −m2 a2 l1 α˙1 α˙2 sin (α1 − α2 ) (6.49)
∂α1
∂T
= m2 a22 α̇2 + m2 a2 l1 α̇1 cos (α1 − α2 ) + I2 α̇2 (6.50)
∂ α̇2
d ∂T
= m2 a22 + I2 α̈2 + m2 a2 l1 α̈1 cos (α1 − α2 )
dt ∂ α̇2 (6.51)
−m2 a2 l1 α̇1 (α̇1 − α̇2 ) sin (α1 − α2 )
∂T
= m2 a2 l1 α˙1 α˙2 sin (α1 − α2 ) (6.52)
∂α2
Substitution of (6.47)-(6.52) into (6.45) and (6.46) yields the following equa-
tions of motion:
I1 + m1 a21 + m2 l12 α̈1 + m2 a2 l1 α̈2 cos (α1 − α2 )
(6.53)
+m2 a2 l1 α̇22 sin (α1 − α2 ) = τ1 − τ2
m2 a22 + I2 α̈2 + m2 a2 l1 α̈1 cos (α1 − α2 )
(6.54)
−m2 a2 l1 α̇21 sin (α1 − α2 ) = τ2
Example 6.4 :
Fig. 6.6 shows a uniform and thin bar of mass m and length l hinged to link
1 which is driven to spin with a constant speed ω. Derive the differential
equations governing the motion of the thin bar using Lagrange’s equations.
Solution
With the prescribed motion ω is constant, the number of degrees of freedom
is M = 6 × N − C − L = 6 × 2 − (5 + 5) − 1 = 1. Let’s choose β as the
generalized coordinate. The angular velocity of the link 2 is
ω 2 = ωk1 + β̇i2
= β̇i2 + ωsinβj2 + ωcosβk2 (6.55)
T
≡ β̇ ωsinβ ωcosβ
Kinetic energy T is
1 1
T = IZ ω 2 + ω T2 Iω2 (6.56)
2 2
Substituting (6.55) into (6.56) yields
I 0 0 β̇
1 2 1
T = 2 IZ ω + 2 β̇ ωsinβ ωcosβ 0 I 0 ωsinβ
0 0 0 ωcosβ
1 2 1
= 2 IZ ω + 2 β̇ 2 + ω 2 sin2 β
(6.57)
6.5. EXAMPLES 93
k1
ω
k2
j2
g
l
where
∂T
= I β̇ (6.59)
∂ β̇
d ∂T
= I β̈ (6.60)
dt ∂ β̇
∂T
= Iω 2 sinβcosβ (6.61)
∂β
∂V l
= mg sinβ (6.62)
∂β 2
and Q = 0. Plug (6.59)-(6.62) into (6.58) to get the equation of motion:
l
I β̈ − Iω 2 sinβcosβ + mg sinβ = 0 (6.63)
2
94 CHAPTER 6. LAGRANGE MECHANICS
M #
$
d ∂T ∂T ∂V (nc)
− + − Qk δqk = 0; k = 1, 2, . . . , M
k=1
dt ∂ q̇k ∂qk ∂qk
(6.64)
where M is number of degrees of freedom. If all δqk are independent, each
bracket in (6.64) is zero and we obtain the Lagrange equations as shown
in (6.15). If additional p constraints are introduced later, and result in the
dependency of some qk , what happens? Let’s consider the equation (6.64).
The introduction of new constraints will lead to the following conditions:
M
aik dqk = 0; i = 1, 2, . . . , p (6.65)
k=1
M # $
d ∂T ∂T ∂V (nc) p M
− + − Qk δqk + λi aik δqk =0
k=1
dt ∂ q̇k ∂qk ∂qk i=1 k=1
(6.66)
where λi is called Lagrange Multiplier. Equation (6.66) can be rear-
ranged as
M
d ∂T ∂T ∂V (nc) p
− + − Qk + λi aik δqk = 0 (6.67)
k=1
dt ∂ q̇k ∂qk ∂qk i=1
Note that the new constraints are introduced to the Lagrange equations as
the generalized forces as seen from the second term on the right of (6.69).
Moreover the Lagrange equation with Lagrange Multiplier can deal with
dynamics with nonholonomic constraints.
Then we solve (6.69) together with the revised constraint relations (6.65),
putting in the form of
M
aik q̇k = 0; i = 1, 2, . . . , p (6.70)
k=1
fi (q1 , q2 , . . . , qM ) = 0; i = 1, 2, . . . , p (6.71)
Example 6.5 :
Derive equation of motion of a pendulum shown in Figure 6.2 using the
Lagrange multiplier.
Solution
First if we assume that the pendulum is not constrained in the radial direc-
tion, i.e. l is not fixed, this system will have two degrees of freedom. Let
r and θ be the generalized coordinates as shown in Figure 6.7. The kinetic
and potential energies are
1
T = m ṙ 2 + r 2 θ̇ 2
2
V = −mgr cos θ
96 CHAPTER 6. LAGRANGE MECHANICS
g r
θ
and
d 2
mr θ̇ + mgr sin θ = 0 (6.77)
dt
6.6. LAGRANGE MULTIPLIER 97
and
ml2 θ̈ + mgl sin θ = 0 (6.80)
Note that (6.80) is equivalent to the equation of motion that we obtain in
Example 6.1. In addition (6.79) gives us the Lagrange multiplier λ which is,
in this case, the tension or the constraint force in the string.
98 CHAPTER 6. LAGRANGE MECHANICS
Chapter 7
Stability Analysis
99
100 CHAPTER 7. STABILITY ANALYSIS
Then equation (7.1) can be written in terms of the state variables given by:
where
∆X(t) = [∆X1 (t), ∆X2 (t), . . . , ∆Xk (t), ∆Xk+1 (t), ∆Xk+2 (t), . . . , ∆X2k (t)]T
(7.8)
In (7.8), ∆X1 , ∆X2 , . . . , ∆X2k are small perturbation. Substitution of (7.7)
into the equations of motion (7.5) yields
˙ + ∆Ẋ(t) = f X̄ + ∆X , X̄ + ∆X , . . . , X̄ + ∆X , t
X̄ (7.9)
1 1 2 2 2k 2k
For a short notation, replace ∆X(t) in (7.11) with Y(t). Hence the pertur-
bation equation (7.11) becomes
To analyze the stability, we then solve for Y(t). First let the solution be
Or
(A − λI) Ceλt = 0 (7.17)
Thus the nontrivial solution of (7.17) is
|A − λI| = 0 (7.18)
From (7.18), there are 2k values of λ. The equilibrium or the steady state
will be unstable if either one of the following conditions is satisfied.
2. There exist complex roots of λ and at least one of them has a positive
real part.
Example 7.1 :
The bead is constrained to move along the circular ring as shown in Fig. 7.1.
If the ring is rotated about the vertical axis with a constant speed ω. De-
termine the steady states and analyze if each state is stable or unstable.
Solution
Kinematics:
The system has only one degree of freedom. From Fig. 7.1, let α be the
generalized coordinate. Hence the absolute velocity of the bead is
ω constant
smooth
g
r eθ
er
g
Note that the second steady state X̄(2) exists if and only if ≤ ω 2 .
r
Stability analysis
To analyze the stability of each steady state, the system is initially perturbed
with ∆X(0) from the steady state. After t > 0, the motion is described by
∆X1 (t)
X(t) = X̄ + (7.29)
∆X2 (t)
Substitute (7.29) into (7.25), and then linearize the equation. Let Y(t) =
∆X(t) for a short notation, the perturbation equation is therefore
where
∂f1 ∂X2
A11 = = =0
∂X1 X=X̄ ∂X1 X=X̄
∂f1 ∂X2
A12 = = =1
∂X2 X=X̄ ∂X2 X=X̄
∂f2 g
A21 = = ω 2 cos2X̄1 − cosX̄1
∂X1 X=X̄ r
∂f2
A22 = =0
∂X2 X=X̄
104 CHAPTER 7. STABILITY ANALYSIS
Or the matrix A is
0 1
A= (7.31)
ω 2 cos2X̄1 − gr cosX̄1 0
Let the solution of (7.30) be Y(t) = Ceλt , λ can be obtained from the
characteristic equation: |A − λI| = 0, or
% %
% −λ %
% 1 %
% 2 % (7.32)
% ω cos2X̄1 − gr cosX̄1 −λ %
For the 1st steady state, substitute X̄1 = 0 and X̄2 = 0 into (7.33) to get
1
g 2
λ1,2 =± ω − 2
(7.34)
r
g
In (7.34), if ω 2 > then one of λ will be a positive real resulting in unstable
r
g
steady state. On the other hand if ω 2 ≤ then both λ will be conjugate
r
imaginary resulting in stable steady state.
nd −1 g
For the 2 steady state, X̄1 = cos and X̄2 = 0. Equation
ω2r
(7.33) then becomes
! "1
λ1,2 = ± ω 2 cos2X̄1 − gr cosX̄1 2
1
= ± ω 2 cos2 X̄1 − sin2 X̄1 − gr cosX̄1 2 (7.35)
2 4 2 1
g −ω r
= ± ω2 r2
2
, g
r ≤ ω2
g
Since the 2nd steady state exists if and only if ≤ ω 2 , both λ in (7.35) are
r
conjugate imaginary. Thus this steady state is always stable.
Bibliography
105