MSc in Computer Engineering, Cybersecurity and Artificial - - PowerPoint PPT Presentation

msc in computer engineering cybersecurity and artificial
SMART_READER_LITE
LIVE PREVIEW

MSc in Computer Engineering, Cybersecurity and Artificial - - PowerPoint PPT Presentation

MSc in Computer Engineering, Cybersecurity and Artificial Intelligence Course FDE , a.a. 2019/2020, Lecture 9 Analysis of nonlinear dynamical systems: the second Lyapunov method Prof. Mauro Franceschelli Dept. of Electrical and Electronic


slide-1
SLIDE 1

MSc in Computer Engineering, Cybersecurity and Artificial Intelligence Course FDE , a.a. 2019/2020, Lecture 9 Analysis of nonlinear dynamical systems: the second Lyapunov method

  • Prof. Mauro Franceschelli
  • Dept. of Electrical and Electronic Engineering

University of Cagliari, Italy

Wednsday, 15th April 2020

1 / 42

slide-2
SLIDE 2

Outline

Introduction The second Lyapunov method (Continuous time) The second Lyapunov method (Discrete time) Computation of Lyapunov functions for linear systems

2 / 42

slide-3
SLIDE 3

Introduction

Preliminaries

  • The first Lyapunov method (also called indirect method) is a systematic

method to establish local asymptotic stability of equilibrium points for nonlinear systems which can be linearized at that point.

  • Local stability guarantees that the state trajectory converges to the

equilibrium point only if the initial/current state is arbitrarily close to it.

  • In general it is of interest to guarantee global asymptotic stability or at

least asymptotic stability within a region of attraction, i.e., a region of the state space which is not infinitesimally small.

3 / 42

slide-4
SLIDE 4

Introduction

Preliminaries

  • The first Lyapunov method (also called indirect method) is a systematic

method to establish local asymptotic stability of equilibrium points for nonlinear systems which can be linearized at that point.

  • Local stability guarantees that the state trajectory converges to the

equilibrium point only if the initial/current state is arbitrarily close to it.

  • In general it is of interest to guarantee global asymptotic stability or at

least asymptotic stability within a region of attraction, i.e., a region of the state space which is not infinitesimally small.

3 / 42

slide-5
SLIDE 5

Introduction

Preliminaries

  • The first Lyapunov method (also called indirect method) is a systematic

method to establish local asymptotic stability of equilibrium points for nonlinear systems which can be linearized at that point.

  • Local stability guarantees that the state trajectory converges to the

equilibrium point only if the initial/current state is arbitrarily close to it.

  • In general it is of interest to guarantee global asymptotic stability or at

least asymptotic stability within a region of attraction, i.e., a region of the state space which is not infinitesimally small.

3 / 42

slide-6
SLIDE 6

Introduction

Preliminaries

  • The most powerful method for stability analysis of nonlinear dynamical

systems is the second Lyapunov method, also called the direct method.

  • The second Lyapuniov method provides a sufficient condition to

guarantee the stability properties of equilibrium points in nonlinear dynamical systems if a so-called Lyapunov function is found/known.

  • Current research topics in control and systems engineering involve

Lyapunov functions to guarantee the stability properties of nonlinear dynamical systems involved in all applications (robotics, automation, aerospace, energy systems etc.).

4 / 42

slide-7
SLIDE 7

Introduction

Preliminaries

  • The most powerful method for stability analysis of nonlinear dynamical

systems is the second Lyapunov method, also called the direct method.

  • The second Lyapuniov method provides a sufficient condition to

guarantee the stability properties of equilibrium points in nonlinear dynamical systems if a so-called Lyapunov function is found/known.

  • Current research topics in control and systems engineering involve

Lyapunov functions to guarantee the stability properties of nonlinear dynamical systems involved in all applications (robotics, automation, aerospace, energy systems etc.).

4 / 42

slide-8
SLIDE 8

Introduction

Preliminaries

  • The most powerful method for stability analysis of nonlinear dynamical

systems is the second Lyapunov method, also called the direct method.

  • The second Lyapuniov method provides a sufficient condition to

guarantee the stability properties of equilibrium points in nonlinear dynamical systems if a so-called Lyapunov function is found/known.

  • Current research topics in control and systems engineering involve

Lyapunov functions to guarantee the stability properties of nonlinear dynamical systems involved in all applications (robotics, automation, aerospace, energy systems etc.).

4 / 42

slide-9
SLIDE 9

Introduction

Preliminaries

  • Before introducing the second Lyapunov method we need to review some

fundamental definitions. Definition A scalar, continuous function V (①) : Rn → R is said positive definite at ①′ if there exists a region Ω of the state space (which forms a ball around ①′) such that V (①) > 0 for ① ∈ Ω \ {①′}, while V (①′) = 0. If Ω is the whole state space, then V (①) is said to be globally positive definite. Thus, a function positive definite in ①′ takes positive values for each state ① in Ω, except in the point ①′ where the function has zero value.

5 / 42

slide-10
SLIDE 10

Introduction

Preliminaries

  • It is useful to give a geometric interpretation of this concept. To this end let us suppose that

① ∈ R2. In such a case, V = V (x1, x2). Figure (a) is an example of the typical shape of a function V (①) in a three dimensional space and around the point [x′

1 x′ 2]T .

  • In this case the V (①) has the shape of a convex paraboloid with a point of minimum value

