Let Tuy be real, rational, and proper. Then a state space realization (or just realization) of that Tuy is an LTI state space model of the form
x˙=Ax+Buy=Cx+Du
such that C(sI−A)−1B+D=Tuy(s).
Note: State space realizations are NOT unique!
Example
Suppose we have a transfer function
Tuy(s)=(s+1)(s+2)(s+3)9s2+34s+29=s+12+s+23+s+34=[s+11s+212+31]234=[111]s+11000s+21000s+31234=[111]s+1000s+2000s+3−1234=C[111]sIs000s000s−A−1000−2000−3−1B234+D0=C(sI−A)B+D
Then, we can write
x˙y=−1000−2000−3x+234u=[111]x
General Approach
This approach works for any transfer function Tuy(s) with only simple poles.
Assume u(t)=0∀t≥0, such that x˙=Ax. We’re just looking at the dynamics of the system without any control input.
Assume A is diagonalizable (sufficient condition: all eigenvalues of A are distinct).
Let λ1,…,λn be the eigenvalues of A.
Let v1,…,vn be their associated eigenvectors:
Λ=λ1⋱λn,V=1v111v21…1vn1
Then:
AΛ=VΛV−1[def. of diagonalizable]=V−1AV
Suppose:
x˙=x˙1⋮xnx˙=λ1⋱λnx1⋮xn=Λx
Then:
x˙1x˙2x˙n=λ1x1⟹x1(t)=eλ1tx1(0)=λ2x2⟹x2(t)=eλ2tx2(0)⋮=λnxn⟹xn(t)=eλntxn(0)
Note that the dynamics are decoupled.
Let z=V−1x such that x=Vz. Then:
z˙=V−1x=V−1Ax=V−1VΛV−1x=ΛV−1x=Λz
Then:
z˙=Λz
such that
z˙1z˙2z˙n=λ1z1⟹z1(t)=eλ1tz1(0)=λ2z2⟹z2(t)=eλ2tz2(0)⋮=λnzn⟹zn(t)=eλntzn(0)
Then:
x(t)=Vz(t)=1v11…1vn1z1(t)⋮z2(t)=i=1∑nzi(t)vi=i=1∑neλi(t)zi(0)vi
An eigenvalue λ of A is stable if λ∈C− and unstable if λ∈/C−.
Example:
x˙=31[4105−1]x
Then:
λ1=−2,v1=[−12]λ2=3,v2=[11]⟹x(t)=eλ1(t)z1(0)v1+eλ2tz2(0)v2
and x(0)=z1(0)v1+z2(0)v2.
Let’s look at some possible initial conditions:
⟹⟹⟹z2(0)=0,z1(0)=0⟹x(0)=z1(0)v1x(t)=eλ1tz1(0)v1x(t) never escapes span(v1)t→∞limx(t)=0 because λ1 is stable
⟹⟹⟹z1(0)=0,z2(0)=0⟹x(0)=z2(0)v2x(t)=eλ2tz2(0)v2x(t) never escapes span(v2)t→∞limx(t)=∞ because λ2 is stable
⟹⟹z1(0)=0,z2(0)=0⟹x(0)=z1(0)v1+z2(0)v2x(t)=eλ1tz1(0)v1+eλ2tz2(0)v2x(t) goes to 0 along span(λ1) and ∞ along span(λ2)