Lyapunov Tutorial
Lyapunov Tutorial
Stanisław H. Żak
School of Electrical and
Computer Engineering
ECE 675
Spring 2008
1
Outline
Notation using simple examples of
dynamical system models
Objective of analysis of a nonlinear
system
Equilibrium points
Stability
Lyapunov functions
Barbalat’s lemma
2
A Spring-Mass Mechanical System
4
Analysis of the Spring-Mass System
Model
The spring-mass system model is linear
time-invariant (LTI)
Representing the LTI system in standard
state-space format
5
Modeling of the Simple Pendulum
The simple pendulum
6
The Simple Pendulum Model
Apply Newton’s second law
Jθ = − mgl sin θ
where J is the moment of inertia,
J = ml 2
Combining gives
g
θ = − sin θ
l 7
State-Space Model of the Simple
Pendulum
Represent the second-order differential
equation as an equivalent system of two
first-order differential equations
First define state variables,
x1=θ and x2=dθ/dt
Use the above to obtain state–space
model (nonlinear, time invariant)
8
Objectives of Analysis of Nonlinear Systems
Similar to the objectives pursued when
investigating complex linear systems
Not interested in detailed solutions, rather
one seeks to characterize the system
behavior---equilibrium points and their
stability properties
⎡ x1 ⎤ ⎡ f1 (t , x1 ,… , xn )⎤
⎢ x ⎥ ⎢ f (t , x ,… , x )⎥
⎢ 2⎥ = ⎢ 2 1 n ⎥
⎢ ⎥ ⎢ ⎥
⎢ ⎥ ⎢ ⎥
⎣ n⎦ ⎣ n
x f (t , x1 ,… , x )
n ⎦
x = f (t , x ), x ∈ ℜ n
12
More Notation
System model
x (t ) = f (t , x (t )), x (t0 ) = x0
Solution
x (t ) = x (t ; t0 , x0 )
Example: LTI model,
x = Ax , x (0) = x0
Solution of the LTI modeling equation
x (t ) = e x0
At
13
Equilibrium Point
A vector xe is an equilibrium point for a
dynamical system model
x (t ) = f (t , x (t ))
if once the state vector equals to xe it remains
equal to x e for all future time. The equilibrium
point satisfies
f (t , x (t )) = 0
14
Formal Definition of Equilibrium
A point xe is called an equilibrium
point of dx/dt=f(t,x), or simply
an equilibrium, at time t0 if for
all t ≥ t0,
f(t, xe)=0
Note that if xe is an equilibrium
of our system at t0, then it is
also an equilibrium for all τ ≥ t0
15
Equilibrium Points for LTI Systems
16
Equilibrium State for LTI Systems
LTI model
x = f (t , x ) = Ax
Any equilibrium state xe must satisfy
Axe = 0
−1
If A exist, then we have unique equilibrium
state
xe = 0
17
Equilibrium States of Nonlinear
Systems
⎡ x1 ⎤ ⎡ x2 ⎤
⎢x ⎥ = ⎢x − x − x2 ⎥
⎣ 2⎦ ⎣ 1 2 1 ⎦
Two isolated equilibrium states
(1) ⎡0 ⎤ (2 ) ⎡1⎤
xe = ⎢ ⎥ xe =⎢ ⎥
⎣0 ⎦ ⎣0 ⎦
20
Isolated Equilibrium
An equilibrium point xe in Rn is
an isolated equilibrium point if
there is an r>0 such that the r-
neighborhood of xe contains no
equilibrium points other than xe
21
Neighborhood of xe
The r-neighborhood of xe can be
a set of points of the form
24
Lyapunov’s Thesis
25
Lyapunov’s Thesis Translated
26
Some Details About Translation
27
An Informal Definition of Stability
28
Stability Intuitive Interpretation
29
Formal Definition of Stability
An equilibrium state xeq is stable, in the sense
of Lyapunov, if for any given t0 and any positive
scalar ε there exist a positive scalar
δ = δ (t0 , ε )
such that if
x (t0 ) − xe < δ
then
x (t; t0 , x0 ) − xe < ε
for all t ≥ t0
30
Stability Concept in 1D
31
Stability Concepts in 2D
32
Further Discussion of Lyapunov
Stability
33
Lyapunov Stability Game
The adversary picks a region in
the state space of radius ε
You are challenged to find a
region of radius δ such that if the
initial state starts out inside your
region, it remains in his region---
if you can do this, your system is
stable, in the sense of Lyapunov
34
Lyapunov Stability---Is It Any
Good?
Lyapunov stability is weak---it
does not even imply that x(t)
converges to xe as t approaches
infinity
The states are only required to
hover around the equilibrium
state
The stability condition bounds the
amount of wiggling room for x(t) 35
Asymptotic Stability i.s.L
The property of an equilibrium
state of a differential equation
that satisfies two conditions:
(stability) small perturbations
in the initial condition
produce small perturbations
in the solution;
36
Second Condition for Asymptotic
Stability of an Equilibrium
x (t ; t0 , x0 ) → xe as t → ∞
38
Convergence Alone Does Not
Guarantee Asymptotic Stability
Note: it is not sufficient that just
x (t ; t0 , x0 ) → xe as t → ∞
43
Convergence Does Not Mean
Asymptotic Stability (W. Hahn, 1967)
Hahn’s 1967 Example---A
system whose all solutions are
approaching the equilibrium,
xe=0, without this equilibrium
being asymptotically stable
(Antsaklis and Michel, Linear
Systems, 1997, p. 451)
44
Convergence Does Not Mean
Asymptotic Stability (W. Hahn, 1967)
Nonlinear system of Hahn where the origin
is attractive but not a.s.
45
Phase Portrait of Hahn’s 1967 Example
1
0.8
0.6
0.4
0.2
x2
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.5 0 0.5 1 46
x1
Instability in 1D
47
Lyapunov Functions---Basic Idea
Seek an aggregate summarizing
function that continually
decreases toward a minimum
For mechanical systems---
energy of a free mechanical
system with friction always
decreases unless the system is
at rest, equilibrium
48
Lyapunov Function Definition
49
Lyapunov Function Properties
for Continuous Time Systems
Continuous-time system
x(t ) = f ( x(t ))
Equilibrium state of interest
xe
50
Three Properties of a Lyapunov
Function
We seek an aggregate summarizing
function V
V is continuous
V has a unique minimum with
respect to all other points in some
neighborhood of the equilibrium of
interest
Along any trajectory of the
system, the value of V never
increases 51
Lyapunov Theorem for Continuous
Systems
Continuous-time system
x(t ) = f ( x(t ))
Equilibrium state of interest
xe = 0
52
Lyapunov Theorem---Negative Rate
of Increase of V
Ifx(t) is a trajectory, then
V(x(t)) represents the
corresponding values of V along
the trajectory
In order for V(x(t)) not to
increase, we require
V ( x (t )) ≤ 0
53
The Lyapunov Derivative
Use the chain rule to compute the
derivative of V(x(t))
V ( x(t )) = ∇V ( x ) x
T
V ( x(t )) = ∇V ( x ) f ( x )
T
Recall T
⎡ ∂V ∂V ∂V ⎤
∇V ( x ) = ⎢ ⎥
⎣ ∂x1 ∂x2 ∂x2 ⎦ 54
Lyapunov Theorem for LTI Systems
In
an a.s. system the point x(t)
converges to xe=0
56
Lyapunov Theorem for n=2
If a trajectory is converging to
xe=0, it should be possible to
find a nested set of closed curves
V(x1,x2)=c, c≥0, such that
decreasing values of c yield level
curves shrinking in on the
equilibrium state xe=0
57
Lyapunov Theorem and Level
Curves
59
Level Sets
The level curves can be thought
of as contours of a cup-shaped
surface
61
Positive Definite Function With
Respect to the Origin
62
Example: Positive Definite Function
Positive definite function of two
variables
63
Positive Semi-Definite Function---
General Definition
64
Positive Semi-Definite Function With
Respect to the Origin
65
Example: Positive Semi-Definite
Function
An example of positive semi-definite
function of two variables
66
Quadratic Forms
V=xTPx, where P=PT
If P not symmetric, need to
symmetrize it
First observe that because the
transposition of a scalar equals
itself, we have
67
Symmetrizing Quadratic Form
Perform manipulations
Note that
68
Tests for Positive and Positive Semi-
Definiteness of Quadratic Form
V=xTPx, where P=PT, is positive
definite if and only if all
eigenvalues of P are positive
V=xTPx, where P=PT, is positive
semi-definite if and only if all
eigenvalues of P are non-
negative
69
Comments on the Eigenvalue Tests
71
Negative Semi-Definite Quadratic
Form
72
Example: Checking the Sign
Definiteness of a Quadratic Form
Is P, equivalently, is the associated
quadratic form, V=xTPx, pd, psd,
nd, nsd, or neither?
73
Example: Symmetrizing the Underlying
Matrix of the Quadratic Form
Applying the eigenvalue test to
the given quadratic form would
seem to indicate that the
quadratic form is pd, which turns
out to be false
Need to symmetrize the
underlying matrix first and then
can apply the eigenvalue test
74
Example: Symetrized Matrix
Symmetrizing manipulations
76
Stability Test for xe=0 of dx/dt=Ax
Let V=xTPx where P=PT>0
For V to be a Lyapunov function,
that is, for xe=0 to be a.s.,
We used
78
Lyapunov Matrix Equation
Denote
where
79
Terms to Our Vocabulary
Theorem---a major result of
independent interest
Lemma---an auxiliary result that is
used as a stepping stone toward a
theorem
Corollary---a direct consequence of a
theorem, or even a lemma
80
Lyapunov Theorem
The real matrix A is a.s., that is,
all eigenvalues of A have
negative real parts if and only if
for any the solution
of the continuous matrix
Lyapunov equation
Try
Compute
84
Example: Computing Q
Q=I2
P=lyap(A,Q)
imply that
88
More Properties of Time-Varying
Functions
Iff(t) is lower bounded and
decreasing ( ), then it
converges to a limit. (A well-known
result from calculus.)
89
Preparation for Barbalat’s Lemma
Under what conditions
90
Continuous Function
91
Continuity on an Interval
Continuity is a local property of a
function—that is, a function f is
continuous, or not, at a particular
point
A function being continuous on an
interval means only that it is
continuous at each point of the
interval
92
Uniform Continuity
A function f(t) is uniformly
continuous if it is continuous and, in
addition, the size of the changes in
f(t) depends only on the size of the
changes in t but not on t itself
The slope of an uniformly continuous
function slope is bounded, that is,
is bounded
Uniform continuity is a global
property of a function 93
Properties of Uniformly Continuous
Function
Every uniformly continuous function
is continuous, but the converse is not
true
A function is uniformly continuous, or
not, on an entire interval
A function may be continuous at
each point of an interval without
being uniformly continuous on the
entire interval
94
Examples
Uniformly continuous:
f(t) = sin(t)
Note that the slope of the above
function is bounded
Continuous, but not uniformly
continuous on positive real numbers:
f(t) = 1/t
Note that as t approaches 0, the
changes in f(t) grow beyond any
bound 95
State of an a.s. System With
Bounded Input is Bounded
Example of Slotine and Li, “Applied
Nonlinear Control,” p. 124, Prentice
Hall, 1991
Consider an a.s. stable LTI system
with bounded input
as
98
Lyapunov-Like Lemma
Given a real-valued function W(t,x)
such that
W(t,x) is bounded below
W(t,x) is negative semi-definite
is uniformly continuous in
t (or bounded) then
99
Lyapunov-Like Lemma---Example;
see p. 211 of the Text
Interested in the stability of the
origin of the system
where u is bounded
Consider the Lyapunov function
candidate
100
Stability Analysis of the System in
the Example
The Lyapunov derivative of V is