corresponding to ① = ①′.

V x2 x1 x' V(x)=V1 V(x)=V2 V(x)=V3 (a) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 (b) x'

Figure: Typical shape of a positive definite function V (x1, x2) in ①′

6 / 42

slide-11
SLIDE 11

Introduction

Preliminaries

  • A second geometric interpretation can be given in the state space, i.e., the plane defined by

the axes x1 x2. In Figure (b) the so-called level curves V = V1, V2, V3 define a set of closed curves around the point ①′.

  • Such curves are the intersection of the paraboloid with horizontal planes, projected in the

plane (x1, x2).

V x2 x1 x' V(x)=V1 V(x)=V2 V(x)=V3 (a) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 (b) x'

Figure: Typical shape of a positive definite function V (x1, x2) in ①′

7 / 42

slide-12
SLIDE 12

Introduction

Preliminaries

  • Observe that the level curve V1 corresponding to a constant value smaller than an other, is

fully inside the level curve corresponding to a larger value of V2.

  • Note that such curves can not ever intersect with one another. In such a case the function

V (①) would not be uniquely defined because it would take two different values in correspondence to a single point ①.

V x2 x1 x' V(x)=V1 V(x)=V2 V(x)=V3 (a) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 (b) x'

Figure: Typical shape of a positive definite function V (x1, x2) in ①′

8 / 42

slide-13
SLIDE 13

Introduction

Preliminaries

  • An example of globally positive definite function at the origin is given by

V (①) = x2

1/a1 + x2 2/a2,

with a1, a2 > 0.

  • In particular, function V (①) has the shape of an elliptic paraboloid with

the open end pointing upward with its vertex located at the origin of the plane x1, x2, i.e.,V (0) = 0.

9 / 42

slide-14
SLIDE 14

Introduction

Preliminaries

  • An example of globally positive definite function at the origin is given by

V (①) = x2

1/a1 + x2 2/a2,

with a1, a2 > 0.

  • In particular, function V (①) has the shape of an elliptic paraboloid with

the open end pointing upward with its vertex located at the origin of the plane x1, x2, i.e.,V (0) = 0.

9 / 42

slide-15
SLIDE 15

Introduction

Preliminaries

Definition A scalar and continuous function V (①) is said to be positive semidefinite at ①′ if there exists a region Ω of the state space (which forms a ball around the point ①′) such that V (①) ≥ 0 for ① ∈ Ω \ {①′}, while V (①′) = 0. If Ω is the whole state space, then V (①) is said to be globally positive semidefinite. Thus, a positive semidefinite function at ①′ takes nonnegative values for each state ① in the region Ω, while at ①′ the function is equal to zero.

10 / 42

slide-16
SLIDE 16

Introduction

Preliminaries

An example of scalar function defined in R2 positive semidefinite at the

  • rigin is

V (①) = x2

1

11 / 42

slide-17
SLIDE 17

Introduction

Preliminaries

  • The opposite of a positive definite function is a negative definite

function. Definition A scalar and continuous function V (①) is (globally) negative definite at ①′ if −V (①) is (globally) positive definite at ①′.

12 / 42

slide-18
SLIDE 18

Introduction

Preliminaries

Definition A scalar and continuous function V (①) is (globallly) negative semidefinite at ①′ if −V (①) is (globally) positive semidefinite at ①′. To these concepts we can give a geometric interpretation similar to that for positive definite functions.

13 / 42

slide-19
SLIDE 19

Outline

Introduction The second Lyapunov method (Continuous time) The second Lyapunov method (Discrete time) Computation of Lyapunov functions for linear systems

14 / 42

slide-20
SLIDE 20

The second Lyapunov method (Continuous time)

Intuition behind the second Lyapunov method

  • The second Lyapunov method is inspired by the fundamental principles
  • f mechanics.
  • If the total energy of a mechanical system is dissipated continuously with

time, then the mechanical system tends to settle into a particular configuration (equilibrium) (think of the pendulum).

  • Furthermore, the total energy of a system is a positive definite function

and the fact that such energy decreases with time implies that its time derivative is a negative definite function.

15 / 42

slide-21
SLIDE 21

The second Lyapunov method (Continuous time)

Intuition behind the second Lyapunov method

  • The second Lyapunov method formalizes and generalizes exactly this

criterion: If a system has an asymptotically stable equilibrium point and it is perturbed around such a point, as long as it is inside its domain/region of attraction, then the total energy stored in the system will tend to decrease until it reaches a minimum value in a state corresponding to the asymptotically stable equilibrium point.

16 / 42

slide-22
SLIDE 22

The second Lyapunov method (Continuous time)

Intuition behind the second Lyapunov method

  • A formalization of such intuitive principle is not easy if a a function representing

the total energy of the system as function of its configuration in the state space is not available (as it is most often, especially for systems which are not mechanical).

  • To overcome this difficulty, Lyapunov generalized this concept to a function

which represents a fictitious total energy of the system (but with no corresponding physical meaning) which has been later named as Lyapunov function and usually denoted with the letter V .

17 / 42

slide-23
SLIDE 23

The second Lyapunov method (Continuous time)

