2 1 Stability
2 1 Stability
Outline
• Preliminaries
• Stability concepts
• Equilibrium point
1 Definitions
1.1 Finite dimensional vector norms
Let v ∈ Rn . A norm is:
• a metric in vector space: a function that assigns a real-valued length to each vector in a vector space, e.g.,
√
– 2 (Euclidean) norm: kvk2 = v T v = v12 + v22 + · · · + vn2
p
Pn
– 1 norm: kvk1 = i=1 |vj | (absolute column sum)
– infinity norm: kvk∞ = maxi |vi |
Pn 1/p
– p norm: ||v||p = ( i=1 |vi |p ) , 1 ≤ p < ∞
• default in this set of notes: k · k = k · k2
f (xe , t) = 0, ∀t
1
Xu Chen 1.4 Continuous function February 19, 2021
Figure 2: Uniformly continuous (left) and continuous but not uniformly continuous (right) functions
• The equilibrium state 0 of ẋ = f (x, t) is stable in the sense of Lyapunov (s.i.L) if for all > 0, and t0 , there
exists δ (, t0 ) > 0 such that kx (t0 ) k2 < δ gives kx (t) k2 < for all t ≥ t0
2
Xu Chen 1.7 Uniform stability in the sense of Lyapunov February 19, 2021
• for all > 0 and t0 , there exists δ (, t0 ) > 0 such that kx (t0 ) k2 < δ gives x (t) → 0
3
Xu Chen February 19, 2021
4
Xu Chen 2.3 The Routh Array February 19, 2021
• third row of the Routh array is constructed from the previous two rows via
· a b x ·
· c d y ·
bc − ad xc − ay
· ·
c c
· · · · ·
• All roots of A(s) are on the left half s-plane if and only if all elements of the first column of the
Routh array are positive.
• Special cases:
– If the 1st element in any one row of Routh’s array is zero, one can replace the zero with a small number
and proceed further.
– If the elements in one row of Routh’s array are all zero, then the equation has at least one pair of real
roots with equal magnitude but opposite signs, and/or the equation has one or more pairs of imaginary
roots, and/or the equation has pairs of complex-conjugate roots forming symmetry about the origin of
the s-plane.
– There are other possible complications, which we will not pursue further. See, e.g. "Automatic Control
Systems", by Kuo, 7th ed., pp. 339-340.
s4 2 3 10
s3 1 5 0
s2 3 − 2×5
1 = −7 10 0
s1 5 − 1×10
−7 0 0
s0 10 0 0
x (k + 1) = f (x(k), k) , x (k0 ) = x0
• equilibrium point xe :
f (xe , k) = xe , ∀k
5
Xu Chen 2.5 Stability of the origin for x(k + 1) = Ax(k) February 19, 2021
Imaginary Imaginary
s-plane z-plane
Bilinear transform
z= 1+s
1−s or s = z−1
z+1
Real −1 1 Real
– apply Routh test to A∗ (s) = a∗n sn + a∗n−1 sn−1 + · · · + a∗0 = A(z)|z= 1+s (1 − s)n
1−s
3 2
Example 4. A(z) = z + 0.8z + 0.6z + 0.5
3 2 2 3
• A∗ (s) = A(z)|z= 1+s (1 − s)3 = (1 + s) + 0.8 (1 + s) (1 − s) + 0.6 (1 + s) (1 − s) + 0.5 (1 − s) = 0.3s3 +
1−s
3.1s2 + 1.7s + 2.9
• Routh array
s3 0.3 1.7
s2 3.1 2.9 all elements in first column are positive
:
s 1.7 − 0.3×2.9
3.1 = 1.42 0 ⇒ roots of A(z) are all in the unit circle
s0 2.9 0
6
Xu Chen 3.1 Stability from an energy viewpoint February 19, 2021
3.2 Generalization
Consider unforced, time-varying, nonlinear systems
Q (x) = xT P x, P T = P
1 in the sense of concluding on stability without solving the state equations explicitly.
7
Xu Chen 3.3 Relevant tools February 19, 2021
8
Xu Chen 3.3 Relevant tools February 19, 2021
λn
where λi ’s are the distinct eigenvalues associated to the eigenvector ui ’s. The inverse matrix in (1) can be cumber-
some to compute though. The spectral theorem, aka symmetric eigenvalue decomposition theorem,2 significantly
simplifies the result when A is symmetric.
where:3
• λi ’s: eigenvalues of A
• ui : eigenvector associated to λi , normalized to have unity norms
T
• U = [u1 , u2 , · · · , un ] is an orthogonal matrix, i.e., U T U = U U T = I
• {u1 , u2 , · · · , un } forms an orthonormal basis
λ1
• Λ=
..
.
λn
To understand the result, we show an important theorem first.
Theorem 9. ∀ : A ∈ Rn×n with AT = A, then eigenvectors of A, associated with different eigenvalues, are
orthogonal.
Proof. Let Aui = λi ui and Auj = λj uj . Then uTi Auj = uTi λj uj = λj uTi uj . In the meantime, uTi Auj = uTi AT uj =
T
(Aui ) uj = λi uTi uj . So λi uTi uj = λj uTi uj . But λi 6= λj . It must be that uTi uj = 0.
T
Theorem 8 now follows. If A has distinct eigenvalues, then U = [u1 , u2 , · · · , un ] is orthogonal if we normalize all
the eigenvectors to unity norm. If A has r(< n) distinct eigenvalues, we can choose multiple orthogonal eigenvectors
for the eigenvalues with none-unity multiplicities.
With the spectral theorem, next time we see a symmetric matrix A, we immediately know that
• ∀ v ∈ Rn×1 , vv T ij = vi vj . (Proof: vv T ij = eT T e = v v , where e is the unit vector with all but the i
th elements
i vv j i j i
being zero.)
2
• link with quadratic functions: q (x) = xT vv T x = v T x
9
Xu Chen 3.3 Relevant tools February 19, 2021
√
Example 10. Consider the matrix A = √5 3
. Computing the eigenvalues gives
3 7
√
−λ
5√ 3
det = 35 − 12λ + λ2 − 3 = (λ − 4) (λ − 8) = 0
3 7−λ
⇒λ1 = 4, λ2 = 8
Note here we normalized t1 such that ||t1 ||2 = 1. With the above computation, we no more need to do (A − λ2 I) t2 =
0 for getting t2 . Keep in mind that A here is symmetric, so has eigenvectors orthogonal to each other. By direct
observation, we can see that 1
x= √2
3
2
xT Ax
λmax = max (3)
n
x∈R , x6=0 kxk22
xT Ax
λmin = min (4)
n
x∈R , x6=0 kxk22
n
X
x= αi ui
i=1
Thus
T P
xT Ax λ α2
P P
( i α i ui ) i λi αi ui
max 2 = max P 2 = max Pi i 2 i = λmax
x6=0 kxk2 αi
i αi
αi
i αi
10
Xu Chen 3.3 Relevant tools February 19, 2021
2 −1 T
Example 14. P = is positive-definite, as P = P T and take any v = [x, y] , we have
−1 2
T
T x 2 −1 x 2
v Pv = = 2x2 + 2y 2 − 2xy = x2 + y 2 + (x − y) ≥ 0
y −1 2 y
• Conversely, matrices whose entries are all positive are not necessarily positive-definite.
1 2
Example 15. A = is not positive-definite as
2 1
T
1 1 2 1
= −2 < 0
−1 2 1 −1
Theorem 16. For a symmetric matrix P , P 0 if and only if all the eigenvalues of P are positive.
Proof. Since P is symmetric, we have
xT Ax
λmax (P ) = max (5)
n
x∈R , x6=0 kxk22
xT Ax
λmin (P ) = min (6)
n
x∈R , x6=0 kxk22
which gives
xT Ax ∈ λmin kxk22 , λmax kxk22
For x 6= 0, kxk22 is always positive. It can thus be seen that xT Ax > 0, x 6= 0 ⇔ λmin > 0.
Checking positive definiteness of a matrix. We often use the following necessary and sufficient conditions to
check if a symmetric matrix P is positive (semi-)definite or not:
11
Xu Chen 3.3 Relevant tools February 19, 2021
In the three dimensional space, positive definite functions are “bowl-shaped”, e.g., W (x1 , x2 ) = x21 + x22 .
30
25
20
15
10
0
5
4
0 2
0
-2
-5 -4
18
16
14
12
10
0
-5 0 5
4 2 0 -2 -4
12
Xu Chen 3.4 Lyapunov stability theorems February 19, 2021
is negative semi-definite.
• Ė(t) is a derivative along the state trajectory: (7) takes the derivative of E w.r.t. x = [x1 , x2 ]T ; (8) is the time
derivative along the trajectory of the state.
• Generalizing the concept to system ẋ = f (x): let V (x) be a general energy function, the energy dissipation
w.r.t. time is
f1 (x)
dV (x) T
= ∇V (x)f (x) =
∂V ∂V
, ,...,
∂V ..
.
dt ∂x1 ∂x2 ∂xn
| {z } fn (x)
∇V T (x): ∇V (x) is the gradient w.r.t. x
• We concluded stability of the system by analyzing how energy will dissipate to zero along the trajectory of
the state.
Theorem 23. The equilibrium point 0 of ẋ(t) = f (x(t), t) , x (t0 ) = x0 is stable in the sense of Lyapunov if there
exists a locally positive definite function V (x, t) such that V̇ (x, t) ≤ 0 for all t ≥ t0 and all x in a local region
x : |x| < r for some r > 0.
• V (x, t) satisfying the properties in the theorem is called the Lyapunov function
• i.e., V (x) is positive definite and V̇ (x) is negative semidefinite for all states in a local region |x| < r
Theorem 24. The equilibrium point 0 of ẋ(t) = f (x(t), t) , x (t0 ) = x0 is locally asymptotically stable if there
exists a Lyapunov function V (x) such that for some r > 0, V̇ (x) is negative definite ∀ |x| < r.
Theorem 25. The equilibrium point 0 of ẋ(t) = f (x(t), t) , x (t0 ) = x0 is globally asymptotically stable if there
exists a Lyapunov function V (x) such that V (x) is positive definite and V̇ (x) is negative definite.
• for linear system ẋ = Ax, a good Lyapunov candidate is the quadratic function V (x) = xT P x where P = P T
and P 0
• the derivative along the state trajectory is then
V̇ (x) = ẋT P x + xT P ẋ
T
= (Ax) P x + xT P Ax
= xT AT P + P A x
13
Xu Chen 3.4 Lyapunov stability theorems February 19, 2021
Theorem 26. For system ẋ = Ax with A ∈ Rn×n , the origin is asymptotically stable if and only if ∃ Q 0, such
that the Lyapunov equation
AT P + P A = −Q
has a unique positive definite solution P 0, P T = P .
Proof. ⇒: from Theorem 11,
V̇ xT Qx (λQ )min
=− T ≤− =⇒ V (t) ≤ e−αt V (0)
V x Px (λP )max
| {z }
,α
Since Q and P are positive definite, (λQ )min > 0 and (λP )max > 0. Thus α > 0 and V (t) decays exponentially to
zero. Because V (x) is a positive definite function of x, V (x) = 0 only at x = 0. Therefore, the response x of system
ẋ = Ax will go to 0 as t → ∞, regardless of the initial condition.4
⇐: if the zero state of ẋ = Ax is asymptotically stable, then all eigenvalues of A have negative real parts. For
any Q, the Lyapunov equation has a unique solution P . Note x (t) = eAt x0 → 0 as t → ∞. We have
:0
Z ∞
d T
Z ∞
T T
xT (t) AT P + T A x (t) dt
P x (∞) − x (0) P x (0) =
x (∞)
x (t) P x (t) dt = −
dt
Z0 ∞ Z ∞ 0
T T
T
⇒ x (0) P x (0) = x (t) Qx (t) dt = x (0) eA t QeAt x (0) dt
0 0
Thus P is positive definite. Also, P has the following closed form solution:
Z ∞
T
P = eA t QeAt dt
0
−1 1
Example 27. Given system model ẋ = Ax, A = , consider solving the Lyapunov equation
−1 0
T
−1 1 p11 p12 p11 p12 −1 1 1 0
+ =−
−1 0 p12 p22 p12 p22 −1 0 0 1
| {z } | {z }
P Q
namely
−p11 − p12 −p12 − p22 −p11 − p12 p11 −1 0
+ =
p11 p12 −p12 − p22 p12 0 −1
We need
−2p11 − 2p12 = −1
p11 = 1
−p12 − p22 + p11 = 0 ⇒ p22 = 3/2
2p12 = −1 p12 = −1/2
To check whether P is positive definite or not, we check the leading principle minors: p11 > 0, p11 p22 − p212 > 0
⇒ P 0. Thus, asymptotic stability holds.
Observations:
4 In fact, as xT P x ≥ (λ )
P min kxk , we have exponential convergence: (λP )min kxk ≤ e
2 2 −αt V (0) ⇒ kxk2 ≤ e−αt V (0) / (λ )
P min ≤
e−αt (λP )max kx(0)k2 / (λP )min .
14
Xu Chen 3.4 Lyapunov stability theorems February 19, 2021
T
a11 a12 p11 p12 p11 p12 a11 a12 q11 q12
+ =−
a21 a22 p12 p22 p12 p22 a21 a22 q21 q22
| {z }| {z } | {z }| {z } | {z }
AT P P A Q
⇓
| | | | | |
a11 a12
AT p 1 p2 + p1 p2 = − q1 q2
a21 a22
| | | | | |
• can show that LA is invertible if and only if λi + λj 6= 0 for all eigenvalues of A. (see Section 3.7 of Linear
System Theory and Design by Chen.)
• To check, let AT ui = λi ui and AT uj = λj uj be eigenvalue eigenvector pairs of AT . Note that ui uTj A +
T
AT ui uTj = ui (λj uj ) + λi ui uTj = (λi + λj ) ui uTj . So λi + λj is an eigenvalue of the operator LA (P ). If
λi + λj 6= 0, the operator is invertible.
√
−1 1
Example 28. A = , λ1,2 = −0.5 ± i 3/2
−1 0
T
A + a11 I a21 I
LA = I ⊗ AT + AT ⊗ I =
a12 I AT + a22 I
−1 − 1 −1 −1 0 −2 −1 −1 0
1 0 − 1 0 −1 1 −1 0 −1
= =
1 0 −1 −1 1 0 −1 −1
0 1 1 0 0 1 1 0
√ √
The eigenvalues of LA are, e.g., by Matlab, −1, −1, −1 − 3, −1 + 3, which are precisely λ1 + λ1 , λ1 + λ2 , λ2 + λ1 ,
λ2 + λ2 .
15
Xu Chen 3.5 Instability theorem February 19, 2021
Theorem 29. The equilibrium state 0 of ẋ = f (x) is unstable if there exists a function W (x) such that
• Ẇ (x) is positive definite locally: Ẇ (x) > 0 ∀ |x| < r for some r and Ẇ (0) = 0
• W (0) = 0
• there exist states x arbitrarily close to the origin such that W (x) > 0
V (x) = xT P x, P = P T 0
The above gives the discrete-time Lyapunov stability theorem for LTI systems.
Theorem 30. For system x (k + 1) = Ax (k) with A ∈ Rn×n , the origin is asymptotically stable if and only if
∃ Q 0, such that the discrete-time Lyapunov equation
AT P A − P = −Q
• Solution to the discrete-time Lyapunov equation, when asymptotic stability holds (A is Schur), is from the
following:
∞ ∞
:0 X
T
T X k
xT (0) AT QAk x (0)
V
(x
(∞)) − V (x (0)) = x (k) A P A − P x (k) = −
k=0 k=0
∞
X k
⇒P = AT QAk
k=0
:0
where because x → 0 as t → ∞ under asymptotic stability.
V(x
(∞))
• Can show that the discrete-time Lyapunov operator LA = AT P A − P is invertible if and only if for all i, j
(λA )i (λA )j 6= 1
16
Xu Chen February 19, 2021
4 Recap
• Internal stability
– Stability in the sense of Lyapunov: ε, δ conditions
– Asymptotic stability
• Stability analysis of linear time invariant systems (ẋ = Ax or x(k + 1) = Ax(k))
17