Algorithm Search⌘K

Theoremcore

Lyapunov theorem for linear systems

Also called Lyapunov matrix equation stability test.

A is Hurwitz if and only if for each positive definite Q the equation A^T P + PA = -Q has a positive definite solution P. The solution is then unique.

This theorem says that a real square matrix AA is Hurwitz, with every eigenvalue in the open left half plane, exactly when the linear matrix equation ATP+PA=−QA^T P + P A = -Q has a symmetric positive definite solution PP for a symmetric positive definite QQ. The theorem is a stability test: it turns a question about eigenvalues into a linear system for the entries of PP and a check that P>0P > 0. The Lyapunov equation page is about the equation itself, as a problem of numerical linear algebra, and about the algorithms that solve it; that page writes the equation in the transposed form AX+XAT=−QA X + X A^T = -Q. This page is about what the solution says about AA. It also gives the quadratic Lyapunov function V(x)=xTPxV(x) = x^T P x for x˙=Ax\dot x = A x.

Statement

Here P>0P > 0 means that PP is symmetric positive definite, and Q≥0Q \ge 0 means symmetric positive semidefinite.

Theorem. For A∈Rn×nA \in \mathbb{R}^{n \times n} the following are equivalent.

  1. AA is Hurwitz: Re⁡λ<0\operatorname{Re} \lambda < 0 for every eigenvalue λ\lambda of AA.
  2. There are symmetric matrices P>0P > 0 and Q>0Q > 0 with ATP+PA=−QA^T P + P A = -Q.
  3. For every symmetric Q>0Q > 0 the equation ATP+PA=−QA^T P + P A = -Q has exactly one solution PP, and this PP is symmetric positive definite.

When AA is Hurwitz, the solution for any symmetric QQ is

P=∫0∞eATt Q eAt dt.P = \int_0^\infty e^{A^T t}\, Q\, e^{A t}\, dt .

Theorem (observable form). Let C∈Rp×nC \in \mathbb{R}^{p \times n} and let the pair (A,C)(A, C) be observable. Then AA is Hurwitz if and only if ATP+PA=−CTCA^T P + P A = -C^T C has a solution P>0P > 0. The solution is then unique, and it is the observability Gramian ∫0∞eATtCTCeAt dt\int_0^\infty e^{A^T t} C^T C e^{A t}\, dt.

In plain words

To check whether a linear system settles down, one would normally compute all the eigenvalues of its matrix. The theorem gives another way. Pick any positive weight, for example the identity. Solve one linear system of equations for an unknown symmetric matrix. Then check whether the answer is positive definite, which is a simple factorization. If it is, the system settles down from every starting state, and the answer also gives an energy-like quantity that falls along every motion. If the answer is not positive definite, or if the equations have no unique answer, the system does not settle down. No eigenvalue is needed for any step. The answer also measures the total weighted energy of the motion from each starting state, summed over all time.

Proof

Two facts. For a real matrix, AT=A∗A^T = A^*. For any n×nn \times n matrix XX, the product rule gives

ddt(eATtXeAt)=eATt(ATX+XA)eAt.(1)\frac{d}{dt}\left(e^{A^T t} X e^{A t}\right) = e^{A^T t} \left(A^T X + X A\right) e^{A t} . \tag{1}

1⇒31 \Rightarrow 3. Let AA be Hurwitz and Q>0Q > 0. By the Hurwitz matrix page there are k≥1k \ge 1 and λ>0\lambda > 0 with ∥eAt∥≤ke−λt\|e^{At}\| \le k e^{-\lambda t}, so the integrand of PP is bounded in norm by k2∥Q∥e−2λtk^2 \|Q\| e^{-2\lambda t}, and the integral converges. PP is symmetric because the integrand is.

PP solves the equation. By (1) with X=QX = Q,

ATP+PA=∫0∞ddt(eATtQeAt)dt=lim⁡T→∞eATTQeAT−Q=−Q.A^T P + P A = \int_0^\infty \frac{d}{dt}\left(e^{A^T t} Q e^{A t}\right) dt = \lim_{T \to \infty} e^{A^T T} Q e^{A T} - Q = -Q .

