Algorithm Search⌘K

Theoremcore

Kalman canonical decomposition

Also called Kalman decomposition.

A change of state coordinates splits any LTI system into its controllable and observable, controllable only, observable only and other parts.

The Kalman decomposition is a change of state coordinates that splits a linear time-invariant system into four parts: the part that is controllable and observable, the part that is controllable but not observable, the part that is observable but not controllable, and the part that is neither. The coefficient matrices take a fixed block triangular pattern. The transfer function depends only on the first part, so the other three parts are hidden from input-output data, and dropping them gives a minimal realization.

Statement

Notation. x˙=Ax+Bu\dot x = A x + B u, y=Cx+Duy = C x + D u with x∈Rnx \in \mathbb{R}^n, u∈Rmu \in \mathbb{R}^m, y∈Rpy \in \mathbb{R}^p. R=range⁡[B,AB,…,An−1B]\mathcal{R} = \operatorname{range} [B, AB, \dots, A^{n-1} B] is the reachable subspace and N=ker⁡[C;CA;… ;CAn−1]\mathcal{N} = \ker [C; CA; \dots; CA^{n-1}] is the unobservable subspace.

Theorem (Kalman 1962). There is an invertible T∈Rn×nT \in \mathbb{R}^{n \times n} such that the coordinates xˉ=Tx=(xco,xcoˉ,xcˉo,xcˉoˉ)\bar x = T x = (x_{co}, x_{c\bar o}, x_{\bar c o}, x_{\bar c \bar o}) give

Aˉ=TAT−1=[A110A130A21A22A23A2400A33000A43A44],Bˉ=TB=[B1B200],Cˉ=CT−1=[C10C30],\bar A = T A T^{-1} = \begin{bmatrix} A_{11} & 0 & A_{13} & 0 \\ A_{21} & A_{22} & A_{23} & A_{24} \\ 0 & 0 & A_{33} & 0 \\ 0 & 0 & A_{43} & A_{44} \end{bmatrix}, \quad \bar B = T B = \begin{bmatrix} B_1 \\ B_2 \\ 0 \\ 0 \end{bmatrix}, \quad \bar C = C T^{-1} = \begin{bmatrix} C_1 & 0 & C_3 & 0 \end{bmatrix},

where some blocks can be empty, and:

  1. the pair ([A110A21A22],[B1B2])\left( \begin{bmatrix} A_{11} & 0 \\ A_{21} & A_{22} \end{bmatrix}, \begin{bmatrix} B_1 \\ B_2 \end{bmatrix} \right) is controllable;
  2. the pair ([C1C3],[A11A130A33])\left( \begin{bmatrix} C_1 & C_3 \end{bmatrix}, \begin{bmatrix} A_{11} & A_{13} \\ 0 & A_{33} \end{bmatrix} \right) is observable;
  3. (A11,B1)(A_{11}, B_1) is controllable and (C1,A11)(C_1, A_{11}) is observable;
  4. the transfer matrix is G(s)=C(sI−A)−1B+D=C1(sI−A11)−1B1+DG(s) = C (sI - A)^{-1} B + D = C_1 (sI - A_{11})^{-1} B_1 + D, and the Markov parameters are CAkB=C1A11kB1C A^k B = C_1 A_{11}^k B_1 for all k≥0k \ge 0.

The block sizes are n1=dim⁡R−dim⁡(R∩N)n_1 = \dim \mathcal{R} - \dim (\mathcal{R} \cap \mathcal{N}), n2=dim⁡(R∩N)n_2 = \dim(\mathcal{R} \cap \mathcal{N}), n3=n−dim⁡(R+N)n_3 = n - \dim(\mathcal{R} + \mathcal{N}) and n4=dim⁡N−dim⁡(R∩N)n_4 = \dim \mathcal{N} - \dim(\mathcal{R} \cap \mathcal{N}). They do not depend on the choice of TT, and neither do the eigenvalues of each diagonal block.

In plain words

Any linear system with constant coefficients can be looked at in coordinates that sort its state into four groups. The input reaches the first two groups and not the last two. The output sees the first and third groups and not the second and fourth. In these coordinates the input enters only where it can reach, the output reads only what it can see, and each group can drive only the groups that it is allowed to drive without breaking those rules. The input to output behavior then passes only through the first group, the part that is both reachable and visible. The other three groups still move and can still grow without bound, but no experiment that only applies inputs from rest and records outputs can detect them. A model of the first group alone has the same transfer function and the fewest possible states.

Proof

