Algorithm Search⌘K

Definitioncore

Observability Gramian

Also called observability Gramian matrix.

W_o(t), the integral of e^(A^T s)C^T C e^(As) from 0 to t, gives the output energy of each initial state and is positive definite exactly for observable pairs. For Hurwitz A it has a limit.

The observability gramian of a linear system x˙=Ax\dot x = A x, y=Cxy = C x is the symmetric matrix Wo(t)=∫0teATsCTCeAsdsW_o(t) = \int_0^t e^{A^T s} C^T C e^{As} ds. For each initial state x0x_0, the number x0TWo(t)x0x_0^T W_o(t) x_0 is the energy of the output on [0,t][0, t], so the gramian shows how strongly each direction of the state shows in the output. It is positive definite exactly when the pair (C,A)(C, A) is observable. When AA is Hurwitz the integral to infinity exists and solves the Lyapunov equation ATWo+WoA+CTC=0A^T W_o + W_o A + C^T C = 0. It is the dual of the controllability gramian.

Definition

Notation. A∈Rn×nA \in \mathbb{R}^{n \times n}, C∈Rp×nC \in \mathbb{R}^{p \times n}, time tt in seconds. P>0P > 0 means positive definite, P≥0P \ge 0 positive semidefinite.

Finite horizon gramian. For t>0t > 0,

Wo(t)=∫0teATsCTCeAs ds.W_o(t) = \int_0^t e^{A^T s} C^T C e^{As}\, ds .

It exists for every AA. With zero input and x(0)=x0x(0) = x_0 the output is y(s)=CeAsx0y(s) = C e^{As} x_0, so

∫0t∣y(s)∣2ds=x0TWo(t) x0.\int_0^t |y(s)|^2 ds = x_0^T W_o(t)\, x_0 .

Its properties follow from those of the controllability gramian by duality: Wo(t)W_o(t) for (C,A)(C, A) is the controllability gramian of (AT,CT)(A^T, C^T).

  • Wo(t)W_o(t) is symmetric, Wo(t)≥0W_o(t) \ge 0, and it grows with tt.
  • ker⁡Wo(t)=ker⁡[C;CA;… ;CAn−1]\ker W_o(t) = \ker [C; CA; \dots; CA^{n-1}] for every t>0t > 0. This kernel is the unobservable subspace: the states whose zero-input output is identically zero. So Wo(t)>0W_o(t) > 0 if and only if (C,A)(C, A) is observable.
  • W˙o=ATWo+WoA+CTC\dot W_o = A^T W_o + W_o A + C^T C with Wo(0)=0W_o(0) = 0.

Infinite horizon gramian. If AA is Hurwitz,

Wo=∫0∞eATsCTCeAs dsW_o = \int_0^\infty e^{A^T s} C^T C e^{As}\, ds

exists and is the unique solution of

ATWo+WoA+CTC=0.A^T W_o + W_o A + C^T C = 0 .

Then Wo>0W_o > 0 if and only if (C,A)(C, A) is observable, and x0TWox0x_0^T W_o x_0 is the total output energy from x0x_0.

A converse. If (C,A)(C, A) is observable and the equation ATP+PA+CTC=0A^T P + P A + C^T C = 0 has a solution P>0P > 0, then AA is Hurwitz. Proof: let Av=λvA v = \lambda v with v≠0v \ne 0 complex. Then v∗(ATP+PA)v=2Re⁡λ v∗Pv=−∣Cv∣2v^* (A^T P + P A) v = 2 \operatorname{Re}\lambda\, v^* P v = -|C v|^2. By the Popov-Belevitch-Hautus test, Cv≠0C v \ne 0, and v∗Pv>0v^* P v > 0, so Re⁡λ<0\operatorname{Re} \lambda < 0. This is a form of the Lyapunov theorem for linear systems with a semidefinite right side.

Estimating the state. Observe y(s)=CeAsx0+w(s)y(s) = C e^{As} x_0 + w(s) on [0,t][0, t]. The least squares estimate is x^0=Wo(t)−1∫0teATsCTy(s) ds\hat x_0 = W_o(t)^{-1} \int_0^t e^{A^T s} C^T y(s)\, ds. If ww is white noise of intensity σ2I\sigma^2 I, the error covariance is σ2Wo(t)−1\sigma^2 W_o(t)^{-1}. So the directions along eigenvectors of Wo(t)W_o(t) with small eigenvalues are the ones that noise hides. In practice a state observer or a Kalman filter does this job online.

Coordinates. Under xˉ=Tx\bar x = T x the pair becomes (CT−1,TAT−1)(C T^{-1}, T A T^{-1}) and the gramian becomes T−TWoT−1T^{-T} W_o T^{-1}. The product WcWoW_c W_o becomes TWcWoT−1T W_c W_o T^{-1}, so its eigenvalues do not change. Their square roots are the Hankel singular values. A balanced realization chooses TT so that both gramians are equal to the same diagonal matrix, and balanced truncation then removes the states that are both hard to reach and hard to see (Moore 1981).

