In control theory, we may need to find out whether or not a system such as 𝒙˙(t)=𝑨𝒙(t)+𝑩𝒖(t)𝒚(t)=𝑪𝒙(t)+𝑫𝒖(t) is observable, where 𝑨, 𝑩, 𝑪 and 𝑫 are, respectively, n×n, n×p,q×n and q×p matrices. One of the many ways one can achieve such goal is by the use of the Observability Gramian.
Observability in LTI Systems Linear Time Invariant (LTI) Systems are those systems in which the parameters 𝑨, 𝑩, 𝑪 and 𝑫 are invariant with respect to time. One can determine if the LTI system is or is not observable simply by looking at the pair (𝑨,𝑪). Then, we can say that the following statements are equivalent: 1. The pair (𝑨,𝑪) is observable. 2. The n×n matrix 𝑾𝒐(t)=∫0te𝑨Tτ𝑪T𝑪e𝑨τdτ is nonsingular for any t>0. 3. The nq×n observability matrix [𝑪𝑪𝑨𝑪𝑨2⋮𝑪𝑨n−1] has rank n. 4. The (n+q)×n matrix [𝑨−𝝀𝑰𝑪] has full column rank at every eigenvalue λ of 𝑨. If, in addition, all eigenvalues of 𝑨 have negative real parts (𝑨 is stable) and the unique solution of 𝑨𝑻𝑾o+𝑾o𝑨=−𝑪𝑻𝑪 is positive definite, then the system is observable. The solution is called the Observability Gramian and can be expressed as 𝑾𝒐=∫0∞e𝑨Tτ𝑪𝑻𝑪e𝑨τdτ In the following section we are going to take a closer look at the Observability Gramian.
Observability Gramian The Observability Gramian can be found as the solution of the Lyapunov equation given by 𝑨𝑻𝑾o+𝑾o𝑨=−𝑪𝑻𝑪 In fact, we can see that if we take 𝑾𝒐=∫0∞e𝑨𝑻τ𝑪𝑻𝑪e𝑨τdτ as a solution, we are going to find that: 𝑨𝑻𝑾o+𝑾o𝑨=∫0∞𝑨𝑻e𝑨𝑻τ𝑪𝑻𝑪e𝑨τdτ+∫0∞e𝑨𝑻τ𝑪𝑻𝑪e𝑨τ𝑨dτ=∫0∞ddτ(e𝑨𝑻τ𝑪T𝑪e𝑨τ)dτ=e𝑨𝑻t𝑪T𝑪e𝑨t|t=0∞=0−𝑪𝑻𝑪=−𝑪𝑻𝑪 Where we used the fact that e𝑨t=0 at t=∞ for stable 𝑨 (all its eigenvalues have negative real part). This shows us that 𝑾o is indeed the solution for the Lyapunov equation under analysis.
Properties We can see that 𝑪𝑻𝑪 is a symmetric matrix, therefore, so is 𝑾o. We can use again the fact that, if 𝑨 is stable (all its eigenvalues have negative real part) to show that 𝑾o is unique. In order to prove so, suppose we have two different solutions for 𝑨𝑻𝑾o+𝑾o𝑨=−𝑪𝑻𝑪 and they are given by 𝑾o1 and 𝑾o2. Then we have: 𝑨𝑻(𝑾o1−𝑾o2)+(𝑾o1−𝑾o2)𝑨=0 Multiplying by e𝑨𝑻t by the left and by e𝑨t by the right, would lead us to e𝑨𝑻t[𝑨𝑻(𝑾o1−𝑾o2)+(𝑾o1−𝑾o2)𝑨]e𝑨t=ddt[e𝑨𝑻t[(𝑾o1−𝑾o2)e𝑨t]=0 Integrating from 0 to ∞: [e𝑨𝑻t[(𝑾o1−𝑾o2)e𝑨t]|t=0∞=0 using the fact that e𝑨t→0 as t→∞: 0−(𝑾o1−𝑾o2)=0 In other words, 𝑾o has to be unique. Also, we can see that 𝒙𝑻𝑾𝒐𝒙=∫0∞𝒙Te𝑨𝑻t𝑪𝑻𝑪e𝑨t𝒙dt=∫0∞‖𝑪𝒆𝑨𝒕𝒙‖22dt is positive for any 𝒙 (assuming the non-degenerate case where 𝑪𝒆𝑨𝒕𝒙 is not identically zero), and that makes 𝑾o a positive definite matrix. More properties of observable systems can be found in, as well as the proof for the other equivalent statements of "The pair (𝑨,𝑪) is observable" presented in section Observability in LTI Systems.
Discrete Time Systems For discrete time systems as 𝒙[k+1]=𝑨𝒙[k]+𝑩𝒖[k]𝒚[k]=𝑪𝒙[k]+𝑫𝒖[k] One can check that there are equivalences for the statement "The pair (𝑨,𝑪) is observable" (the equivalences are much alike for the continuous time case). We are interested in the equivalence that claims that, if "The pair (𝑨,𝑪) is observable" and all the eigenvalues of 𝑨 have magnitude less than 1 (𝑨 is stable), then the unique solution of 𝑨𝑻𝑾do𝑨−Wdo=−𝑪𝑻𝑪 is positive definite and given by 𝑾do=∑m=0∞(𝑨T)m𝑪T𝑪𝑨m That is called the discrete Observability Gramian. We can easily see the correspondence between discrete time and the continuous time case, that is, if we can check that 𝑾dc is positive definite, and all eigenvalues of 𝑨 have magnitude less than 1, the system (𝑨,𝑩) is observable. More properties and proofs can be found in.
Linear Time Variant Systems Linear time variant (LTV) systems are those in the form: 𝒙˙(t)=𝑨(t)𝒙(t)+𝑩(t)𝒖(t)𝒚(t)=𝑪(t)𝒙(t) That is, the matrices 𝑨, 𝑩 and 𝑪 have entries that varies with time. Again, as well as in the continuous time case and in the discrete time case, one may be interested in discovering if the system given by the pair (𝑨(t),𝑪(t)) is observable or not. This can be done in a very similar way of the preceding cases. The system (𝑨(t),𝑪(t)) is observable at time t0 if and only if there exists a finite t1>t0 such that the n×n matrix also called the Observability Gramian is given by 𝑾o(t0,t1)=∫t0t1𝜱T(τ,t0)𝑪T(τ)𝑪(τ)𝜱(τ,t0)dτ where 𝜱(t,τ) is the state transition matrix of 𝒙˙=𝑨(t)𝒙 is nonsingular. Again, we have a similar method to determine if a system is or not an observable system.
Properties of 𝑾o(t0,t1) We have that the Observability Gramian 𝑾o(t0,t1) have the following property: 𝑾o(t0,t1)=𝑾o(t0,t)+𝜱T(t,t0)𝑾o(t,t0)𝜱(t,t0) that can easily be seen by the definition of 𝑾o(t0,t1) and by the property of the state transition matrix that claims that: 𝜱(t0,t1)=𝜱(t1,τ)𝜱(τ,t0) More about the Observability Gramian can be found in.
See also Observability Controllability Gramian Gramian matrix Hankel singular value
References
External links Mathematica function to compute the observability Gramian