Professional Documents
Culture Documents
Controllability and Observability: 8.1 Definitions
Controllability and Observability: 8.1 Definitions
Controllability and
Observability
We first encountered the concepts of controllability and observability in
Examples 3.10 and 3.11. In those examples, we demonstrated the rank
conditions for solving systems of simultaneous linear algebraic equations. At
that time, the controllability problem was to ascertain the existence of a
sequence of inputs to a discrete-time system that would transfer the system’s
initial state to the zero vector. The observability problem was to determine the
existence of the solution of the state equations such that, if the input and output
sequences were known for a certain duration, the system’s initial state could be
deduced. In those examples, we derived a test for such conditions, indicating
whether the system considered was controllable and/or observable.
In this chapter, we will continue this discussion, investigating the
controllability and observability properties of linear systems in more detail, and
extending the results to continuous-time systems. This will mark the first step in
the study of linear system controller design. We will see in Chapter 10 that the
first stage of the design of a linear controller is often the investigation of
controllability and observability, and that the process of testing a system for
these properties can sometimes dictate the subsequent procedures for the design
process.
8.1 Definitions
The descriptions of controllability and observability given in Examples 3.10 and
3.11 will serve as the foundation of the definitions we will use in this chapter. In
these definitions, and throughout most of this entire chapter, we make no
distinction between SISO and MIMO systems.
312 Part II. Analysis and Control of State Space Systems
P B AB A k 1 B (8.3)
had rank greater than or equal to n, the order of the system. At the time, we
made the note that because this P matrix is n k , this rank condition will in
general require that k n . We have since encountered the Cayley-Hamilton
Chapter 8. Controllability and Observability 313
theorem, which eliminates the need to consider any power of matrix A greater
than n 1 . We can therefore restate the condition for controllability as follows:
An n-dimensional discrete-time LTI system is controllable if and only if the
matrixM ctrb(A,B)
P Bd Ad Bd Ad n 1Bd (8.4)
has rank n.
Exactly analogous reasoning leads to the additional statement: An n-
dimensional discrete-time LTI system is observable if and only if the matrixM
obsv(A,C)
LM C d OP
QM PP
C A
MM
d d
(8.5)
NC A d d
n 1 PQ
has rank n. The subscript d in each case refers to the fact that the system
matrices come from a discrete-time system.
We will call these two matrix tests the fundamental tests for controllability
and observability. They are by far the most common tests and are
preprogrammed into many control system analysis and design software
packages. Matrix P is often referred to as the controllability matrix, and Q is
referred to as the observability matrix. We will now proceed to show that the
exact same tests can be used to determine the controllability and observability
properties of continuous-time LTI systems. Only the derivation and proof differ.
Actually, we will present the (fairly lengthy) constructive proof only for
controllability. Observability is a dual concept, and the proof of the observability
test can be reconstructed by analogy to controllability.
P B AB An 1B (8.6)
LM C OP
QM
CA P
MM PP (8.7)
NCA Q n 1
314 Part II. Analysis and Control of State Space Systems
has rank n.
z
t
x( t ) e A( t t0 ) x( t0 ) e A( t ) B u( ) d (8.8)
t0
z
t1
e A( t1 ) B u( ) d e A( t1t0 ) x( t0 ) 1
t0
n
e A( t1 ) i ( ) An i
i 1
we can express
L O
z M A B ( )P u( ) d
t1 n
ni
N
t0 i 1 Q i
z
t1
n 1
A B 1 ( )u( ) A n 2 B 2 ( )u( )
t0
A 0 B n ( )u( ) d
Chapter 8. Controllability and Observability 315
z z
t1 t1
A n 1 B 1 ( )u( ) d A n 2 B 2 ( )u( ) d
t0 t0
(8.9)
z
t1
B n ( )u( ) d
t0
Defining
z
t1
i i ( ) u( ) d (8.10)
t0
This gives
LM OP LM OP
n n
1 B AB A n 1
B M P PM P (8.11)
MN PQ MN PQ
1 1
As mentioned, the observability test follows dual reasoning and results in the
requirement that r ( Q ) n , where Q is defined in (8.5).
Solution.
First, we notice that
diL ( t )
vC ( t ) v s ( t ) v x ( t ) v s ( t ) L
dt
so
316 Part II. Analysis and Control of State Space Systems
diL ( t ) 1 1
v s ( t ) vC ( t ) (8.12)
dt L L
which is one of the necessary state equations. Furthermore, for the capacitor
voltage,
dv C ( t ) 1
iC ( t )
dt C
FG
1
iL (t ) i R (t ) C
IJ
v (t )
CH R K
1F v (t ) v (t ) v (t ) I
(8.13)
G i (t ) J
CH R K
s C C
L
R
iL ( t ) 2v C ( t ) v s ( t )
C RC RC
N i (t ) Q MN 1L
C
P
0PN
M C
P M RC P v ( t )
Q Q MN L PQ
1 s
L i (
L t )
v x (t ) v s (t ) v C (t ) (8.14)
1 0
LMv (t )OP v (t )
C
N i (t ) Q
L
s
C
i
R2
vC (t )
v s (t ) L v x (t )
LM 1
2
1 OP
AB M PP
2 2
RC R C LC
P B
MM 1 1 PP
(8.15)
MN L
RLC Q
The rank of this matrix can be checked by determining the determinant:
1 2 1
2 2
RC R C LC 1 2 1
2 2
2 2
2
1 1 R LC R LC LC
(8.16)
L RLC
1 1
R 2 LC 2 L2 C
If we want the conditions under which this determinant is zero, we solve the
equation
1 1
2 2
2 0 (8.17)
R LC LC
which gives
L
R (8.18)
C
LM 1 OP0
QM 2 1P (8.19)
MN RC P
CQ
which obviously is always of full rank. Hence, the system is always observable,
but becomes uncontrollable whenever R L C .
It is useful to think in classical terms in this example to see the significance
of controllability. If we were to calculate the transfer function between the
output Vx ( s ) and the input Vs ( s ) (using conventional circuit analysis
techniques), we might first find the differential equation:
318 Part II. Analysis and Control of State Space Systems
d 2v x (t ) 2 dv x ( t ) 1 d 2 vs (t ) 1 dv s ( t )
2
v x (t ) (8.20)
dt RC dt LC dt 2 RC dt
FG
s s
1 IJ
Vx ( s)
H RC K (8.21)
Vs ( s ) 2 1
s2 s
RC LC
2 4 4
2 2
RC R C LC 1 1 1
s1,2 (8.22)
2 RC R 2 C 2 LC
1 1 1 1 1 1 1
s1,2 22
(8.23)
RC R C LC RC LC LC RC
FG
s s
1 IJ
Vx ( s)
H RC K
s
Vs ( s ) FG s 1 IJ FG s 1 IJ FG s 1 IJ (8.24)
H RC K H RC K H RC K
which is now a first-order system. What has apparently happened is that the
energy storage elements, in conjunction with this particular resistance value, are
interacting in such a way that their effects combine, giving an equivalent first-
order system. In this case, the time constants due to these two elements are the
same, making them equivalent to a single element. One might contrast this to a
circuit with two capacitors in series or parallel, which can be combined by
adding to give a single equivalent capacitance. In this case, the capacitor and
inductor together result in an equivalent first-order system, but only for a
specific value of R.
Chapter 8. Controllability and Observability 319
vA v (8.25)
where obviously, v must be a row vector. Given this definition, a new test for
controllability may be stated as follows:
vB 0 (8.26)
PROOF: (Sufficiency) Suppose there exists a nonzero left
eigenvector v such that vB 0 . Then we could multiply (8.25)
from the right by B to achieve
vAB vB 0
vA2 B vAB 2 vB 0
vP v B AB A n 1B 0
e
r B AB An 1B n j
Then there exists a nonzero vector v such that
0v B AB A n 1 B
vB vAB vA n 1B
0 vB vAB vA n 1B
vB vB n 1vB
c h
PROOF: (Sufficiency) If r sI A B n , then there can
exist no nonzero vector v such that
v sI A B v ( sI A) vB 0
F LsI AOI n
r GH MN C PQJK (8.28)
for all s.
x Ax Bu
(8.29)
y Cx Du
x Ax Bu
(8.30)
y Cx Du
LM A 1
1 OP LM B 1
1 OP
MM PP MM PP
MM Ag1 PP MM B1 PP
A MM PP B MM PP
1 g1
(8.31)
MM A1 m
PP MM B
1 PP
MM PP MM PP
m
MM Ag m
PP MMB
1 PP
N m Q N
gm Q
where A j i stands for the jth Jordan block corresponding to eigenvalue i . As
we know, there will be a number of these blocks equal to the geometric
multiplicity g i of the eigenvalue. In this notation, m is the number of distinct
eigenvalues. In the matrix B , we have simply partitioned the rows to correspond
to the partition of rows in the matrix A .
Now consider performing the Hautus test with the matrices A and B , i.e.,
determine the rank of the matrix [sI A B ] . We will do this by counting the
number of linearly independent rows in this matrix. First, if s is not an
eigenvalue of A , then each subblock of sI A will itself be of full rank, so
there will automatically be n linearly independent rows, and
r ([sI A B ]) n . If however s is an eigenvalue, say s 1 , then the Jordan
blocks corresponding to eigenvalues other than 1 , i.e., A j i for i 1 , will each
have full rank, but the blocks corresponding to s 1 will be rank deficient.
Suppose for the sake of argument that there are only two such blocks for 1 , so
that the rows of sI A B corresponding to s 1 appear as
Chapter 8. Controllability and Observability 323
LM0 1 0 0 b111 OP
MM 0 P
P
MM
1
0 0
PP
MM0 0 b111 PP
MM 0 1 0 0 b211 PP (8.32)
MM 0 PP
MM 0
1
0
PP
MM 0 b212 PP
N 0
Q
where the last column represents the appropriate rows of the blocks B11 and
B21 and where bij1 is the jth row of block Bi1 . We are assuming that these
two blocks have 1 and 2 rows, respectively. It is clear from this structure that
the first 1 1 rows of the first block are linearly independent and that the first
2 1 rows of the second block are also linearly independent (of each other and
of the first block). Therefore, if and only if the two rows b111 and b212 are
independent will we have a complete set of n linearly independent rows. Of
course, this applies to any number of Jordan blocks, for any number of repeated
eigenvalues.
To state the results succinctly: Denote by B i the matrix consisting of the
rows of the B -matrix that each corresponds to the last row of a different Jordan
block for eigenvalue i . That is,
LM bi
11
OP
MM PP
B i (8.33)
MMb
i PP
N
gi g i
Q
A system in Jordan form is controllable if and only if all the rows of B i are
linearly independent for every i . Rows of the B -matrix that correspond to
blocks from different eigenvalues do not necessarily have to be linearly
independent of one another.
324 Part II. Analysis and Control of State Space Systems
This statement has some obvious implications for simpler systems. For
example, consider single-input systems. If a single-input system in Jordan form
has a B -matrix whose rows that correspond to the last rows of the Jordan blocks
for any eigenvalue are linearly independent, then there must be only a single
Jordan block for each eigenvalue. This is because B will consist of a single
column. Therefore, if we gather all the rows as in B i above, we will again
have a single column, which has at most rank 1. Two scalars are never linearly
independent of one another. This extends to the case where the A -matrix is
diagonal, even if there are repeated eigenvalues (as is the case with symmetric
matrices). There must be no more than one Jordan block for any eigenvalue, so
any diagonal single-input system with repeated eigenvalues will inevitably be
uncontrollable. In general, a system must have at least as many inputs (columns
of B) as there are Jordan blocks for the eigenvalue that has the most Jordan
blocks in order for the system to be controllable.
Furthermore, suppose a Jordan form consists of a diagonal A -matrix with
distinct eigenvalues. Then the diagonal form can be considered a collection of
1 1 blocks, each corresponding to a different eigenvalue. Therefore, for
controllability, each row of the B -matrix must simply be nonzero.
To extend these arguments to tests for observability, we change each
reference from the row(s) of the B -matrix corresponding to last row(s) of the
Jordan form to the column(s) of the C -matrix corresponding to first column(s)
of the Jordan form. An example to illustrate this concept is presented here.
Solution:
Rather than redraw the system equations, we will mark them up as indicated to
show the relevant rows and columns. Note that there are two Jordan blocks for
the eigenvalues –5 and 0 while the other eigenvalues correspond to only a single
block each. There are two inputs and one output, providing a two-column B -
matrix, and a one-row C -matrix.
The arrows indicate the relevant rows and columns, with the arrows tied
together for the rows that correspond to the Jordan blocks of a single eigenvalue.
Examination of the B -matrix reveals that the rows corresponding to Jordan
blocks for 5 are linearly independent of each other. However, the two
rows corresponding to the two blocks for 0 are not linearly independent.
Therefore the system is not controllable. As for observability, we know
Chapter 8. Controllability and Observability 325
immediately that because the C -matrix is a single row and some eigenvalues
are providing multiple Jordan blocks, the system cannot possibly be observable.
5 0 1
1 0 lin. indep.
5 1
5 1 1
nonzero
3 2 2
A B
4 1 0 0
4 1 0 nonzero
0 0 1
not lin.
0 0 1 indep.
C 1 1 1 2 1 0 0 3
Figure 8.2 Marked-up Jordan form matrices showing criteria for controllability
and observability.
One may reasonably ask the question “How can a system consisting of a
single Jordan block be controllable if all the state variables must be controlled
with a single input?” For example, the system
x
LM2 1 OP x LM0OPu Ax Bu
N0 2 Q N1Q
can easily be shown to be controllable, because
P B AB
LM0 1OP
N 1 2Q
but this demonstration does not make clear how the first state variable, x1 ( t ) ,
can be made to go to zero when there is no direct input to the first differential
equation of the system, x1 ( t ) 2 x1 ( t ) x2 ( t ) . The answer lies in the fact that
326 Part II. Analysis and Control of State Space Systems
Controllable Form
A system in controllable canonical form will appear as follows:
LM 0 1 0 0 OP LM0OP
MM 0 0 1 PP MM0PP
A
c
MM 0 0
0
1
PP Bc
MM0PP (8.34)
MNa 0 a1 a n 2 a n 1 PQ MN1PQ
Cc arbitrary; no special structure
LM a n 1 1 0 0 OP
MMa n2 0 1 P LMarbitrary; OP
A 0P M no special P
o
MM a
0 1P
P Bo
MNstructure PQ (8.35)
MN a 0PQ
1
0 0 0
Co 1 0 0 0
The similarity in these forms is readily apparent. The common structure of the A-
matrix, i.e., the superdiagonal of 1’s and the single row or column of nonzero
Chapter 8. Controllability and Observability 327
entries (in either the last row or the first column, respectively) is known as a
companion form.M These two forms, the controllable canonical form and the compan(P)
observable canonical form, will be especially useful in the design of controllers
and observers that we will introduce in Chapter 10. For now, we will show an
algorithmic method for computing the transformation that changes the system
into these forms.
Consider a single-input system
x Ax bu
P b Ab A n 1b
LM OP
M PP
P 1
MM PQ
N p
P 1 P
LM OP b Ab A n 1b I (8.36)
N pQ
Considering only the bottom row of this matrix product, we see that
pb 0
pAb 0
(8.37)
n2
pA b0
pAn 1b 1
LM p OP
M PP
1 pA
U
MM PQ
(8.38)
N pA n 1
then it is clear from (8.37) that U 1b bc , demonstrating that the state space
transformation x Ux c will accomplish the transformation necessary for the b-
matrix.
Now consider what this transformation does for the A-matrix. Given U 1 in
(8.38), define the columns of U as follows:
U u1 u2 un
LM p OP LM1 0 0 OP
U M
pA P
M
0 1 P
U 1
MM PP u 1 u2 un
MM 0P
P
N pA Q n 1
N0 0 1Q
implying that
pAi u j
RS0 if i j 1
T1 if i j 1
LM p OP
AU M
pA P
U 1
MM PP A u 1 u2 un
N pA Q n 1
LM pA OP
M
MM PPP u u
2
pA
1 2 un
N pA Q
n
Chapter 8. Controllability and Observability 329
LM 0 1 0 0 OP
M 0 1 P
M 0 P
MM 0 0 1 P
P (8.39)
MN pA un
1 pA n u2 pA u PQ
n
n
In order to simplify the bottom row of this matrix, recall that the Cayley-
Hamilton theorem tells us that A n a n 1 A n 1 a1 A a0 I 0 , or
A n a n 1 A n 1 a1 A a0 I
LM 0 1 0 0 OP
M 0 1 PP
U 1 AU M
MM 0 0
0
1
PP (8.40)
MNa 0 a1 a n 1 PQ
We see therefore that the transformation x ( t ) Uxc ( t ) does indeed perform the
conversion to controllable canonical form. This results in
x c ( t ) U 1 AUxc ( t ) U 1bu( t )
Ac xc bc u
(8.41)
y ( t ) cUxc ( t ) du( t )
cc xc ( t ) d c u( t )
cn s n 1 c2 s c1
G( s ) d (8.43)
s a n 1s n 1 a1s a0
n
The reason that the system must be both observable and controllable for this to
work will become apparent in Chapter 9.
One may correctly guess that an analogous procedure is used for the
observable canonical form, using the first column of the inverse observability
matrix, etc. The result in Equation (8.43) pertaining to the transfer function also
follows the analogy, using the bc -matrix entries as the numerator of the transfer
function instead of the c c -matrix.
P B AB A n 1 B (8.44)
~ ~ ~~ ~ ~
P B AB A2B
M 1B M 1 AB M 1 A2 B
Chapter 8. Controllability and Observability 331
M 1B M 1 AB M 1 An 1B
M 1 B AB An 1B (8.45)
M 1P
~
Because M is nonsingular, r ( P ) r ( P ) . An analogous process shows that
~
r ( Q ) r ( Q ) . Thus, a system that is controllable (observable) will remain so
after the application of a similarity transformation.
So far, we have spoken of systems as being only controllable (observable)
or not. In the next section, we will consider uncontrollable (unobservable)
systems and investigate degrees of controllability (observability). We will
consider an uncontrollable (unobservable) system and ask: Is the system
controllable (observable) in part? If so, what part?
x (k 1)
+
u (k ) B z 1 x (k )
+
If we wish the system to be controllable and we do not know the initial state,
then we surmise that the input signal might need to have some components,
when mapped by B and traversing around the feedback loop up to n 1 passes,
in every possible direction of the state space. Requiring that
{u, Bu( t ), ABu( t ),, A n 1 Bu( t )} span the entire state space is synonymous to
the condition that r ( P ) n . One might picture this on a phase plane as the
ability to “push” the state vector around in all possible directions.
Now thinking about a similar system in continuous-time, we no longer have
a matrix equation like (3.55) that maps discrete samples of u( t ) into the state
space. Rather, the input feeds continuously into the state space and is integrated
by the convolution integral (6.6) before we arrive at an expression for the state.
This situation is pictured in Figure 8.4.
x (t )
u (t ) B
+ x (t )
+
l
X Y x y | x X, y Y q
Chapter 8. Controllability and Observability 333
X c A An 1 (8.46)
n
X o N( CAi 1 ) (8.47)
i 1
n
N( CAi1 ) (8.48)
i 1
As with the controllable and uncontrollable subspaces, we define X o X X o
and give the appropriate subspace dimensions as
F N(CA )I
n
no dim( X o ) dim GH i 1
JK
i 1
no n no
x Ax bu
(8.49)
y cx du
V v1 v nc v nc 1 v n (8.50)
By creating a new state vector x Vw , we will get the transformed system with
the form
w V 1 AVw V 1bu
y CVw du
* MIMO systems present special cases, because different inputs (outputs) may be more
or less useful in controlling (observing) the system. Multivariable systems are not
discussed here, but are in Chapter 10.
Chapter 8. Controllability and Observability 335
LM w OP LM A
1 c OPLM w OP LMb OPu
A12 1 c
Nw Q N 0
2 A Q Nw Q N 0 Q
c 2
y cc
Lw O
c M P du
1
(8.51)
Nw Q
c
2
LM u 1 OP
MM PP
U M PP
u no
MMu no 1
PP
MM u PQ
N n
LM z OP LM A
1 o 0OP LM z OP LMb OPu
1 o
Nz Q N A
2 21 A Q N z Q Nb Q
o 2 o
y co
Lz O
0 M P du
1
(8.52)
Nz Q 2
Here again, it is clear that the subsystem consisting of only the state variable
336 Part II. Analysis and Control of State Space Systems
components z 2 is in the null space of the observability matrix in the new basis
and will therefore be unobservable.
By carefully applying a sequence of such controllability and observability
transformations,* the complete Kalman decomposition will result in a system of
the block-form:
MM x PP MM A Aco A A P M x P Mb P
0 PM x P M 0 P
co 21 23 24 co co
u
MNxx
co
co
PQ MN 00 0
0
A
A
co
43
PM P M P
co
co
A QNx Q N 0 Q
co
LM x OP co
0 M P du
x
y cco
MM x PP
co
0 cco
co
Nx Q co
In this form, the four distinct subsystems are appropriately grouped and denoted,
e.g., ( Aco , cco ) represents the subsystem that is not controllable but is
observable. There are also coupling terms, e.g., A43 , but these do not affect the
controllability and observability properties of the subsystems. These
dependencies are illustrated in the block diagram of Figure 8.5. In this figure, the
dependencies of the subsystems on the input and the dependency of the output
on the subsystems are all apparent. We will see the further significance of the
Kalman decomposition in Chapter 9.
LM 2 1 1 OP LM1OP
x M 5 3 6P x M 0P u
MN5 1 4PQ MN0PQ
y 1 1 2x
* It is not simply a matter of applying one transformation after another. The full
procedure is left as an exercise.
Chapter 8. Controllability and Observability 337
xc o
Uncontrollable +
Unobservable
Ac o
A43
xco
Uncontrollable cc o
Observable
Ac o y (t )
+
A13
x co
Controllable
bco + c co
Observable
Aco
u (t )
A21
A23
A24
Controllable
Unobservable
bco + x co
Aco
Solution:
To first determine controllability and observability, we compute
338 Part II. Analysis and Control of State Space Systems
LM 1 2 4 OP
P b Ab A b M0
2
5 5P
MN0 5 5PQ
and
LM c OP LM 1 1 2 OP
Q M cA P M3 2 1P
MNcA PQ MN 9
2
4 13PQ
LM 1 2 0 OP
V M0 5 0P
MN0 5 1PQ
LM0 6 14
. O LM1OP
Aw V 1
AV M 1 1 . PP
12 bw V 1
b M0 P cw cV 1 3 2
MN0 0 2PQ MN0PQ
From this structure, we see that the two-dimensional controllable subsystem is
grouped into the first two state variables and that the third state variable,
represented by the ‘2’ block, has neither an input signal nor a coupling from the
other subsystem. It is therefore not controllable.
Lyapunov stable and the unobservable modes are also Lyapunov stable, thus
leading to the following two simple definitions:
x ( t ) A( t ) x ( t ) B( t )u( t )
(8.55)
y ( t ) C( t ) x ( t )
z
t1
Gc ( t0 , t1 ) ( t0 , ) B( ) B ( ) ( t0 , ) d (8.57)
t0
u( t ) B ( t ) ( t0 , t )Gc1 ( t0 , t1 ) x ( t0 ) (8.58)
x ( t1 ) ( t1 , t0 ) x ( t0 )
z
t1
( t1 , ) B( ) B ( ) ( t0 , ) Gc1 ( t0 , t1 ) x ( t0 ) d
t0
LM OP
z
t1
x ( t1 ) ( t1 , t0 ) x ( t0 ) ( t0 , ) B( ) B ( ) ( t0 , ) d Gc1 ( t0 , t1 ) x ( t0 )
MN t0 PQ
( t1 , t0 ) x ( t0 ) Gc ( t0 , t1 )Gc1 ( t0 , t1 ) x ( t0 )
( t1 , t0 ) x ( t0 ) x ( t0 )
0
z
t1
z Gc ( t 0 , t1 ) z z ( t 0 , ) B( ) B ( ) ( t 0 , ) z d
t0
2
B ( ) ( t 0 , ) z
0
implying
z ( t0 , ) B( ) 0 (8.59)
z
t1
0 ( t1 , t 0 ) z ( t1 , ) B( )uz ( ) d
t0
z
t1
z 1 ( t1 , t 0 ) ( t1 , ) B( )u z ( ) d
t0
(8.60)
z
t1
( t 0 , ) B( )u z ( ) d
t0
z
t1
z z z ( t 0 , ) B( )uz ( ) d 0
t0
342 Part II. Analysis and Control of State Space Systems
z
t1
( t , ) d ( t , ) B( ) B ( ) ( t , )
( t , ) B( ) B ( )
t
t
z
t1
A( t ) ( t , ) B( ) B ( ) ( t , ) d
t
z
t1
( t , ) B( ) B ( ) ( t , ) d A ( t ) B( t ) B ( t )
t
A( t )Gc ( t , t1 ) Gc ( t , t1 ) A ( t ) B( t ) B ( t )
so
d
Gc ( t , t1 ) A( t )Gc ( t , t1 ) Gc ( t , t1 ) A ( t ) B( t ) B ( t ) (8.61)
dt
(t )
M j ( t ) A( t ) M j 1 ( t ) M (8.62)
j 1
Chapter 8. Controllability and Observability 343
c
r M0 () M1 ( ) h
M n 1 ( ) n (8.63)
z ( t0 , t ) B( t ) 0 (8.64)
for t [t 0 , t1 ] . Define another vector z ( t0 , ) z . Then
(8.64) gives
z ( t0 , t ) B( t ) z ( , t0 )( t0 , t ) B( t )
z ( , t ) B( t )
0
for any t [t 0 , t1 ] . Supposing that t , this gives
z ( , ) B( ) z B( )
z M0 () (8.65)
0
Now differentiating (8.64) and evaluating at t ,
d
dt
e j
z ( t 0 , t ) B( t )
t
( t , t ) B( t ) ( t , t ) B ( t )
z 0 0
t
z
( t 0 , t ) A( t ) B( t ) ( t 0 , t ) B ( t )
t
z ( t 0 , t ) A( t ) B( t ) B ( t )
(8.66)
t
z ( t 0 , ) M 1 ( )
z M1 ( )
0
344 Part II. Analysis and Control of State Space Systems
( t , t ) ( t , t ) A( t ) is a result of
where the fact that 0 0
applying what we learned in Exercise 3.2 to find
d
dt e 1
j
( t , t0 ) . We can take a second derivative of (8.64),
which is most easily accomplished by taking the first
derivative of the fourth line of (8.66) above. This will lead to
d2
dt 2
e
z ( t0 , t ) B( t ) j t
d
dt
e
z ( t0 , t ) M1 ( t )j t
z M2 ()
0
by a similar process. Continuing a total of n 1 times, we will
develop the expression
z M0 () M1 ( ) M n 1 ( ) 0
We might note at this point the parallel alternative route this theorem
provides to the fundamental controllability test. If the system in question is time-
( t ) 0 , and the rank test will reduce to
invariant, then in (8.62), M j
?
r B AB A2 B ( 1) n 1 An 1B n (8.67)
However, if the matrices A and B are constant, then the rank of the above matrix
is not affected by the alternating negative signs, and the controllability matrix P
is apparent. Likewise, there is a route to the fundamental controllability test from
the controllability grammian condition, which exploits the series expansion for
( t , t0 ) e A( t t0 )
but we will not belabor the point by presenting that derivation here.
x ( t )
LM0 t OP x(t ) LM2OPu(t )
N1 t Q N t Q
Solution:
Using the test in (8.63), we generate the matrix
M1( t )
LM2 t 2 OP
M0 (t )
MN t ( t 2
1)PQ
LM2 t 2 OP t 3
2t 2 2
det
MN t ( t 2
1)PQ
z
t1
Go ( t0 , t1 ) ( , t0 )C ( )C( )( , t0 ) d (8.69)
t0
y ( t ) C( t )( t , t 0 ) x ( t 0 )
z z
t1 t1
( t , t0 )C ( t ) y ( t ) dt ( t , t0 )C ( t )C( t )( t , t0 ) x ( t0 ) dt
t0 t0
Go ( t0 , t1 ) x ( t0 )
(8.70)
Go ( t 0 , t1 ) x ( t 0 )
d
Go ( t , t1 ) A ( t )Go ( t , t1 ) Go ( t , t1 ) A( t ) C ( t )C( t ) (8.71)
dt
Chapter 8. Controllability and Observability 347
N j ( t ) N j 1 ( t ) A( t ) N j 1 ( t ) (8.72)
for j 1, , n .
LM N ( ) OP
0
M N ( ) PP
rM
1
MM PP n (8.73)
MN N ( )PQ
n 1
is, we may want to deduce the final state rather than the initial state. A system
for which this is possible is called reconstructible. As with reachability,
reconstructibility is equivalent to observability in continuous-time systems but is
somewhat different in discrete-time systems. We will revisit this distinction in
the next section as well.
x( k 1) Ad ( k ) x( k ) Bd ( k )u( k )
(8.74)
y( k ) Cd ( k ) x( k ) Dd ( k )u( k )
j
x( j ) ( j, j0 ) x0 ( j, i )B(i 1)u(i 1) (8.75)
i j0 1
which has a slight change in notation from Equation (6.52). Also recall that
j 1
( j, k ) Ad ( i ) )
i k
Chapter 8. Controllability and Observability 349
j
( j1 , j0 ) x0 ( j1, i ) B( i 1)u( i 1)
i j0 1
B( j1 1) ( j1 , j1 1) B( j1 2)
LM u( j 1) OP 1
( j , j 1) B( j ) M
u( j 2)P
MM PP
1
1 0 0 (8.76)
N u( j ) Q 0
LM u( j 1) OP 1
R ( j , j )M
MM PPP
u( j 2) 1
c 0 1
N u( j ) Q 0
have a solution for the vector of inputs (which is not necessarily unique). We
call the matrix Rc ( j0 , j1 ) defined in (8.76) the reachability matrix. In the case
of a time-invariant system, as we have seen, the matrix becomes
Rc ( j0 , j1 ) Bd Ad Bd Adj11Bd
j
xf ( j, i ) B( i 1)u( i 1)
i j0 1
LM u( j 1) OP
1
(8.77)
R ( j , j )M
u( j 2)P
MM PP
1
c 0 1
N u( j ) Q 0
b
r Rc ( j0 , j1 ) n g (8.78)
for reachability, hence the name reachability matrix. This is true regardless of
the number of system inputs. [For multi-input systems, the solution of (8.76)
may require a pseudoinverse, as discussed in Chapter 3.] For this reason, the
property of reachability is more desirable than controllability for discrete-time
systems. A discrete-time system can be controllable without being reachable.
Note that the observation about the minimum number of time steps required still
Chapter 8. Controllability and Observability 351
applies, just as it did for controllability. Thus, although singularity of the state-
transition matrix is no longer an issue, the length of the control interval still is.
For the time-invariant case, with Ad ( k ) Ad and Bd ( k ) Bd the
reachability matrix condition is
b g e ?
r Rc r Bd Ad Bd Adn 1Bd jn (8.79)
Reachability Grammians
As with controllability, there are alternate tests for reachability although, as in
continuous-time, (8.6) or (8.7) is by far the most common. Fortunately, the
discrete-time reachability grammian test is considerably easier to prove than it
was in continuous-time.
Define the reachability grammian as the matrixM gram(sys,’c’)
j 1
1
Hc ( j0 , j1 ) ( j1, i 1)B(i )B (i ) ( j1, i 1) (8.80)
i j0
x( 0) 2 2 2 4 3 to the zero state, and find an input sequence that
does so.
LM 1 0 0 0 0 OP LM1OP
MM0 0 1 0 0P M 0P
x ( k 1) 0 0.5 1 0P x ( k ) M1P u( k )
MM0 0 0
0
0 1P
P MM1PP (8.82)
e
r ( P ) r bd Ad bd Ad2bd Ad3 bd Ad4bd j5
so that the system is clearly controllable (and reachable). This guarantees that
after five time steps, the equation
LMu( j 1)OP
A x ( 0) P M
MM u(1) PPP
j
d
N u(0) Q
with j 5 has a unique solution for any possible x( 0 ) .
However, for the given x( 0 ) in particular, we need only satisfy the
requirement that
Ad x ( 0 ) bd u( 0 ) (8.83)
b g c
from which we find that r [bd ] r Ad x( 0) bd h , so (8.83) cannot have a
solution. After two time steps, we must solve
Chapter 8. Controllability and Observability 353
Ad2 x( 0) bd Ad bd
LM u(1) OP (8.84)
Nu(0)Q
This time, we can find that
b
r [bd g e
Ad bd ] r Ad2 x( 0) bd Ad bd j ( 2) (8.85)
LM u(1) OP b Ad bd
e A x(0)j LMN11OPQ
2
Nu(0)Q d d
x(1) Ad x( 0) bd u( 0) 1 2 0 2 1
x( 2) Ad x(1) bd u(1) 0 0 0 0 0
Thus, although the system requires at least five steps to ensure a solution for an
arbitrary initial condition, there are certain initial conditions which can be
“controlled” with fewer steps.
initial state x ( j0 ) are the same for the zero-state response as for the complete
response. We will thereafter simplify our algebra by considering only the zero-
state response.
First we consider the general solution for output y ( j ) as derived in Chapter
6:
y ( j ) Cd ( j )( j, j0 ) x ( j0 )
j
(8.87)
Cd ( j ) ( j, i ) Bd ( i 1)u( i 1) Dd ( j0 )u( j0 )
i j0 1
Beginning with the initial condition x ( j0 ) x 0 , we can write the first few terms
of this solution, similar to what we did for the time-invariant case in Chapter 3:
y ( j0 ) Cd ( j0 ) x0 Dd ( j0 )u( j0 )
y ( j0 1) Cd ( j0 1)( j0 1, j0 ) x0
(8.88)
C( j0 ) Bd ( j0 )u( j0 ) Dd ( j0 1)u( j0 1)
LM y( j ) OP LM
0 C (j ) d 0 OP LM y ( j ) OP
zs 0
where y zs ( j ) stands for the zero-state response at time j, which includes all the
terms of (8.88) that include input u( j ) . In order to determine x 0 , we can
subtract this zero-state response vector from the left-hand side, but this will not
change the rank condition that then becomes apparent for the coefficient matrix
of x 0 . It is therefore not important that we consider the zero-input portion of
(8.88) at all, and for simplicity we simply omit it.
Therefore, because x 0 n , and we require a unique solution, (8.89)
implies the observability condition that
Chapter 8. Controllability and Observability 355
FL C (j ) OI
GG MMC ( j 1)( j 1, j )PPJJ
d 0
PPJ rb R ( j , j )g n
GG MM
d 0 0 0
r 0 0 1 (8.90)
H N C ( j 1)( j 1, j ) QJK
d 1 1 0
Again, we will work with (8.89) in such a way that the zero-state responses
are irrelevant and will therefore be neglected. To determine our
reconstructibility test, we note that without this zero-input part, (8.89) becomes
LM y( j ) OP LM
0 C (j )
d 0 OP
MM y0( j 1) PP MM C
d ( j0 1) ( j 1,0j ) PP x
0
0 (8.92)
MN y( j 1) PQ MN C ( j 1)( j 1, j ) PQ
1 d 1 1 0
However, we also know from the inversion property of the state-transition matrix
that if 1 ( j1 , j0 ) exists [it will exist only if all of its component factors
Ad1 ( k ) , for k j0 , , j1 1 , exist], then 1 ( j1 , j0 ) ( j0 , j1 ) and
x ( j0 ) ( j0 , j1 ) x ( j1 ) . If this is the case, (8.92) can be rewritten as
356 Part II. Analysis and Control of State Space Systems
LM y( j ) OP LM
0 C ( j ) ( j , j )
d 0 0OP 1
MM y0( j 1) PP MM C ( jd 1)
0 ( j 1, j ) 0( j , j ) PP x( j )
0 0 1
1
MN y( j 1) PQ MN C ( j 1)( j 1, j )( j , j ) PQ
1 d 1 1 0 0 1
LM C ( j )( j , j ) OP
d 0 0 1
(8.93)
M
C ( j 1)( j 1, j )P
MM PP x( j )
d 0 0 1
1
N C ( j 1)( j 1, j ) Q
d 1 1 1
From (8.93), the obvious condition for the solution for x ( j1 ) is the
reconstructibility test:
F L C ( j )( j , j ) OI
G MC ( j 1)( j 1, j )PPJJ
d 0 0 1
rG M
PPJ rd R ( j , j )i n
GG MM
d 0 0 1
0 0 1 (8.94)
H N C ( j 1)( j 1, j ) QJK
d 1 1 1
R0 ( j0 , j1 )( j1 , j0 ) R0 ( j0 , j1 )
Therefore, we have
d i b
r R0 ( j0 , j1 ) r R0 ( j0 , j1 ) g
If the system is observable and b
r R0 ( j0 , j1 ) n , g then certainly
d i
r R0 ( j0 , j1 ) n . For this reason, we normally desire to ascertain the
observability of a system more often than the reconstructibility.
Chapter 8. Controllability and Observability 357
Observability Grammians
With the observability test in (8.90), we can construct a grammian test by
defining the observability grammian as follows:
j 1
1
H o ( j0 , j1 ) (i, j0 )C (i )C(i )(i, j0 ) (8.95)
i j0
Now, as we did with reachability, a grammian test can be given in the form of a
theorem:
Again, the detailed proof of this test is not provided since once again it is
clear that H o ( j0 , j1 ) Ro ( j0 , j1 ) Ro ( j0 , j1 ) and the full-rank test, Equation
(8.90), for Ro ( j0 , j1 ) suffices to establish invertibility of (8.95).
8.7 Summary
It is unfortunate that the material presented in this chapter must necessarily come
before Chapter 10 on controller and observer design. The concepts of
controllability and observability provide answers to the questions “Can this
system be controlled?” and “Can this system be observed?” Until we know
exactly what a “controller” is and what an “observer” is, it may be difficult to
appreciate the implications of controllability and observability. However, we
will soon find that the processes of designing a controller and observer will be
completely precluded if a system is not controllable or observable, so we must
investigate these properties first.
358 Part II. Analysis and Control of State Space Systems
As with any good modeling paradigm, such as the state space system, we
hope to find that a single technique will suffice for the most commonly
encountered problems and that more sophisticated methods will be needed only
for exceptional situations. This is true with controllability and observability. We
have already seen in previous chapters that time-invariant systems, whether
continuous-time or discrete-time, are much easier to analyze than time-varying
systems. We therefore apply the time-invariant state space model whenever it
sufficiently captures the physical phenomena we seek to study. If this is the case,
the two tests we have called the fundamental controllability test and the
fundamental observability test [Equations (8.6) and (8.7)] will suffice to
ascertain controllability and observability. It is these tests and the matrices P and
Q that will immediately spring to the control engineer’s mind upon hearing the
words “controllability” and “observability.” Other tests are rarely used for time-
invariant systems, and the average controls engineer will steer away from time-
varying systems as well as nonlinear systems.
Nevertheless, systems of various characteristics will inevitably arise so we
have presented here a relatively comprehensive study of controllability and
observability determination. Among our findings:
• As mentioned above, most controllability and observability tests are
performed with the matrices P and Q. If these matrices have rank n, the
systems are controllable and observable, respectively.
• Various other tests, such as the Hautus eigenvector and rank tests, are useful
mostly for their value in proofs or in generating still further tests, such as the
Jordan form test. The Jordan form test is convenient because it can usually
be applied by inspection, provided that the system already appears in Jordan
form.
• The controllable and observable canonical forms were derived in
preparation for their use in controller and observer design, respectively.
Their special structure will facilitate the computation of the gain matrices
that are integral components of controllers and observers. Thus, they are not
tests per se because we cannot even find them unless the system is already
known to be controllable or observable.
• The concept of modal controllability was used as a vehicle to introduce the
geometric interpretation of controllability and observability. These
interpretations are the topic of a large body of literature (for example, [10]),
and are particularly helpful when generalizations to nonlinear systems are
developed. Furthermore, by accepting the fact that parts of systems may be
controllable and/or observable while other parts are not, we were able to
derive the Kalman decomposition, which groups subsystems with
comparable properties. Such decompositions are used mostly to aid in the
understanding of system behaviors, as depicted in Figure 8.5. We will refer
back to the Kalman decomposition in the next chapter as well.
Chapter 8. Controllability and Observability 359
8.8 Problems
8.1 Determine whether each of the systems below is controllable and/or
observable
LM 1 0 OP
x ( k 1) 1 1 x ( k )
1 LM OP
u( k )
a) N 2 2 Q 1 N Q
y( k ) 5 1 x( k )
x
LM 0 1OP x LM0OPu
d) N4 4Q N1Q
y 1 1x
LM 2 1 1OP LM1OP
x M 5 3 6P x M 0P u
MN5 1 4PQ MN0PQ
y 1 1 2x
TB
LMB OP
1
and TAT 1
LM A
11 A12 OP
N0Q NA21 A22 Q
where matrix B1 has n1 rows and rank ( B1 ) n1 , and matrix A11 is
n1 n1 . The other submatrices are correspondingly dimensioned. Suppose
also that r ( B ) r ( B1 ) . Show that the pair ( A, B ) is controllable if and
only if the pair ( A22 , A21 ) is controllable.
Chapter 8. Controllability and Observability 361
LM2 1 0 0 0 0 0 OP LM 1 1OP
MM0 2 0 0 0 0 0 P MM 0 1 P
0 3 0P 0P
A M0
M 0
0 0
0
3 0 0
0 0
0P
P M
BM 1
1
1P
P
MM0 0 0 0 2 0 0P
P MM1 1P
P
MM0 0 0 0 0 4 1P MM 0 0P
N0 0 0 0 0 0 4PQ N1 0PQ
CM
L0 1 1 1 1 0 OP
1
N0 0 1 1 1 1 0Q
8.7 For the system shown in Figure P8.7, use the indicated state variables to
write complete state equations and determine which modes are
controllable and which are observable.
+ x2 + x1
+ + +
y1
u –2 –2 +
x3
2 + y2
+
–2
P8.7
362 Part II. Analysis and Control of State Space Systems
8.8 For the electrical circuit shown in Figure P8.8, find conditions on C1 and
C2 that will make the system uncontrollable. Consider v g to be the input,
and v1 and v 2 to be the state variables.
R R
vg v1 v2
C1 C2
P8.8
8.9 For the circuit shown in Figure 8.9, find conditions on the system
components R1 , R2 , C1 , and C2 that result in an uncontrollable system.
Consider v g to be the input, and v1 and v 2 to be the state variables.
R1 R2
vg
C1 v1 C2 v2
P8.9
Chapter 8. Controllability and Observability 363
8.10 For the system given in the block diagram in Figure 8.10, find necessary
and sufficient conditions for the values of , , k1 , and k2 such that the
system will be both controllable and observable.
+ x1
k1
α +
y1
u
+
+ x2
2
k2
P8.10
z
Go e A t C Ce At dt
0
Show that the matrix G o is positive definite if and only if the system is
observable.
AN NA BB
has a positive-definite solution N.
ANA N BB
has a positive-definite solution N.
a) x
LM0 0 OP x LM 1 OPu
N0 1 Q Ne Q t
L0
x M
0O L 0 O
1PQ MNe PQ
b) x u
N0 2t
L0
x M
1O
Pt Q x LMN1OPQu
0
c) N0
y 0 1x
e
r CB CAB CAn 1B q j
c) Is there a condition on matrix C such that state controllability can
then imply output controllability?
Chapter 8. Controllability and Observability 365