Intuition behind the second Lyapunov method

  • A formalization of such intuitive principle is not easy if a a function representing

the total energy of the system as function of its configuration in the state space is not available (as it is most often, especially for systems which are not mechanical).

  • To overcome this difficulty, Lyapunov generalized this concept to a function

which represents a fictitious total energy of the system (but with no corresponding physical meaning) which has been later named as Lyapunov function and usually denoted with the letter V .

17 / 42

slide-24
SLIDE 24

The second Lyapunov method (Continuous time)

Intuition behind the second Lyapunov method

  • In general function V is a function of the state ① of a dynamical system and of

time t,i.e., V = V (①, t).

  • If the system is autonomous then the Lyapunov function does not depend

explicitly on time, i.e., V = V (①).

  • Note, however that in such a case function V still depends on time but

indirectly, it depends on time through the state ① = ①(t) of the dynamical system.

18 / 42

slide-25
SLIDE 25

The second Lyapunov method (Continuous time)

Intuition behind the second Lyapunov method

  • In general function V is a function of the state ① of a dynamical system and of

time t,i.e., V = V (①, t).

  • If the system is autonomous then the Lyapunov function does not depend

explicitly on time, i.e., V = V (①).

  • Note, however that in such a case function V still depends on time but

indirectly, it depends on time through the state ① = ①(t) of the dynamical system.

18 / 42

slide-26
SLIDE 26

The second Lyapunov method (Continuous time)

Intuition behind the second Lyapunov method

  • In general function V is a function of the state ① of a dynamical system and of

time t,i.e., V = V (①, t).

  • If the system is autonomous then the Lyapunov function does not depend

explicitly on time, i.e., V = V (①).

  • Note, however that in such a case function V still depends on time but

indirectly, it depends on time through the state ① = ①(t) of the dynamical system.

18 / 42

slide-27
SLIDE 27

The second Lyapunov method (Continuous time)

The second Lyapunov method

Theorem (Second Lyapunov method) Consider an autonomous dynamical system represented by ˙ ①(t) = ❢ (①(t)) where the vector function ❢ (·) is continuous together with its first partial derivatives ∂❢ /∂xi, for i = 1, · · · , n. Let ①e be an equilibrium point for such a system, i.e., ❢ (①e) = 0.

  • If there exists a scalar function V (①), continuous and with continuous first partial derivatives,

positive definite at ①e and such that ˙ V (①) = dV (①) dt = ∂V (①) ∂① · d① dt = ∂V (①) ∂① · ❢ (①) = ∂V ∂x1 ˙ x1 + ∂V ∂x2 ˙ x2 + · · · + ∂V ∂xn ˙ xn is negative semidefinite at ①e, then ①e is a stable equilibrium point.

  • If, furthermore, ˙

V (①) is negative definite at ①e, then ①e is an equilibirum point asymptotically stable.

19 / 42

slide-28
SLIDE 28

The second Lyapunov method (Continuous time)

The second Lyapunov method: Proof

Suppose just for clarity’s sake that the system under study is of order two to clearly visualize its state space. Now, observe the figure below where it is highlighted the equilibrium state ①e and some level curves of function V (①).

δ (ε) ε xe x(0) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 20 / 42

slide-29
SLIDE 29

The second Lyapunov method (Continuous time)

The second Lyapunov method: Proof

To prove that ①e is a stable equilibrium point it is sufficient to show that for each ε > 0 there exists a δ(ε) > 0 such that all trajectories that start from ①(0) satisfy the condition ||①(0) − ①e|| ≤ δ(ε), i.e., all trajectories which start from insie a ball centered at ①e and radius δ(ε), denoted in the following as S(①e, δ(ε)), evolve inside the ball centered at ①e with radius ε, denoted as S(①e, ε).

δ (ε) ε xe x(0) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 21 / 42

slide-30
SLIDE 30

The second Lyapunov method (Continuous time)

The second Lyapunov method: Proof

By hypothesis, function V (①) is continuous and positive definite at ①e, all its level curves have the structure as in the figure below. Therefore, there always exist close curves entirely contained in S(①e, ε). If we fix one of such curves V = V1, let δ(ε) be the radius of the ball centered at ①e and tangent to such a curve. Such a ball is by definition entirely contained in the level curve V = V1.

δ (ε) ε xe x(0) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 22 / 42

slide-31
SLIDE 31

The second Lyapunov method (Continuous time)

The second Lyapunov method: Proof

Now, consider the trajectories with initial state ①(0) inside S(①e, δ(ε)). For such points it holds V (①) ≤ V1 e ˙ V (①) ≤ 0 by hypothesis. Such trajectories will never intersect level curves characterized by constant function values larger than V1 and will remain inside the region delimited by the curve V (①) = V1, enclosed by construction in S(①e, ε), thus proving that ①e is a stable equilibrium point.

δ (ε) ε xe x(0) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 23 / 42

slide-32
SLIDE 32

The second Lyapunov method (Continuous time)

The second Lyapunov method: Proof

If, furthermore, ˙ V (①) < 0 for ① ∈ Ω \ {①e}, then the trajectories with initial state inside S(①e, δ(ε)) will intersect the level curves with ever smaller values of V until the trajectories converge as t → ∞ to ①e, thus proving that it is an asymptotically stable equilibrium point.