Step 1: the four subspaces. R\mathcal{R} is AA-invariant and contains range⁡B\operatorname{range} B. N\mathcal{N} is AA-invariant and lies in ker⁡C\ker C. So R∩N\mathcal{R} \cap \mathcal{N} and R+N\mathcal{R} + \mathcal{N} are AA-invariant too. Choose bases as follows: V2V_2 a basis of R∩N\mathcal{R} \cap \mathcal{N}; V1V_1 so that [V1,V2][V_1, V_2] is a basis of R\mathcal{R}; V4V_4 so that [V2,V4][V_2, V_4] is a basis of N\mathcal{N}; V3V_3 so that [V1,V2,V3,V4][V_1, V_2, V_3, V_4] is a basis of Rn\mathbb{R}^n. The columns [V1,V2,V4][V_1, V_2, V_4] span R+N\mathcal{R} + \mathcal{N}, since dim⁡(R+N)=dim⁡R+dim⁡N−dim⁡(R∩N)\dim(\mathcal{R} + \mathcal{N}) = \dim \mathcal{R} + \dim \mathcal{N} - \dim(\mathcal{R} \cap \mathcal{N}). Put T−1=[V1,V2,V3,V4]T^{-1} = [V_1, V_2, V_3, V_4].

Step 2: the zero pattern. Column block jj of Aˉ\bar A holds the coordinates of AVjA V_j. AR⊆RA \mathcal{R} \subseteq \mathcal{R} gives zeros in rows 3 and 4 of columns 1 and 2. AN⊆NA \mathcal{N} \subseteq \mathcal{N} gives zeros in rows 1 and 3 of columns 2 and 4. A(R+N)⊆R+NA (\mathcal{R} + \mathcal{N}) \subseteq \mathcal{R} + \mathcal{N} gives a zero in row 3 of column 1, 2 and 4, which adds nothing new. range⁡B⊆R\operatorname{range} B \subseteq \mathcal{R} gives the zero rows 3 and 4 of Bˉ\bar B. CN=0C \mathcal{N} = 0 gives the zero columns 2 and 4 of Cˉ\bar C. This is the stated pattern.

Step 3: controllability of the top part. Write Ac=[A110A21A22]A_c = \begin{bmatrix} A_{11} & 0 \\ A_{21} & A_{22} \end{bmatrix} and Bc=[B1B2]B_c = \begin{bmatrix} B_1 \\ B_2 \end{bmatrix}. Since Aˉ\bar A is block upper triangular with AcA_c in the top left corner and Bˉ\bar B has zeros below, AˉkBˉ=[AckBc0]\bar A^k \bar B = \begin{bmatrix} A_c^k B_c \\ 0 \end{bmatrix}. The range of [Bˉ,AˉBˉ,… ][\bar B, \bar A \bar B, \dots] is TRT \mathcal{R}, the span of the first two coordinate blocks, which has dimension n1+n2n_1 + n_2. So [Bc,AcBc,… ][B_c, A_c B_c, \dots] has full row rank n1+n2n_1 + n_2, and (Ac,Bc)(A_c, B_c) is controllable by the Kalman rank condition.

Step 4: observability of the other part. Write Ao=[A11A130A33]A_o = \begin{bmatrix} A_{11} & A_{13} \\ 0 & A_{33} \end{bmatrix} and Co=[C1,C3]C_o = [C_1, C_3]. Rows 1 and 3 of Aˉ\bar A have zeros in columns 2 and 4, so blocks 1 and 3 of Aˉxˉ\bar A \bar x depend only on blocks 1 and 3 of xˉ\bar x, through AoA_o. By induction, CˉAˉkxˉ=CoAok(x1,x3)\bar C \bar A^k \bar x = C_o A_o^k (x_1, x_3) for every xˉ=(x1,x2,x3,x4)\bar x = (x_1, x_2, x_3, x_4). Suppose CoAok(z1,z3)=0C_o A_o^k (z_1, z_3) = 0 for all kk. Then xˉ=(z1,0,z3,0)\bar x = (z_1, 0, z_3, 0) lies in the unobservable subspace TNT \mathcal{N}, which is the span of blocks 2 and 4. So z1=0z_1 = 0 and z3=0z_3 = 0, and (Co,Ao)(C_o, A_o) is observable.

Step 5: the core block. Let w∗A11=λw∗w^* A_{11} = \lambda w^* and w∗B1=0w^* B_1 = 0. Then (w∗,0)(w^*, 0) is a left eigenvector of AcA_c with (w∗,0)Bc=0(w^*, 0) B_c = 0, which the Popov-Belevitch-Hautus test forbids, since (Ac,Bc)(A_c, B_c) is controllable. So w=0w = 0 and (A11,B1)(A_{11}, B_1) is controllable. In the same way, A11v=λvA_{11} v = \lambda v and C1v=0C_1 v = 0 give the eigenvector (v,0)(v, 0) of AoA_o with Co(v,0)=0C_o (v, 0) = 0, so v=0v = 0 and (C1,A11)(C_1, A_{11}) is observable.