PP is positive definite. For x≠0x \ne 0, xTPx=∫0∞(eAtx)TQ(eAtx) dtx^T P x = \int_0^\infty (e^{At} x)^T Q (e^{At} x)\, dt. The integrand is continuous and nonnegative, and it is positive at t=0t = 0 since xTQx>0x^T Q x > 0. So xTPx>0x^T P x > 0.

Uniqueness. If P1P_1 and P2P_2 are solutions, X=P1−P2X = P_1 - P_2 satisfies ATX+XA=0A^T X + X A = 0. By (1), eATtXeAte^{A^T t} X e^{At} is constant, so it equals its value XX at t=0t = 0. It also tends to 00 as t→∞t \to \infty. So X=0X = 0.

3⇒23 \Rightarrow 2. Take Q=IQ = I.

2⇒12 \Rightarrow 1. Let Av=λvA v = \lambda v with v∈Cnv \in \mathbb{C}^n, v≠0v \ne 0. Then v∗AT=v∗A∗=λˉv∗v^* A^T = v^* A^* = \bar\lambda v^*, and

−v∗Qv=v∗(ATP+PA)v=(λˉ+λ) v∗Pv=2Re⁡λ  v∗Pv.-v^* Q v = v^* (A^T P + P A) v = (\bar\lambda + \lambda)\, v^* P v = 2 \operatorname{Re} \lambda \; v^* P v .

Both v∗Qvv^* Q v and v∗Pvv^* P v are positive, because PP and QQ are real symmetric positive definite. So Re⁡λ<0\operatorname{Re} \lambda < 0. ■\blacksquare

The observable form. If AA is Hurwitz, the same integral with Q=CTCQ = C^T C solves the equation, and the uniqueness argument is the same. For x≠0x \ne 0, xTPx=∫0∞∣CeAtx∣2 dtx^T P x = \int_0^\infty |C e^{At} x|^2\, dt. This is 00 only if CeAtx=0C e^{At} x = 0 for all t≥0t \ge 0; the derivatives at t=0t = 0 then give CAkx=0C A^k x = 0 for all kk, which observability excludes. So P>0P > 0. Conversely, let P>0P > 0 solve the equation, and let Av=λvA v = \lambda v with v≠0v \ne 0. The computation above gives 2Re⁡λ  v∗Pv=−∣Cv∣22 \operatorname{Re} \lambda \; v^* P v = -|C v|^2. By the Popov-Belevitch-Hautus test, observability means Cv≠0C v \ne 0 for every eigenvector vv. So Re⁡λ<0\operatorname{Re} \lambda < 0. ■\blacksquare

The integral formula and this proof follow Khalil (2002, Section 4.3).

Consequences

A quadratic Lyapunov function. For x˙=Ax\dot x = A x and V(x)=xTPxV(x) = x^T P x, V˙=xT(ATP+PA)x=−xTQx\dot V = x^T (A^T P + P A) x = -x^T Q x. So the theorem says that a linear system with a Hurwitz matrix always has a quadratic, radially unbounded, strict Lyapunov function, and that a quadratic one is never missing when the system is asymptotically stable. With λmin⁡(P)∣x∣2≤V≤λmax⁡(P)∣x∣2\lambda_{\min}(P) |x|^2 \le V \le \lambda_{\max}(P) |x|^2 it gives the explicit bound

∣x(t)∣≤λmax⁡(P)/λmin⁡(P)  e−λmin⁡(Q)t/(2λmax⁡(P)) ∣x(0)∣,|x(t)| \le \sqrt{\lambda_{\max}(P) / \lambda_{\min}(P)}\; e^{-\lambda_{\min}(Q) t / (2 \lambda_{\max}(P))}\, |x(0)| ,

as on exponential stability. Kalman and Bertram (1960) used such bounds to estimate transients.