δ (ε) ε xe x(0) x1 x2 V(x)=V1 V(x)=V2 V(x)=V3 0 < V1 < V2 < V3 24 / 42

slide-33
SLIDE 33

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • A function V which satisfies the conditions of the second Lyapunov method for some

dynamical system is called Lyapunov function

  • If Lyapunov function is globally positive definite, V (①) → ∞ as ① → ∞ (radially

unbounded) and its time derivative is globally semidefinite (definite) then the equilibrium point is globally stable (or asymptotically stable).

  • The method provides only sufficient conditions for stability and asymptotical stability of an

equilibrium point.

  • Such conditions are not necessary, this means that if we determine a function V which is

positive definite at some equilibrium point ①e, but its time derivative is not negative semidefinite (definite) at ①e, this does not imply that ①e is not a stable equilibrium point (or asymptotically stable).

25 / 42

slide-34
SLIDE 34

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • A function V which satisfies the conditions of the second Lyapunov method for some

dynamical system is called Lyapunov function

  • If Lyapunov function is globally positive definite, V (①) → ∞ as ① → ∞ (radially

unbounded) and its time derivative is globally semidefinite (definite) then the equilibrium point is globally stable (or asymptotically stable).

  • The method provides only sufficient conditions for stability and asymptotical stability of an

equilibrium point.

  • Such conditions are not necessary, this means that if we determine a function V which is

positive definite at some equilibrium point ①e, but its time derivative is not negative semidefinite (definite) at ①e, this does not imply that ①e is not a stable equilibrium point (or asymptotically stable).

25 / 42

slide-35
SLIDE 35

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • A function V which satisfies the conditions of the second Lyapunov method for some

dynamical system is called Lyapunov function

  • If Lyapunov function is globally positive definite, V (①) → ∞ as ① → ∞ (radially

unbounded) and its time derivative is globally semidefinite (definite) then the equilibrium point is globally stable (or asymptotically stable).

  • The method provides only sufficient conditions for stability and asymptotical stability of an

equilibrium point.

  • Such conditions are not necessary, this means that if we determine a function V which is

positive definite at some equilibrium point ①e, but its time derivative is not negative semidefinite (definite) at ①e, this does not imply that ①e is not a stable equilibrium point (or asymptotically stable).

25 / 42

slide-36
SLIDE 36

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • A function V which satisfies the conditions of the second Lyapunov method for some

dynamical system is called Lyapunov function

  • If Lyapunov function is globally positive definite, V (①) → ∞ as ① → ∞ (radially

unbounded) and its time derivative is globally semidefinite (definite) then the equilibrium point is globally stable (or asymptotically stable).

  • The method provides only sufficient conditions for stability and asymptotical stability of an

equilibrium point.

  • Such conditions are not necessary, this means that if we determine a function V which is

positive definite at some equilibrium point ①e, but its time derivative is not negative semidefinite (definite) at ①e, this does not imply that ①e is not a stable equilibrium point (or asymptotically stable).

25 / 42

slide-37
SLIDE 37

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • Finding a Lyapunov function is in general a difficult task, in some cases is an
  • pen research problem.
  • In the literature there are several systematic methods to compute Lyapunov

functions but only for specific classes of nonlinear systems with special structure.

  • If a Lyapunov function is used to establish stability of an equilibrium point

inside a particular region, it does not mean that the equilibrium point is unstable if the initial state is outside such a region.

  • If an equilibrium point is stable or asymptotically stable, then a Lyapunov

function always exists.

26 / 42

slide-38
SLIDE 38

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • Finding a Lyapunov function is in general a difficult task, in some cases is an
  • pen research problem.
  • In the literature there are several systematic methods to compute Lyapunov

functions but only for specific classes of nonlinear systems with special structure.

  • If a Lyapunov function is used to establish stability of an equilibrium point

inside a particular region, it does not mean that the equilibrium point is unstable if the initial state is outside such a region.

  • If an equilibrium point is stable or asymptotically stable, then a Lyapunov

function always exists.

26 / 42

slide-39
SLIDE 39

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • Finding a Lyapunov function is in general a difficult task, in some cases is an
  • pen research problem.
  • In the literature there are several systematic methods to compute Lyapunov

functions but only for specific classes of nonlinear systems with special structure.

  • If a Lyapunov function is used to establish stability of an equilibrium point

inside a particular region, it does not mean that the equilibrium point is unstable if the initial state is outside such a region.

  • If an equilibrium point is stable or asymptotically stable, then a Lyapunov

function always exists.

26 / 42

slide-40
SLIDE 40

The second Lyapunov method (Continuous time)

The second Lyapunov method: discussion

  • Finding a Lyapunov function is in general a difficult task, in some cases is an
  • pen research problem.
  • In the literature there are several systematic methods to compute Lyapunov

functions but only for specific classes of nonlinear systems with special structure.

  • If a Lyapunov function is used to establish stability of an equilibrium point

inside a particular region, it does not mean that the equilibrium point is unstable if the initial state is outside such a region.

  • If an equilibrium point is stable or asymptotically stable, then a Lyapunov

function always exists.

26 / 42

slide-41
SLIDE 41

The second Lyapunov method (Continuous time)

Example