Step 6: the transfer matrix. GG does not change under TT. By Step 3, AˉkBˉ\bar A^k \bar B is zero in blocks 3 and 4, and its first block is A11kB1A_{11}^k B_1, because the first block row of AcA_c is [A11,0][A_{11}, 0]. Cˉ\bar C reads only blocks 1 and 3, so CAkB=CˉAˉkBˉ=C1A11kB1C A^k B = \bar C \bar A^k \bar B = C_1 A_{11}^k B_1. Summing the series (sI−A)−1=∑kAks−k−1(sI - A)^{-1} = \sum_k A^k s^{-k-1} for large ∣s∣|s| gives G(s)−D=C1(sI−A11)−1B1G(s) - D = C_1 (sI - A_{11})^{-1} B_1 there, and both sides are rational, so they agree for all ss.

Step 7: invariance. The subspaces R\mathcal{R}, N\mathcal{N}, R∩N\mathcal{R} \cap \mathcal{N} and R+N\mathcal{R} + \mathcal{N} do not depend on TT, so neither do the block sizes. A22A_{22} is the matrix of AA restricted to R∩N\mathcal{R} \cap \mathcal{N}. A11A_{11} is the matrix of the map that AA induces on the quotient R/(R∩N)\mathcal{R} / (\mathcal{R} \cap \mathcal{N}), A44A_{44} that of the map induced on N/(R∩N)\mathcal{N} / (\mathcal{R} \cap \mathcal{N}), and A33A_{33} that of the map induced on Rn/(R+N)\mathbb{R}^n / (\mathcal{R} + \mathcal{N}). These maps are defined without a basis, so each diagonal block is fixed up to similarity, and so are its eigenvalues. ■\blacksquare

Consequences

  • Hidden modes. The eigenvalues of AA are those of A11A_{11}, A22A_{22}, A33A_{33} and A44A_{44}. Only those of A11A_{11} can be poles of GG. The eigenvalues of A22A_{22}, A33A_{33} and A44A_{44} are the input decoupling and output decoupling zeros: modes that the input cannot excite, the output cannot show, or both. A system can have a transfer function with all poles in the open left half plane and still have AA not Hurwitz, when one of these hidden modes is unstable. Then the system is not internally asymptotically stable.
  • Minimal realizations. (A11,B1,C1,D)(A_{11}, B_1, C_1, D) is controllable and observable and has the same transfer matrix. By the minimal realization theorem it is minimal, and its order n1n_1 is the McMillan degree of GG. A realization is minimal exactly when n2=n3=n4=0n_2 = n_3 = n_4 = 0.
  • Stabilizability and detectability. (A,B)(A, B) is stabilizable exactly when A33A_{33} and A44A_{44} are Hurwitz. (C,A)(C, A) is detectable exactly when A22A_{22} and A44A_{44} are Hurwitz. Feedback u=−Kxu = -K x cannot move the eigenvalues of A33A_{33} and A44A_{44}, and output injection cannot move those of A22A_{22} and A44A_{44}.
  • Partial decompositions. Using only R\mathcal{R} gives the two-block controllability decomposition [Ac∗0Acˉ]\begin{bmatrix} A_c & * \\ 0 & A_{\bar c} \end{bmatrix}, and using only N\mathcal{N} gives the observability decomposition [Ao0∗Aoˉ]\begin{bmatrix} A_o & 0 \\ * & A_{\bar o} \end{bmatrix}. Most uses need only one of the two.
  • Computation. Basis vectors taken from the controllability and observability matrices give a correct TT in exact arithmetic, but in floating point the rank decisions are unreliable, as on the Kalman rank condition page. The staircase algorithm (Van Dooren 1981) finds R\mathcal{R} and N\mathcal{N} with orthogonal transformations, with a sequence of rank decisions made by the singular value decomposition or a rank revealing QR decomposition. Its cost is of the order of n3n^3 operations when mm and pp are at most nn. The rank decisions still need a tolerance, so the computed n1n_1 is the order of a nearby system.

Worked example. A=diag⁡(−1,−2,−3,−4)A = \operatorname{diag}(-1, -2, -3, -4), B=(1,1,0,0)TB = (1, 1, 0, 0)^T, C=[1,0,1,0]C = [1, 0, 1, 0]. The eigenvalues are distinct, so by Gilbert's test the mode ii is controllable exactly when bi≠0b_i \ne 0 and observable exactly when ci≠0c_i \ne 0. The coordinates are already in the order coco, coˉc \bar o, cˉo\bar c o, cˉoˉ\bar c \bar o, with T=IT = I. Then G(s)=1/(s+1)G(s) = 1/(s + 1), and the modes −2-2, −3-3, −4-4 are hidden.

