Assuming that C(s) only has simple polesβ¦ C(s)=βi=0nβsβpiβciββ=[1β¦1]βsβp1β1ββββ¦ββsβpnβ1ββββc1ββ¦cnβββ
Which comes in our form C(s)=C(sIβA)β1B from our State Space Models.
If we call xΛ=βp1ββββ¦ββpnβββx+βc1ββ¦cnβββe which is of the form xΛ=Ax+Be
and u=[1β¦1]x=Cx
We can now put this into x+=A^+B^e form
Hint
As a reminder, our goal is to approximate our continuous controllers by emulating them with discrete controllers. Here is how we do that.
Taking a z-transformβ¦ zX[z]=X[z]+T(AX[z]+BE[z])βΉ((zβ1)IβTA)X[z]=TBE[z]βΉX[z]=((zβ1)IβTA)β1TBE[z]βΉX[z]=βzβ1βTp1ββ1ββββ¦ββzβ1βTpnββ1ββββTc1β¦TcnββE[z] βΉu(t)=Cx(t)βΉu[k]=Cx[k]βΉU[z]=CX[z]=[1β¦1]βzβ1βTp1βTc1βββ¦zβ1βTpnβTcnββββE[z]=βi=1nβzβ1βTpiββTciβE[z]βΉu[z]=βi=1nβT1β(zβ1)βpiβciββE[z] Where the sum in front of E[z] is our Discrete Time controller D[z]βΉD[z]=C(s)β£s=T1β(zβ1)β
All of our poles are in the left-half plane but, we could have poles that are stable in continuous time that are in the left-half plane, that map to unstable poles in discrete time
Right side rule
We recover the entire left-half plane but, we could have poles that are unstable in continuous time that are in the right half plane, that map to stable poles in discrete time
Trapezoidal rule
Stable poles in continuous time iff we have stable poles in discrete time which is out goal