Consider the nonlinear, autonomous dynamical system ˙ ① = ❢ (①) : ˙ x1(t) = −x1(t) + 2x2(t) ˙ x2(t) = −2x1(t) − x2(t) + x2

2(t).

It is easy to verify that the origin is an equilibrium state −x1 + 2x2 = 0 2x1 − x2 + x2

2 = 0.

27 / 42

slide-42
SLIDE 42

The second Lyapunov method (Continuous time)

Example

To study the stability of the origin choose the Lyapunov function V (①) = x2

1 + x2 2.

Such function has continuous partial derivatives and it is globally positive definite at the origin (V (0) = 0). By deriving V (①) with respect to time, it holds d dt V (①) = ∂V (①) ∂① · ❢ (①) = ∂V ∂x1 ˙ x1 + ∂V ∂x2 ˙ x2 = 2x1 ˙ x1 + 2x2 ˙ x2 = −2x2

1 − 2x2 2(1 − x2)

which is a negative definite function at the origin.

28 / 42

slide-43
SLIDE 43

The second Lyapunov method (Continuous time)

Example

  • Also, if we consider Ω = {① ∈ R2 | x2 < 1}, then ˙

V (①) is strictly negative in Ω.

  • Thus, since V (①) > 0 for ① ∈ R2 and ① = 0, ˙

V (①) < 0 for ① ∈ Ω and ① = 0, V (0) = 0, we can state that by the second Lyapunov method the

  • rigin is an equilibrium point asymptotically stable
  • Furthermore, Ω is a region of attraction for the equilibrium point.

29 / 42

slide-44
SLIDE 44

The second Lyapunov method (Continuous time)

The second Lyapunov method: instability criterion

Theorem (Lyapunov instability criterion) Consider an autonomous system represented by ˙ ①(t) = ❢ (①(t)) where the vector function ❢ (·) is continuous with continuous first partial derivatives ∂❢ /∂xi, for i = 1, · · · , n. Let ①e be an equilibrium point for such a system. If there exists a continuous scalar function V (①) with continuous partial derivatives, positive definite at ①e and such that ˙ V (①) is positive definite at ①e, then ①e is an unstable equilibrium state.

30 / 42

slide-45
SLIDE 45

The second Lyapunov method (Continuous time)

Example

Consider the nonlinear system ˙ ① = ❢ (①) ˙ x1(t) = −2x2(t) + x1(t)(x2

1(t) + x2 2(t))

˙ x2(t) = 2x1(t) + x2(t)(x2

1(t) + x2 2(t)).

it is easy to verify that the origin is an equilibrium state. If we choose as Lyapunov function V (①) = x2

1 + x2 2

and compute its time derivative d dt V (①) = ∂V (①) ∂① · ❢ (①) = ∂V ∂x1 ˙ x1 + ∂V ∂x2 ˙ x2 = 2x1 ˙ x1 + 2x2 ˙ x2 = 2(x2

1 + x2 2)2

we find that its time derivative is positive definite at the origin. Thus, we can conclude that the origin is an unstable equilibrium state.

31 / 42

slide-46
SLIDE 46

The second Lyapunov method (Continuous time)

Example

Consider the nonlinear system ˙ ① = ❢ (①) ˙ x1(t) = −2x2(t) + x1(t)(x2

1(t) + x2 2(t))

˙ x2(t) = 2x1(t) + x2(t)(x2

1(t) + x2 2(t)).

it is easy to verify that the origin is an equilibrium state. If we choose as Lyapunov function V (①) = x2

1 + x2 2

and compute its time derivative d dt V (①) = ∂V (①) ∂① · ❢ (①) = ∂V ∂x1 ˙ x1 + ∂V ∂x2 ˙ x2 = 2x1 ˙ x1 + 2x2 ˙ x2 = 2(x2

1 + x2 2)2

we find that its time derivative is positive definite at the origin. Thus, we can conclude that the origin is an unstable equilibrium state.

31 / 42

slide-47
SLIDE 47

The second Lyapunov method (Continuous time)

Example

Consider the nonlinear system ˙ ① = ❢ (①) ˙ x1(t) = −2x2(t) + x1(t)(x2

1(t) + x2 2(t))

˙ x2(t) = 2x1(t) + x2(t)(x2

1(t) + x2 2(t)).

it is easy to verify that the origin is an equilibrium state. If we choose as Lyapunov function V (①) = x2

1 + x2 2

and compute its time derivative d dt V (①) = ∂V (①) ∂① · ❢ (①) = ∂V ∂x1 ˙ x1 + ∂V ∂x2 ˙ x2 = 2x1 ˙ x1 + 2x2 ˙ x2 = 2(x2

1 + x2 2)2

we find that its time derivative is positive definite at the origin. Thus, we can conclude that the origin is an unstable equilibrium state.

31 / 42

slide-48
SLIDE 48

The second Lyapunov method (Continuous time)

Example

Consider the nonlinear system ˙ ① = ❢ (①) ˙ x1(t) = −2x2(t) + x1(t)(x2

1(t) + x2 2(t))

˙ x2(t) = 2x1(t) + x2(t)(x2

1(t) + x2 2(t)).

it is easy to verify that the origin is an equilibrium state. If we choose as Lyapunov function V (①) = x2

1 + x2 2

