# Control Systems/State-Space Stability

| The Wikibook of: Control Systems and Control Engineering | Table of Contents | All Versions | PDF Version |
| The Wikibook of: Control Systems and Control Engineering | ← Stability | Discrete Time Stability → | Glossary |

## State-Space Stability

If a system is represented in the state-space domain, it doesn't make sense to convert that system to a transfer function representation (or even a transfer matrix representation) in an attempt to use any of the previous stability methods. Luckily, there are other analysis methods that can be used with the state-space representation to determine if a system is stable or not. First, let us first introduce the notion of unstability:

### Unstable

    A system is said to be unstable if the system response approaches infinity as time approaches infinity. If our system is G(t), then, we can say a system is unstable if:
       $\lim _{t\to \infty }\|G(t)\|=\infty$
Also, a key concept when we are talking about stability of systems is the concept of an equilibrium point:

### Equilibrium Point

    Given a system f such that:
    $x'(t)=f(x(t))$
A particular state x$_e$ is called an equilibrium point if
    $f(x_{e})=0$
for all time t in the interval $[t_{0},\infty )$, where t$_0$ is the starting time of the system.
The definitions below typically require that the equilibrium point be zero. If we have an equilibrium point x$_e$ = a, then we can use the following change of variables to make the equilibrium point zero:
    ${\bar {x}}=x_{e}-a=0$
We will also see below that a system's stability is defined in terms of an equilibrium point. Related to the concept of an equilibrium point is the notion of a zero point:

### Zero State

    A state x$_z$ is a zero state if x$_z$ = 0. A zero state may or may not be an equilibrium point.

### Stability Definitions

The equilibrium x = 0 of the system is stable if and only if the solutions of the zero-input state equation are bounded. Equivalently, x = 0 is a stable equilibrium if and only if for every initial time t$_0$, there exists an associated finite constant k(t$_0$) such that:
    $\operatorname {sup} _{t\geq t_{0}}\|\phi (t,t_{0})\|=k(t_{0})<\infty$
Where sup is the supremum, or "maximum" value of the equation. The maximum value of this equation must never exceed the arbitrary finite constant k (and therefore it may not be infinite at any point).

#### Uniform Stability

    The system is defined to be uniformly stable if it is stable for all initial values of t$_0$:
    $\operatorname {sup} _{t\geq 0}[\operatorname {sup} _{t\geq t_{0}}\|\phi (t,t_{0})\|]=k_{0}<\infty$
Uniform stability is a more general, and more powerful form of stability than was previously provided.

#### Asymptotic Stability

    A system is defined to be asymptotically stable if:
    $\lim _{t\to \infty }\|\phi (t,t_{0})\|=0$
A time-invariant system is asymptotically stable if all the eigenvalues of the system matrix A have negative real parts. If a system is asymptotically stable, it is also BIBO stable. However the inverse is not true: A system that is BIBO stable might not be asymptotically stable.

#### Uniform Asymptotic Stability

    A system is defined to be uniformly asymptotically stable if the system is asymptotically stable for all values of t$_0$.

#### Exponential Stability

    A system is defined to be exponentially stable if the system response decays exponentially towards zero as time approaches infinity.
For linear systems, uniform asymptotic stability is the same as exponential stability. This is not the case with non-linear systems.

### Marginal Stability

Here we will discuss some rules concerning systems that are marginally stable. Because we are discussing eigenvalues and eigenvectors, these theorems only apply to time-invariant systems.
* A time-invariant system is marginally stable if and only if all the eigenvalues of the system matrix A are zero or have negative real parts, and those with zero real parts are simple roots of the minimal polynomial of A.
* The equilibrium x = 0 of the state equation is uniformly stable if all eigenvalues of A have non-positive real parts, and there is a complete set of distinct eigenvectors associated with the eigenvalues with zero real parts.
* The equilibrium x = 0 of the state equation is exponentially stable if and only if all eigenvalues of the system matrix A have negative real parts.

## Eigenvalues and Poles

A Linearly Time Invariant (LTI) system is stable (asymptotically stable, see above) if all the eigenvalues of A have negative real parts. Consider the following state equation:
    $x'=Ax(t)+Bu(t)$
