Professional Documents
Culture Documents
b2 s2 + b1 s + b0
G(s) = . (1)
s3 + a2 s2 + a1 s + a0
which gives
x 0 1 0 x1 0
d 1
x2 = 0 0 1 x2 + 0 u (4)
dt
x3 −a0 −a1 −a2 x3 1
x1
y= 1 0 0 x2
x3
...
For the general case in (1), i.e., y + a2 ÿ + a1 ẏ + a0 y = b2 ü + b1 u̇ + b0 u, there are terms with respect to the
derivative of the input. Choosing simply (3) does not generate a proper state equation. However, we can decompose
(1) as
/ 1 / b s2 + b s + b /y
u 2 1 0 (5)
s3 + a2 s2 + a1 s + a0
looks exactly like what we had in (2). Denote the output here as ỹ. Then we have
x 0 1 0 x1 0
d 1
x2 = 0 0 1 x2 + 0 u,
dt
x3 −a0 −a1 −a2 x3 1
where
x1 = ỹ, x2 = ẋ1 , x3 = ẋ2 . (7)
Introducing the states in (7) also addresses the problem of the rising differentiations in u. Notice now, that the
second part of (5) is nothing but
x1 / b s2 + b s + b /y
2 1 0
1
Xu Chen 1.1 Controllable Canonical Form. January 9, 2021
So
x1
y = b2 ẍ1 + b1 ẋ1 + b0 x1 = b2 x3 + b1 x2 + b0 x1 = b0 b1 b2 x2 .
x3
The above procedure constructs the controllable canonical form of the third-order transfer function (1):
x (t) 0 1 0 x1 (t) 0
d 1
x2 (t) = 0 0 1 x2 (t) + 0 u(t) (8)
dt
x3 (t) −a0 −a1 −a2 x3 (t) 1
x1 (t)
y(t) = b0 b1 b2 x2 (t)
x3 (t)
b2
+
b1
U (s) + Y (s)
+ 1 X3 1 X2 1 X1
b0
s s s
−
+
a2
+
a1
a0
s2 + 1
• G (s) =
s3 + 2s + 10
b0 s2 + b1 s + b2
• G (s) =
s3 + a0 s2 + a1 s + a2
General Case.
For a single-input single-output transfer function
bn−1 sn−1 + · · · + b1 s + b0
G(s) = + d,
sn + an−1 sn−1 + · · · + a1 s + a0
2
Xu Chen 1.2 Observable Canonical Form. January 9, 2021
b1
U (s) + 1 + 1 + 1 Y (s)
b0
s s s
− − −
a2
a1
a0
or more specifically,
b2
b1
U (s) + + Y (s)
+ 1 X3 1 X2 1 X1
b0
s s s
− − −
a2
a1
a0
3
Xu Chen 1.3 Diagonal and Jordan canonical forms. January 9, 2021
or in matrix form:
−a2 1 0 b2
ẋ(t) = −a1 0 1 x(t) + b1 u(t) (10)
−a0 0 0 b0
| {z } | {z }
Ao Bo
y(t) = 1 0 0 x(t)
| {z }
Co
General Case.
In the general case, the observable canonical form of the transfer function
bn−1 sn−1 + · · · + b1 s + b0
G(s) = +d
sn + an−1 sn−1 + · · · + a1 s + a0
is
−an−1 1 ··· 0 0 bn−1
−an−2 0 ··· 0 0 bn−2 0
.. .. .. .. ..
Ao Bo . . . . .
Σo = =
··· .
(11)
Co Do −a1 0 ··· 0 1 b1
−a0 ··· 0 b0
1 ··· d
Exercise 2. Obtain the controllable and observable canonical forms of
k1
G(s) = .
s − p1
+ sX1 1 X1
k1
s
+
p1
U (s) + Y (s)
+ sX2 1 X2
k2
s
+ +
p2
+ sX3 1 X3
k3
s
+
p3
4
Xu Chen 1.4 Modified canonical form. January 9, 2021
k2 = lim G(s)(s − pm )2
s→pm
d
k3 = lim G(s)(s − pm )2
s→pm ds
In state space, we have
+ 1 X1
k1
s
+
p1
U (s) + Y (s)
k3
+
X3
+ 1 + 1 X2
k2
s s
+ +
pm pm
The state-space realization of the above, called the Jordan canonical form,1 is
p1 0 0 1
A = 0 pm 1 , B = 0 , C = k1 k2 k3 , D = 0.
0 0 pm 1
5
Xu Chen 1.5 Discrete-Time Transfer Functions and Their State-Space Canonical Forms January 9, 2021
+ 1 X1
k1
+ s
p1
U (s) Y (s)
+
k3
+
X3
+ 1 + 1 X2
ω k2
+ s + s
+
σ σ
−
ω
x (k) / z −1 / x (k − 1)
X (z) / z −1 / z −1 X (z)
x (k + n) / z −1 / x (k + n − 1)
x (k + 1) = Ax (k) + Bu (k)
y (k) = Cx (k) + Du (k)
−1
and satisfies G (z) = C (zI − A) B + D.
Take again a third-order system as the example:
b2 z 2 + b1 z + b0 b2 z −1 + b1 z −2 + b0 z −3
G (z) = = .
z3 2
+ a2 z + a1 z + a0 1 + a2 z −1 + a1 z −2 + a0 z −3
The A, B, C, D matrices of the canonical forms are exactly the same as those in continuous-time cases.
6
Xu Chen 1.5 Discrete-Time Transfer Functions and Their State-Space Canonical Forms January 9, 2021
x1 (k + 1) p1 0 0 x1 (k) 1
x2 (k + 1) = 0 pm 1 x2 (k) + 0 u (k)
x3 (k + 1) 0 0 pm x3 (k) 1
x1 (k)
y (k) = k1 k2 k3 x2 (k)
x3 (k)
where k2 = (β + ασ)/ω, k3 = α.
Exercise: obtain the controllable canonical form for the following systems
7
Xu Chen 1.6 Similar Realizations January 9, 2021
z −1 −z −3
• G (s) = 1+2z −1 +z −2
b0 z 2 +b1 z+b2
• G (s) = z 3 +a0 z 2 +a1 z+a2
T x∗ = x.
We can rewrite the differential equations defining Σ in terms of these new states by plugging in x = T x∗ :
d
(T x∗ (t)) = AT x∗ (t) + Bu(t),
dt
to obtain
ẋ∗ (t) = T −1 AT x∗ (t) + T −1 Bu(t)
Σ∗ :
y(t) = CT x∗ (t) + Du(t)
This new realization
T −1 AT T −1 B
Σ∗ = , (12)
CT D
also realizes G(s) and is said to be similar to Σ.
Similar realizations are fundamentally the same. Indeed, we arrived at Σnew from Σ via nothing more than a
change of variables.
is similar to
0 0 −a0 b0
1 0 −a1 b1
Σ∗ =
0 1 −a2 b2
0 0 1 d