The indirect method. The same PP, computed for the Jacobian AA of a nonlinear system at an equilibrium, is a strict Lyapunov function for the nonlinear system near that equilibrium. That is the proof of Lyapunov's indirect method.

A test with linear algebra only. For a symmetric PP the equation is a linear system of n(n+1)/2n(n+1)/2 equations in n(n+1)/2n(n+1)/2 unknowns. Its matrix in Kronecker form is I⊗AT+AT⊗II \otimes A^T + A^T \otimes I (see Kronecker product), whose eigenvalues are the sums λi+λj\lambda_i + \lambda_j of eigenvalues of AA. So the equation has a unique solution for every QQ exactly when no two eigenvalues of AA add up to 00. To decide Hurwitz, solve the equation for Q=IQ = I and test P>0P > 0 with a Cholesky decomposition. Methods that solve the equation in O(n3)O(n^3) operations are on the Lyapunov equation page. In exact arithmetic the test gives the same answer as the Routh-Hurwitz criterion on the characteristic polynomial, and it avoids forming that polynomial, which can be badly conditioned.

Inertia. The theorem is a special case of the inertia theorem of Ostrowski and Schneider (1962). If ATP+PA=−QA^T P + P A = -Q with Q>0Q > 0 and PP symmetric, then AA has no eigenvalue on the imaginary axis, PP is nonsingular, and the number of eigenvalues of AA with negative real part equals the number of positive eigenvalues of PP; the same holds for positive real parts and negative eigenvalues. So an indefinite solution counts the unstable modes. For A=diag⁡(1,−2)A = \operatorname{diag}(1, -2) and Q=IQ = I, P=diag⁡(−1/2,1/4)P = \operatorname{diag}(-1/2, 1/4): one negative eigenvalue of PP, and one eigenvalue of AA in the right half plane.

Inequalities. Condition 2 can be weakened to the strict matrix inequality ATP+PA<0A^T P + P A < 0 with P>0P > 0, which is the same thing with Q=−(ATP+PA)Q = -(A^T P + P A). In this form one PP can be searched for that works for several matrices at once, which is a linear matrix inequality problem; see quadratic stability and common Lyapunov function.

Discrete time. For xk+1=Axkx_{k+1} = A x_k the analogue is the equation ATPA−P=−QA^T P A - P = -Q: the spectral radius of AA is less than 1 if and only if this equation has a solution P>0P > 0 for some (and then every) Q>0Q > 0. The proof is the same, with the sum ∑k≥0(AT)kQAk\sum_{k \ge 0} (A^T)^k Q A^k in place of the integral and (∣λ∣2−1)v∗Pv=−v∗Qv(|\lambda|^2 - 1) v^* P v = -v^* Q v in place of the eigenvector step.

Tightness

The example with numbers. For A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix} and Q=IQ = I, write P=[p1p2p2p3]P = \begin{bmatrix} p_1 & p_2 \\ p_2 & p_3 \end{bmatrix}. The three distinct entries of ATP+PA=−IA^T P + P A = -I give

−4p2=−1,p1−3p2−2p3=0,2p2−6p3=−1,-4 p_2 = -1, \qquad p_1 - 3 p_2 - 2 p_3 = 0, \qquad 2 p_2 - 6 p_3 = -1 ,

so p2=1/4p_2 = 1/4, p3=1/4p_3 = 1/4, p1=5/4p_1 = 5/4. Then p1>0p_1 > 0 and det⁡P=5/16−1/16=1/4>0\det P = 5/16 - 1/16 = 1/4 > 0, so P>0P > 0, and AA is Hurwitz (its eigenvalues are −1-1 and −2-2). With C=[10]C = \begin{bmatrix} 1 & 0 \end{bmatrix} and Q=CTC=diag⁡(1,0)Q = C^T C = \operatorname{diag}(1, 0), the solution is P=[11/121/41/41/12]P = \begin{bmatrix} 11/12 & 1/4 \\ 1/4 & 1/12 \end{bmatrix}, with det⁡P=1/72>0\det P = 1/72 > 0; this is the observable form, because CA=[01]C A = \begin{bmatrix} 0 & 1 \end{bmatrix}.

