Algorithm Search⌘K

Definitioncore

Observability

Also called state observability, complete observability.

A system is observable if its initial state is fixed by the input and output over some finite interval.

A linear system is observable when its initial state can be computed from the input and the output over a finite time interval. It is the property that makes state estimation possible: the eigenvalues of the error matrix A−LCA - L C of a Luenberger observer can be put anywhere exactly when the pair (C,A)(C, A) is observable. Observability is the dual of controllability, and the weaker property that the unseen part of the state decays by itself is detectability.

Definition

Notation. The system is the continuous-time state-space model

x˙=Ax+Bu,y=Cx+Du,x∈Rn, u∈Rm, y∈Rp.\dot x = A x + B u, \qquad y = C x + D u, \qquad x \in \mathbb{R}^n,\ u \in \mathbb{R}^m,\ y \in \mathbb{R}^p .

Inputs are piecewise continuous. By the variation of constants formula,

y(t)=CeAtx(0)+∫0tCeA(t−s)Bu(s) ds+Du(t).y(t) = C e^{At} x(0) + \int_0^t C e^{A(t - s)} B u(s)\, ds + D u(t).

The input and the matrices are known; the initial state x(0)x(0) is not.

Definition. The system, or the pair (C,A)(C, A), is observable if there is a time T>0T > 0 such that for every input uu, the output yy on [0,T][0, T] determines x(0)x(0) uniquely.

Reduction to zero input. The part of yy that the input produces is known, so it can be subtracted. Two initial states x0x_0 and x0′x_0' give the same output for the same input if and only if CeAt(x0−x0′)=0C e^{At} (x_0 - x_0') = 0 for tt in [0,T][0, T]. So the system is observable if and only if the zero-input output CeAtx0C e^{At} x_0 vanishes on [0,T][0, T] only for x0=0x_0 = 0. The matrices BB and DD play no part.

The unobservable subspace. The initial states that give the zero output with zero input form the subspace

N=ker⁡[CCA⋮CAn−1].\mathcal{N} = \ker \begin{bmatrix} C \\ CA \\ \vdots \\ CA^{n-1} \end{bmatrix} .

It does not depend on T>0T > 0. It is AA-invariant, it lies inside ker⁡C\ker C, and it is the largest subspace with these two properties. Two states are indistinguishable exactly when their difference lies in N\mathcal{N}. The system is observable if and only if N={0}\mathcal{N} = \{0\}, that is, if the observability matrix has rank nn; see Kalman rank condition.

Duality. The transpose of the observability matrix of (C,A)(C, A) is [CT,ATCT,…,(AT)n−1CT][C^T, A^T C^T, \dots, (A^T)^{n-1} C^T], the controllability matrix of (AT,CT)(A^T, C^T). So (C,A)(C, A) is observable if and only if (AT,CT)(A^T, C^T) is controllable. Every test for one property gives a test for the other: the dual Popov-Belevitch-Hautus test asks that [A−λIC]\begin{bmatrix} A - \lambda I \\ C \end{bmatrix} have rank nn at each eigenvalue λ\lambda, and the observability gramian is positive definite exactly for observable pairs.

How the state is recovered. With the zero-input output y0(t)=CeAtx0y_0(t) = C e^{At} x_0 on [0,T][0, T],

x0=Wo(T)−1∫0TeATtCTy0(t) dt,Wo(T)=∫0TeATtCTCeAtdt.x_0 = W_o(T)^{-1} \int_0^T e^{A^T t} C^T y_0(t)\, dt, \qquad W_o(T) = \int_0^T e^{A^T t} C^T C e^{At} dt .

This is the least squares solution, and it is the formula to use with noisy data. In practice the state is not computed once from a stored record. A state observer estimates it online, and the Kalman filter does so with a noise model.

