Professional Documents
Culture Documents
Linear Space-State Control Systems Solutions Manual
Linear Space-State Control Systems Solutions Manual
Ohio University
Chapter 1
NE1.1a
0 1 0
A = B = C = 1 0 D = 0
−6 −2 1
NE1.1b
0 1 0
A = B = C = 3 1 D = 0
−6 −2 1
NE1.1c
0 1 0 0
A = 0 0 1 B = 0 C = 10 0 0 D = 0
−6 −8 −4 1
NE1.1d
0 1 0 0 0
0 0 1 0 0
A = B = C = 6 4 1 0 D = 0
0 0 0 1 0
−66 −44 −11 −10 1
NE1.2a
A = −2 B = 1 C = 1 D = 0
NE1.2b
0 1 0
A = B = C = 1 0 D = 0
−10 −3 1
NE1.2c
0 1 0 0
A = 0 0 1 B = 0 C = 1 0 0 D = 0
−5 −3 −2 1
NE1.2d
0 1 0 0 0 0
−10 −5 10 0 1 0 1 0 0 0 0 0
A = B = C = D =
0 0 0 1 0 0 0 0 1 0 0 0
5 0 −5 −0.5 0 0.5
5
Chapter 2
NE2.1
x(t) = 1/5 - 1/5 exp(- 5/2 t) time constant = 2/5
0.2
0.18
0.16
0.14
0.12
0.1
x
0.08
0.06
0.04
0.02
0
0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec)
NE2.2
a. Transfer function:
2 s + 7
--------------
s^2 + 7 s + 12
b. Transfer function:
1
-------------
s^2 + 2 s + 3
c. Transfer function:
1
--------------
s^2 + 12 s + 2
d. Transfer function:
9 s^2 + 38 s - 2
----------------
s^2 - 5 s - 2
NE2.3
a. characteristic polynomial: [1 3 2]
eigenvalues: -2, -1
d. characteristic polynomial: [1 20 0]
eigenvalues: 0, -20
6
NE2.4
phi(4) =
0.1294 0.0113
-0.0677 -0.0059
x(4) =
0.2702
-0.1412
NE2.5
x1(t) = 1/8 + 1/8 exp(-4 t) - 1/4 exp(-2 t)
0.12
0.1
0.08
x1
0.06
0.04
0.02
0
0 0.5 1 1.5 2 2.5 3 3.5 4
0.14
0.12
0.1
0.08
x2
0.06
0.04
0.02
0
0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec)
NE2.6 NE2.7
Unit Step Responses Unit Step Responses
1 1
0.8
0.5
0.6
x1
x1
0
0.4
0.2 -0.5
0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.5 1 1.5 2 2.5 3 3.5 4
0.5 0.5
0
0
x2
x2
-0.5
-0.5
-1
-1 -1.5
0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec) time (sec)
7
NE2.8 NE2.9
Unit Step Responses
Unit Step Responses 40
1
0.8 30
0.6
x1
20
x1
0.4
10
0.2
0 0
0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.5 1 1.5 2 2.5 3 3.5 4
0 30
25
-0.5
20
x2
15
x2
-1
10
-1.5
5
-2 0
0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec) time (sec)
NE2.10
a. Ad =
-0.8769 0
0 -9.1231
b. Ad =
-1.3589 0
0 7.3589
c. Ad =
-0.5000 + 3.1225i 0
0 -0.5000 - 3.1225i
d. Ad =
3.1623 0
0 -3.1623
8
Chapter 3
NE3.1a
P =
1 -4
1 -5
determinant of P -1
System is fully state-controllable
NE3.1b
P =
1 -4
0 0
determinant of P 0
System is NOT fully state-controllable
NE3.1c
P =
1 -20
2 -3
determinant of P 37
System is fully state-controllable
NE3.1d
P =
0 1
1 -2
determinant of P -1
System is fully state-controllable
NE3.1e
P =
1 2
-1 -2
determinant of P 0
System is NOT fully state-controllable
9
NE3.2a
Ac =
0 1
-20 -9
Bc =
0
1
Cc =
9 2
NE3.2b
We cannot find CCF from the formula since the transformation matrix is singular.
NE3.2c
Ac =
0.0000 1.0000
-10.0000 -2.0000
Bc =
0.0000
1.0000
Cc =
1 2
NE3.2d
Ac =
0.0000 1.0000
-10.0000 -2.0000
Bc =
0
1
Cc =
1.0000 2.0000
NE3.2e
We cannot find CCF from the formula since the transformation matrix is singular.
10
NE3.3
Apply the Popov-Belevitch-Hautus Rank Test for Controllability
NE3.3a
The eigenvalues of A are: -5 and -4
-1 0 1
0 0 1
has rank 2
0 0 1
0 1 1
has rank 2
NE3.3b
The eigenvalues of A are: -5 and -4
-1 0 1
0 0 0
has rank 1
0 0 1
0 1 0
has rank 2
NE3.3c
The eigenvalues of A are: -1+3i and -1-3i
has rank 2
has rank 2
NE3.3d
The eigenvalues of A are: -1+3i and -1-3i
has rank 2
has rank 2
NE3.3e
The eigenvalues of A are: 1 and 2
-1 0 1
1 0 -1
has rank 1
0 0 1
1 1 -1
has rank 2
Chapter 4
NE4.1a
Q =
1 1
-4 -5
determinant of Q -1
System is fully state-observable
NE4.1b
Q =
1 0
-4 0
determinant of Q 0
System is NOT fully state-observable
NE4.1c
Q =
0 1
1 -2
determinant of Q -1
System is fully state-observable
NE4.1d
Q =
1 2
-20 -3
determinant of Q 37
System is fully state-observable
NE4.1e
Q =
1 1
1 1
determinant of Q 0
System is NOT fully state-observable
13
NE4.2a
Ao =
0 -20
1 -9
Bo =
9
2
Co =
0 1
NE4.2b
We cannot find OCF from the formula since the transformation matrix is singular.
NE4.2c
Ao =
0 -10
1 -2
Bo =
1
2
Co =
0 1
NE4.2d
Ao =
0.0000 -10.0000
1.0000 -2.0000
Bo =
1.0000
2.0000
Co =
0.0000 1.0000
NE4.2e
We cannot find OCF from the formula since the transformation matrix is singular.
14
NE4.3
Apply the Popov-Belevitch-Hautus Rank Test for Observability
NE4.3a
The eigenvalues of A are: -5 and -4
1 1
-1 0
0 0
has rank 2
1 1
0 0
0 1
has rank 2
NE4.3b
The eigenvalues of A are: -5 and -4
1 0
-1 0
0 0
has rank 1
1 0
0 0
0 1
has rank 2
NE4.3c
The eigenvalues of A are: -1+3i and -1-3i
0 1.0000
-1.0000 + 3.0000i 10.0000
-1.0000 1.0000 + 3.0000i
has rank 2
0 1.0000
-1.0000 - 3.0000i 10.0000
-1.0000 1.0000 - 3.0000i
has rank 2
NE4.3d
15
The eigenvalues of A are: -1+3i and -1-3i
1.0000 2.0000
-1.0000 + 3.0000i -1.0000
10.0000 1.0000 + 3.0000i
has rank 2
1.0000 2.0000
-1.0000 - 3.0000i -1.0000
10.0000 1.0000 - 3.0000i
has rank 2
NE4.3e
The eigenvalues of A are: 1 and 2
1 1
-1 0
1 0
has rank 2
1 1
0 0
1 1
has rank 1
Chapter 5
NE5.1a
Transfer function:
s + 1
-------------
s^2 + 3 s + 2
1 state removed.
a =
x1
x1 -2
b =
u1
x1 0.7071
c =
x1
y1 1.414
d =
u1
y1 0
NE5.1b
Transfer function:
s^2 + 4 s + 5
-----------------------
s^3 + 7 s^2 + 17 s + 15
2 states removed.
a =
x1
x1 -3
b =
u1
x1 0.1543
c =
x1
y1 6.481
d =
u1
y1 0
NE5.1c
Transfer function:
s + 3
-----------------------
s^3 + 7 s^2 + 17 s + 15
1 state removed.
a =
x1 x2
x1 1.398 -5.077
x2 2.471 -5.398
b =
u1
x1 0.1943
x2 0.2686
c =
x1 x2
y1 -2.562 1.854
d =
u1
y1 0
17
NE5.1d
Transfer function:
s^2 + 8 s + 25
-----------------------------------
s^4 + 15 s^3 + 91 s^2 + 255 s + 250
2 states removed.
a =
x1 x2
x1 0.6813 1.215
x2 -12.53 -7.681
b =
u1
x1 -0.001309
x2 0.03991
c =
x1 x2
y1 26.25 0.8612
d =
u1
y1 0
NE5.1e
Transfer function:
2 s^2 + 9 s + 24
-----------------------------------
s^4 + 15 s^3 + 91 s^2 + 255 s + 250
a =
x1 x2 x3 x4
x1 0 0 0 -250
x2 1 0 0 -255
x3 0 1 0 -91
x4 0 0 1 -15
b =
u1
x1 24
x2 9
x3 2
x4 0
c =
x1 x2 x3 x4
y1 0 0 0 1
d =
u1
y1 0
NE 5.1e looks like OCF of NE5.1d; however, two numbers have changed and there are no longer
any common factors of the transfer function numerator and denominator. This system is
already minimal.
18
Chapter 6
NE6.1a & NE6.3a
Eigenvalues:
-2 + 3.16i
-2 - 3.16i
Lyapunov matrix P:
2.02 0.04
0.04 0.13
Sylvester’s Criterion:
2.02
0.27
Lyapunov matrix P:
-2.02 0.04
0.04 -0.13
Sylvester’s Criterion:
-2.02
0.27
System is unstable
0.14
2500
0.12
2000
0.1
1500
0.08
x2 (m/sec)
x2 (m/sec)
1000
0.06
500
0.04
0
0.02
0 -500
-0.02 -1000
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 -400 -200 0 200 400 600 800 1000 1200 1400 1600
x (m) x (m)
1 1
0.2
0.2
0.1
0.15 0
x2 (m/sec)
x2 (m/sec)
-0.1
0.1
-0.2
0.05
-0.3
-0.4
0 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16
0 0.2 0.4 0.6 0.8 1 1.2 1.4 x (m)
x (m) 1
1
Note: the book did not give enough information for NE 6.2a-d; so for all cases we assumed:
B = [0;1]
C = [1 0]
D = [0]
20
NE 6.4 Given
s2 − s − 2 ( s − 2)( s + 1) ( s + 1)
H (s) = = =
s + 2s − 4s − 8
3 2
( s − 2)( s + 2)2 ( s + 2) 2
a. The system is bounded-input, bounded-output stable because the impulse response h(t ) = (1 − t )e−2t
satisfies
3
h( ) d (1 + )e d
−2
=
0 0
4
0 1 0 0
ACCF = 0 0 1 BCCF = 0 CCCF = −2 −1 1
8 4 −2 1
CCCF −2 −1 1
Q = CCCF ACCF = 8
2 −3
CCCF ACCF
2
−24 −4 8
has Q = 0 , so this realization is not observable. The eigenvalues of ACCF are −2, −2, 2 and so this
0 1 0
ACCF = BCCF = CCCF = 1 1
−4 −4 1
21
NE 6.5 Given
s2 + s − 2 ( s − 1)( s + 2) ( s − 1)
H ( s) = = =
s + 2s − 4s − 8
3 2
( s − 2)( s + 2) 2 ( s − 2)( s + 2)
a. The system is not bounded-input, bounded-output stable because the zero-state response to a unit step
input is
y(t ) = 1
4 − 83 e−2t + 81 e2t
which is unbounded.
0 0 8 −2
ACCF = 1 0 4 BCCF = 1 CCCF = 0 0 1
0 1 −2 1
−2 8 −8
P = BOCF AOCF BOCF A 2
OCF BOCF = 1 2 4
1 −1 4
has P = 0 , so this realization is not controllable. The eigenvalues of AOCF are −2, −2, 2 and so this
0 4 −1
AOCF = BOCF = COCF = 0 1
1 0 1
22
Chapter 7
Poles2 = -2 -20
0.8
Dom 1st
Aug 2nd
0.6 Aug 3rd
ydes
Aug 4th
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec)
wn = -1.4990
DomPoles =
-1 + 1.12i
-1 - 1.12i
0.8
Dom 2nd
0.6 Aug 3rd
ydes
Aug 4th
0.4
0.2
0
0 1 2 3 4 5 6 7 8
time (sec)
23
NE7.1c
ITAE2 = 1 7 25
Poles2i =
-3.5000 + 3.5707i
-3.5000 - 3.5707i
Poles3i =
-2.6048 + 5.3405i
-2.6048 - 5.3405i
-3.5405
Poles4i =
-2.1199 + 6.3150i
-2.1199 - 6.3150i
-3.1301 + 2.0707i
-3.1301 - 2.0707i
0.8
ITAE 2nd
0.6 ITAE 3rd
ydes
ITAE 4th
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec)
Chapter 8
0.8
Dom 1st
Aug 2nd
0.6
Aug 3rd
ydes
Aug 4th
0.4
0.2
0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
time (sec)
NE8.1b (one possible solution)
DomPolesO =
-10.0000 +11.1665i
-10.0000 -11.1665i
Poles3 =
1.0e+002 *
-0.1000 - 0.1117i -0.1000 + 0.1117i -1.0000
Poles4 =
1.0e+002 *
-0.1000 - 0.1117i -0.1000 + 0.1117i -1.0000 -1.1000
0.8
Dom 2nd
0.6 Aug 3rd
Aug 4th
ydes
0.4
0.2
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
time (sec)
25
NE8.1c
Poles2iO =
-35.0000 +35.7071i
-35.0000 -35.7071i
Poles3iO =
-26.0475 +53.4051i
-26.0475 -53.4051i
-35.4050
Poles4iO =
-21.1991 +63.1496i
-21.1991 -63.1496i
-31.3009 +20.7069i
-31.3009 -20.7069i
0.8
ITAE 2nd
0.6 ITAE 3rd
ITAE 4th
ydes
0.4
0.2
0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
time (sec)
Chapter 9
NE9.1a
KLQR =
0.4169 -0.0093
-0.0093 0.1234
NE9.1b
KLQR =
1.1032 0.0828
0.0828 0.0725
NE9.1c
KLQR =
6.5669 0.0828
0.0828 1.0796
NE9.1d
KLQR =
21.9 240.3
240.3 2694.9
NE9.2ai
KLQR =
0.3724 -0.0153
-0.0153 0.1221
NE9.2aii
KLQR =
0.4505 -0.0053
-0.0053 0.1241
NE9.2bi
KLQR =
1.1023 0.0822
0.0822 0.0721
NE9.2bii
KLQR =
1.1037 0.0830
0.0830 0.0727
NE9.2ci
KLQR =
4.7036 0.0822
0.0822 0.7630
NE9.2cii
KLQR =
9.2263 0.0830
0.0830 1.5271
NE9.2di
KLQR =
11.1 123.5
123.5 1426.8
NE9.2dii
KLQR =
43.5 472.3
472.3 5198.0
27
NE 9.3 The parameter values are the same as in Example 9.5 except that now R = 2 for variable
x (t ) + u
1
J = 1
2
2 2 2
(t ) dt + 12 x 2 (1)
0
0 − 12
H =
−1 0
12 (e−t / + et / ) 1
2 (e − t / − e t / )
e Ht
= −t / t / −t /
2 (e −e ) 1
2 (e + et / )
The associated feedback gain is K (t ) = − 12 P(t ) , yielding the time-varying closed-loop state equation
The closed-loop state response for the initial state x(0) = 1 and = 0.1,1, and 10 is shown below.
effort.
28
1
= 0.1
=1
0.9 = 10
0.8
0.7
0.6
x(t)
0.5
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
time (sec)
1 1
=
T
−
yields
−1 1 0 − 12 1 1
= 1
−1 −1 0 −
T HT 2
− 1 0
= 1
0
−1
M =
+1
2( t −t )
( + 1) − ( − 1)e f
P(t ) = 2( t −t )
( + 1) + ( − 1)e f
( + 1)
P = limt f → P(t ) = =
( + 1)
1 − 12 P 2 = 0
has two solutions, P = . Of these, only P = is positive (definite) for which the state feedback gain
KLQR = 1
2
(1)( ) = 1
yields the asymptotically stable closed-loop state equation
x(t ) = − 1 x(t )
whose regulation performance improves with decreasing , which corresponds to greater bandwidth,
Chapter 1
AE1.1 From the specified dimensions of A , B has n rows and C has m columns. From the specified
dimensions of H , G has p rows and F has q columns. From the upper left block of
A B E F AE + BG AF + BH
C D G =
H CE + DG CF + DH
E has m rows and B has p columns. Consequently, F has m rows and D has p columns. Let k
denote the number of rows of C and D , which is not constrained by the other matrix dimensions. Also,
let r denote the number of rows of E and G , which is similarly unconstrained. Taking stock:
A is n m B is n p C is k m D is k p
E is m r F is m q G is p r H is p q
AE1.2 Let A be n n and use proof-by-induction on n . For n = 1 , A = a11 and the cofactor of a11 is
(−1)1+1 B . Expanding the determinant about either the first row or column yields
A 0 a11 0
= = a11 (−1)1+1 B = a11 B = A B
0 B 0 B
Suppose the identity holds for n 1 . For the (n + 1) -dimensional case, expanding the determinant about
A 0 n +1
0 B
= a (−1)
j =1
ij
i+ j
M ij
Each minor is the determinant of a block diagonal matrix whose diagonal blocks are the n n matrix
obtained from A by deleting the ith row and jth column along with B in its entirety. Using the
induction hypothesis
31
M ij = M ijA B
in which M ijA is the minor of the element aij for just the matrix A . Thus
n +1 n +1 A
( ij )
A 0
= aij ( −1) i+ j
M A
B = aij (−1) M ij B
i+ j
= A B
0 B j =1 j =1
AE1.3 If B is singular then B = 0 and there exists a nonzero vector v such that Bv = 0 . Then
A 0 0 0 0
C B v = Bv = 0
implying that
A 0
= 0 = AB
C B
A 0 A 0 I 0
C B = 0 B B −1C I
A 0 A 0 I 0
= −1
C B 0 B B C I
The rightmost factor is the determinant of a lower triangular matrix with ones on the main diagonal and
therefore equals one (see AE1.6). Applying AE1.2 to the leftmost factor establishes the desired identity.
A D A 0 I A−1D
C B = C B − CA−1D
0 I
where we have again used AE1.6 to conclude that the determinant of the upper triangular factor equals
one.
Im Y
= I m I n − XI m−1Y = I n − XY
X In
and
In X
= I n I m − YI n−1 X = I m − YX
Y Im
Next,
0 In 0 Im
= =
0
I
Im 0 In
gives
0 In Im Y 0 Im I X
I = n
m 0 X I n I n 0
Y I m
Im Y In X
I n − XY = = = I m − YX
X In Y Im
a11 a12
A = = a11a22 − a12 (0) = a11a22
0 a22
Suppose the determinant identity holds for n 2 . For the n + 1 -dimensional case,
The rightmost factor is the determinant of an upper triangular n n matrix. Thus, invoking the
induction hypothesis and using the fact that (n + 1) + (n + 1) = 2n + 2 is even for any integer n , yields
AE1.7 It suffices to check that the expression asserted to be the inverse satisfies
A + BCD A + BCD
−1
= In :
= I n + BCDA−1 − BCDA−1
= In
For m = 1 and C = 1
−1 1
C −1 + DA−1B =
1 + DA−1B
and therefore
34
A−1 B DA−1
A + BCD
−1
= A−1 −
1 + DA−1B
X ( I m − YX ) = ( I n − XY ) X
Cross-multiplying by the inverses (when they exist) yields the desired identity.
A 0 A−1 0 AA−1 0 I 0
0 B = = 0 I
0 B −1 0 BB −1
−1
A 0 E F
C B =
G H
the identity
A 0 E F AE AF I 0
C B G = =
H CE + BG CF + BH 0 I
implies E = A−1 and F = 0 . Substituting into the second block row implies G = −B−1CA−1 and
H = B −1 . Thus
−1
A 0 A−1 0
C B = −1 −1
− B CA B −1
A D A−1 + E −1 F − E −1 A( A−1 + E −1 F ) − D −1 F − AE −1 + D −1
C B −1 =
− F −1 −1 −1
C ( A + E F ) − B F
−1
−CE −1 + B −1
in which = B − CA−1D , E = A−1 D , and F = CA−1 . The upper left block reduces to
−CE −1 + B −1 = B − C ( A−1D) −1
= −1
= I
Thus,
A D A−1 + E −1 F − E −1 I 0
C B −1 −1
=
− F 0 I
1 − 12 1
3
− 2
1 1
J 2−1 ( ) = and J 3−1 ( ) = 0 1
− 12
0
1
0 0 1
In general,
1 − 12 1
3
(−1) k +1 1k
0
1
− 12 (−1) k 1k −1
J k−1 ( ) = 0 0 1
(−1) k −1 k1−2
0 0 0 1
That is, the inverse is upper triangular with (i,j)th element on or above the main diagonal given by
(−1)i + j 1
j −i+1
. This identity can be verified by checking that J k ( ) J k−1 ( ) = I k .
for any two vectors x1 , x2 A−1 and any two scalars 1 , 2 , the linear combination 1 x1 + 2 x2 is
AE1.14 By definition, any induced matrix norm satisfies Az A z for any vector z in the domain
ABx A Bx Bx
AB = sup x 0 sup x 0 = A sup x 0 = A B
x x x
37
AE1.15 It is implicitly assumed here that the same vector norm is used on both the domain and range
Ix x
I = sup x 0 = sup x 0 = 1
x x
1
A−1
A
Ax Avi i vi i vi
A = sup x 0 = = = i
x vi vi vi
It follows that A max i ( A) i = ( A) . Not that this result is independent of the induced matrix
norm as long as same vector norm is used on both the domain and range spaces of A .
38
Chapter 2
X (t ) = e At + e A(t − ) Be( A+ B ) d
t
For the second identity, the change of variable = t − in the integral term yields
X (t ) = e At + e A Be( A+ B )(t − ) d
t
t
X (t ) = e At A + e At B(1) − Be( A+ B )t (0) + e A Be( A+ B )(t − ) ( A + B)d
0
= e At + e A Be( A+ B )(t − ) d ( A + B)
t
0
= X (t )( A + B)
e( A+ B )t − e At = e A(t − ) e( A+ B ) − e A(t − ) e( A+ B )
=t =0
d A(t − ) ( A+ B )
t
= e e d
0 d
t
−e Ae
A ( t − ) ( A+ B )
= + e A( t − ) ( A + B )e( A+ B ) d
0
t
e Be
( A+ B )
= A(t − )
d
0
Z (t ) = e( A+ B )t − e At − e A(t − ) Be( A+ B ) d
t
0
39
from which
0
0
= AZ (t )
this along with Z (0) = I − I − 0 = 0 implies Z (t ) = e At Z (0) 0 and the conclusion follows.
sI − ( A + B) ( sI − A) + (− B)( I )( I )
−1 −1
=
−1
= ( sI − A) −1 + ( sI − A) −1 B I − ( sI − A) −1 B ( sI − A) −1
−1
= ( sI − A) −1 + ( sI − A) −1 B ( sI − A)( I − ( sI − A) −1 B)
= ( sI − A) −1 + ( sI − A) −1 B sI − ( A + B)
−1
Taking inverse Laplace transforms using the linearity and time-domain convolution properties yields the
desired result.
X (t ) = e t e At
satisfies X (0) = I and X (t ) = ( I + A) X (t ) . Clearly X (0) = e 0e A0 = (1)( I ) = I . Next, the product rule
gives
X (t ) = ( e t )e At + e t ( Ae At )
= ( I + A) e t e At
= ( I + A) X (t )
Alternatively, since the matrices I and A commute and e( I )t = e t I , we have from Proposition 2.1
that
−1 T
e At = e− At = eA t = e At
T
A11t t
e
A11 ( t − )
e A12 e A22 d
X (t ) = 0
0 e A22t
A A12
A = 11
0 A22
First,
A11 0 0
e
A11 (0 − )
e A12 e A22 d I 0
X (0) = 0 = 0 I
0
e A22 0
Next,
t
A11e
A11t
A12 e A22t
+ A11e A11 (t − ) A12 e A22 d
X (t ) = 0
0 A22 e A22t
t
0 e 11 A12 e 22 d
A ( t − ) A
A A12 e A11t
= 11
0 A22
0 e A22t
= AX (t )
e At − I = e A − e A
=t =0
d A t
= e d
0 d
t
= 0
Ae A d
t
= A e A d
0
e d
A
= A−1 e At − I
0
AE2.6 First,
t0
e
A ( t − ) ( t − )
W (t0 , t0 ) = d = 0
T
Q eA
t0
t
W (t , t0 ) = e Qe AT 0
(1) − e A ( t − t0 ) AT ( t −t0 )
(0) + Ae A(t − ) Q e A ( t − )
+ e A(t − ) Q e A ( t − )
AT d
T T
A0
Qe
t0
t t
= Q + A e A(t − ) Q e A (t − ) d + e A(t − ) Q e A (t − ) d AT
T T
t0 t0
= AW (t , t0 ) + W (t , t0 ) AT + Q
1 0 0 s −1 0 s −1 0
s 2 s 1 a2 1 0 0 s −1 = s 2 + a2 s + a1 s + a2 1 0 s −1
a1 a2 1 a0 a1 s + a2 a0 a1 s + a2
= s 3 + a2 s 2 + a1s + a0 0 0
= ( s 3 + a2 s 2 + a1s + a0 ) C
42
It follows that
−1
1 0 0
−1
0
1
C ( sI − A) a2 1 = s2 s 1
s + a2 s + a1s + a0
3 2
a1 a2 1
from which
b2
s 1 b1
1
−1
C ( sI − A) B = s 2
s + a2 s + a1s + a0
3 2
b0
b2 s 2 + b1s + b0
=
s 3 + a2 s 2 + a1s + a0
= H ( s)
s 0 a0 1 a2 a1 s 2 s 0 a0 s 2 + a2 s + a1
−1 s
a1 0 1 a2 s = −1 s a1 s + a2
0 −1 s + a2 0 0 1 1 0 −1 s + a2 1
s 3 + a2 s 2 + a1s + a0
= 0
0
= ( s + a2 s + a1s + a0 ) B
3 2
It follows that
−1
1 a2 a1 s2
0 1
a2 ( sI − A)−1 B =
1
s
s + a2 s + a1s + a0
3 2
0 0 1 1
from which
43
s2
1
C ( sI − A) −1 B = b2 b1 b0 s
s + a2 s + a1s + a0
3 2
1
b2 s 2 + b1s + b0
=
s 3 + a2 s 2 + a1s + a0
= H (s)
T
H T (− s) = C (− sI − A) −1 B + D
= BT (− sI − A) −T C T + DT
= BT (− sI − AT ) −1 C T + DT
= BT ( sI − (− AT ) ) (−C T ) + DT
−1
in which the last line is the transfer function associated with the dual state equation.
z0 I − A − B
0 = = z0 I − A C ( z0 I − A) −1 B + D = z0 I − A H ( z 0 )
C D
there exists
x0 0 n +1 z I − A − B x0 0
u 0 such that 0 =
D u0 0
0 C
x(0) = x0 . Also,
y (t ) = Cx(t ) + u (t )
= e z0t Cx0 + e z0t Du0
= e z0t Cx0 + Du0
= 0
for all t 0 .
AE2.11 For v(t ) = y(t ) = Cx(t ) + Du(t ) , the difference z(t ) − x(t ) satisfies
( z0 − x0 )
−1
z (t ) − x(t ) = e( A− BD C )t
= 0
AE2.12 For
= ( A − B(CB) −1
CA) ( z (t ) − x(t ) )
( A−B(CB) −1
) z −x
( 0 0) = 0
CA t
z(t ) − x(t ) = e
Chapter 3
AE 3.1
a. For n = 2
−1
I − A = = ( + a1 ) − (−1)a0 = 2 + a1 + a0
a0 + a1
Suppose the identity holds for n 2 . For the (n + 1) − dimensional case, expand I − A about the first
column:
−1 0 0 0
0 −1 0 0
I − A =
0 0 0 −1 0
0 0 0 −1
a0 a1 a2 an −1 + an
−1 0 0 −1 0 0 0
0 0 0 −1 0 0
= (−1) 1+1
+ a0 (−1) ( n +1) +1
0 0 −1 0 0 −1 0
a1 a2 an −1 + an 0 0 −1
Invoking the induction hypothesis, the first determinant on the right hand side (noting the index shift in
The second determinant on the right hand side is that of a lower triangular n n matrix having −1 ’s on
1
i
2
vi = i
in − 2
n −1
i
is nonzero due to the 1 in the first component. By definition, i is a root of the characteristic
0 1 0 0 0 1 i
0 0 1 0
0 i i2
i2 i3
=
0 0 0 1 0
0 0 0 0 1 in − 2 in −1
n −1 n −1
−a0 −a1 −a2 −an − 2 −an −1 i −a0 − a1i − a2 i − − an −2 i − an −1i
2 n−2
i
2
i
i3
=
in −1
n
i
1
i
2
= i i
in − 2
n −1
i
so that Avi = i vi .
48
c. In order to show that ni = nullity (i I − A) = 1 for each distinct eigenvalue i , by Sylvester’s law of
rank (i I − A) n . The (n −1) (n −1) submatrix of (i I − A) obtained by deleting the last row and first
column is lower triangular having −1 ’s on the main diagonal and is hence nonsingular. It follows that
e
A( t0 − ) ( t0 − )
W (t0 , t f ) = d
T
BBT e A
t0
tf
d
W (t , t f ) = e 0 f BBT e 0 f (0) − BBT (1) + Ae A(t − ) BBT e A (t − ) + e A(t − ) BBT e A (t − ) AT d
A ( t −t ) AT ( t −t ) T T
dt
t
= AW (t , t f ) + W (t , t f ) AT − BBT
AE3.3 Let
e At e At W (0, t )
X (t ) =
e− A t
T
0
I 0
X (0) =
0 I
Using
t
d d
W (0, t ) = e − At BBT e − A t (1) − BBT (0) + e − A BBT e − A d
T T
dt 0
dt
= e − At BBT e − A t
T
49
we find
Ae At
X (t ) =
(
Ae At W (0, t ) + e At e − At BBT e − A t
T
)
Ae At
=
Ae At W (0, t ) + BBT e − A t
T
0 − AT e− A t
T
0 − AT e− A t
T
to which we compare
T
X (t ) = T =
0 −A 0 − A 0 e− A t
T
0 − AT e− A t
T
If the pair ( A, B) is controllable, then WR (t0 , t f ) is nonsingular for any t0 and any finite t f t0 .
If WR (t0 , t f ) is nonsingular for any t0 and any finite t f t0 , then the pair ( A, B) is controllable.
The first implication can be verified by a contradiction argument. Suppose the pair ( A, B) is
controllable, but WR (t0 , t f ) is singular for some t0 and finite t f t0 . Consequently, there is a nonzero
vector x f n
that satisfies
tf
A( t f − ) 2
0 = x WR (t0 , t f ) x f = d
T
f BT e xf
t0
A( t f − )
which, as argued in the proof of Lemma 3.3, implies that xTf e B = 0 for all [t0 , t f ] . On the other
hand, controllability implies that this x f is reachable from the origin at time t f using a piecewise
tf
A( t f − )
xf = e Bu ( )d
t0
This yields
50
tf
(x e )
2 A( t f − )
xf = x xf T
f = T
f B u ( )d = 0
t0
which contradicts the assumption that x f is a nonzero vector. This contradiction indicates that
For the second implication, assume for arbitrarily selected t0 and finite t f t0 that WR (t0 , t f ) is
AT ( t f −t )
u(t ) = BT e WR−1 (t0 , t f ) x f
For x(t0 ) = 0
tf
A ( t f − )
x(t f ) = e A ( tt −t0 )
x(t0 ) + e Bu ( )d
t0
tf
A ( t f − ) AT ( t f − )
= e
t0
BBT e d WR−1 (t0 , t f ) x f
thereby demonstrating that x f is a reachable state. Since x f was arbitrary, the pair ( A, B) is
controllable. Note that this construction addresses the second part of the problem.
AE 3.5 Assume B 0 n
to avoid a trivial situation. Scanning the columns of the controllability
matrix from left to right, let r 1 denote the least integer such that B, AB, A2 B, , Ar −1B is a linearly
independent set and Ar B is linearly dependent on these vectors. If it should happen that each
That Ak B is linearly dependent on the set B, AB, A2 B, , Ar −1B for every k r can be established by
induction on k . By definition of r ,
Ar B = c0 B + c1 AB + c2 A2 B + + cr −1 Ar −1B
Ar +1 B = A( Ar B )
= A ( c0 B + c1 AB + c2 A2 B + + cr −1 Ar −1 B )
= c0 AB + c1 A2 B + c2 A3 B + + cr −1 Ar B
= c0 AB + c1 A2 B + c2 A3 B + + cr −1 ( c0 B + c1 AB + c2 A2 B + + cr −1 Ar −1 B )
= cr −1c0 B + (c0 + cr −1c1 ) AB + (c1 + cr −1c2 ) A2 B + + (cr −2 + cr2−1 ) Ar −1B
indicating that Ar +1 B is linearly dependent on the set B, AB, A2 B, , Ar −1B . Suppose for arbitrary
k r
Ak B = d0 B + d1 AB + d2 A2 B + + d r −1 Ar −1B
Ak +1 B = A( Ak B )
= A ( d 0 B + d1 AB + d 2 A2 B + + d r −1 Ar −1B )
= d 0 AB + d1 A2 B + d 2 A3 B + + d r −1 Ar B
= d 0 AB + d1 A2 B + d 2 A3 B + + d r −1 ( c0 B + c1 AB + c2 A2 B + + cr −1 Ar −1B )
= d r −1c0 B + (d 0 + d r −1c1 ) AB + (d1 + d r −1c2 ) A2 B + + (d r − 2 + d r −1cr −1 ) Ar −1B
induction argument.
52
AE 3.6 Because A is an n n Jordan block matrix, A has one distinct eigenvalue with algebraic
multiplicity n . Using the Popov-Belevetch-Hautus rank test for controllability, it equivalent to show
that
The n (n + 1) matrix
0 −1 0 b1
0
0 0 −1 b2
0
I − A B =
0 0 0 −1 bn −1
0 0 0 0 bn
−1 0 0 b1
0 −1 0 b2
0 0 −1 bn −1
0 0 0 bn
is nonsingular. Due to its upper triangular structure, this matrix has determinant equal to (−1)n −1 bn
AE 3.7 Clearly if C1 = C2 then h1 (t ) = C1e At B = C2e At B = h2 (t ) . For the converse statement, suppose
dk d k At
0 =
dt k
( h1 (t ) − h2 (t ) ) = ( C1 − C2 )
dt k
(e B ) = ( C1 − C2 ) Ak e At B t =0
t =0 t =0
= ( C1 − C2 ) Ak B
for k = 0, , n −1 . In other words
( C1 − C2 ) B AB A2 B An −1B = 0 0 0 0
53
Because the state equation is controllable, the controllability matrix has full row rank and so
C1 − C2 = 0 , or C1 = C2 .
x1 (t ) A1 0 x1 (t ) B1
x (t ) = 0 +
A2 x2 (t ) B2
u (t )
2
x (t )
y (t ) = C1 C2 1
x2 (t )
satisfies
−1
sI − A1 0 B1 ( sI − A1 ) −1 0 B1
C1 C2
sI − A2 B2
= C1C2 −1
0 0 ( sI − A2 ) B2
= C1 ( sI − A1 ) −1 B1 + C2 ( sI − A2 ) −1 B2
= H1 ( s ) + H 2 ( s )
and is therefore a realization of the parallel interconnection. Let ( A, B ) denote the coefficient matrices
To prove the contrapositive of the first implication, suppose A1 and A2 have a common eigenvalue, .
wi 0 wi Ai = wi i = 1, 2
which satisfies
A 0
w A = w1 wˆ 2 1 = w1 A1 wˆ 2 A2 = w1 wˆ 2 = w1 wˆ 2
0 A2
= w
and
B
w B = w1 wˆ 2 1 = w1 B1 + wˆ 2 B2 = 1 − 1 2
B2 2
= 0
To prove the contrapositive of the second implication, suppose the pair ( A, B ) is not controllable. By
eigenvector w satisfying
w0 w A = w w B = 0
Partitioning
w
w = 1
w2
we have
If we can show that both w1 0 and w2 0 , then w1 and w2 are left eigenvectors for A1 and A2 ,
respectively, corresponding to the same eigenvalue , implying that A1 and A2 have a common
which contradicts the assumed controllability of the pair ( A2 , B2 ) . Similarly, the assumption that
x1 (t ) A1 B1C2 x1 (t ) 0
x (t ) = 0 +
A2 x2 (t ) B2
u (t )
2
x (t )
y (t ) = C1 0 1
x2 (t )
satisfies
−1
sI − A1 − B1C2 0 ( sI − A1 ) −1 ( sI − A1 ) −1 B1C2 ( sI − A2 ) −1 0
C1 0
sI − A2 B2
= C1 0
0 0 ( sI − A2 ) −1 B2
= C1 ( sI − A1 ) −1 B1 C2 ( sI − A2 ) −1 B2
= H1 ( s ) H 2 ( s )
and is therefore a realization of the series interconnection. Let ( A, B ) denote the coefficient matrices in
To prove the contrapositive of the first implication, suppose is an eigenvalue of A1 for which
b2 ( s) C2adj( sI − A2 ) B2
H 2 ( s) = =
a2 (s) sI − A2
56
the determinant identity of AE1.4 yields (recall AE2.11)
sI − A2 − B2
= sI − A2 H 2 ( s) = b2 ( s)
C2 0
so that H 2 ( ) = 0 implies
I − A2 − B2
C 0
2
is singular and therefore has linearly dependent rows. Consequently, there exists
w2 0 I − A2 − B2
z 0 such that w2
z2 = w ( I − A2 ) + z2C2 −w2 B2 = 0 0
2 C2 0 2
Necessarily z2 0 , for otherwise the preceding identity would contradict the assumed
controllability of the pair ( A2 , B2 ) . Consequently, w2 and z2 can be scaled so that z2 = −w1 B1 . Next,
A B1C2
w1 w2 1 = w1 A1 w1 B1C2 + w2 A2
0 A2
= w1 A1 − z2C2 + w2 A2
= w1 w2
= w1 w2
and
0
w1 w2 = w2 B2
B2
= 0
To prove the contrapositive of the second implication, suppose the series realization is not controllable,
Observe that w1 0 , for otherwise w2 A2 = w2 and w2 B2 = 0 , thereby contradicting the assumed
It follows from the assumed controllability of the pair ( A1 , B1 ) that w1 B1 0 . With z2 = −w1 B1 0 , we
have
I − A2 − B2
w2 z2 = w2 ( I − A2 ) + z2C2 − w2 B2 = 0 0
C2 0
indicating that
I − A2 − B2
C 0
2
is singular. The determinant identity used earlier indicates that b2 ( s ) s = = 0 , so that is also a zero of
H 2 ( s) .
If the pair ( A, B) is controllable, then the only square matrix X that satisfies AX = XA and
XB = 0 is X = 0 .
If the only square matrix X that satisfies AX = XA and XB = 0 is X = 0 , then the pair ( A, B)
is controllable.
To prove the contrapositive of the first implication, suppose there is a nonzero square matrix X that
satisfies AX = XA and XB = 0 . A straightforward induction argument shows that Ak X = XAk for any
r T B AB A2 B An −1B = 0 0 0 0
thereby indicating that the controllability matrix has less than full row rank which implies that the pair
( A, B) is not controllable.
To prove the contrapositive of the second implication, suppose that the pair ( A, B) is not controllable so
X = v w
This so-called outer product yields a square matrix that, because v and w are nonzero vectors, is
so that AX = XA . Also
XB = v(w B) = 0
We have shown that there exists a nonzero square matrix X that satisfies AX = XA and XB = 0 .
59
Chapter 4
realization of H ( s) is observable.
To prove the contrapositive of the first implication, suppose H ( s) has a pole-zero cancellation. Let
denote a common root of the numerator and denominator polynomials. By AE3.1 part a, the nth-order
eigenvalue of ACCF for which, from AE3.1 part b, a corresponding right eigenvector is
1
2
v =
n −2
n −1
0 = b0 + b1 + b2 2 + + bn − 2 n − 2 + bn −1 n −1
1
2
= b0 b1 b2 bn − 2 bn −1
n − 2
n −1
= CCCF v
We conclude from the Popov-Belevitch-Hautus eigenvector test that the n − dimensional controller
To prove the contrapositive of the second implication, suppose the n − dimensional controller canonical
form realization of H ( s) is not observable. From the Popov-Belevitch-Hautus eigenvector test, there
exists an eigenvalue of ACCF and a corresponding right eigenvector v for which CCCFv = 0 . As
argued earlier, is also a pole of H ( s) . By AE3.1 part c, the geometric multiplicity of is one, so
1
2
v =
n −2
n −1
and so we can assume v has this form without loss of generality. From an earlier identity, CCCFv = 0
e
AT ( −t0 )
M (t0 , t f ) = C T Ce A( −t0 ) d
t0
tf
d
M (t , t f ) = e f 0 C T Ce f 0 (0) − C T C (1) + (− AT )e A ( −t )C T Ce A( −t ) + e A ( −t )C T Ce A( −t ) (− A) d
AT ( t −t ) A ( t −t ) T T
dt
t
= − AT M (t , t f ) − M (t , t f ) A − C T C
e At 0
X (t ) =
− AT t − AT t
−e M (0, t ) e
I 0
X (0) =
0 I
Using
t
d d
M (0, t ) = e A t C T Ce At (1) − C T C (0) + e A C T Ce A d
T T
dt 0
dt
= e A t C T Ce At
T
we find
Ae At 0 Ae At 0
X (t ) = T − AT t = T − AT t
T
(
A e M (0, t ) − e − A t e A t C T Ce At
T
) − AT e − A t
T
A e M (0, t ) − C Ce
T At
− AT e − A t
T
to which we compare
A 0 A 0 e At 0
−C T C T
X (t ) = T T
−A −C C − AT −e − A t M (0, t ) e − A t
T
Ae At 0
= T
T −A t T −A t
−C Ce + A e M (0, t ) − A e
T
T At
AE4.4 Because A is an n n Jordan block matrix, A has one distinct eigenvalue with algebraic
multiplicity n . Using the Popov-Belevetch-Hautus rank test for observability, it equivalent to show that
C
rank = n if and only if c1 0
I − A
The (n + 1) n matrix
62
c1 c2 c3 cn
0 −1 0 0
C 0 0 −1 0
I − A =
0 0 0 −1
0 0 0 0
c1 c2 c3 cn
0 −1 0 0
0 0 −1 0
0 0 0 −1
is nonsingular. Due to its upper triangular structure, this matrix has determinant equal to c1 (−1)n−1
If the pair ( A, C ) is observable, then the only square matrix X that satisfies AX = XA and
CX = 0 is X = 0 .
If the only square matrix X that satisfies AX = XA and CX = 0 is X = 0 , then the pair ( A, C )
is observable.
To prove the contrapositive of the first implication, suppose there is a nonzero square matrix X that
satisfies AX = XA and CX = 0 . A straightforward induction argument shows that Ak X = XAk for any
Because X is a nonzero matrix, at least one of its columns is a nonzero column vector, denoted c .
thereby indicating that the observability matrix has less than full column rank which implies that the pair
( A, C ) is not observable.
To prove the contrapositive of the second implication, suppose that the pair ( A, C ) is not observable so
X = v w
This so-called outer product yields a square matrix that, because v and w are nonzero vectors, is
so that AX = XA . Also
CX = (Cv)w = 0
We have shown that there exists a nonzero square matrix X that satisfies AX = XA and CX = 0 .
HC H 0 C
I − ( A − LC ) = L I I − A
Since the left factor on the righthand side is nonsingular and matrix rank is unaffected by pre- and
HC C
rank = rank for all
I − ( A − LC ) I − A
64
Thus, by the Popov-Belevitch-Hautus rank test for observability, the pair ( A, C ) is observable if and
only if the pair ( A − LC, HC ) is observable for any n p matrix L and any nonsingular p p matrix
H.
AE4.7 Let
A A12
A = 11
A22
and C = C1 0
A21
To prove the contrapositive of the first implication, suppose that the pair ( A22 , A12 ) is not observable so
there exists an eigenvalue of A22 and a corresponding right eigenvector v2 for which A12v2 = 0 .
Thus,
0 0
v 0
2
satisfies
A11 A12 0 A v
A = 12 2 0
21 A22 v2 A22v2 C1 0 = 0
v2
0
= and
v2
0
=
v2
To prove the contrapositive of the second implication, suppose that the pair ( A, C ) is not observable.
v1 0
v 0
2
such that
A11 A12 v1 v v
A = 1 and C1 0 1 = C1v1 = 0
21 A22 v2 v2 v2
Under the assumption that C1 is nonsingular, C1v1 = 0 implies v1 = 0 . Thus necessarily v2 0 and the
from which A22v2 = v2 and A12v2 = 0 . It follows that the pair ( A22 , A12 ) is not observable.
66
Chapter 5
AE5.1 Minimality of each state equation is equivalent to joint controllability and observability.
Because matrix rank is unaffected by pre- and postmultiplication by nonsingular matrices, the identity
I 0
I − ( A − BKC ) B = I − A B
KC I
implies that
C I 0 C
I − ( A − BKC ) = BK I I − A
implies that
C C
rank = rank for all
I − ( A − BKC ) I − A
It follows that the realization ( A, B, C ) is both controllable and observable if and only if the realization
A B
If the state equation is minimal, then A and have no eigenvalue in common.
C D
A B
If A and have no eigenvalue in common, then the state equation is minimal.
C D
A B
C D
67
have a common eigenvalue . Let
v 0 n +1
z 0
satisfy
A B v v
C D z = z
which can be decomposed into Av + Bz = v and Cv + Dz = z . There are two cases to examine:
z = 0 and z 0 . If z = 0 , then v 0 n
and
Av = v Cv = 0
which indicates that the state equation is not observable. If z 0 , then with w n
a left eigenvector
w ( v ) = w ( Av + Bz ) = ( w A)v + ( w B) z = wv + ( w B) z
implies that w B = 0 , indicating that the state equation is not controllable. We conclude that the state
equation cannot be both controllable and observable and is therefore not minimal.
To prove the contrapositive of the second implication, suppose that the state equation is not minimal, so
it is either not controllable, not observable, or both. If it is not controllable then there is an eigenvalue
A B
w 0 = w A w B = w 0 = w 0
C D
Alternatively, if the state equation is not observable, then there is an eigenvalue of A and a
A B v Av v v
C D 0 = Cv = 0 = 0
A B
C D
A B
Thus, in either case A and have a common eigenvalue.
C D
AE5.3 To prove the contrapositive, suppose A and the product BC do commute. It follows that for
any integer k 0 , A k and BC commute. Consider the product of the n n controllability matrix and
C
CA
P Q = B AB A2 B An −1B CA2
CAn −1
= BC + ABCA + A2 BCA2 + + An −1BCAn −1
= BC + A2 BC + A4 BC + + A2( n −1) BC
x n
satisfying Cx = 0 . It follows that
69
P Qx = ( BC + A BC + A BC +
2 4
+ A2( n −1) BC ) x
= B(Cx) + A2 B(Cx) + A4 B(Cx) + + A2( n −1) B(Cx)
= 0
which indicates that the n n product PQ is singular, implying the same for at least one of the factors.
This implies that the realization cannot be both controllable and observable and is therefore not minimal.
70
Chapter 6
AE6.1 With denoting the Euclidean norm, along any trajectory of the homogeneous linear state
equation
d d T
=
2
x(t ) x (t ) x(t )
dt dt
= xT (t ) x(t ) + xT (t ) x(t )
= xT (t ) AT x(t ) + xT (t ) Ax(t )
= xT (t ) ( AT + A ) x(t )
= 0
and so x(t ) = x0 for all t 0 . It follows that homogeneous state equation (more precisely, the
equilibrium state x = 0 n
) is stable (take = 1 in Definition 6.2) but not asymptotically stable.
d AT t At
t
e Pe + e Qe d = e A Pe + e PAe + e Qe
AT A AT t T At AT t At AT t At
dt 0
= e A t ( AT P + PA + Q ) e At
T
= 0
t
we conclude that e Pe + e A Qe A d is constant and therefore must equal P for all t 0 .
AT t T
At
AE6.3 The eigenvalues of A have real part less than − if and only if the eigenvalues of I + A have
( I + A)T P + P( I + A) = − Q
d T
x (t ) Px(t ) = xT (t ) Px(t ) + xT (t ) Px(t )
dt
= xT (t )( A + A)T Px(t ) + xT (t ) P( A + A) x(t )
= xT (t ) ( AT P + PA ) x(t ) + 2 xT (t ) P Ax(t )
= − x(t ) + 2 xT (t ) P Ax(t )
2
For a symmetric positive definite matrix, the spectral norm induced by the Euclidean vector norm
( Px(t ) ) ( Ax(t ) )
T
xT (t ) P Ax(t ) =
Px(t ) Ax(t )
P A x(t )
2
= max ( P) A x(t )
2
1
A
2max ( P)
d T
x (t ) Px(t ) − x(t )
2
dt
Following similar steps as in the Exponential Stability discussion of Section 6.1, this bound implies that
the perturbed homogeneous linear state equation is exponentially, hence asymptotically, stable.
72
AE 6.5 Define
= e
T
At
W BBT e A t dt
0
As argued in the proof of Theorem 6.2, this improper integral is well defined because A has negative
xT Wx = ( x e B)( B e x)dt
T
T At T A t
0
2
=
T
BT e A t x dt
0
Clearly, xTWx 0 with equality if and only if BT e A t x = 0 for all t 0 . Repeated differentiation
T
m
d k T AT t
0 = B e x = BT ( AT )k x for k = 0, , n −1
dt k t =0
xT B AB A2 B An −1B = 0 0 0 0
Under the assumption that the pair ( A, B) is controllable, we must have x = 0 . Thus xTWx 0 with
equality if and only if x = 0 , so that W is positive definite. Finally, W satisfies the Lyapunov matrix
equation because
Ae At BBT e A t + e At BBT e A t AT dt
AW + WAT =
T T
0
d
= e At BBT e A t dt
T
0 dt
= e At BBT e A t
T
= 0 − BB T
= − BBT
− w BBT w = w AW + WAT w
= w AWw + wWAT w
= wWw + wWw
= ( + ) wWw
= 2 Re( ) wWw
Since w 0 and W is a positive definite matrix, wWw 0 . Under the assumption that the pair ( A, B)
2
w BBT w = BT w 0 . Consequently,
1 w BBT w
Re( ) = − 0
2 wWw
from which we conclude that every eigenvalue of A necessarily has a strictly negative real part.
74
1
AE6.7 The input u(t ) = e−t , t 0 has Laplace transform U ( s ) = . By the convolution property of
s+
equation, each pole has negative real-part. Thus for 0 , any 0 lies in the region of convergence
so that
1
y(t ) e dt = Y ( ) = H ( )
− t
0
+
is well defined. If the state equation is not bounded-input, bounded-output stable, this relationship still
Chapter 7
A 0 B
Ae = Be =
C 0 0
Ak 0
Aek = k −1 for all k 1
CA 0
A B 0 B AB An − 2 B An −1B
Pe =
C 0 1 0 0 0 0
A B 0 P
=
C 0 1 0
Thus, Pe is nonsingular if and only if each factor is nonsingular and the second factor is nonsingular if
and only if the n n controllability matrix P is nonsingular. It follows that the pair ( Ae , Be ) is
A B
C 0
tf
W (0, t f ) = e− At BBT e− A t dt
T
Ae − At BBT e − A t + e − At BBT e − A t AT dt
tf
AW (0, t f ) + W (0, t f ) AT =
T T
0
tf d
= − e − At BBT e − A t dt
T
0 dt
tf
= −e − At BBT e − A t
T
0
− At f −A tfT
= −e BBT e + BBT
= − e ( − At f
BBT e
− AT t f
+ BBT )
Let be any eigenvalue of A − BK and w n
be a corresponding left eigenvector. Premultiplying
− w e( − At f
BBT e
− AT t f
)
+ BBT w = w ( A − BK )W (0, t f ) + W (0, t f )( A − BK )T w
Since w 0 and W (0, t f ) is a positive definite matrix, wW (0, t f ) w 0 . Under the assumption that the
pair ( A, B) is controllable, so is the pair ( A − BK , B) for any gain matrix K as guaranteed by Theorem
3.9. Consequently, the Popov-Belevitch-Hautus eigenvector test ensures that w B 0 from which
2
w BBT w = BT w 0 . Therefore,
(
w e
− At f
BBT e
− AT t f
)
+ BBT w = we
− At f
BBT e
− AT t f
w + w BBT w w BBT w 0
77
and as a consequence
Re( ) = −
1w e ( − At f
BBT e
− AT t f
)
+ BBT w
−
1 w BBT w
0
2 wW (0, t f ) w 2 wW (0, t f ) w
from which we conclude that every eigenvalue of A − BK necessarily has a strictly negative real part.
x(t ) = ( A − BK ) x(t )
is asymptotically stable.
( A − BK )T P + P( A − BK ) = AT P + PA − 2 PBBT P
= − ( Q + PBBT P )
Because Q is symmetric and positive definite and PBBT P is symmetric and (at least) positive
semidefinite, Q + PBBT P is symmetric and positive definite. Because P is also symmetric and positive
definite, Theorem 6.4 indicates that every eigenvalue of A − BK has strictly negative real part and so the
x(t ) = ( A − BK ) x(t )
( )
−1
( sI − A + BK ) = ( sI − A) I + ( sI − A ) BK
−1 −1
−1
= I + ( sI − A ) BK ( sI − A)
−1 −1
−1 −1
I + ( sI − A)−1 BK ( sI − A)
−1
B = ( sI − A)
−1
B I + K ( sI − A ) B
−1
Thus
H CL ( s ) = C ( sI − A + BK ) BG
−1
−1
= C I + ( sI − A ) BK ( sI − A )
−1 −1
BG
−1
= C ( sI − A ) B I + K ( sI − A ) B G
−1 −1
−1
= H ( s ) I + K ( sI − A ) B G
−1
as desired.
79
Chapter 8
AE8.1 We argue that, beginning with an observable open-loop state equation, state feedback can yield
an unobservable closed-loop state equation, and vice-versa. The first step is to show that open-loop and
closed-loop transfer functions related by state feedback have the same numerator polynomial.
Consider an n − dimensional single-input, single-output state equation that is a realization of the transfer
function
b( s )
H ( s) =
a( s)
with n = deg a(s) so that a ( s ) = sI − A and b(s) = Cadj(sI − A) B . Given any state feedback gain K ,
(s) = sI − A + BK
= sI − A I + ( sI − A) −1 BK
= sI − A (1 + K ( sI − A) −1 B )
k (s)
= a( s) 1 +
a(s)
= a(s) + k (s)
so that
−1 1 1 a( s) a( s)
I + K ( sI − A )−1 B = = = =
1 + K ( sI − A) −1 B k (s) a(s) + k (s) (s)
1+
a( s)
b( s ) a ( s )
=
a(s) (s)
b( s )
=
( s)
Thus, the closed-loop denominator polynomial matches the characteristic polynomial achieved by state
feedback and the closed-loop numerator polynomial is the same as the open-loop numerator polynomial.
Suppose the open-loop state equation is controllable and observable, hence minimal, and consequently
H ( s) is irreducible. Controllability implies that any desired degree −n characteristic polynomial (s)
can be achieved by state feedback. Choosing (s) to have a common root with b( s) , we see that
HCL (s) is not irreducible and so the closed-loop state equation is not minimal. The closed-loop state
equation is controllable because controllability is unaffected by state feedback (see Theorem 3.9) and so
it cannot be observable.
Conversely, suppose the open-loop state equation is controllable but not observable, so that H ( s) is not
irreducible. Choosing (s) so that it does not have a root in common with b( s) , HCL (s) is irreducible.
A − BK
w − w = w A − w LC − w BK − w ( A − BK − LC )
LC A − BK − LC
= w ( A − LC ) − w ( A − LC )
= w − w
= w − w
and
81
B
w − w = w B − w B = 0
B
By the Popov-Belevitch-Eigenvector test, the closed-loop state equation (8.5) is not controllable.
A A12 I
A = 11 B =
A21 A22 0
is controllable if and only if the pair ( A22 , A21 ) is controllable. First suppose that the pair ( A22 , A21 ) is
not controllable so there exists an eigenvalue of A22 and a corresponding left eigenvector w2 for
0 0
w 0
2
satisfies
A A12 I
0 w2 11 = w2 A21 w2 A22 0 w2 = 0
A21 A22 0
= 0 w2
= 0 w2
Next, suppose that the pair ( A, B) is not controllable. Hence there exists eigenvalue of A and a
w1 0
w 0
2
82
such that
A A12 I
w1 w2 11 = w1 w2 w1 w2 = w1 = 0
A22
and
A21 0
A A12
0 w2 11 = w2 A21 w2 A22 = 0 w2
A21 A22
from which w2 A22 = w2 and w2 A21 = 0 . It follows that the pair ( A22 , A21 ) is not controllable.
Now, let
L
L = 1 and K
L2
at desired locations in the open left half of the complex plane. Consider the (n − m) − dimensional
compensator given by
x1 (t ) A11 − ( L1 + KL2 )C1 A12 − ( L1 + KL2 )C2 A12 + KF − A11 K − ( L1 + KL2 )(C2 − C1 K ) x1 (t )
x (t ) = A21 A22 0 x (t )
2 2
z (t ) − L2C1 − L2C2 F − L2 (C2 − C1 K ) z (t )
x1 (t )
y (t ) = C1 C2 0 x2 (t )
z (t )
83
in which we identify the closed-loop system dynamics matrix ACL . Consider the closed-loop state
I 0 −K
TCL = 0 I I
0 0 − I
−1
which satisfies TCL = TCL . A tedious calculation reveals
−1
I H I H I −H
0 I 0 I =
0 I
Adjusting for the fact that the coordinate transformation as specified does not follow our standard
convention, we compute
I H A + BNC B ( M + NCH ) I − H
0 I GC F + GCH 0 I
A + BNC + HGC −( A + BNC + HGC ) H + B( M + NCH ) + H ( F + GCH )
=
GC F
A + ( BN + HG )C − AH + BM + HF
=
GC F
A − LC 0
=
GC F
84
We conclude from the block triangular structure so obtained that the 2n − m closed-loop eigenvalues are
x1 (t ) A1 0 x1 (t ) B1
x (t ) = 0 +
A2 x2 (t ) B2
u (t )
2
x (t )
y (t ) = C1 C2 1
x2 (t )
satisfies
−1
sI − A1 0 B1 ( sI − A1 ) −1 0 B1
C1 C2
sI − A2 B2
= 1 2
C C −1
0 0 ( sI − A2 ) B2
= C1 ( sI − A1 ) −1 B1 + C2 ( sI − A2 ) −1 B2
= H1 ( s ) + H 2 ( s )
and is therefore a realization of the parallel interconnection. Let ( A, C ) denote the coefficient matrices
To prove the contrapositive of the first implication, suppose A1 and A2 have a common eigenvalue, .
vi 0 Av
i i = vi i = 1, 2
We can then rescale v2 to obtain v̂2 = − 12 v2 which is also a right eigenvector of A2 associated with the
which satisfies
A 0 v1 Av v v
Av = 1 = 1 1 = 1 = 1
0 A2 vˆ2 A2vˆ2 vˆ2 vˆ2
= v
and
v
Cv = C1 C2 1 = C1v1 + C2vˆ2 = 1 − 1 2
vˆ2 2
= 0
To prove the contrapositive of the second implication, suppose the pair ( A, C ) is not observable. By the
eigenvector v satisfying
v 0 Av = v Cv = 0
Partitioning
v
v = 1
v2
we have
Av
1 1 = v1 A2v2 = v2
If we can show that both v1 0 and v2 0 , then v1 and v2 are right eigenvectors for A1 and A2 ,
respectively, corresponding to the same eigenvalue , implying that A1 and A2 have a common
which contradicts the assumed observability of the pair ( A2 , C2 ) . Similarly, the assumption that v2 = 0
contradicts the assumed observability of the pair ( A1 , C1 ) . Thus both v1 0 and v2 0 , so that is an
Chapter 9
AE 9.1 Subtracting the algebraic Riccati equations satisfied by P1 and P2 , respectively, gives
0 = AT ( P1 − P2 ) + ( P1 − P2 ) A − PBR
1
−1 T
B P1 + P2 BR −1BT P2
= AT ( P1 − P2 ) + ( P1 − P2 ) A − PBR
1 B P1 + P2 BR −1BT P2 + PBR
−1 T
1
−1 T
B P2 − PBR
1 B P2
−1 T
= AT ( P1 − P2 ) + ( P1 − P2 ) A − PBR
1 B ( P1 − P2 ) − ( P1 − P2 ) BR −1BT P2
−1 T
( A − BR BT P2 ) ( P − P ) + ( P − P ) ( A − BR BT P1 )
−1 T −1
= 1 2 1 2
Because P1 and P2 each are symmetric and positive definite, following the reasoning in the proof of
Theorem 9.1, both A − BR −1BT P1 and A − BR−1BT P2 have strictly negative real-part eigenvalues. A
slight modification to the sufficiency proof of Theorem 6.4 indicates that the unique solution to the
= 0
d −1 d
0 = W (t , t f )W (t , t f ) + W −1 (t , t f ) W (t , t f )
dt dt
d −1 d
− W (t , t f ) = W −1 (t , t f ) W (t , t f )W −1 (t , t f )
dt dt
d −1
− W (t , t f ) = W −1 (t , t f ) AW (t , t f ) + W (t , t f ) AT − BBT W −1 (t , t f )
dt
= ATW −1 (t , t f ) + W −1 (t , t f ) A − W −1 (t , t f ) BBTW −1 (t , t f )
88
as required. Thus W −1 (t , t f ) satisfies the differential Riccati equation with Q = 0 and R = I . With
these weighting matrices, Equation (9.12) coincides with Equation (9.9). With the terminal cost term
replaced by the constraint x(t f ) = x f , the optimal control signal for this linear quadratic regulator
I 0 A − BR −1 BT I 0
T −1 H T =
− P I −Q − AT P I
A − BR −1BT P − BR −1BT
= −1 T −1 T T
− PA − Q + PBR B P − A P PBR B − A
T
A − BR −1BT P − BR −1BT
=
0 −( A − BR −1BT P )T
from which X = − BR −1 BT . The 2n eigenvalues of H are the n strictly negative real part eigenvalues
AE 9.4 The solution to the optimal control problem involving the weighted performance index
corresponds to the solution of the linear quadratic regulator problem with A replaced by I + A .
Because the triple ( I + A, B, C) is controllable and observable if and only if the same is true for the
( I + A)T P + P ( I + A) − P BR −1BT P + C T C = 0
has a unique symmetric positive definite solution which determines the optimal control
u (t ) = − R −1BT P x(t )
eigenvalues.
AE 9.5 Add and subtract j P from the algebraic Riccati equation and rearrange to form
( )
−1
, postmultiply by ( j I − A ) B , and scale by R −1 to obtain
−1
Premultiply by BT − j I − AT
= BT ( − jI − AT ) QR −1 ( jI − A) B
−1 −1
= 1 + ( jI − A) B (QR −1 ) ( jI − A ) B
−1 −1
1 for all −
K LQR ( jI − A ) B
−1
Use the fact that is a scalar quantity whose complex conjugate is
BT ( − jI − AT ) KLQR
−1 T
along with the identity
1+ z = (1 + z )(1 + z ) = 1 + z + z + zz z
2
As a result, the Nyquist plot of K LQR ( sI − A) −1 B never enters the circle of radius one centered at −1 + j 0
in the complex plane. Consequently, the Nyquist curve does not cross the negative real axis between
−1 + j 0 and the origin, which corresponds to infinite gain margin. Also. from the geometry depicted
90
below, the Nyquist curve cannot cross the unit circle at a point corresponding to a phase margin of less
than 60°.
Im
-1 0 Re
60°
91
CharPoly = 1 3 2
Poles =
-2
-1
Transfer function:
1
-------------
s^2 + 3 s + 2
0.25 0.5
0.4
0.2
0.3
0.15
y
y
0.2
0.1
0.1
0.05
0
0
-0.1
-0.05 0 1 2 3 4 5 6 7 8
0 1 2 3 4 5 6 7 8 time (sec)
time (sec)
Open-Loop Unit Step Response: DCF States Open-Loop Initial Conditions Response
1 1
0.8 0.8
0.6 0.6
x1
x1
0.4 0.4
0.2 0.2
0 0
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
0.8 0
-0.2
0.6
-0.4
0.4
x2
x2
-0.6
0.2
-0.8
0 -1
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (sec) time (sec)
P =
1.0000 -1.0000
1.4142 -2.8284
92
determinant of P = -1.4142
Q =
1.0000 -0.7071
-1.0000 1.4142
determinant of Q = 0.7071
Tc =
2.0000 1.0000
1.4142 1.4142
Ac =
0.0000 1.0000
-2.0000 -3.0000
Bc =
0.0000
1.0000
Cc =
1.0000 0.0000
Dc =
0
To =
1.0000 -1.0000
1.4142 -2.8284
Ao =
0 -2.0000
1.0000 -3.0000
Bo =
1.0000
0
Co =
0.0000 1.0000
Do =
0
Td =
0 1
1 0
Ad =
-2 0
0 -1
Bd =
1.4142
1.0000
Cd =
-0.7071 1.0000
Dd =
0
PLYAP =
93
0.5 0
0 0.25
Phase Portrait
0.25
0.2
0.15
x2
0.1
0.05
0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
x
1
zeta = -0.8261
wn = -4.8421
Poles2 =
-4.0000 + 2.7288i
-4.0000 - 2.7288i
K = 16.45 -8.09
1
x1
Open-loop
0.5
Closed-loop
0
0 1 2 3 4 5 6 7 8
1.5
1
x2
0.5
0
0 1 2 3 4 5 6 7 8
time (sec)
PolesObs =
-40.0000 +27.2875i
-40.0000 -27.2875i
L =
2265.61
3095.16
94
Ahat =
1.0e+003 *
-2.2666 1.6020
-3.0952 2.1866
0.2
0.5 0.1
e1
-0.1
0.4
-0.2
-0.3
0.3 -0.4
0 1 2 3 4 5 6 7 8
y
Open-loop
0.2 Closed-loop
0.2
w/ Observer
0.1
0.1 0
-0.1
e2
-0.2
0
-0.3
-0.4
-0.1 -0.5
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (sec) time (sec)
KLQR =
0.43 -0.04
-0.04 0.23
-0.1
0.5
-0.2
0.4 -0.3
Open-loop -0.4
0.3 Closed-loop
LQR
-0.5
U
y
0.2 Closed-loop
-0.6
LQR
-0.7
0.1
-0.8
0
-0.9
-0.1 -1
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (sec) time (sec)
95
Poles =
-1.0000 + 5.0000i
-1.0000 - 5.0000i
-2.0000
Transfer function:
s + 20
-----------------------
s^3 + 4 s^2 + 30 s + 52
0.7 0.35
0.6
0.3
0.5
0.25
0.4
0.2
y
0.3
y
0.2 0.15
0.1
0.1
0.05
-0.1
-0.2 0
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (sec) time (sec)
0.01
x1
0
0.005
-0.5
0 0 1 2 3 4 5 6 7 8
0 1 2 3 4 5 6 7 8
4
0.04
2
0.02
0
x2
x2
0 -2
-0.02 -4
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
0.2 20
0.1 10
0
x3
0
x3
-0.1 -10
-0.2 -20
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (sec) time (sec)
P =
0 0 1
0 1 -4
1 -4 -14
Q =
20 1 0
0 20 1
-52 -30 16
96
Tc =
1.0000 0 0
0.0000 1.0000 0
0.0000 0.0000 1.0000
Ac =
0.0000 1.0000 0
0.0000 0 1.0000
-52.0000 -30.0000 -4.0000
Bc =
0
0
1
Cc = 20 1 0
Dc = 0
To =
0.0001 -0.0029 0.0576
-0.0029 0.0576 -0.1514
0.0576 -0.1514 -0.9718
Ao =
0.0000 0.0000 -52.0000
1.0000 0.0000 -30.0000
0.0000 1.0000 -4.0000
Bo =
20.0000
1.0000
0.0000
Co =
0.0000 0.0000 1.0000
Do =
0
Tm =
4.5826 0.3525 0.1763
4.0791 0.3138 -0.8629
9.7898 6.0559 0.5805
Am =
-2.0000 0 0
0 -1.0000 5.0000
0 -5.0000 -1.0000
Bm =
0.1763
-0.8629
0.5805
Cm =
3.9279 0.7340 -0.1015
Dm =
0
PLYAP =
21.82 11.92 0.01
11.92 8.5 0.41
97
0.01 0.41 0.23
0.035
0.1
0.03
0.025 0.05
0.02
x3 (rad/s )
0
x2 (rad/s)
2
0.015
-0.05
0.01
0.005 -0.1
0
-0.15
-0.005
-0.01 -0.2
0 0.005 0.01 0.015 0.02 -0.01 0 0.01 0.02 0.03 0.04
x (rad) x (rad/s)
1 2
0.015
0.01 Open-loop
Open-loop
0.01 Closed-loop
x1
x1
Closed-loop
0 w/ Observer
0.005
0 -0.01
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
0.04 0.04
0.02 0.02
x2
x2
0 0
-0.02 -0.02
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
0.2 0.2
0.1 0.1
0 0
x3
x3
-0.1 -0.1
-0.2 -0.2
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (sec) time (sec)
L =
-9.36
403.25
4140.92
98
KLQR =
153.02 85.61 0.10
85.61 65.22 2.88
0.10 2.88 1.64
0.35
0.2
0.3
0
Open-loop
0.25 Closed-loop
LQR Closed-loop
-0.2
LQR
U
0.2
y
-0.4
0.15
-0.6
0.1
-0.8
0.05
0 -1
0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8
time (sec) time (sec)
99
Poles =
-1.0000 + 6.0000i
-1.0000 - 6.0000i
-1.0000 + 5.0000i
-1.0000 - 5.0000i
Transfer function:
300
----------------------------------
s^4 + 4 s^3 + 67 s^2 + 126 s + 962
1.5 0.6
1
0.5
0.5
0.4
y
0
y
0.3
-0.5
0.2
-1
0.1
-1.5
0
-2 0 1 2 3 4 5 6
0 1 2 3 4 5 6 time (sec)
time (sec)
-3
x 10 Open-Loop Unit Step Response: States Open-Loop Initial Conditions Response
3 5
2 0
x1
x1
1 -5
0 -10
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.01 50
0 0
x2
x2
-0.01 -50
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.05 200
0 0
x3
x3
-0.05 -200
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.2 1000
0 0
x4
x4
-0.2 -1000
0 1 2 3 4 5 6 0 1 2 3 4 5 6
time (sec) time (sec)
P =
0 0 0 1
0 0 1 -4
0 1 -4 -51
1 -4 -51 346
Q =
300 0 0 0
0 300 0 0
0 0 300 0
0 0 0 300
Tc =
1.0000 0 0 0
0.0000 1.0000 0 0
0.0000 0.0000 1.0000 0
0 0.0000 0.0000 1.0000
Ac =
0.0000 1.0000 0 0
0.0000 0 1.0000 0
0.0000 0 0 1.0000
-962.0000 -126.0000 -67.0000 -4.0000
Bc =
0
0
0
1
Cc = 300 0 0 0
Dc = 0
To =
0 0.0000 0 0.0033
0.0000 0.0000 0.0033 -0.0133
0 0.0033 -0.0133 -0.1700
0.0033 -0.0133 -0.1700 1.1533
Ao =
0.0000 0.0000 0.0000 -962.0000
1.0000 0.0000 0.0000 -126.0000
0.0000 1.0000 0.0000 -67.0000
0.0000 0.0000 1.0000 -4.0000
Bo =
300.0000
0.0000
0.0000
0.0000
Co = 0 0.0000 0 1.0000
Do = 0
Tm =
-177.3217 65.4358 -0.7373 3.0414
-517.1883 -82.5166 -23.1790 -1.6436
178.3728 -65.8236 0.7417 -2.0396
428.0947 73.9079 14.3143 1.3721
Am =
-1.0000 6.0000 0 0
-6.0000 -1.0000 0 0
0 0 -1.0000 5.0000
0 0 -5.0000 -1.0000
Bm =
3.0414
101
-1.6436
-2.0396
1.3721
Dm = 0
PLYAP =
24090.06 3154.74 908.93 0
3154.74 1182.05 219.21 25.04
908.93 219.21 51.38 3.28
0 25.04 3.28 0.94
4
0.02 0.1
2
x3 (rad/s )
x4 (rad/s )
x2 (rad/s)
2
0 0 0
-2
-0.02 -0.1
-4
-6 -0.04 -0.2
0 1 2 3 -0.01 -0.005 0 0.005 0.01 -0.04 -0.02 0 0.02 0.04
x (rad) x 10
-3 x (rad/s) x (rad/s)
1 2 3
Poles4i =
-0.8480 + 2.5260i
-0.8480 - 2.5260i
-1.2520 + 0.8283i
-1.2520 - 0.8283i
w/ Observer
x1
1 1
0 0
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.01 0.01
0
x2
0
x2
-0.01 -0.01
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.05 0.05
0
x3
0
x3
-0.05 -0.05
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.2 0.2
0
x4
0
x4
-0.2 -0.2
0 1 2 3 4 5 6 0 1 2 3 4 5 6
time (sec) time (sec)
102
ObsPoles =
-8.4796 +25.2598i
-8.4796 -25.2598i
-12.5204 + 8.2828i
-12.5204 - 8.2828i
L =
0.13
3.80
47.88
67.82
KLQR =
278108.96 78035.82 17191.97 0.16
78035.82 35829.21 8571.46 289.03
17191.97 8571.46 2681.43 81.09
0.16 289.03 81.09 17.87
0.6 50
Open-loop
Closed-loop
0.5 Closed-loop 40
LQR
LQR
0.4 30
U
y
0.3 20
0.2 10
0.1 0
0 -10
0 1 2 3 4 5 6 0 1 2 3 4 5 6
time (sec) time (sec)
103
Poles =
-2.0000 + 8.0000i
-2.0000 - 8.0000i
-1.0000 + 3.0000i
-1.0000 - 3.0000i
Transfer function:
10 s^2 + 20 s + 100
----------------------------------
s^4 + 6 s^3 + 86 s^2 + 176 s + 680
zeros =
-1.0000 + 3.0000i
-1.0000 - 3.0000i
poles =
-2.0000 + 8.0000i
-2.0000 - 8.0000i
-1.0000 + 3.0000i
-1.0000 - 3.0000i
DC gain = 10
0.8 0.25
0.6 0.2
0.4 0.15
y
y
0.2 0.1
0 0.05
-0.2 0
-0.4 -0.05
0 1 2 3 4 5 6 0 1 2 3 4 5 6
time (sec) time (sec)
104
-3 Open-Loop Unit Step Response: States Open-Loop Initial Conditions Response
x 10
3 2
2 1
x1
x1
1 0
0 -1
0 1 2 3 4 5 6 0 1 2 3 4 5 6
-3
x 10 5
5
0
x2
x2
-5 -5
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.02 10
x3
0
x3
-10
-0.02 -20
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.1 100
x4
0
x4
-100
-0.1 -200
0 1 2 3 4 5 6 0 1 2 3 4 5 6
time (sec) time (sec)
P =
0 0 0 1
0 0 1 -6
0 1 -6 -50
1 -6 -50 640
Q =
100 20 10 0
0 100 20 10
-6800 -1760 -760 -40
27200 240 1680 -520
Ac =
0.0000 1.0000 0 0
0.0000 0 1.0000 0
0.0000 0 0 1.0000
-680.0000 -176.0000 -86.0000 -6.0000
Bc =
0
0
0
1
Dc = 0
To =
176 86 6 1
86 6 1 0
6 1 0 0
1 0 0 0
Ao =
0 0 0 -680
1 0 0 -176
0 1 0 -86
0 0 1 -6
Bo =
1
0
0
0
Co = 0 10 -40 -520
Do = 0
Tm =
-20.7331 7.1600 0.1880 1.1307
-101.2898 -25.6763 -11.2126 -0.5418
21.6922 -7.4913 -0.1967 -0.1289
36.4550 12.2976 1.1333 0.1493
Am =
-2.0000 8.0000 0 0
-8.0000 -2.0000 0 0
0 0 -1.0000 3.0000
0 0 -3.0000 -1.0000
Bm =
1.1307
-0.5418
-0.1289
0.1493
Dm = 0
106
2 states removed.
a =
x1 x2
x1 28.293 -18.575
x2 52.849 -32.293
b =
u1
x1 0.047518
x2 0.087768
c =
x1 x2
y1 -90.11 48.786
d =
u1
y1 0
Transfer function:
10
-----------------
s^2 + 4 s + 68
CharPoly2 =
1.0000 4.0000 68.0000
PolesOp2 =
-2.0000 + 8.0000i
-2.0000 - 8.0000i
PLYAP =
1193.75 308.44 108.07 0
308.44 122.71 38.5 1.76
108.07 38.5 14.63 0.45
0 1.76 0.45 0.16
0.01
4 0.05
0.005
2 0 0
x2
x3
x4
-0.005
0 -0.05
-0.01
-2 -0.015 -0.1
0 1 2 3 -2 0 2 4 6 -0.02 -0.01 0 0.01 0.02
x x 10
-3 x -3
x 10 x
1 2 3
zeta = -0.7797
wn = -2.5651
K = -61.42 0
Open-loop 0.02
0.02
Closed-loop
0.015
0.015
x1
0.01
x1
0.01 Open-loop
0.005 Closed-loop
w/ Observer
0.005
0
0 -0.005
0 1 2 3 4 5 6 0 1 2 3 4 5 6
0.1 0.15
0.08
0.06 0.1
0.04
x2
0.05
x2
0.02
0
0
-0.02
-0.04 -0.05
0 1 2 3 4 5 6 0 1 2 3 4 5 6
time (sec) time (sec)
ObsPoles =
-20.0000 +16.0612i
-20.0000 -16.0612i
L =
3.6
44.6
KLQR =
472.91 0.73
0.73 6.84
Open-loop
0.25 Closed-loop
LQR 8
0.2
Closed-loop
6
LQR
0.15
y
4
U
0.1
2
0.05
0
0
-0.05 -2
0 1 2 3 4 5 6 0 1 2 3 4 5 6
time (sec) time (sec)
108
2. Inverted Pendulum
i. Single-input, single-output: input f(t) and output (t).
(b) zero input f(t) and an initial condition of (0) = 0.1 rad.
4. Ball/Beam System
5. Proof-Mass Actuator
Each Continuing Exercise solution is presented as a whole, i.e. for all chapters in a serial fashion.
Also note: we have found that MATLAB changes their MIMO controller and observer design
algorithms substantially between versions. There are infinite solutions to the controller and observer
gain matrices to place a given set of eigenvalues in the closed-loop A matrices. These solutions were
obtained in Fall 2006 with MATLAB version R14. If your solutions are different, they may be entirely
acceptable – just check the resulting matrices for the correct eigenvalues. The SISO cases have unique
solutions that should not vary with MATLAB version.
109
Open-Loop System
A =
0 1 0 0 0 0
-30 -1.2 20 0.8 0 0
0 0 0 1 0 0
10 0.4 -25 -1 15 0.6
0 0 0 0 0 1
0 0 10 0.4 -23.33 -0.93
B =
0
0
0
0.5
0
0
C = 0 0 0 0 1 0
d = 0
num/den =
0.2 s^3 + 5.24 s^2 + 12 s + 150
-------------------------------------------------------------------------------
s^6 + 3.1333 s^5 + 81.0267 s^4 + 135.2 s^3 + 1723.3333 s^2 + 1000 s + 8333.3333
Open-Loop Response
Xsso =
0.0280
0
0.0420
0
0.0180
0
110
0.06 0.1
0.05
0.04
x1
x2
0
0.02
-0.05
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.08 0.1
0.06 0.05
x3
x4
0.04 0
0.02 -0.05
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.04 0.15
0.03 0.1
x5
x6
0.02 0.05
0.01 0
0 -0.05
0 5 10 15 20 0 5 10 15 20
time (sec) time (sec)
Q =
0 0 0 0 1 0
0 0 0 0 0 1
0 0 10 0.4 -23.33 -0.93
4 0.16 -19.33 9.23 27.78 -22.22
87.47 7.5 -449.69 -37.32 656.92 54.05
-598.17 63.54 1623.54 -384.75 -1821.09 584.08
Canonical Realizations
Tc =
233.3333 18.6667 10.3733 0.4000 0 0
0.0000 233.3333 18.6667 10.3733 0.4000 0
350.0000 28.0000 27.2267 1.0667 0.5000 0
0.0000 350.0000 28.0000 27.2267 1.0667 0.5000
150.0000 12.0000 5.2400 0.2000 0 0
0 150.0000 12.0000 5.2400 0.2000 0
Ac =
1.0e+003 *
111
0.0000 0.0010 0.0000 0 0.0000 0.0000
0.0000 0.0000 0.0010 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0010 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000 0.0010 0.0000
0.0000 0 0 0.0000 0.0000 0.0010
-8.3333 -1.0000 -1.7233 -0.1352 -0.0810 -0.0031
Bc =
0.0000
0.0000
0.0000
0.0000
0.0000
1.0000
Dc = 0
To =
-0.0008 0.0095 0.0120 -0.3000 0.0000 11.0000
0.0095 0.0120 -0.3000 0.0000 11.0000 -17.6000
0.0000 0.0002 -0.0040 0.1000 0.0000 -5.5000
0.0002 -0.0040 0.1000 0.0000 -5.5000 10.5000
0 0 0 0 0 1.0000
0 0 0 0 1.0000 -3.1333
Ao =
1.0e+003 *
0.0000 0.0000 0.0000 0.0000 0.0000 -8.3333
0.0010 0.0000 0.0000 0.0000 0.0000 -1.0000
0.0000 0.0010 0.0000 0.0000 0.0000 -1.7233
0.0000 0 0.0010 0.0000 0.0000 -0.1352
0 0 0 0.0010 0.0000 -0.0810
0 0 0 0 0.0010 -0.0031
Bo =
150.0000
12.0000
5.2400
0.2000
0
0
Co = 0 0 0 0 0 1
Do = 0
Tm =
0.0000 0.5252 0.0000 -0.7939 0.0000 0.5467
-3.5600 -0.0712 5.3815 0.1076 -3.7057 -0.0741
0.0000 0.5061 0.0000 0.1946 0.0000 -1.0346
-2.6017 -0.0520 -1.0004 -0.0200 5.3189 0.1064
0.0000 0.3499 0.0000 0.8025 0.0000 0.7398
-0.9311 -0.0186 -2.1357 -0.0427 -1.9688 -0.0394
Am =
-0.9023 6.6560 0 0 0 0
-6.6560 -0.9023 0 0 0 0
0 0 -0.5231 5.0873 0 0
0 0 -5.0873 -0.5231 0 0
0 0 0 0 -0.1412 2.6537
0 0 0 0 -2.6537 -0.1412
112
Bm =
-0.3970
0.0538
0.0973
-0.0100
0.4013
-0.0214
Dm = 0
Stability Analysis
P =
9.41
4.24
65.39
59.88
1242.97
1071.62
All principal minors are positive, therefore the system is asymptotically stable! Phase
portraits:
x4 (m/s)
x6 (m/s)
0 0 0.05
-0.05 -0.05 0
Dynamic Shaping
DomPoles =
-1.3333 + 1.1946i
-1.3333 - 1.1946i
Poles6 =
-1.3333 - 1.1946i
-1.3333 + 1.1946i
-13.3333
-14.3333
-15.3333
-16.3333
Poles6i =
113
-1.1094 + 4.5233i
-1.1094 - 4.5233i
-2.0784 + 2.8028i
-2.0784 - 2.8028i
-2.6303 + 1.0285i
-2.6303 - 1.0285i
0.8
Dom 2nd
ydes
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
Controller Design
K for ITAE 6th order desired poles:
x1
x2
0.1 0
0.05 -0.05
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.2 0.3
0.15 0.2
x3
x4
0.1 0.1
0.05 0
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.08 0.15
0.06 0.1
x5
x6
0.04 0.05
0.02 0
0 -0.05
0 5 10 15 20 0 5 10 15 20
time (sec) time (sec)
0.06 0.1
0.05
0.04
x1
x2
0
0.02 Open-loop
-0.05
Closed-loop
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.08 0.3
0.06 0.2
x3
x4
0.04 0.1
0.02 0
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.04 0.15
0.03 0.1
x5
x6
0.02 0.05
0.01 0
0 -0.05
0 5 10 15 20 0 5 10 15 20
time (sec) time (sec)
115
3.5
2.5
2
u2
1.5
0.5
-0.5
0 2 4 6 8 10 12 14 16 18 20
time (sec)
Observer Design
PolesObs =
-2.2188 + 9.0466i
-2.2188 - 9.0466i
-4.1569 + 5.6056i
-4.1569 - 5.6056i
-5.2605 + 2.0569i
-5.2605 - 2.0569i
L =
128.85
-797.9
130.96
309
20.14
194.29
116
0.06 0.3
0.2 Open-loop
0.04 Closed-loop
x1
x2
0.1 w/ Observer
0.02
0
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.08 0.3
0.06 0.2
x3
x4
0.04 0.1
0.02 0
0 -0.1
0 5 10 15 20 0 5 10 15 20
0.04 0.15
0.03 0.1
x5
x6
0.02 0.05
0.01 0
0 -0.05
0 5 10 15 20 0 5 10 15 20
time (sec) time (sec)
-3
x 10
5 0.05
e1
e2
0 0
-5 -0.05
0 5 10 15 20 0 5 10 15 20
-3
x 10
5 0.01
0
e3
e4
0
-0.01
-5 -0.02
0 5 10 15 20 0 5 10 15 20
-4 -3
x 10 x 10
10 5
5 0
e5
e6
0 -5
-5 -10
0 5 10 15 20 0 5 10 15 20
time (sec) time (sec)
117
Open-Loop System
A =
0 1 0 0
0 0 4.91 0
0 0 0 1
0 0 19.62 0
B =
0
0.5
0
0.67
C = 0 0 1 0
D = 0
poleso =
0
0
4.4294
-4.4294
num/den =
0.66667 s^2
---------------
s^4 - 19.62 s^2
Open-Loop Response
118
4
x 10
8000 3.5
3
6000
2.5
2
4000
x1
x2
1.5
1
2000
0.5
0 0
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
4 4
x 10 x 10
3 14
2.5 12
10
2
8
1.5
x3
x4
6
1
4
0.5 2
0 0
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
time (sec) time (sec)
Q =
0 0 1 0
0 0 0 1
0 0 19.62 0
0 0 0 19.62
Canonical Realizations
Tc =
-6.5400 0 0.5000 0
0 -6.5400 0 0.5000
0 0 0.6667 0
0 0 0 0.6667
Ac =
0 1.0000 0 0
0 0 1.0000 0
0 0 0 1.0000
0 0 19.6200 0
119
Bc =
0
0.0000
0
1.0000
Cc = 0 0 0.6667 0
Dc = 0
To =
0 3.0000 0 -0.7500
3.0000 0 -0.7500 0
0 -0.1529 0 0.1147
-0.1529 0 0.1147 0
Ao =
0 0.0000 0 0.0000
1.0000 0 0 0
0 1.0000 0 19.6200
0 0 1.0000 0
Bo =
1
0
0
0
Co = 0 0.6667 0 13.0800
Do = 0
Cannot find DCF since the A matrix is singular (The two zero poles cause this).
Stability Analysis
??? Error using ==> lyap
Solution does not exist or is not unique.
poleso =
0
0
4.4294
-4.4294
3 12
2.5 10
2 8
x2 (m/s)
x4 (m/s)
1.5 6
1 4
0.5 2
0 0
0 2000 4000 6000 8000 0 0.5 1 1.5 2 2.5 3
x (m) x (m) 4
x 10
1 3
Dynamic Shaping
ITAE4 =
1.0000 6.3000 30.6000 72.9000 81.0000
Poles4i =
-1.2719 + 3.7890i
-1.2719 - 3.7890i
-1.8781 + 1.2424i
-1.8781 - 1.2424i
1.4
1.2
0.8
ydes
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
time (sec)
Controller Design
kay = -12.39 -11.15 84.62 17.81
121
2 2
1.5 1.5
Open-loop
1 1
Closed-loop
x1
x2
0.5 0.5
0 0
-0.5 -0.5
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
2 2
1.5 1.5
1 1
x3
x4
0.5 0.5
0 0
-0.5 -0.5
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
time (sec) time (sec)
0
f
-5
-10
0 0.5 1 1.5 2 2.5 3
time (sec)
LQR Design
kayLQR =
3.11 4.34 -17.01 -4.75
4.34 11.77 -48.15 -13.49
-17.01 -48.15 591.55 144.11
-4.75 -13.49 144.11 35.63
122
2 2
1.5 1.5
Open-loop
1 1 Closed-loop
LQR
x1
x2
0.5 0.5
0 0
-0.5 -0.5
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
2 2
1.5 1.5
1 1
x3
x4
0.5 0.5
0 0
-0.5 -0.5
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
time (sec) time (sec)
uCL
uLQR
0
U
-5
-10
0 0.5 1 1.5 2 2.5 3
time (sec)
123
Open-Loop System
A =
0 1 0
0 0 1
0 -7507.53 -2333.35
B =
0
0
4306.95
C = 1 0 0
D = 0
num/den =
4306.9502
--------------------------------
s^3 + 2333.3502 s^2 + 7507.531 s
poles =
1.0e+003 *
0
-2.3301
-0.0032
x1
1
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0.8
0.6
x2
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
1.5
x3
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
Q =
1 0 0
0 1 0
0 0 1
Canonical Realizations
Tc =
1.0e+003 *
4.3070 0 0
0 4.3070 0
0 0 4.3070
Ac =
1.0e+003 *
0 0.0010 0
0 0 0.0010
0 -7.5075 -2.3334
Bc =
0
0
125
1
Cc = 1.0e+003 *[ 4.3070 0 0]
Dc = 0
To =
1.0e+006 *
0.0000 0.0000 0.0000
0.0000 0.0000 -0.0023
0.0000 -0.0023 5.4370
Ao =
1.0e+003 *
0.0000 0.0000 0.0000
0.0010 0.0000 -7.5075
0.0000 0.0010 -2.3334
Bo =
1.0e+003 *
4.3070
0.0000
0.0000
Do = 0
Td =
1.0000 -0.0916 0.0000
0 0.2952 -0.0004
0 -0.9510 1.0000
Ad =
1.0e+003 *
0 0.0000 0.0000
0 -0.0032 0.0000
0 0 -2.3301
Bd =
1.0e+003 *
0.0006
0.0063
4.3129
Dd = 0
Stability Analysis
??? Error using ==> lyap
Solution does not exist or is not unique.
poleso =
1.0e+003 *
0
-0.0032
-2.3301
0.6
1.5
0.5
x2 (m/s)
x3 (m/s)
0.4
1
0.3
0.2
0.5
0.1
0 0
0 1 2 3 0 0.2 0.4 0.6 0.8
x (m) x (m)
1 2
Dynamic Shaping
DomPole = -2
0.8
Dom 1st
0.6
Aug 3rd
ydes
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
time (sec)
Controller Design
K for augmented 3rd-order poles:
x1
1
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
1.5
1
x2
0.5
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
15
10
x3
-5
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
45
40
35
30
25
20
v
15
10
-5
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
Observer Design
L =
-1903.35
4483874.96
-10447320937.24
128
2
Open-loop
x1
1
Closed-loop
0 w/ Observer
-1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
1
x2
-1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
50
x3
-50
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
-6
x 10
4
2
e1
-2
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
-3
x 10
5
0
e2
-5
-10
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
20
10
e3
-10
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
129
Open-Loop System
A =
0 1 0 0
0 0 -7.01 0
0 0 0 1
-71.31 0 0 0
B =
0
0
0
8.03
C = 1 0 0 0
D = 0
Transfer function:
-56.28
-----------
s^4 - 499.5
0 -2
x1
x2
-5 -4
-10 -6
-15 -8
0 1 2 3 4 5 0 1 2 3 4 5
9 10
x 10 x 10
5 2
4
1.5
3
x3
x4
1
2
0.5
1
0 0
0 1 2 3 4 5 0 1 2 3 4 5
time (sec) time (sec)
Q =
1 0 0 0
0 1 0 0
0 0 -7.01 0
0 0 0 -7.01
Canonical Realizations
Tc =
-56.2797 0 0 0
0.0000 -56.2797 0 0
0.0000 0.0000 8.0337 0
0.0000 0.0000 0.0000 8.0337
Ac =
0.0000 1.0000 0 0
0.0000 0 1.0000 0
0.0000 0 0 1.0000
499.5435 0.0000 0.0000 0.0000
Bc =
131
0
0
0
1
Cc = -56.2797 0 0 0
Dc = 0
To =
0 0 0 1.0000
0 0 1.0000 0.0000
0 -0.1427 0.0000 0.0000
-0.1427 0.0000 0.0000 0.0000
Ao =
0.0000 0.0000 0.0000 499.5435
1.0000 0 0 0.0000
0 1.0000 0 0.0000
0 0 1.0000 0.0000
Bo =
-56.2797
0
0
0
Co = 0 0 0 1
Do = 0
Tm =
4.0391 -0.8544 -1.2660 0.2678
0.0000 1.7087 0.0000 0.5356
-8.0782 0.0000 -2.5320 0.0000
4.0391 0.8544 -1.2660 -0.2678
Am =
-4.7276 0 0 0
0 0.0000 4.7276 0
0 -4.7276 0.0000 0
0 0 0 4.7276
Bm =
2.1513
4.3027
0.0000
-2.1513
Dm = 0
Stability Analysis
??? Error using ==> lyap
Solution does not exist or is not unique.
9 10
x 10 x 10
0 2
-1
1.5
-2
x2 (m/s)
x4 (m/s)
-3
1
-4
-5
0.5
-6
-7 0
-15 -10 -5 0 5 0 1 2 3 4 5
x (m) 8 x (m) 9
x 10
1 x 10 3
Dynamic Shaping
ITAE4 = 1.0000 6.3000 30.6000 72.9000 81.0000
Poles4i =
-1.2719 + 3.7890i
-1.2719 - 3.7890i
-1.8781 + 1.2424i
-1.8781 - 1.2424i
1.4
1.2
0.8
ydes
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
133
Controller Design
K = -10.32 -1.3 3.81 0.78
0.4 0.4
0.3 0.3 Open-loop
0.2 0.2 Closed-loop
x1
x2
0.1 0.1
0 0
-0.1 -0.1
-0.2 -0.2
0 1 2 3 4 5 0 1 2 3 4 5
0.4 0.4
0.3 0.3
0.2 0.2
x3
0.1 x4 0.1
0 0
-0.1 -0.1
-0.2 -0.2
0 1 2 3 4 5 0 1 2 3 4 5
time (sec) time (sec)
Observer Design
Observer Poles =
-12.7195 +37.8898i
-12.7195 -37.8898i
-18.7805 +12.4242i
-18.7805 -12.4242i
L =
63
3060
-10406.15
-115695.22
134
0.5 0.5
0.4 0.4
0.3 0.3
0.2 0.2
x1
x2
0.1 Open-loop 0.1
Closed-loop
0 w/ Observer 0
-0.1 -0.1
-0.2 -0.2
0 1 2 3 4 5 0 1 2 3 4 5
0.5 0.5
0.4 0.4
0.3 0.3
0.2 0.2
x3
x4
0.1 0.1
0 0
-0.1 -0.1
-0.2 -0.2
0 1 2 3 4 5 0 1 2 3 4 5
time (sec) time (sec)
-3
x 10
5
e1
-5
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0.2
e2
-0.2
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
1
e3
-1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
10
e4
-10
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
LQR Design
KLQR =
52.4 15.99 -20.3 -2.22
15.99 7.47 -10.94 -0.73
-20.3 -10.94 23.07 1.55
-2.22 -0.73 1.55 0.28
135
0.5
0.4
0.3
Open-loop
0.2 Closed-loop
LQR
y
0.1
-0.1
-0.2
Closed-loop
5 LQR
u
1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
time (sec)
136
Open-Loop System
A =
0 1 0 0
-130.49 0 0 0
0 0 0 1
946.68 0 0 0
B =
0
-5.08
0
1842.1
C = 1 0 0 0
D = 0
poleso =
0
0
0 +11.4234i
0 -11.4234i
Transfer function:
-5.081
-----------
s^2 + 130.5
0.4
0.2
x1 0 0
x2
-0.2
-0.4
-0.05
0 1 2 3 4 0 1 2 3 4
5
1.5
1
0
x3
x4
0.5
0 -5
0 1 2 3 4 0 1 2 3 4
time (sec) time (sec)
Q =
1 0 0 0
0 1 0 0
-130.49 0 0 0
0 -130.49 0 0
Canonical Realizations
Tc =
1.0e+005 *
0 0 -0.0001 0
0 0 0 -0.0001
2.3557 0 0.0184 0
0 2.3557 0 0.0184
Ac =
0 1.0000 0 0
0 0 1.0000 0
0 0 0 1.0000
0 0 -130.4945 0
Bc =
138
0
0
0
1
Cc = 0 0 -5.0815 0
Dc = 0
To =
0 0.0040 0 0.0006
0.0040 0 0.0006 0
0 0.0015 0 0.0000
0.0015 0 0.0000 0
Ao =
0 0 0 0
1.0000 0 0 0
0 1.0000 0 -130.4945
0 0 1.0000 0
Bo =
1.0000
0
0.0000
0
Co = 0 -5.0815 0 663.1051
Do = 0
Cannot find DCF since the A matrix is singular (The two zero poles cause this).
Minimality
Minimal realization:
2 states removed.
a =
x1 x2
x1 0 1
x2 -130.49 0
b =
u1
x1 0
x2 -5.0815
c =
x1 x2
y1 1 0
d =
u1
y1 0
Stability Analysis
??? Error using ==> lyap
Solution does not exist or is not unique.
5
0.5 4
0.4
3
0.3
2
0.2
0.1 1
x4 (rad/s)
x2 (m/s)
0 0
-0.1 -1
-0.2
-2
-0.3
-3
-0.4
-0.5 -4
-5
-0.4 -0.2 0 0.2 0.4 0.6 -5 0 5
x (m) x (rad)
1 3
Dynamic Shaping
ITAE4 = 1 21 340 2700 10000
Poles4i =
-4.2398 +12.6299i
-4.2398 -12.6299i
-6.2602 + 4.1414i
-6.2602 - 4.1414i
1.2
0.8
ydes
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec)
Controller Design
K = -25.84 0.02 0.04 0.01
0.05 0.6
0.4
0.2
0
0
x1
x2
-0.2
-0.4
-0.6
-0.05 -0.8
0 1 2 3 4 0 1 2 3 4
8 100
6
Open-loop
50
4 Closed-loop
2
0
x3
x4
-2
-50
-4
-6 -100
0 1 2 3 4 0 1 2 3 4
time (sec) time (sec)
141
Observer Design
Observer Poles =
1.0e+002 *
-0.4240 + 1.2630i
-0.4240 - 1.2630i
-0.6260 + 0.4141i
-0.6260 - 0.4141i
L =
104.94 84.21
7783.88 6102.76
-85.57 105.06
-5252.17 7855.32
0.06 0.6
0.04 0.4
0.2
0.02
0
0
x1
x2
-0.2
-0.02
-0.4
-0.04 -0.6
-0.06 -0.8
0 1 2 3 4 0 1 2 3 4
8 150
6
100 Open-loop
4 Closed-loop
50 w/ Observer
2
x3
x4
0 0
-2
-50
-4
-6 -100
0 1 2 3 4 0 1 2 3 4
time (sec) time (sec)
0.5
0
e1
-0.5
0 0.5 1 1.5 2 2.5 3 3.5 4
20
0
e2
-20
-40
0 0.5 1 1.5 2 2.5 3 3.5 4
0.5
e3
-0.5
0 0.5 1 1.5 2 2.5 3 3.5 4
50
0
e4
-50
-100
0 0.5 1 1.5 2 2.5 3 3.5 4
time (sec)