Part 6 - Space-state representation (2)
ERE103 Date: November 9, 2023 3 min read Introduction
In this part we’ll see how we can go from a given space-state representation to the systems transfer function and vice-versa.
From space-state to transfer function
Given this space-state representation:
{x˙y=Ax+Bu=Cx+Du(1)(2)
We want to find Guy(s)=U(s)Y(s)
Let’s Laplace our equation system:
{sX(s)Y(s)=AX(s)+BU(s)=CX(s)+DU(S)(1)(2)
From (1) we can find that:
sX(s)−AX(S)=BU(s) ∣ To factor out X(s) we need to do a little matrix trickX(s)(sI−A)=BU(S)X(s)=(sI−A)−1)B U(s)
If we substitute this into (2):
Y(s)=C((sI−A)−1B)U(s)+DU(s)Guy(s)=C(sI−A)−1B+D
Example
From our feather-mass example, we found that:
A=[0−mk1−mb]B=[0m1]C=[10]D=[0]
We therefore get:
[10]([s00s]−[0−mk1−mb])−1[0m1]
[10]([smk−1s+mb])−1[0m1]
[10]s2+mbs+mk1s+mb−mk1s[0m1]
s2+mbs+mk1[s+mb1][0m1]
m(s2+mbs+mk)1
ms2+bs+k1
From transfer function to space-state representation
Given:
G(s)=s3+bs2+cs+da=U(s)Y(s)
Which means:
s3Y(s)+bs2Y(s)+csY(s)+dY(s)=aU(s)
Inverse-Laplace yields:
y(3)(t)+by¨(t)+cy˙(t)+dy(t)=au(t)
Introduce state variables, x1=y,x2=y˙,x3=y¨.
This means:
⎩⎨⎧x1˙=x2x2˙=x3x3˙=au(t)−bx3−cx2−dx1
Which yields:
⎩⎨⎧x˙y=x1=00−d10−c01−bx1x2x3+00au