and compute its time derivative d dt V (①) = ∂V (①) ∂① · ❢ (①) = ∂V ∂x1 ˙ x1 + ∂V ∂x2 ˙ x2 = 2x1 ˙ x1 + 2x2 ˙ x2 = 2(x2

1 + x2 2)2

we find that its time derivative is positive definite at the origin. Thus, we can conclude that the origin is an unstable equilibrium state.

31 / 42

slide-49
SLIDE 49

The second Lyapunov method (Continuous time)

Example

Consider the nonlinear system ˙ ① = ❢ (①) ˙ x1(t) = −2x2(t) + x1(t)(x2

1(t) + x2 2(t))

˙ x2(t) = 2x1(t) + x2(t)(x2

1(t) + x2 2(t)).

it is easy to verify that the origin is an equilibrium state. If we choose as Lyapunov function V (①) = x2

1 + x2 2

and compute its time derivative d dt V (①) = ∂V (①) ∂① · ❢ (①) = ∂V ∂x1 ˙ x1 + ∂V ∂x2 ˙ x2 = 2x1 ˙ x1 + 2x2 ˙ x2 = 2(x2

1 + x2 2)2

we find that its time derivative is positive definite at the origin. Thus, we can conclude that the origin is an unstable equilibrium state.

31 / 42

slide-50
SLIDE 50

Outline

Introduction The second Lyapunov method (Continuous time) The second Lyapunov method (Discrete time) Computation of Lyapunov functions for linear systems

32 / 42

slide-51
SLIDE 51

The second Lyapunov method (Discrete time)

The Second Lyapunov method (Discrete time)

Consider an autonomous, discrete time nonlinear system: ①(k + 1) = ❢ (①(k)) For discrete time systems we need to introduce the time difference as

  • pposed to the time derivative for the Lyapunov function equivalent. Thus

we denote △V (k) = V (k + 1) − V (k)

33 / 42

slide-52
SLIDE 52

The second Lyapunov method (Discrete time)

The second Lyapunov method (Discrete time)

Theorem (Second Lyapunov method) Consider an autonomous dynamical system represented by ①(k + 1) = ❢ (①(k)) where the vector function ❢ (·) is continuous together with its first partial derivatives ∂❢ /∂xi, for i = 1, · · · , n. Let ①e be an equilibrium point for such a system, i.e., ❢ (①e) = ①e.

  • If there exists a scalar function V (①), continuous and with continuous first partial derivatives,

positive definite at ①e and such that △V (k) = V (❢ (①)) − V (①) is negative semidefinite at ①e, then ①e is a stable equilibrium point.

  • If, furthermore, △V (①) is negative definite at ①e, then ①e is an equilibrium point

asymptotically stable.

34 / 42

slide-53
SLIDE 53

Outline

Introduction The second Lyapunov method (Continuous time) The second Lyapunov method (Discrete time) Computation of Lyapunov functions for linear systems

35 / 42

slide-54
SLIDE 54

Computation of Lyapunov functions for linear systems

The second Lyapunov method (Discrete time): discussion

  • The same remarks made for the second Lyapunov method applied to

continuous time systems apply also to discrete time systems.

  • The main difference consists in the use of a time difference instead of a

time derivative which in turns gives a different expression for the decrement in time of the Lyapunov function (which can be more difficult to analyse depending on the Lyapunov function and on the dynamical system)

36 / 42

slide-55
SLIDE 55

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems

  • If the dynamical system is linear, then there is a systematic method to

numerically compute a Lyapunov function and apply the second Lyapunov method.

  • Recall that a function V (①) = ①TP① for some n × n matrix P is called

quadratic form.

37 / 42

slide-56
SLIDE 56

Computation of Lyapunov functions for linear systems

Properties of quadratic forms

  • Recall that a symmetric matrix has always real eigenvalues
  • A quadratic form is a positive (resp. negative) definite function at the origin, i.e.,

V (①) = ①T P① > 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has strictly positive (resp. negative) eigenvalues.

  • A quadratic form is a positive (resp. negative) semidefinite definite function at the origin, i.e.,

V (①) = ①T P① ≥ 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has positive (resp. negative) eigenvalues, i.e., it may have one or more zero eigenvalues.

  • In general, if we decompose matrix P into symmetric and anti-symmetric part:

P = Psym + Pasym = P + PT 2 + P − PT 2 it holds that V (①) = ①T P① is positive (resp. negative) definite if its symmetric part has strictly positive (resp. negative) eigenvalues. Proof hint: ①T

P−PT 2

  • ① = 0 for all ① ∈ Rn.
  • We say that matrix P is positive definite (resp. positive semidefinite) if its corresponding

quadratic form is positive definite (resp. positive semidefinite)

38 / 42

slide-57
SLIDE 57

Computation of Lyapunov functions for linear systems

Properties of quadratic forms

  • Recall that a symmetric matrix has always real eigenvalues
  • A quadratic form is a positive (resp. negative) definite function at the origin, i.e.,

V (①) = ①T P① > 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has strictly positive (resp. negative) eigenvalues.

  • A quadratic form is a positive (resp. negative) semidefinite definite function at the origin, i.e.,

V (①) = ①T P① ≥ 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has positive (resp. negative) eigenvalues, i.e., it may have one or more zero eigenvalues.

  • In general, if we decompose matrix P into symmetric and anti-symmetric part:

