Lyapunov Equation for Continuous-Time Linear Systems
In questa pagina 8
Recap on stability
- Equilibrium: for ; for an LTI system it is .
- An equilibrium can be stable, asymptotically stable (a.s.) or unstable.
- Nonlinear systems: each equilibrium can be stable, a.s. or unstable on its own.
- LTI systems: all equilibria have the same behaviour.
Why look for an alternative to eigenvalues: ill-conditioning
Eigenvalues are ill-conditioned: a tiny change in the matrix can change them a lot.
- has .
- has .
- The matrix with ones on the superdiagonal and in the bottom-left corner (zeros elsewhere) has .
So an eigenvalue test is sensitive to small errors, which motivates the Lyapunov approach.
Motivation: energy of the pendulum
Take a pendulum of mass , length , angle from the rest position. The mechanical energy is with
so at rest ().
If the pendulum is isolated, its energy does not increase. Writing , this gives , so are "limited" by . Stability then corresponds to two facts: the initial energy level , and the energy is not increasing, .
An abstract energy for an LTI system
For any system define an "abstract" energy with
- , for (pendulum: ), and for ;
- for all trajectories .
For LTI systems we consider the class of quadratic functions
which will turn out to be a Lyapunov function. The spectral bounds on are in Positive Definite Matrices and the Sylvester CriterionA symmetric matrix is positive definite when its smallest eigenvalue is positive, and the Sylvester criterion tests this through the signs of the leading minors, which is how energy-like functions x^T P x are checked in Lyapunov arguments.Positive Definite Matrices and the Sylvester Criterion →: needs , and , so a bounded gives a bounded .
Does the energy decrease?
Let . Differentiating (the term with vanishes because is constant):
where
With the extreme eigenvalues of , . Therefore
and integrating,
If , then is bounded by for all .
Requirements:
- for : for all means ( positive definite);
- for with we need ( positive semidefinite); makes positive definite.
Examples of the choice of :
- , guess : , , for , and , which is PD.
- has (a.s.), but guessing gives with eigenvalues , : is not PSD, so is a poor guess even though is a.s.
Theorem and practical use
Theorem. Given asymptotically stable, for every with PD there exists a unique such that . Moreover (clarification given in the next lecture) this is positive definite.
Practical use:
- pick , PD (for example );
- compute from ;
- if is unique and PD, then is a.s. (and satisfies , for , );
- if either is not unique or is not PD, then is not a.s., but we do not know whether it is stable.
If exists, is unique and PD, then
Remarks on the theorem (first version, as on the board): if is not unique, nothing can be inferred about a.s.; if is unique and PD the system is a.s.; the case " unique but not PD" is left with an unfinished remark on the board (the clarified statement above says is then not a.s.).
What if is only PSD?
Example: , with eigenvalues . Then and , with
However is unstable. Since , for every , so does not see the unstable direction.
Bottom line: must be PD for to be a good Lyapunov candidate (energy function).
Example: three ways to analyse
- Eigenvalues. , so and : a.s.
- Lyapunov, choosing first. Take ; then . Sylvester: first minor , but the second minor gives , so is not PD and this choice is useless.
- Lyapunov, following the recipe. Choose , parametrise and compute This gives the system , , , whose solution is Sylvester: the first minor is and the determinant is (the board writes it as a positive number), so and is a.s.
Versione ripasso
- Why not eigenvalues: they are ill-conditioned. has , while gives .
- Idea: an abstract energy , , with for and along trajectories. Pendulum: does not increase when isolated.
- Derivative: with , , where is the Lyapunov equation, .
- Bounds: . Requirements: (, see Positive Definite Matrices and the Sylvester CriterionA symmetric matrix is positive definite when its smallest eigenvalue is positive, and the Sylvester criterion tests this through the signs of the leading minors, which is how energy-like functions x^T P x are checked in Lyapunov arguments.Positive Definite Matrices and the Sylvester Criterion →) and for .
- Theorem: if is asymptotically stable, for every there is a unique with , and this is positive definite. Then .
- Recipe: choose (for example ) and solve for . If is unique and PD, is asymptotically stable; otherwise nothing follows about plain stability.
- only PSD is not enough: with gives , but is unstable.
- Bad guess: is asymptotically stable, but gives with eigenvalues and , which is not PSD.
- Worked example: , eigenvalues . With the equations for give , so is asymptotically stable.
- Typical errors: guessing without checking that is PD; concluding stability from a PSD ; reading the Lyapunov equation as with on the wrong sign.