XT Atxt TT: Systems & Control Theory Systems & Control Theory
XT Atxt TT: Systems & Control Theory Systems & Control Theory
C.S.Tong 41 HKBU
Time-varying case (A, B are now functions of t)
Ref: B[Ch9]
The homogeneous part of the state equation is
( ) ( ) ( ) x t A t x t !
Suppose we know n linearly independent solutions to the above
equation, call them, say,
1 2
, ,
n
" , then we can construct the
Wronskian (or fundamental) matrix
( ) ( ) ( ) ( )
1 2
, , ,
n
t t t t 1
]
"
Example
( )
1 1 1 1
2 2 2
1 0 0
0 2 2
t
x x x e x
A
t x t x x
_
,
!
!
! 2 linearly independent solutions are
( )
2 2 1 2
0 0
,
0
0
t
t
t t
e
e
t
e e
_ _ _
, , ,
"Exercise: check that ( ) ( ) ( ), 1, 2
i i
t A t t i !
Chapter 2 Systems & Control Theory
C.S.Tong 42 HKBU
#The Fundamental matrix is not unique since we can
choose any set of linearly independent combinations of
1
and
2
( ) ( ) ( ) ( )
( ) ( ) ( ) ( )
1
1 2 0
1
1 2 0
, , ,
, , ,
n
n
t t t t
A t A t A t t
1
]
1
]
! ! ! "
"
(since each
i
satisfies
i i
A ! )
( ) ( )
( )
1
0
0
,
A t t
A t t
_
_
,
,
_ _ _
, , ,
Check:
( ) ( )
( )
0
2 2
0
0 0
0
0 1 0
, ,
0 2
0 2
,
t t
t t
e
d
t t t t
t dt
te
A t t
_
_
,
,
, i.e.
( ) ( ) ( ) ( ) ( ) ( )
0 0
t t
t t
A t A d A d A t , then
( )
( )
0
0
,
t
t
A d
t t e
Proof
(i) clearly, ( )
0
0 0
, t t e I ,
(ii) ( ) ( ) ( )
0
t
t
t
d
A d A A t
dt
,
(fundamental theorem of calculus)
(iii)
( )
( )
0 0
0
( )
!
t
t
t k
A d t
k
A d
d d
e
dt dt k
' ;
( )
( ) ( )
0
0
2
2 !
t
t
t
t
A d
d
I A d
dt
+ + +
' ;
"
Chapter 2 Systems & Control Theory
C.S.Tong 45 HKBU
( ) ( ) ( )
( ) ( )
( ) ( )
0
0
0
3 1
1
3
0 ( ) ( )
3 !
( )
!
t
t
t
t
k
t
t
A d
A t A t A d A t
k A d
A t
k
+ + + +
+ +
"
"
( )
( ) ( ) ( ) ( )
( )
( )
0 0
0
0
2
0
( )
2! !
( )
( ) ,
t
t
k
t t
t t
t
t
A d
A d A d
A t I A d
k
A t e
A t t t
+ + + +
' ;
" "
Example
1 0
0 2
A
t
_
,
Let ( )
0
0
2 2
0
0
0
t
t
t t
H A d
t t
_
,
Since A, H are both diagonal, they commute:
( )
0
0
2 2 2 2
0
0
0
0
1 0
0 2 0 2
0
t t
t t
HA AH
t t t t
t t
_
_
_
,
,
,
Hence using the theorem above, we have
Chapter 2 Systems & Control Theory
C.S.Tong 46 HKBU
( )
0
2 2
0
0
0
,
0
t t
H
t t
e
t t e
e
_
,
Once we know the transition matrix, then the solution to the
state equation x Ax Bu + ! is
( ) ( ) ( ) ( ) ( )
0
0 0
, ,
t
t
x t t t x t t Bu d +
_
+
,
_
+ +
,
+ +
+
Chapter 2 Systems & Control Theory
C.S.Tong 47 HKBU
Discrete-time state equation
x(k+1) = A(k) x(k) + B(k) u(k) (*)
! As before, we use the concept of transition matrix ( , ) k j
! Since by definition ( ) ( , ) ( ) x k k j x j , we have
(0) (0) (0, 0)
(1) (0) (0) (1, 0) (0)
(2) (1) (1) (2,1) (1)
(2) (1) (0) (0) (2, 0) (1) (0)
(3) (2) (2)
(3) (2) (2)
(3)
x x I
x A x A
x A x A
x A A x A A
x A x
x A x
x
#
By induction, we have
1
( , ) ( ) ( 1) ( 2) ( )
p k
p j
k j A p A k A k A j
$ ()
! Clearly, ( , ) k j satisfies the homogeneous state equation:
1
( 1, ) ( ) ( ) ( ) ( ) ( , )
p k p k
p j p j
k j A p A k A p A k k j
+
Chapter 2 Systems & Control Theory
C.S.Tong 48 HKBU
! As before, once the transition matrix ( , ) k j is found, we
can immediately write down the solution to the general
discrete-time state equation (*)
1
0
( ) ( , 0) (0) ( , 1) ( ) ( )
k
j
x k k x k j B j u j
+ +
(**)
Proof by direct substitution
As before, we show that the above formula for x(k)
satisfies the state equation (*).
0
1
0
( 1) ( 1, 0) (0) ( 1, 1) ( ) ( )
( ) ( , 0) (0) ( 1, 1) ( ) ( )
( 1, 1) ( ) ( )
( ) ( ) ( ) ( )
j k
j
j k
j
x k k x k j B j u j
A k k x k j B j u j
k k B k u k
A k x k B k u k
+ + + + +
+ + +
+ + +
+ +
+
+
$
where
n
, , ,
2 1
$ are eigenvalues of A. Then from
Chapter 1, we have
1 1
1 2
( , , , )
k k k k k
n
A P P Pdiag P
$
Note that not all matrices are diagonalizable. The next
best thing is that all matrices can be transformed to a
Jordan Normal Form
1
, J. I.e. there exists matrix P s.t.
1 1 1 k k k k
P AP J P A P J A PJ P
k
J is very close to being a diagonal matrix but is more
difficult to evaluate than
k
, nevertheless it is still better
than evaluating A
k
directly.
1
Outside curriculum
Chapter 2 Systems & Control Theory
C.S.Tong 51 HKBU
(2) Cayley-Hamilton Method
As before, every power of an n n matrix A can be
written as a linear combination of
2 1
, , , ,
n
I A A A
" ; i.e.
1
0
n
k i
i
i
A A
, for some (unknown) coefficients
j
.
Now let
j
e be the eigenvector corresponding to the
eigenvalue
j
, i.e.
m m
j j j j j j
Ae e A e e . Then we
have
1 1
0 0
n n
k i k i
j i j j j i j j
i i
A e A e e e
.
If all the eigenvalues are distinct, then we can replace the
matrix A in the above expansion by all its eigenvalues:
1
0
, 1, 2, ,
n
k i
j i j
i
j n
$ .
This is a set of n simultaneous linear equations in
i
and
can be solved for
i
using e.g. Gaussian elimination, just
as in the continuous case.
Chapter 2 Systems & Control Theory
C.S.Tong 52 HKBU
(3) Z-transform(discrete version of Laplace transform)
Sampling (Analog to Digital conversion)
$ With the advent of cheap, powerful micro processors,
digital signal processing is more and more important.
$ Need to convert an analog signal to a discrete one by
sampling at regular intervals
u(t)
0 T 2T . kT t
{u(0), u(T), u(2T), ,u(kT), } are the discrete sampled
values of u(t). Symbolically:
u u* sampled signal at intervals T
T
For convenience, usually assume T = 1 time unit.
Chapter 2 Systems & Control Theory
C.S.Tong 53 HKBU
Definition: the Z-transform of u(t) is defined as
U(z) = Z[u(t)]
0 k
% u(kT) z
k
Examples
0
[1]
1
k
k
z
Z z
z
u(t) = t u(kT) = kT
0 0
[ ] [ ]
k k
k k
Z t Z kT kTz T kz
but
1
0 1 0
1
1
k k k
k k k
d z d
z kz kz
dz z dz z
_
_
,
,
2
[ ]
1 ( 1)
d z Tz
Z t Tz
dz z z
_
,
( ) ( )
t kT
u t e u kT e
( )
0 0
k
kT kT k T
T
k k
z
Z e e z e z
z e
1
]
Chapter 2 Systems & Control Theory
C.S.Tong 54 HKBU
Inverse Z.T. (from now on, let T = 1)
The inverse Z.T. can be obtained simply by expanding U(z)
into a power series of z:
0
( )
k
k
k
U z a z
then by definition of Z.T., we can just read off u(k) from the
Laurent expansion of U(z), i.e.
( )
k
u k a
From definition, it is clear that Z-transform obey very
similar theorems as Laplace transform
#Linearity theorem
(i) Z [ r(k)] = Z [r(k)] , constant
(ii) Z [r
1
(k) r
2
(k)] = Z [r
1
(k)] Z [r
2
(k)]
(proof: trivial)
Chapter 2 Systems & Control Theory
C.S.Tong 55 HKBU
#Time Translation & Time Delay (c.f. differentiation &
integration in the continuous case)
Given a series r (k), k = 0, 1, 2, we are interested in
series of the form r(kn) (time delay) and r(k + n), for
constant n. As in the continuous case, we shall implicitly
assume that all series are zero for negative indices, i.e.
( ) 0, for 0 r k k < .
k r (k) r (k - 2) r (k + 2) r (k - n) r (k + n)
-3 0 0 0 0 r (n - 3)
-2 0 0 r (0)
#
r (n - 2)
-1 0 0 r (1)
#
r (n - 1)
0 r (0) 0 r (2)
#
r (n)
1 r (1) 0 r (3)
# #
2 r (2) r (0)
# # #
3 r (3) r (1)
# # #
# # # #
0
#
n r (n) r (n - 2) r (n + 2) r (0)
#
n + 1 r (n + 1) r (n - 1) r (n + 3) r (1)
#
# # # # # #
Chapter 2 Systems & Control Theory
C.S.Tong 56 HKBU
r(k n) r(k + n)
0 n k -n 0 k
time-delay time-translation
Z [r(k n)] = z
n
Z [r (k)] , fixed n
Proof
0
[ ( )] ( )
, sub
, ( ) 0 for 0
[ ( )]
k
k
n
Z r k n z r k n
k k n
r k k
z Z r k
<
&
Remarks
For n = 1, the effect of time-delay by 1 time unit is to
multiply the Z-transform by z
1
. Hence z
1
is often used to
represent the unit time-delay operator (c.f. Ch 1, p.15).
Chapter 2 Systems & Control Theory
C.S.Tong 57 HKBU
1
0
[ ( )] [ ( )] ( )
n
n k
k
Z r k n z Z r k z r k
_
+
,
Proof
0
1
0
[ ( )] ( )
, sub
[ ( )] ( )
k
k
n
n k
k
Z r k n z r k n
k k n
z Z r k z r k
+ +
+
_
,
, since r(0) = 0
Z [k + 2] =
<
%
then
1 2 1 2
[ ] [ ]. [ ] Z r r Z r Z r
Chapter 2 Systems & Control Theory
C.S.Tong 59 HKBU
Proof
( ) ( )
( ) ( )
1 2 1 2
0 0
1 2
0
1 2
[ ]
interchange order of
,
double summation
, by the time delay theorem
[ ]
[ ]. [ ]
j
j k
k
k
Z r r z r k r j k
r k z Z r
Z r Z r
_
,
Corollary
Since
1 2 2 1 1 2 2 1
[ ]. [ ] [ ]. [ ] Z r Z r Z r Z r r r r r
Z.T. can be looked up in tables
Z.T. can be used to solve linear difference equation (cf
solution of differential equation using Laplace
Transform)
Chapter 2 Systems & Control Theory
C.S.Tong 60 HKBU
Example 1
u(k+1) + u(k) = 0 , u(0) = a
Take Z. T. of the above equation, we have
(time delay theorem)
[ ( 1)] [ ( )] 0
,
[ ( )]
1
( ) ( 1)
k
Z u k Z u k
az
Z u k
z
u k a
+ +
+
Example 2: Fibonacci series
r
n+2
= r
n
+ r
n+1
, r
0
= r
1
= 1 (*)
The first few terms are 1, 1, 2, 3, 5, 8, 13, 21, 34,
This series is related to many natural phenomena and has
important significance in arts, music, and architecture. [See
http://www.ee.surrey.ac.uk/Personal/R.Knott/Fibonacci/fibna
t.html]
Chapter 2 Systems & Control Theory
C.S.Tong 61 HKBU
We shall now use Z-transform to solve the Fibonacci difference
equation. Let R(z) = Z[r
n
]. Take Z-transform of equation (*),
and by using the Time-delay theorem, we have
2 1
0 1 0
2 2
2
( ) ( )
( 1)
( )( )
z R r r z z R r R
z z R z
z
R
z z
+
where
1 5
2
+
,
1 5
2
_
_ _
, ,
,
_
,
Since
0
n
n
n
R r z
, (definition of Z-transform)
1 1
5
n n
n
r
+ +
Chapter 2 Systems & Control Theory
C.S.Tong 62 HKBU
Applying Z-transform to the Transition matrix
The Z-transform of the transition matrix: (k) = A
k
, where A is
n x n matrix, is
0 0
( ) [ ( )]
k
k k
k k
A
z Z k A z
z
_
,
2 3
2 3
1
1
( )
( ) ( )
A A A
I
z z z
A
I z I
z
A
z I z zI A
z
+ + + +
_
,
_
,
"
1
( ) ( ) z z zI A
can be evaluated efficiently using the
resolvent algorithm, as in the continuous case. The transition
matrix can be obtained by inverse Z-transform.
Note that by the time-delay theorem, we have
1
[ ( 1)] ( ) Z k zI A
Chapter 2 Systems & Control Theory
C.S.Tong 63 HKBU
Solution of state equation using Z-transform
Consider the time-invariant discrete time state equation
x(k+1) = A x(k) + B u(k)
Let X(z) = Z[x(k)], U(z) = Z[u(k)]. Taking Z.T., we have
(time delay theorem)
[ ( 1)] [ ( )] [ ( )]
,
( )
[ ( )] [ ( )] (0) [ ( 1)] [ ( )]
Z x k AZ x k BZ u k
X z
Z x k Z k x Z k Z Bu k
+ +
+
Taking inverse Z.T. and using the Convolution Theorem:
1
1
0
( ) ( ) (0) ( 1) ( )
(0) ( )
k
k k j
j
x k k x k Bu k
A x A Bu j
+
+