A two-state example. A=[01−2−3]A = \begin{bmatrix} 0 & 1 \\ -2 & -3 \end{bmatrix}, B=(0,1)TB = (0, 1)^T, C=[1,1]C = [1, 1]. The pair (A,B)(A, B) is controllable, and N\mathcal{N} is spanned by (1,−1)(1, -1). With T−1=[110−1]T^{-1} = \begin{bmatrix} 1 & 1 \\ 0 & -1 \end{bmatrix} (which is its own inverse), Aˉ=[−202−1]\bar A = \begin{bmatrix} -2 & 0 \\ 2 & -1 \end{bmatrix}, Bˉ=(1,−1)T\bar B = (1, -1)^T and Cˉ=[1,0]\bar C = [1, 0]. The pattern is [A110A21A22]\begin{bmatrix} A_{11} & 0 \\ A_{21} & A_{22} \end{bmatrix} with A11=−2A_{11} = -2, B1=1B_1 = 1, C1=1C_1 = 1, so G(s)=1/(s+2)G(s) = 1/(s + 2), and the mode −1-1 is controllable and unobservable.

An unstable hidden mode. A=diag⁡(1,−2)A = \operatorname{diag}(1, -2), B=(1,1)TB = (1, 1)^T, C=[0,1]C = [0, 1]. Then G(s)=1/(s+2)G(s) = 1/(s + 2) and the impulse response e−2te^{-2t} decays, but any input that excites x1x_1 makes it grow like ete^{t}. The mode 11 is controllable and unobservable, so the pair (C,A)(C, A) is not detectable.

Tightness

  • The off-diagonal blocks cannot be removed in general. Take A=[0100]A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, B=(1,0)TB = (1, 0)^T, C=[0,1]C = [0, 1]. Here R=N=span⁡(e1)\mathcal{R} = \mathcal{N} = \operatorname{span}(e_1), so e1e_1 is the coˉc \bar o part and e2e_2 is the cˉo\bar c o part, and Aˉ=A\bar A = A with A22=A33=0A_{22} = A_{33} = 0 and A23=1A_{23} = 1. Every admissible choice of coordinates keeps A22=A33=0A_{22} = A_{33} = 0, so A23=0A_{23} = 0 would make Aˉ\bar A the zero matrix, which is not similar to AA. When the diagonal blocks have no eigenvalue in common, the Sylvester equations AiiX−XAjj=−AijA_{ii} X - X A_{jj} = -A_{ij} are solvable and a further change of coordinates makes Aˉ\bar A block diagonal; with common eigenvalues this can fail, as here. In this example G(s)=0G(s) = 0 and n1=0n_1 = 0.
  • The blocks are not unique. The complements V1V_1, V3V_3, V4V_4 can be chosen in many ways. Only the block sizes, the similarity class of each diagonal block and the transfer matrix are fixed.
  • Time-varying systems. For x˙=A(t)x+B(t)u\dot x = A(t) x + B(t) u the reachable and unobservable subspaces can change dimension with tt, and a decomposition with constant block sizes holds only on intervals where those dimensions are constant.

History

Kalman stated the split into four parts in 1962 in the Proceedings of the National Academy of Sciences, under the name canonical structure. Gilbert had the same split for systems with distinct eigenvalues, read from the diagonal modal form, in the 1963 paper in which he also gave his tests for controllability and observability. Kalman's long 1963 paper in the SIAM Journal on Control gave the full treatment and drew the main conclusion: a transfer function describes only the controllable and observable part of a system, so a state model built from input-output data can only recover that part. That conclusion led to the realization problem and the Ho-Kalman algorithm of 1966. The staircase algorithms of the late 1970s and of Van Dooren in 1981 made the decomposition computable with orthogonal transformations.

References

  1. R. E. Kalman, Canonical structure of linear dynamical systems, Proceedings of the National Academy of Sciences 48(4), 596-600, 1962, the split of the state space into four parts by controllability and observability
  2. R. E. Kalman, Mathematical description of linear dynamical systems, SIAM Journal on Control 1(2), 152-192, 1963, the canonical structure theorem, and the fact that the transfer function describes only the controllable and observable part
  3. Elmer G. Gilbert, Controllability and observability in multivariable control systems, SIAM Journal on Control 1(2), 128-151, 1963, the same split for systems with distinct eigenvalues, read from the modal form
  4. Paul Van Dooren, The generalized eigenstructure problem in linear system theory, IEEE Transactions on Automatic Control 26(1), 111-129, 1981, the staircase reduction with orthogonal transformations, which computes the controllable and unobservable subspaces
  5. Chi-Tsong Chen, Linear System Theory and Design, third edition, Oxford University Press, 1999, Section 6.4, Canonical Decomposition
  6. Kemin Zhou, John C. Doyle and Keith Glover, Robust and Optimal Control, Prentice Hall, 1996, Section 3.3, Kalman Canonical Decomposition

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