We can take the Laplace Transform of both sides of this equation, using initial conditions of x$_0$ = 0:
    $sX(s)=AX(s)+BU(s)$
Subtract AX(s) from both sides:
    $sX(s)-AX(s)=BU(s)$
    $(sI-A)X(s)=BU(s)$
Assuming (sI - A) is nonsingular, we can multiply both sides by the inverse:
    $X(s)=(sI-A)^{-1}BU(s)$
Now, if we remember our formula for finding the matrix inverse from the adjoint matrix:
    $A^{-1}={\frac {\operatorname {adj} (A)}{|A|}}$
We can use that definition here:
    $X(s)={\frac {\operatorname {adj} (sI-A)BU(s)}{|(sI-A)|}}$
Let's look at the denominator (which we will now call D(s)) more closely. To be stable, the following condition must be true:
    $D(s)=|(sI-A)|=0$
And if we substitute λ for s, we see that this is actually the characteristic equation of matrix A! This means that the values for s that satisfy the equation (the poles of our transfer function) are precisely the eigenvalues of matrix A. In the S domain, it is required that all the poles of the system be located in the left-half plane, and therefore all the eigenvalues of A must have negative real parts.

## Impulse Response Matrix

We can define the Impulse response matrix, G(t, τ) in order to define further tests for stability:
[Impulse Response Matrix]
    $G(t,\tau )=\left\{{\begin{matrix}C(t)\phi (t,\tau )B(\tau )&{\mbox{ if }}t\geq \tau \\0&{\mbox{ if }}t<\tau \end{matrix}}\right.$
The system is uniformly stable if and only if there exists a finite positive constant L such that for all time t and all initial conditions t$_0$ with $t\geq t_{0}$ the following integral is satisfied:
    $\int _{0}^{t}\|G(t,\tau )\|d\tau \leq L$
In other words, the above integral must have a finite value, or the system is not uniformly stable.
In the time-invariant case, the impulse response matrix reduces to:
    $G(t)=\left\{{\begin{matrix}Ce^{At}B&{\mbox{ if }}t\geq 0\\0&{\mbox{ if }}t<0\end{matrix}}\right.$
In a time-invariant system, we can use the impulse response matrix to determine if the system is uniformly BIBO stable by taking a similar integral:
    $\int _{0}^{\infty }\|G(t)\|dt\leq L$
Where L is a finite constant.

## Positive Definiteness

These terms are important, and will be used in further discussions on this topic.
* f(x) is positive definite if f(x) > 0 for all x.
* f(x) is positive semi-definite if $f(x)\geq 0$ for all x, and f(x) = 0 only if x = 0.
* f(x) is negative definite if f(x) < 0 for all x.
* f(x) is negative semi-definite if $f(x)\leq 0$ for all x, and f(x) = 0 only if x = 0.
A Hermitian matrix X is positive definite if all its principle minors are positive. Also, a matrix X is positive definite if all its eigenvalues have positive real parts. These two methods may be used interchangeably.
Positive definiteness is a very important concept. So much so that the Lyapunov stability test depends on it. The other categorizations are not as important, but are included here for completeness.

## Lyapunov Stability
### Lyapunov's Equation

For linear systems, we can use the Lyapunov Equation, below, to determine if a system is stable. We will state the Lyapunov Equation first, and then state the Lyapunov Stability Theorem.
[Lyapunov Equation]
    $MA+A^{T}M=-N$
Where A is the system matrix, and M and N are p × p square matrices.

#### Lyapunov Stability Theorem

    An LTI system $x'=Ax$ is stable if there exists a matrix M that satisfies the Lyapunov Equation where N is an arbitrary positive definite matrix, and M is a unique positive definite matrix.
Notice that for the Lyapunov Equation to be satisfied, the matrices must be compatible sizes. In fact, matrices A, M, and N must all be square matrices of equal size. Alternatively, we can write:

#### Lyapunov Stability Theorem (alternate)

    If all the eigenvalues of the system matrix A have negative real parts, then the Lyapunov Equation has a unique solution M for every positive definite matrix N, and the solution can be calculated by:
    $M=\int _{0}^{\infty }e^{A^{T}t}Ne^{At}dt$
If the matrix M can be calculated in this manner, the system is asymptotically stable.
| ← Stability | Control Systems | Discrete Time Stability → |