Semidefinite QQ without observability. The condition Q>0Q > 0 in statement 2 cannot be weakened to Q≥0Q \ge 0 alone. For A=diag⁡(0,−1)A = \operatorname{diag}(0, -1), P=IP = I and Q=diag⁡(0,2)Q = \operatorname{diag}(0, 2), the equation ATP+PA=−QA^T P + P A = -Q holds with P>0P > 0, but AA has the eigenvalue 00. The pair (A,C)(A, C) with CTC=QC^T C = Q is not observable, since the mode 00 is not seen. In the other direction, for the Hurwitz matrix A=−IA = -I and Q=diag⁡(1,0)Q = \operatorname{diag}(1, 0) the unique solution is P=diag⁡(1/2,0)P = \operatorname{diag}(1/2, 0), which is not positive definite.

A solution that is not definite. When AA is not Hurwitz, the equation can still have a unique solution, but that solution is not positive definite, as in the inertia example A=diag⁡(1,−2)A = \operatorname{diag}(1, -2), P=diag⁡(−1/2,1/4)P = \operatorname{diag}(-1/2, 1/4). So the test must check P>0P > 0; solving the equation is not enough.

No solution. For the rotation A=[01−10]A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}, AT=−AA^T = -A and ATP+PA=PA−APA^T P + P A = P A - A P, which has trace 00. So ATP+PA=−IA^T P + P A = -I, with trace −2-2, has no solution. Here the eigenvalues ±i\pm i add up to 00.

The choice of QQ does not matter, the choice of VV does. Statement 3 holds for every Q>0Q > 0, but a guessed PP need not work: for the same Hurwitz AA, P=IP = I gives AT+A=[0−1−1−6]A^T + A = \begin{bmatrix} 0 & -1 \\ -1 & -6 \end{bmatrix}, which is indefinite. One must solve for PP from QQ, not choose PP first.

Time-varying systems. The theorem has no frozen-time version. For x˙=A(t)x\dot x = A(t) x, a Hurwitz A(t)A(t) at every tt does not make the origin asymptotically stable; see linear time-varying system.

History

Lyapunov's thesis of 1892 already treated linear equations with constant coefficients by the second method: he showed that for a system whose characteristic roots have negative real parts, a quadratic form with a prescribed derivative can be found from a system of linear equations, and that it is definite. The result became a standard tool of control engineering with the papers of Kalman and Bertram (1960), which also gave the discrete-time form and the transient bounds. Ostrowski and Schneider (1962) extended it to the inertia theorem for matrices that are not Hurwitz. Since the 1990s the inequality form ATP+PA<0A^T P + P A < 0 has been the starting point of methods based on linear matrix inequalities and semidefinite programming.

References

  1. A. M. Lyapunov, The general problem of the stability of motion, translated by A. T. Fuller, International Journal of Control 55(3), 531-773, 1992, the second method applied to linear equations with constant coefficients, where the quadratic form is found from a linear system of equations
  2. R. E. Kalman and J. E. Bertram, Control system analysis and design via the second method of Lyapunov: I, continuous-time systems, Journal of Basic Engineering 82(2), 371-393, 1960, stability of linear stationary systems and the estimate of transient behavior from a quadratic Lyapunov function
  3. Hassan K. Khalil, Nonlinear Systems, third edition, Prentice Hall, 2002, Section 4.3, Linear Systems and Linearization (the Lyapunov equation, the integral formula for P and the proof)
  4. A. Ostrowski and H. Schneider, Some theorems on the inertia of general matrices, Journal of Mathematical Analysis and Applications 4, 72-84, 1962, the inertia theorem for the Lyapunov equation
  5. Roger A. Horn and Charles R. Johnson, Topics in Matrix Analysis, Cambridge University Press, 1991, Chapter 2, Stable matrices and inertia

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/QCRCV8/text.yaml