P = Psym + Pasym = P + PT 2 + P − PT 2 it holds that V (①) = ①T P① is positive (resp. negative) definite if its symmetric part has strictly positive (resp. negative) eigenvalues. Proof hint: ①T

P−PT 2

  • ① = 0 for all ① ∈ Rn.
  • We say that matrix P is positive definite (resp. positive semidefinite) if its corresponding

quadratic form is positive definite (resp. positive semidefinite)

38 / 42

slide-58
SLIDE 58

Computation of Lyapunov functions for linear systems

Properties of quadratic forms

  • Recall that a symmetric matrix has always real eigenvalues
  • A quadratic form is a positive (resp. negative) definite function at the origin, i.e.,

V (①) = ①T P① > 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has strictly positive (resp. negative) eigenvalues.

  • A quadratic form is a positive (resp. negative) semidefinite definite function at the origin, i.e.,

V (①) = ①T P① ≥ 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has positive (resp. negative) eigenvalues, i.e., it may have one or more zero eigenvalues.

  • In general, if we decompose matrix P into symmetric and anti-symmetric part:

P = Psym + Pasym = P + PT 2 + P − PT 2 it holds that V (①) = ①T P① is positive (resp. negative) definite if its symmetric part has strictly positive (resp. negative) eigenvalues. Proof hint: ①T

P−PT 2

  • ① = 0 for all ① ∈ Rn.
  • We say that matrix P is positive definite (resp. positive semidefinite) if its corresponding

quadratic form is positive definite (resp. positive semidefinite)

38 / 42

slide-59
SLIDE 59

Computation of Lyapunov functions for linear systems

Properties of quadratic forms

  • Recall that a symmetric matrix has always real eigenvalues
  • A quadratic form is a positive (resp. negative) definite function at the origin, i.e.,

V (①) = ①T P① > 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has strictly positive (resp. negative) eigenvalues.

  • A quadratic form is a positive (resp. negative) semidefinite definite function at the origin, i.e.,

V (①) = ①T P① ≥ 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has positive (resp. negative) eigenvalues, i.e., it may have one or more zero eigenvalues.

  • In general, if we decompose matrix P into symmetric and anti-symmetric part:

P = Psym + Pasym = P + PT 2 + P − PT 2 it holds that V (①) = ①T P① is positive (resp. negative) definite if its symmetric part has strictly positive (resp. negative) eigenvalues. Proof hint: ①T

P−PT 2

  • ① = 0 for all ① ∈ Rn.
  • We say that matrix P is positive definite (resp. positive semidefinite) if its corresponding

quadratic form is positive definite (resp. positive semidefinite)

38 / 42

slide-60
SLIDE 60

Computation of Lyapunov functions for linear systems

Properties of quadratic forms

  • Recall that a symmetric matrix has always real eigenvalues
  • A quadratic form is a positive (resp. negative) definite function at the origin, i.e.,

V (①) = ①T P① > 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has strictly positive (resp. negative) eigenvalues.

  • A quadratic form is a positive (resp. negative) semidefinite definite function at the origin, i.e.,

V (①) = ①T P① ≥ 0 for all ① ∈ Rn and ① = 0 if it is symmetric and has positive (resp. negative) eigenvalues, i.e., it may have one or more zero eigenvalues.

  • In general, if we decompose matrix P into symmetric and anti-symmetric part:

P = Psym + Pasym = P + PT 2 + P − PT 2 it holds that V (①) = ①T P① is positive (resp. negative) definite if its symmetric part has strictly positive (resp. negative) eigenvalues. Proof hint: ①T

P−PT 2

  • ① = 0 for all ① ∈ Rn.
  • We say that matrix P is positive definite (resp. positive semidefinite) if its corresponding

quadratic form is positive definite (resp. positive semidefinite)

38 / 42

slide-61
SLIDE 61

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • Consider an autonomous linear system ˙

①(t) = A①(t)

  • Consider as Lyapunov candidate function V (①) = ①T P① for some positive definite symmetric

matrix P. Notice that it is continuous, it has continuous first partial derivatives, it is globally positive definite and radially unbounded

  • Its time derivative is:

d dt V (①(t))

= ˙ ①T P① + ①T P ˙ ① = ①T AP① + ①T PA① = ①T (AP + PA) ① = −①T Q① where clearly AP + PA = −Q.

  • Thus, if matrix Q is postive definite (notice the minus sign) then the time derivative of the

Lyapunov function is globally negative definite and by the second Lyapunov method the origin is globally asymptotically stable. If Q is positive semidefinite then the origin is just stable.

39 / 42

slide-62
SLIDE 62

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • Consider an autonomous linear system ˙

①(t) = A①(t)

  • Consider as Lyapunov candidate function V (①) = ①T P① for some positive definite symmetric

matrix P. Notice that it is continuous, it has continuous first partial derivatives, it is globally positive definite and radially unbounded

  • Its time derivative is:

d dt V (①(t))

= ˙ ①T P① + ①T P ˙ ① = ①T AP① + ①T PA① = ①T (AP + PA) ① = −①T Q① where clearly AP + PA = −Q.

  • Thus, if matrix Q is postive definite (notice the minus sign) then the time derivative of the

