Lecture 6 - Summary: EOM, State-Space Model, Linearisation and Stability
Lecture 6 - Summary: EOM, State-Space Model, Linearisation and Stability
and Stability
Last time
1 2 1 3
eAt = I + At + (At) + (At) + . . .
2! 3!
The dynamics are stable if all of the eigenvalues of A have a negative real part.
The dynamics are unstable if any of the eigenvalues of A have a positive real part.
LHP: Left half plane, i.e., Re(λ) < 0. RHP: Right half plane, i.e., Re(λ) > 0.
(Courtesy of Franklin, Power and Emami-Naeini, Feedback control of Dynamic systems, 2006)
Today
1
Newton’s laws Equations of State-space Equilibrium
Motion (EOM) Form
X =⇒ =⇒ =⇒
Fx = max 0
g X1 =
X α̈ = − sin α ẋ1 = x2 0
Fy = may l g
ẋ2 = − sin x1 0
X
l X2 =
Mz = Jα π
• A little bit on linearisation of Ẋ = f (X, U ) about an equilibrium X, U
Flyball Governor
Developed in the 1780s, was an enabler of the successful Watt steam An approximation using a
engine. rotating rod (green) driving a
Objective: To achieve a constant rotation rate under load. solid rod (yellow) instead of
flyballs.
Equation of motion:
ml2 ml2 2 l
α̈ − ω sin α cos α + mg sin α + bα̇ = 0
3 3 2
3g 3
α̈ = ω 2 sin α cos α − sin α − bα̇
2l ml2
dθ dn−1 θ
5.b. For a nth DE, define variables x1 , x2 , . . . , xn−1 as x1 := θ, x2 := dt , . . . , xn := dt etc.
2
x1 α
X= = with ẋ2 = α̈
x2 α̇
ẋ1 = x2
3g 3
ẋ2 = ω 2 sin x1 cos x1 − sin x1 − bx2
2l ml2
Are these dynamics nonlinear? Next step? Yes, terms like sin x1 are nonlinear.
1. For the state-space dynamics Ẋ = f (X), find all equilibriums by solving f (X) = 0.
Eqn 1) 0 = ẋ1 = x2 = 0
Eqn 2) Use Eqn 1...
3g 3
0 = ẋ2 = ω 2 sin x1 cos x1 − sin x1 − bx2
2l ml2
3g
= ω 2 sin x1 cos x1 − sin x1
2l
3g
= sin x1 ω 2 cos x1 −
2l
3g
Then either: Case (a) sin x1 = 0 or Case (b) ω 2 cos x1 − 2l =0
Case (a) sin x1 = 0 then (1) x1 = 0 or (2) x2 = π
3g 3g 3g
Case (b) cos x1 = 2lω 2 then (3) x1 = cos−1 2lω 2 , α∗ or (4) x1 = − cos−1 2lω 2 , −α∗
0
X1 = ,
0
π
X2 =
0
α∗
X3 =
0
−α∗
X4 =
0
3
Our Equilibriums Family
0 π
X1 = X2 =
0 0
α∗ −α∗
X3 = X4 =
0 0
4
Qualitative Behavior Near Equilibrium Points
2. Use the location of the eigenvalues in the complex plane to describe the dynamics δ̇ = Aδ.
The dynamics are exponential stability if all of the eigenvalues of A have a negative real part.
The dynamics are oscillatory if any of the eigenvalues of A have a nonzero imaginary part.
| | |
δ(t) = c1 eλ1 t v1 + c2 eλ2 t v2 + · · · + cn eλn t vn .
| | |
det (A − λI) = 0
Eigenvectors: For each eigenvalue λ solve for the right eigenvector v and left eigenvector u as
1h p i
λ1 , λ2 = tr(A) ± tr(A)2 − 4 det A
2
Eigenvalues?
5
1h p i 1h p i
λ1 , λ2 = −3 ± 9 + 4 (ω 2 − 15) λ1 , λ2 = tr(A) ± tr(A)2 − 4 det A
2 2
3 1p
=− ± −51 + 4ω 2
2 2
3 1p
λ1,2 = − ± −51 + 4ω 2
2 2
−51 + 4ω 2 < 0
√
51
|ω| < ≈ 3.5
2
3 1p
λ1,2 = − ± −51 + 4ω 2
2 2
So
|ω| < max {3.5, 3.9} = 3.9
1. For the state-space dynamics Ẋ = f (X, U ), find all equilibriums by solving f (X, U ) = 0.
2. Choose a specific equilibrium X, U about which you will obtain a linearisation ... if one
exists
4. Calculate the linearised dynamics about X as δ̇X = AδX +BδU , where A and B is the Jacobian
evaluated at X and U with
∂f1 ∂f1 ∂f1 ∂f1
··· ···
∂x1 ∂xn
∂u1 ∂um
A=
.. .. ..
and B =
.. .. ..
. . .
. . .
∂fn ∂fn ∂fn ∂fn
∂x1 ··· ∂xn
X=X
∂u1 ··· ∂um
X=X
U =U U =U
6
Here, there are n states and m control inputs.
Matrix A is called the state matrix.
Matrix B is called the input matrix.
Assume we can control an applied force perpendicular to gravity to a pendulum. To emphasize, let the
force be u so
g u ẋ1 = x2
α̈ = − sin α + cos α
l ml g u
ẋ2 = − sin x1 + cos x1
l ml
1. For the state-space dynamics Ẋ = f (X, U ), find all equilibriums by solving f (X, U ) = 0.
0 = x2
g u
0 = − sin x1 + cos x1
l ml
x1
X1 = , U 1 = mg tan x1
0
2. Choose a specific equilibrium X, U about which you will obtain a linearisation ... if one exists
π
X1 = 4 , U 1 = mg
0
4. Calculate the linearised dynamics about X as δ̇X = AδX + BδU , where A and B is the Jacobian
evaluated at X and U with
7
" #
∂f1 ∂f1
∂x1 ∂x2
A=
∂f2 ∂f2
∂x1 ∂x2
X=X
U =U
0 1
=
− gl cos x1 − u
sin x1 0 X=X
ml
U =U
0
√
1
= 2g
− l 0
" #
∂f1
∂u1
B=
∂f2
∂u1
X=X
U =U
0
= 1
X=X
ml cos x 1
U =U
0
√
= 2
2ml
Then