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˙=Ax+Buy=Cx+Du(1)(2)
We want to find Guy(s)=U(s)Y(s)
Let’s Laplace our equation system:
{sX(s)=AX(s)+BU(s)Y(s)=CX(s)+DU(s)(1)(2)
From (1) we can find that:
sX(s)−AX(s)(sI−A)X(s)X(s)=BU(s)=BU(s)=(sI−A)−1BU(s).∥To factor out X(s) we need to do a little matrix trick
If we substitute this into (2):
Y(s)⟹=C((sI−A)−1B)U(s)+DU(s)Guy(s)=C(sI−A)−1B+D.
Example 1
From our feather-mass example, we found that:
A=[0−mk1−mb]B=[0m1]C=[10]D=[0].We therefore get:
Guy(s)=[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:
⎩⎨⎧x˙1=x2x˙2=x3x˙3=au(t)−bx3−cx2−dx1.
Which yields:
⎩⎨⎧x˙=00−d10−c01−bx1x2x3+00auy=x1.