Lyapunov function is globally negative definite and by the second Lyapunov method the origin is globally asymptotically stable. If Q is positive semidefinite then the origin is just stable.

39 / 42

slide-63
SLIDE 63

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • Consider an autonomous linear system ˙

①(t) = A①(t)

  • Consider as Lyapunov candidate function V (①) = ①T P① for some positive definite symmetric

matrix P. Notice that it is continuous, it has continuous first partial derivatives, it is globally positive definite and radially unbounded

  • Its time derivative is:

d dt V (①(t))

= ˙ ①T P① + ①T P ˙ ① = ①T AP① + ①T PA① = ①T (AP + PA) ① = −①T Q① where clearly AP + PA = −Q.

  • Thus, if matrix Q is postive definite (notice the minus sign) then the time derivative of the

Lyapunov function is globally negative definite and by the second Lyapunov method the origin is globally asymptotically stable. If Q is positive semidefinite then the origin is just stable.

39 / 42

slide-64
SLIDE 64

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • Consider an autonomous linear system ˙

①(t) = A①(t)

  • Consider as Lyapunov candidate function V (①) = ①T P① for some positive definite symmetric

matrix P. Notice that it is continuous, it has continuous first partial derivatives, it is globally positive definite and radially unbounded

  • Its time derivative is:

d dt V (①(t))

= ˙ ①T P① + ①T P ˙ ① = ①T AP① + ①T PA① = ①T (AP + PA) ① = −①T Q① where clearly AP + PA = −Q.

  • Thus, if matrix Q is postive definite (notice the minus sign) then the time derivative of the

Lyapunov function is globally negative definite and by the second Lyapunov method the origin is globally asymptotically stable. If Q is positive semidefinite then the origin is just stable.

39 / 42

slide-65
SLIDE 65

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

40 / 42

slide-66
SLIDE 66

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

40 / 42

slide-67
SLIDE 67

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

40 / 42

slide-68
SLIDE 68

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Continuous time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

40 / 42

slide-69
SLIDE 69

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Discrete time)

  • Consider a discrete-time autonomous linear system ①(k + 1) = A①(k)
  • Consider as Lyapunov candidate function V (①) = ①T P① for some positive definite symmetric

matrix P. Notice that it is continuous, it has continuous first partial derivatives, it is globally positive definite and radially unbounded

  • Its time difference is:

△V (k) = V (A①(k) − V (①) = ①T AT PA① − ①T P① = ①T AT PA − P

  • ① = −①T Q①

where clearly AT PA − P = −Q.

  • Thus, if matrix Q is positive definite (notice the minus sign) then the time difference of the

Lyapunov function is globally negative definite and by the second Lyapunov method the origin is globally asymptotically stable. If Q it is positive semidefinite then the origin is just stable.

41 / 42

slide-70
SLIDE 70

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Discrete time)

  • Consider a discrete-time autonomous linear system ①(k + 1) = A①(k)
  • Consider as Lyapunov candidate function V (①) = ①T P① for some positive definite symmetric

matrix P. Notice that it is continuous, it has continuous first partial derivatives, it is globally positive definite and radially unbounded

  • Its time difference is:

△V (k) = V (A①(k) − V (①) = ①T AT PA① − ①T P① = ①T AT PA − P

  • ① = −①T Q①

where clearly AT PA − P = −Q.

  • Thus, if matrix Q is positive definite (notice the minus sign) then the time difference of the

Lyapunov function is globally negative definite and by the second Lyapunov method the origin is globally asymptotically stable. If Q it is positive semidefinite then the origin is just stable.

41 / 42

slide-71
SLIDE 71

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Discrete time)

  • Consider a discrete-time autonomous linear system ①(k + 1) = A①(k)
  • Consider as Lyapunov candidate function V (①) = ①T P① for some positive definite symmetric

matrix P. Notice that it is continuous, it has continuous first partial derivatives, it is globally positive definite and radially unbounded

  • Its time difference is:

△V (k) = V (A①(k) − V (①) = ①T AT PA① − ①T P① = ①T AT PA − P

  • ① = −①T Q①

where clearly AT PA − P = −Q.

  • Thus, if matrix Q is positive definite (notice the minus sign) then the time difference of the

Lyapunov function is globally negative definite and by the second Lyapunov method the origin is globally asymptotically stable. If Q it is positive semidefinite then the origin is just stable.

41 / 42

slide-72
SLIDE 72

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Discrete time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

42 / 42

slide-73
SLIDE 73

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Discrete time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

42 / 42

slide-74
SLIDE 74

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Discrete time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

42 / 42

slide-75
SLIDE 75

Computation of Lyapunov functions for linear systems

Computation of Lyapunov functions for linear systems (Discrete time)

  • The matrix equation

ATP + PA = −Q is called the Lyapunov equation which can be solved numerically.

  • If the equilibrium point is stable/asymptotically stable there always

exists a solution to the Lyapunov equation where P is positive definite and Q is positive semidefinite / definite. Existence of matrices P and Q is a necessary and sufficient condition.

  • In fact, given a matrix Q positive definite /semidefinite, if the origin is

stable/ asymptotically stable there always exists a solution P positive definite to the Lyapunov equation.

  • Usually, it is convenient to set Q = I and determine P numerically.

42 / 42