2000 Lab 1
2000 Lab 1
2000 Lab 1
CONTROLLABILITY
Fix the time t. Let U be the space of all input signals defined on [0 t]. Define the linear operator L
which maps U to Rn by Z t
Lu = eA(t−τ ) Bu(τ )dτ (2.3)
0
Recall that if A is an m × n matrix (a linear transformation) mapping Rn into Rm , the range of A,
denoted R(A), is the set {y ∈ Rm | y = Ax, for some x ∈ Rn }. Analogously, R(L), the range of L, is
defined to be the set {x ∈ Rn | x = Lu, for some u ∈ U }. Using this formulation, x is reachable from 0 if
and only if x ∈ R(L).
There is nothing particularly special about the initial state x0 = 0. In fact, if R0 = Rn , then every
state x is reachable from any initial state x0 . To see this, write the variation of parameters formula for the
solution of (2.1) in the form Z t
x(t) − eAt x0 = eA(t−τ ) Bu(τ )dτ (2.4)
0
27
28 CHAPTER 2. CONTROLLABILITY
i1 i2
R1 R2
+
vi R3
-
+ +
C1 v1 v2 C2
- -
It is straightforward to verify, using Kirchhoff’s current law, that v1 , v2 satisfy the following differential
equations:
v1 − v2 vi − v1
C1 v̇1 = − +
R3 R1
v1 − v2 vi − v2
C2 v̇2 = +
R3 R2
h iT
In state space form, denoting v = v1 v2 , we have
−( C11R1 + 1
C1 R3 )
1
C1 R3
1
v̇ = v + C1 R1 vi
1
C2 R3 −( C21R2 + 1
C2 R3 )
1
C2 R2
1 1 1 1
Put α1 = C1 R1 , α2 = C2 R2 , β1 = C1 R3 , β2 = C2 R3 . We can write the differential equation in the form
−(α1 + β1 ) β1 α
v̇ = v + 1 vi (2.5)
β2 −(α2 + β2 ) α2
d
(v1 − v2 ) = −(α1 + β1 + β2 )(v1 − v2 )
dt
which is a homogeneous equation with no input. In this case, we cannot manipulate v1 and v2 arbitrarily,
so that the reachable set is not the whole R2 .
To study the reachability problem, we introduce 2 important matrices arising from the system (2.1).
2.1. REACHABLE SET AND CONTROLLABILITY 29
CAB is called the controllability matrix. For m = 1, CAB is a square matrix. For m > 1, CAB is
a rectangular, wide matrix.
Recall that the rank of a p × q matrix A is the number of independent columns of A, which is the same
as the number of independent rows of A. Note that rank(CAB ) ≤ n. If rank(CAB ) = n, we say CAB has
full rank.
Let us first illustrate the computation of CAB in some examples.
30 CHAPTER 2. CONTROLLABILITY
Note that
det CAB = (α1 α2 + α1 β2 + α2 β1 )(α1 − α2 )
so that CAB is singular (equivalently CAB does not have full rank) if and only if α1 = α2 .
Example 2: Consider the following system of 2 carts connected by a spring
y1 y2
u2
K
u1
M1 M2
0
M1 ÿ1 = −K(y1 − y2 ) + u1
M2 ÿ2 = −K(y2 − y1 ) + u2
h iT
Let us recast the equations in state space form. Define x = y1 ẏ1 y2 ẏ2 . Then
0 1 0 0 x1 0 0
K
0 x2 M11
−K
0 0 u1
M1 M1
ẋ = +
0 0 0 1 x3 0 0 u2
K −K 1
M2 0 M2 0 x4 0 M2
B AB A2 B A3 B
Note that CAB has 4 linearly independent columns so that it is full rank.
Before we discuss the main result of Chapter 2, let us review some geometric ideas from linear algebra.
Suppose V is a subspace of Rn . The orthogonal complement of V, denoted by V ⊥ , is the set of all vectors
w such that wT v = 0 for all v ∈ V.
2.1. REACHABLE SET AND CONTROLLABILITY 31
Using property (5) of orthogonal complements, proving R(L) = R(Wt ) is equivalent to proving
R(L)⊥ = R(Wt )⊥ .
(a) R(L)⊥ ⊂ R(Wt )⊥ : Let v ∈ R(L)⊥ . Then for all u ∈ U,
Z t
v T
eA(t−τ ) Bu(τ )dτ = 0
0
for certain functions {ϕi (t)}. An outline of the proof of this result is given in the problem sets. Intutively,
we can see that this is a consequence of the Cayley-Hamilton Theorem, which states:
If an n × n matrix A has characteristic polynomial p(s) given by
then
p(A) = An + p1 An−1 + · · · + pn−1 A + pn I = 0
Cayley-Hamilton Theorem implies Ak , k ≥ n is expressible as a linear combination of Aj , 0 ≤ j ≤ n − 1.
This means that the infinite series that defines eAt should be expressible in the form of (2.9).
We can now carry out the proof of Step 2. We first show
v T CAB = 0
vT B = 0
For k = 1, . . . , n − 1, take the kth derivative of v T eAτ B with respect to τ and evaluate the result at τ = 0.
This gives successively
v T AB = 0
v T A2 B = 0
..
.
v T An−1 B = 0
so that
v T CAB = 0
2.1. REACHABLE SET AND CONTROLLABILITY 33
v T eAτ B = 0, 0 ≤ τ ≤ t
(a) R0 = Rn
Since the linear system (2.1) is controllable if and only if R0 = Rn , the equivalence of statements (a)
and (c) of the Corollary can be restated as the following important theorem.
Theorem 2.2: The linear system (2.1) is controllable if and only if Rank [B AB · · · An−1 B] = n.
Theorem 2.2 allows us to check the controllability property using given data A and B. It is a very
important result.
Based on the Theorem 2.2, we are justified in saying:
The pair (A, B) is controllable if Rank[B AB · · · An−1 B] = n.
Suppose x1 is reachable at time t from x0 . It is not difficult to write down explicitly he control that
achieves the transfer from x0 to x1 at time t. In fact, a control input that achieves the transfer can be
verified to be given by
T
u(τ ) = B T eA (t−τ ) ξ (2.10)
where ξ is the solution of Wt ξ = x1 − eAt x0 . If (A, B) is controllable, Wt−1 exists, and (2.10) can be written
explicitly as
T
u(τ ) = B T eA (t−τ ) Wt−1 (x1 − eAt x0 ) (2.11)
Note also that if (A, B) is controllable, the state transfer can be accomplished for any t > 0, no matter
how small, since Wt is nonsingular for any t > 0. However, if t is small, Wt−1 will be large, and the control
input to achieve the transfer will be large too.
34 CHAPTER 2. CONTROLLABILITY
ż = V −1 x
= V −1 AV z + V −1 Bu
so that with z as the state vector, the system matrices change from (A, B) to (V −1 AV, V −1 B). We refer
to this as a change of basis because if we let the columns of V form a new basis for Rn , z is then the
representation of x in this new basis (See the Appendix to Chapter 2 for more details on change of basis).
We call the transformation V featured in the change of basis a similarity transformation.
Theorem 2.3: (A, B) is controllable if and only if (V −1 AV, V −1 B) is controllable for every nonsingular
V.
Proof:
CV −1 AV,V −1 B = [V −1 B V −1 AV V −1 B · · · ]
= V −1 [B AB · · · ]
= V −1 CAB
Since
Rank(V −1 CAB ) = Rank(CAB )
with v(t) a new input, is referred to as state feedback. The closed-loop system equation is given by
ẋ = (A − BK)x(t) + Bv(t)
Theorem 2.4: (A, B) is controllable if and only if (A − BK, B) is controllable for all K.
A proof of Theorem 2.4 is discussed in the problem sets. Intuitively, the result seems reasonable since
the state feedback law (2.12) can be reversed by setting v = Kx + u. Therefore, the ability to control the
system using the input v should be the same as that of using input u.
2.3. DECOMPOSITION INTO CONTROLLABLE AND UNCONTROLLABLE PARTS 35
Example: We know from Section 2.1, that the circuit described by Figure 1 is not controllable if R1 C1 =
R2 C2 . Using the notation from Section 2.1, and setting α = R11C1 = R21C2 , we can rewrite (2.5) as
−(α + β1 ) β1 α
v̇ = v+ v (2.13)
β2 −(α + β2 ) α i
and
−1 1 0 α α
V B= =
−1 1 α 0
Note that the change of basis produces the following system equation
ż = Ãz + B̃u
with
−1 Ã11 Ã12
à = V AV = (2.14)
0 Ã22
−1 B̃1
B̃ = V B = (2.15)
0
The part corresponding to (Ã11 , B̃1 ), with state component z1 , is controllable, while the part corre-
sponding to the Ã22 , with state component z2 , is uncontrollable, since the z2 equation is decoupled from
z1 , and z2 is unaffected by u. In general, whenever CAB is not full rank, we can find a basis so that in the
new basis, A and B take the form given in (2.14) and (2.15), respectively, with (Ã11 , B̃1 ) controllable. The
procedure is:
1. Find a basis for R(CAB ). Denote the vectors in this basis by {v1 , v2 , · · · , vq }, where q = rank(CAB ).
36 CHAPTER 2. CONTROLLABILITY
2. Select an additional n − q linearly independent vectors vq+1 · · · vn so that {v1 , v2 , · · · .vn } form a basis
for Rn . Define the matrix V by
V = v1 v2 · · · vn
3. Compute à = V −1 AV and B̃ = V −1 B. à will take the form (2.14) and B̃ will take the form (2.15).
For more details, the appendix to Chapter 2 contains a formal proof that the above procedure yields Ã
and B̃ as described.
(A, B) is not controllable if and only if rank[A − λI B] < n for some eigenvalue λ of A.
(i) We first prove rank[A − λI B] < n implies (A, B) is not controllable. Suppose rank[A − λI B] < n
for some eigenvalue λ, possibly complex. Thus there exists a vector x, possibly complex such that
x∗ [A − λI B] = 0
x∗ A = λx∗
and
x∗ B = 0
Then
x∗ AB = λx∗ B = 0
and
x∗ Ak B = λk x∗ B = 0
Thus x∗ [B AB...An−1 B] = 0 so that [Re x∗ ][B AB...An−1 B] = 0 and (A, B) is not controllable.
(ii) We now show (A, B) not controllable implies rank[A − λI B] < n for some eigenvalue λ of A.
Assume (A, B) is not controllable. By the results of Section 2.3, we can find a nonsingular V so that
(V −1 AV, V −1 B) = (Ã, B̃), where à is of the form (2.14) and B̃ is of the form (2.15), with Ã11 q × q
and Ã22 n − q × n − q. Now note that for any λ an eigenvalue of Ã22 ,
Hence
Ã11 − λI Ã12 B̃1
[Ã − λI B̃] = Rank <n
0 Ã22 − λI 0
2.4. THE PBH TEST FOR CONTROLLABILITY 37
for λ an eigenvalue of Ã22 . Finally, note that by the structure of Ã, an eigenvalue of Ã22 is an
eigenvalue of Ã. Since a change of basis does not change the eigenvalues, λ is also an eigenvalue of
A. This concludes the proof that (A, B) not controllable implies there exists an eigenvalue of A, λ,
such that rank[A − λI B] < n.
It is useful to note that Rank[A−λI B] = n for all eigenvalues λ of A if and only if Rank[A−λI B] = n
for all complex numbers λ. This is because for λ not an eigenvalue of A, Rank(A − λI) = n. We refer to
the eigenvalue which causes Rank[A − λI B] < n as an uncontrollable eigenvalue. We will see in Chapter
3 that such an eigenvalue is in some sense fixed and not movable.
The PBH test is especially useful for checking when a system is not controllable. We give a couple of
examples to illustrate its use.
Example 1: Consider the following (A, B) pair
−3 2 1
A= B=
1 −2 1
This corresponds to the bridge circuit example withe the following parameter values: α1 = α2 = 1, β1 = 2,
and β2 = 1. We know that since α1 = α2 , this system is not controllable. We can also verify that the
controllability matrix is
1 −1
CAB =
1 −1
which is singular. Let us apply the PBH test. First det(sI − A) = s2 + 5s + 4 so that the eigenvalues are
−4 and −1. For the eignenvalue −1, PBH test gives
−2 2 1
A − (−1)I B =
1 −1 1
which has rank 2. On the other hand, for the eigenvalue −4, PHB test gives
1 2 1
A − (−4)I B =
1 2 1
which has rank 1. By the PBH test, the system is not controllable and −4 is an uncontrollable eigenvalue.
Example 2: Consider the following (A, B) pair
0 1 0 0 0
−1 0 1 0 −1
A= 0 0
B=
0 1 0
2 0 −2 0 2
38 CHAPTER 2. CONTROLLABILITY
By inspection, we immediately see that with the eigenvalue 0, Rank[A B] < 4. By the PBH test, this
(A, B) pair is not controllable.
0
0
..
b= (2.17)
.
0
1
It is easy to verify that the controllability matrix for this pair (A, b) always has rank n, regardless of
the values of the coefficients αj . Hence the name controllable canonical form. An A matrix taking the
form given in (2.16) is referred to as a companion form matrix. It is straightforward to show that the
characteristic polynomial of the companion form matrix is given by
det(sI − A) = sn + α1 sn−1 + · · · + αn
The description of the controllable realization in Section 1.7 reflects in effect the properties of the pair
(A, b) given by (2.16) and (2.17).
It will be seen in the next chapter that for applications to pole assignment in single-input systems, the
controllable canonical form is particularly convenient for control design. To prepare for that discussion,
we now show that if (A, b) is controllable, but not in controllable canonical form, we can always find a
similarity transformation V so that (V −1 AV, V −1 b) will be in controllable canonical form.
2.5. CONTROLLABLE CANONICAL FORM FOR SINGLE-INPUT CONTROLLABLE SYSTEMS 39
1 0 ··· 0 0
= [v1 · · · vn ]
and that
Thus the matrix representation of A with respect to the basis {v1 ...vn } looks like
0 1 ··· 0 0
.. ..
.
[A]v = .
0 0 ··· 0 1
−αn −αn−1 ··· −α1
But [A]v and [b]v are then related to the original matrices through
[A]v = V −1 AV
[b]v = V −1 b
so that they are related by a similarity transformation. Thus the new system z(t) = V −1 x(t) will satisfy
an equation of the form
ż = Ac z + bc u
with (Ac , bc ) in controllable canonical form.
APPENDIX TO CHAPTER 2 41
Let us first quickly review the operation of a change of basis in linear algebra and how it affects the
representation of vectors and linear transformations.
Let E = {e1 , . . . , en } and V = {v1 , . . . , vn } be two bases in Rn . Any vector x ∈ Rn can be represented
with respect to either the basis E or the basis V. Thus we can write
n
X n
X
x= ξi ei = ηi vi
i=1 i=1
The coefficient ξi is the ith coordinate of x with respect to the E basis. To emphasize this dependence on
the basis, we write
[x]E = [ξ1 ξ2 . . . ξn ]T
Now let A be a linear transformation mapping Rn to Rn . Its action on on the basis vector ei can be
represented by
Xn
Aei = aki ek
k=1
The coefficients {aij } are then the ijth element of the matrix reprentation of A with respect to the basis
E. We write this as [A]E = {aij }. Similarly, if
n
X
Avi = βki vk
k=1
Hence we have
n
X
ξk = αki ηi
i=1
but also
n
X n
X n
X
Avi = AP ei = A αki ek = αki ajk ej
k=1 k=1 j=1
On comparing the two representations for Avi , we get
X n n
X
αjk βki = ajk αki
k=1 k=1
In matrix notation, this corresponds to
[P ]E [A]V = [A]E [P ]E
so that
[A]V = [P ]−1
E [A]E [P ]E
We are now ready to describe the details of system decomposition for an uncontrollable pair (A, B),
described in Section 2.3.
Let Rank[B AB...An−1 B] = q < n, and let {v1 ...vq } be a basis for Range[B AB...An−1 B] = M. We
can pick additional basis vectors {vq+1 , ..., vn } so that {v1 , · · · , vq , vq+1 , · · · , vn } form a basis for Rn . Now
observe that by the Cayley-Hamilton Theorem, AM ⊂ M. Hence for 1 ≤ i ≤ q,
q
X
Avi = αji vj
j=1
for some scalars αji , j = 1, ..., q. With respect to the basis V = {v1 , ..., vn }, A takes the form
Ã11 Ã12
[A]V = Ã =
0 Ã22
Similarly the ith column of B,
q
X
bi = βji vj
j=1
Thus, we obtain
−1 Ã11 Ã12
V AV = Ã =
0 Ã22
and
−1 B̃1
V B = B̃ =
0
where Ã11 is a q × q matrix and B̃1 is a q × m matrix. We claim that (Ã11 , B̃1 ) is controllable. For,
n−1
B̃1 Ã11 B̃1 . . . Ã11 B̃1
Rank[B̃ ÃB̃ ... Ãn−1 B̃] = Rank =q
0 0 ... 0
q+k
But by the Cayley-Hamilton theorem, for k ≥ 0, Ã11 B̃1 is linearly dependent on Ãj11 B̃1 , j = 0, ..., q − 1.
Hence
q−1
Rank[B̃1 Ã11 B̃1 ... Ã11 B̃1 ] = q
so that (Ã11 , B̃1 ) is controllable.