Professional Documents
Culture Documents
3 State-space realizations
Learning objectives
Students will be able to explain state transformations as well as apply selected transformations
(in particular, addressing observability and controllability properties). In addition, they will be
able to interpret and work out realizations of input-output descriptions in the state space.
No. Topic
1 Introduction (admin, system classes, motivating example)
2 Linear algebra basics
3 Response of linear systems incl. discrete-time representations
4 Laplace and z-transforms (complex frequency domain)
5 Frequency response
6 Stability
7 Controllability and observability
8 State transformation and realizations
9 State feedback and state observers
where x̃C / x̃C are the un-/reachable states. Applying (8.2), the transformation matrix is
P = p1 p2 · · · pnc · · · pn ∈ Rn×n ,
(8.8)
with p1 , . . . , pnc being the linearly independent columns of C and pnc +1 , . . . , pn are arbitrarily
chosen so that transformation P is nonsingular.
Oliver Wallscheid AST Topic 08 5
Standard form for unreachable systems (2)
In
d x̃C Ã11 Ã12 x̃C B̃C
= + u,
x̃
dt C 0 Ã22 x̃C 0
y = C̃C C̃C x̃ + Du,
one can directly observe that x̃C must incorporate only unreachable states, since it is
completely decoupled from the input (both directly and indirectly via x̃C ). Nevertheless, in the
following we want to prove that
I x̃C corresponds to the controllable states and
I P in (8.8) is the correct transformation matrix to receive the standard form for
unreachable systems.
Multiplying by A results in
· · · pn ∈ Rn×n
P = p1 p2 · · · pnc
while the zero matrix below Ã11 is characterized by the null space of C.
Oliver Wallscheid AST Topic 08 8
Proving Theo. 8.1 (2)
In addition,
B̃C
= B̃ = P −1 B
0
applies, since R(B) ⊆ R(C) and, therefore, the columns of B can be linearly represented by
the vectors in Pnc .
Hence, we could show that the state transformation P results in the standard form for
uncontrollable systems (8.7).
Finally, we need to show that the pair (Ã11 , B̃C ) is controllable. The controllability matrix for
(Ã, B̃) is
1 2 0 −1 0 1
with rank(C) = 2 < 3 = n. Hence, we may transform this unreachable system applying
Theo. 8.1 with the following transformation matrix where the first two columns are from C
while the third column was choose such that P is nonsingular (and triangular):
1 0 0
P = 1 1 0 .
1 2 1
Oliver Wallscheid AST Topic 08 11
Example (2)
The resulting, transformed matrices are then
1 0 0 0 −1 1 1 0 0
à = P −1 AP = −1 1 0 1 −2 1 1 1 0
1 −2 1 0 1 −1 1 2 1
"
0 1 1 #
à 11 à 12
= 0 −1 0 = ,
0 Ã22
0 0 −2
1 0 0 1 0 1 0
−1 B̃C
B̃ = P B = −1 1 0
1 1 = 0 1 =
.
0
1 −2 1 1 2 0 0
Consequently, the subsystem defined via Ã11 and B̃C is controllable and corresponds to the
eigenvalues λ1,2 = {0, −1} of A. The third eigenvalue λ3 = −2 is uncontrollable, but
stabilizable.
Oliver Wallscheid AST Topic 08 12
Standard form of unreachable systems and the PBH test
In the last section we have introduced the Popov-Belevitch-Hautus (PBH) test which said that
the state xi corresponding to the eigenvalues λi is uncontrollable if
rank ([λi I − A, B]) < n.
With the standard form of unreachable systems we can actually prove that statement easily:
Assume that the considered system has been already transformed into (8.7) with
Ã11 Ã12 B̃C
à = , B̃ = .
0 Ã22 0
The PBH test results is then
λ I − Ã −Ã12 B̃C
rank [λi I − Ã, B̃] = i 11
.
0 λi I − Ã22 0
where x̃O / x̃O are the un-/observable states. Applying (8.2), the transformation matrix is
P = p1 · · · pn−no pn−no +1 · · · pn ∈ Rn×n ,
(8.11)
with pn−no +1 , . . . , pn being a basis of the unobservable subspace N (O) (i.e., Opi = 0) and
p1 , . . . , pn−no are arbitrarily chosen so that transformation P is nonsingular.
Oliver Wallscheid AST Topic 08 14
Example (1)
Consider the continuous-time LTI system given by
0 1
A= , C= 1 1 .
−2 −3
Here, the subsystem defined by ÃO and C̃O is observable and corresponds to the eigenvalue
λ1 = −2 of A. The state belonging to the second eigenvalue λ2 = −1 is unobservable but
detectable since it is asymptotically converging to zero.
Here, x̃CO are the observable and reachable states, x̃CO are reachable but unobservable, x̃CO
are observable but unreachable and x̃CO are both unreachable and unobservable. The
transformation matrix is
P = PCO PCO PCO PCO (8.13)
where PCO is an n × nco matrix whose columns form an orthonormal basis for the reachable
and observable subspaces, PCO is an n × nco matrix whose columns form an orthonormal basis
for the reachable and unobservable spaces, etc.
Oliver Wallscheid AST Topic 08 17
Table of contents
3 State-space realizations
assuming
B, AB, . . . , An−1 B
rank(C) = rank = n, rank(B) = m ≤ n. (8.15)
In this case, we can apply a special basis transformation P = Pc for an equivalent controller
form representation given by {Ac , Bc , Cc , Dc }. If rank(C) < n holds, one first transforms the
systems into the standard form for unreachable systems from Theo. 8.1 and then applies the
following transformation into controller form to the reachable subsystem only.
Note that we will handle only the single-input case (m = 1). For m > 1 we refer to the
recommended lecture books (e.g., A linear systems primer, chapter 6.4).
Oliver Wallscheid AST Topic 08 19
Controller form (2)
and where the coefficients ai are the coefficients of the characteristic polynomial of A:
The controller form will allow us an easy, direct realization of certain input-output system
descriptions into the state space.
Oliver Wallscheid AST Topic 08 20
Controllability of the controller form (1)
B, AB, . . . , An−1 B
rank(C) = rank = n.
Writing down A3c , A4c , . . . basically reveals that the ones on the minor diagonal move upwards
in Aic . Using the unit vector notation (zero vector with only a one entry at the i-th position)
we can write T
ei+1
..
Aic = . (8.19)
T
en
∗
where ∗ are some arbitrary entries in the matrix which are not relevant for the reminder of the
proof.
To prove that (8.22) transforms any controllable state-space system into the controller form
we first show that Pc B = en applies. For that we use C −1 C = I:
qT eTn C −1 B eTn e1
0
qT A eTn C −1 AB eT e2 0
n
Pc B = B = = .. = .. .
.. ..
. . . .
qT An−1 eTn C −1 An−1 B eTn en 1
qT An−1 qT An
For the left-hand side we receive:
qT qT A
qT A qT A2
Ac Pc = Ac = .
.. ..
. .
qT An−1 −a0 qT − a1 qT A − · · · − an−1 qT An−1
Hence, the first n − 1 rows are identical. Additionally, the last row identity
qT An = −a0 qT − a1 qT A · · · − an−1 qT An−1
directly follows from the Cayley-Hamilton theorem (multiplied by qT and rearranged).
Oliver Wallscheid AST Topic 08 26
Example
Consider the system
−1 0 0 1
A = 0 1 0 , B = −1 .
0 0 −2 1
We have
1 −1 1 1 −1/3 −1/3
C = B, AB, A2 B = −1 −1 −1 , C −1
rank(C) = 3, = −1/2 −1/2 0 .
1 −2 4 −1/2 −1/6 1/3
Hence, we can transfer into controller form using the characteristic polynomial
det(sI − A) = s3 + 2s2 − s − 2:
T
0 1 0 0 q −1/2 −1/6 1/3
Ac = 0 0 1 , Bc = 0 , Pc = qT A = 1/2 −1/6 −2/3 .
2 1 −2 1 qT A2 −1/2 −1/6 4/3
In this case, we can apply a special basis transformation Po for an equivalent observer form
representation given by {Ao , Bo , Co , Do }. If rank(O) < n holds, one first transforms the
systems into the standard form for unobservable systems from Theo. 8.3 and then applies the
following transformation into observer form to the observable subsystem.
Note that we will handle only the single-output case (p = 1). For p > 1 we refer to the
recommended lecture books (e.g., A linear systems primer, chapter 6.4).
Oliver Wallscheid AST Topic 08 29
Observer form (2)
and where the coefficients ai are the coefficients of the characteristic polynomial of A:
The observer form will allow us an easy, direct realization of certain input-output system
descriptions into the state space.
Oliver Wallscheid AST Topic 08 30
Observability of the observer form
The proof follows the same line as in the controller form case or could be argued using the
duality properties from Theo. 7.18.
It should be noted that the observer form given from (8.28) is not unique. Similar to the
controller form, three other variants can be found for the single-output case.
Again, the proof follows the previous approach from the controller form or could be argued via
the dual system representation. Hence, the proof is dropped in the following.
Hence, we can transfer into observer form using the characteristic polynomial
det(sI − A) = s3 + 2s2 − s − 2:
0 0 2 −2 −2 −1
−1
Ao = 1 0 1 , Co = 0 0 1 , Po = q̃ Aq̃ A2 q̃
= 1 −3 0 .
0 1 −2 1 −1 1
assuming
In this case, we can apply a special basis transformation Pm for an equivalent modal form
representation given by {Am , Bm , Cm , Dm }. If A is not diagonalizable, the following
transformation can be easily modified to Jordan form.
Note that we will handle only the SISO case (p = m = 1). For {m, p} > 1 we refer to the
recommended lecture books.
where λi are the eigenvalues of A. In contrast, {Bm , Cm , Dm } do not have special shapes.
The modal form decouples the transformed states x̃. This simplifies the analysis of the
transformed system as well as the calculation of the system response. For special input-output
models, realizations can be found directly.
Oliver Wallscheid AST Topic 08 35
Modal form (3)
and, therefore, they are linearly independent. The modal transform results in
−1 1 1 1 2 −1
Pm = , Pm =
−4 2 6 4 1
and
−4 0 1/6
Am = , Bm = 5/6
, Cm = −3 3 .
0 2
3 State-space realizations
In simple words: the transfer function matrix H(s) / H(z) contains no information about
unobservable and/or uncontrollable parts of the system. Unobservable and/or uncontrollable
eigenmodes of a system do not influence its (external) input-output behavior.
Oliver Wallscheid AST Topic 08 43
Finding a minimal realization
I In contrast, for the SISO case one can find direct mappings between the transfer function
and special state-space representations, which pick up on the previously introduced
observer and control form. We will reduce our consideration to this case.
I For a compact presentation, we will consider only the continuous-time case. The transfer
and the general statements in the discrete-time case are analogous.
Let
n(s) bn sn + · · · + b1 s + b0
H(s) = = n (8.41)
d(s) s + an−1 sn−1 + · · · + a1 s + a0
be the transfer function of a LTI SISO system with prime polynomials n(s) and d(s). The
corresponding n-th order ODE that directly maps y(s) = H(s)u(s) (assuming zero initial
conditions) is
dn dn−1 d dn d
n
y + an−1 n−1
y + · · · + a 1 y + a 0 y = bn n
u + · · · + b1 u + b0 u (8.42)
dt dt dt dt dt
or
d(q)y(t) = (q n +an−1 q n−1 +· · ·+a1 q+a0 )y(t) = (bn q n +· · ·+b1 q+b0 )u(t) = n(q)u(t) (8.43)
Cc and Dc define the numerator elements of H(s). Hence, choose Cc and Dc so that
and hence the remaining task is to find the elements of Cc to fit n(s):
I if bn = 0: Cc = [b0 , . . . , bn−1 ],
I if bn 6= 0: Cc = [b0 − bn a0 , b1 − bn a0 , . . . , bn−1 − bn an−1 ].
with
0 · · · 0 −a0 b0 − bn a0
1 · · · 0 −a1 b1 − bn a1
Ao = . . , B = ,
. .. o ..
.. . . ..
. . (8.49)
0 · · · 1 −an−1 bn−1 − bn an−1
Co = 0 0 · · · 0 1 , Do = bn .
Theorem 8.12: Minimal realization via observer form
The representation (8.48) is a minimal realization of H(s) given in (8.41).
Also here, the proof can be found by the duality property or by calculating the transfer
function of the above state-space model.
Oliver Wallscheid AST Topic 08 48
Example (1)
Consider the transfer function
s3 + s − 1
H(s) = .
s3 + 2s2 − s − 2
To find a realization in controller form we first evaluate
lim H(s) = 1 = Dc and n(s) = s3 + s − 1 = Cc sT + Dc d(s)
s→∞
leading to
Cc sT = (s3 + s − 1) − (s3 + 2s2 − s − 2) = −2s2 + 2s + 1 = [1, 2, −2][1, s, s2 ]T .
Therefore, the controller form realization results in
0 1 0 0
Ac = 0 0 1 , Bc = 0 , Cc = 1 2 −2 ,
Dc = 1.
2 1 −2 1
Suppose now that we want to determine a realization in observer form. To achieve that, we
have two options:
I We follow the same way analogous to the controller form as summarized in (8.48).
I Or we could use the duality property (cf. Def. 7.13).
s3 − 1
H(s) = .
s3 + 2s2 − s − 2
Following the same procedure as before, one can derive the realization:
0 1 0 0
Ac = 0 0 1 , Bc = 0 , Cc = 1 1 −2 , Dc = 1.
2 1 −2 1
However, while this realization is controllable one can find that it is not observable:
Cc 1 1 −2
rank(O) = rank Cc Ac = rank −4 −1 5 = 2 < 3 = n.
Cc A c2 10 1 −11
This seems to be a conflict compared to Theo. 8.11, since the above realization is not minimal.
Oliver Wallscheid AST Topic 08 51
Example (4)
The root cause for this issue is, that H(s) does not contain prime polynomials since d(s) and
n(s) share the same factor (s − 1). Hence, we can cancel this factor:
s3 − 1 s2 + s + 1 −2s − 1
H(s) = 3 2
= 2
= 2 + 1.
s + 2s − s − 2 s + 3s + 2 s + 3s + 2
The initial form of H(s) in this example was in conflict with our assumption (8.41). After the
above zero-pole cancellation, one can apply (8.46) again and find the following controller form
realization
0 1 0
Ac = , Bc = , Cc = −1 −2 , Dc = 1,
−2 −3 1
which actually represents a minimal realization, i.e., it is both controllable and observable.
I The commands require to install the Control (System) Toolbox in Matlab or GNU Octave.
I The canon() command is only available in the Matlab System Identification Toolbox.
I Only applicable to LTI systems (in continuous or discrete time).
Oliver Wallscheid AST Topic 08 53
Summary: what you’ve learned in this section
I The state transformation alters the state-space representation while the input-output
behavior remains unchanged.
I We introduced standard forms for unobservable / uncontrollable systems including the
combination of both via the Kalman decomposition separate unobservable /
uncontrollable system parts.
I In addition, we have introduced special state-space representations which are observable
and/or controllable by design.
I A realization is a state-space model of a given external system description (transfer
function, impulse response), which has the same input-output behavior.
I This mapping is not unique and if an external system description is realizable, there are
infinitely many realizations. Different algorithms exist to automatically find realizations.
I A minimal realization achieves that mapping with the least amount of states.
I If a state-space model is controllable and observable, it is a minimal realization.
I For SISO systems, one can find realizations in controller and observer form by direct
mappings between the transfer function and the state-space representation.
Oliver Wallscheid AST Topic 08 54
End of this section