Discrete time. For xk+1=Axkx_{k+1} = A x_k, yk=Cxky_k = C x_k, Wo(N)=∑k=0N−1(AT)kCTCAkW_o(N) = \sum_{k=0}^{N-1} (A^T)^k C^T C A^k, and ∑k=0N−1∣yk∣2=x0TWo(N)x0\sum_{k=0}^{N-1} |y_k|^2 = x_0^T W_o(N) x_0. If AA is Schur, the sum to infinity converges and solves the Stein equation ATWoA−Wo+CTC=0A^T W_o A - W_o + C^T C = 0.

Norms. For G(s)=C(sI−A)−1BG(s) = C (sI - A)^{-1} B with AA Hurwitz, the H2 norm satisfies ∥G∥22=trace⁡(BTWoB)\|G\|_2^2 = \operatorname{trace}(B^T W_o B), which equals trace⁡(CWcCT)\operatorname{trace}(C W_c C^T).

Examples and non-examples

  • Scalar. a=−1a = -1, c=1c = 1: y=e−sx0y = e^{-s} x_0, so Wo(t)=(1−e−2t)/2W_o(t) = (1 - e^{-2t})/2 and Wo=1/2W_o = 1/2, which solves −2W+1=0-2 W + 1 = 0. The output energy from x0x_0 is x02/2x_0^2/2.
  • A two-state system. A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix} (eigenvalues −1-1, −2-2) and C=[1,0]C = [1, 0]. The solution of ATW+WA+CTC=0A^T W + W A + C^T C = 0 is Wo=[11/121/41/41/12]W_o = \begin{bmatrix} 11/12 & 1/4 \\ 1/4 & 1/12 \end{bmatrix}, with det⁡Wo=1/72>0\det W_o = 1/72 > 0. To check it, ATWo=[−1/2−1/61/60]A^T W_o = \begin{bmatrix} -1/2 & -1/6 \\ 1/6 & 0 \end{bmatrix}, and adding its transpose gives [−1000]=−CTC\begin{bmatrix} -1 & 0 \\ 0 & 0 \end{bmatrix} = -C^T C. From x0=(1,0)x_0 = (1, 0) the output is y=2e−t−e−2ty = 2 e^{-t} - e^{-2t}, and ∫0∞y2dt=2−4/3+1/4=11/12\int_0^\infty y^2 dt = 2 - 4/3 + 1/4 = 11/12, the (1,1)(1, 1) entry. With B=(0,1)TB = (0, 1)^T, Wc=diag⁡(1/12,1/6)W_c = \operatorname{diag}(1/12, 1/6), and the eigenvalues of WcWoW_c W_o are (13±153)/288(13 \pm \sqrt{153})/288, so the Hankel singular values are about 0.296800.29680 and 0.046810.04681. Also BTWoB=1/12B^T W_o B = 1/12, the same ∥G∥22\|G\|_2^2 that the controllability gramian gives.
  • A hidden mode (non-example of a positive definite gramian). The same AA with C=[1,1]C = [1, 1] gives Wo=14[1111]W_o = \frac{1}{4} \begin{bmatrix} 1 & 1 \\ 1 & 1 \end{bmatrix}. It is singular. Its kernel is spanned by (1,−1)(1, -1), the eigenvector for the eigenvalue −1-1 that CC does not see, and the transfer function from B=(0,1)TB = (0, 1)^T is 1/(s+2)1/(s + 2).
  • Double integrator. A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, C=[1,0]C = [1, 0]: CeAs=[1,s]C e^{As} = [1, s], so Wo(t)=[tt2/2t2/2t3/3]W_o(t) = \begin{bmatrix} t & t^2/2 \\ t^2/2 & t^3/3 \end{bmatrix} with determinant t4/12t^4/12. The pair is observable. AA is not Hurwitz, so there is no infinite gramian.
  • Positive definite solution without observability (non-example for the converse). Scalar A=0A = 0, C=0C = 0: the equation reads 0=00 = 0, so every P>0P > 0 solves it, but AA is not Hurwitz. The converse needs observability.

References

  1. R. E. Kalman, Mathematical description of linear dynamical systems, SIAM Journal on Control 1(2), 152-192, 1963, observability and its duality with controllability
  2. Bruce C. Moore, Principal component analysis in linear systems, controllability, observability, and model reduction, IEEE Transactions on Automatic Control 26(1), 17-32, 1981, the two gramians as measures of how strongly each direction is reached and seen, and the balanced coordinates built from them
  3. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Section 6.3 (the finite horizon observability gramian) and Section 7.4 (Lyapunov equations for the gramians and balanced realization)
  4. Athanasios C. Antoulas, Approximation of Large-Scale Dynamical Systems, SIAM, 2005, Chapter 4 (the observability gramian and the energy of the output)

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/ZAATA4/text.yaml