What does not change it. A change of state coordinates (C,A)→(CT−1,TAT−1)(C, A) \to (C T^{-1}, T A T^{-1}) maps N\mathcal{N} to TNT \mathcal{N}. Output injection A→A−LCA \to A - L C keeps N\mathcal{N}, by the dual of the argument for state feedback on the controllability page. State feedback can destroy observability: it can move a pole onto a zero and cancel it.

Discrete time. For xk+1=Axk+Bukx_{k+1} = A x_k + B u_k, yk=Cxk+Duky_k = C x_k + D u_k, the outputs y0,…,yn−1y_0, \dots, y_{n-1} determine x0x_0 if and only if the observability matrix has rank nn, and more samples do not help. The weaker property reconstructibility asks only for the current state xkx_k from past outputs. The two agree when AA is invertible. With AA nilpotent and C=0C = 0, the state is 00 after nn steps whatever x0x_0 was, so it is reconstructible but not observable.

Nonlinear systems. For x˙=f(x,u)\dot x = f(x, u), y=h(x)y = h(x) the useful notions are local. The observability rank condition asks that the differentials of hh and of its repeated Lie derivatives along ff span the cotangent space at a point. It is a sufficient condition for a local form of observability (local weak observability), and it is not necessary.

Examples and non-examples

  • Double integrator, position measured. A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} and C=[1,0]C = [1, 0] give the observability matrix [1001]\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}, rank 2. With zero input, y(t)=x1(0)+t x2(0)y(t) = x_1(0) + t\, x_2(0), so y(0)y(0) gives the position and the slope of yy gives the velocity.
  • Double integrator, velocity measured (non-example). With C=[0,1]C = [0, 1] the matrix is [0100]\begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, rank 1, and N\mathcal{N} is the position axis. Two masses that move at the same speed from different positions give the same output. A speedometer does not tell where the car is.
  • A hidden mode (non-example). A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}, B=[01]B = \begin{bmatrix} 0 \\ 1 \end{bmatrix} and C=[1,1]C = [1, 1]. Here CA=[−2,−2]CA = [-2, -2], so the observability matrix [11−2−2]\begin{bmatrix} 1 & 1 \\ -2 & -2 \end{bmatrix} has rank 1 and N\mathcal{N} is spanned by (1,−1)(1, -1). That vector is an eigenvector of AA for the eigenvalue −1-1, and C(1,−1)T=0C (1, -1)^T = 0, so the mode e−te^{-t} never shows in the output. The transfer function is (s+1)/((s+1)(s+2))=1/(s+2)(s + 1)/((s + 1)(s + 2)) = 1/(s + 2): the pole at −1-1 cancels with a zero.
  • Sampling can destroy observability. The oscillator A=[01−10]A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} with C=[1,0]C = [1, 0] is observable. Sampled with the period h=πh = \pi s, Ad=eAπ=−IA_d = e^{A\pi} = -I, and the observability matrix [10−10]\begin{bmatrix} 1 & 0 \\ -1 & 0 \end{bmatrix} has rank 1. The samples x1(kπ)x_1(k\pi) alternate in sign and never show the velocity.
  • Reconstructible but not observable (discrete time). n=1n = 1, A=0A = 0, C=0C = 0: after one step the state is 00, so the current state is known, but x0x_0 is lost.

References

  1. Elmer G. Gilbert, Controllability and observability in multivariable control systems, SIAM Journal on Control 1(2), 128-151, 1963, observability of multivariable systems with distinct eigenvalues, read from the modal form
  2. R. E. Kalman, Mathematical description of linear dynamical systems, SIAM Journal on Control 1(2), 152-192, 1963, observability, its duality with controllability, and the observable part of a system
  3. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Section 6.3 (observability and its tests), Section 6.6 (discrete time) and Section 6.7 (observability after sampling)
  4. Eduardo D. Sontag, Mathematical Control Theory, Deterministic Finite Dimensional Systems, second edition, Springer, 1998, Chapter 6, Outputs (observability, indistinguishable states and duality)

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