Solution of Discrete Time State Equations: EE-601: Linear System Theory
Solution of Discrete Time State Equations: EE-601: Linear System Theory
Solution of Discrete Time State Equations: EE-601: Linear System Theory
2
Solution of LTI Equations
x(t ) Ax(t ) Bu (t )
y (t ) Cx(t ) Du (t )
Assume: plant has ZOH at its input and a sampler at its output (two methods):
1. Simple (but approximate) discretisation
2. Exact discretisation
x(t T ) x(t )
x(t ) lim
T 0 T
x((k 1)T ) ( I TA) x(kT ) TBu (kT )
y (kT ) Cx(kT ) Du (kT )
3
Exact Discretisation
An exact discrete model of CTS may be obtained by using the solution of state equation.
Note that the output of the ZOH (D/A) is kept constant during each sampling period T
until the new sample arrives, i.e. u(t) is generated by computer followed by a DAC. u(t) is
held piecewise constant.
u (t ) u ( kT ) : u[ k ] for kT t (k 1)T
For k=01,2. The input changes only at discrete time instants. Solution of x(t ) Ax(t ) Bu (t )
Computing solution at t kT and t ( k 1)T
kT
x[k ] : x(kT ) e AkT x(0) e A( kT t ) Bu ( )d
0
( k 1)T
x[k 1] : x((k 1)T ) e A ( k 1)T
x(0) e A(( k 1)T ) Bu ( )d
0
4
Contd.,
kT
x[k ]: x(kT ) e AkT
x(0) e A( kT t ) Bu ( )d
0
u (t ) u ( kT ) : u[ k ] kT t ( k 1)T
x k 1 e x k
AT
0
T
e A d Bu k
x k 1 Ad x k Bd u k
y k Cd x k Dd u k
Bd e A d B
T
Ad e AT
Cd C Dd D
0
5
Contd.,
Computation of Bd 2
2
I A A ...d
T
2!
0 T2 T3 2 T4 3
TI A A A ...
2! 3! 4!
If A is nonsingular
1
A TA
T2 2 T3 3
A
A ... I I A1 e AT I
2! 3!
Bd A1 Ad I B
6
Example(Comparison of Discretization Methods)
7
8
9
Discretization
If the system is under a sampling process with period T, derive the discrete
state model of the system.
To derive the discrete state space model, let us first compute the state
transition matrix of the continuous time system using Caley Hamilton Theorem
T = 1 , the state equations become
Example (Discretization)
Obtain the discrete-time state and output equations when T=1 sec of the
continuous system:
Y (s) 1
G(s)
U ( s) s( s 2)
which may be represented in state space by the equations
x1 0 1 x1 0
x 0 2 x 1 u
2 2
x1
y 1 0
x2
12
1 2T
1 (1 e )
Ad (T ) e
AT
2
2T
0 e
1 e2T 1
1 2T T
Bd (T ) e At dt B 2
T
0
T
0
0
1 (1 e ) 0
dt 2
1
2
1 e
2 T 1
e 2T
2
Thus, 1 e 2T 1
x1 ((k 1)T ) 1 (1 e 2T ) x1 (kT ) 2 T 2
1
x ((k 1)T ) 2 u (kT )
2 0 e 2T x2 (kT ) 1 1 e 2T
2
Example:
corresponding to eigenvalues
Thus
Similarity Transformation
1≤𝑑≤𝑚
STM using Caley Hamilton Theorem
If A has distinct eigenvalues
Example
STM: Laplace Transform
For the system 𝑥 = 𝐴𝑥 + 𝐵𝑢
1 1
𝐴=
−1 1
Take 𝑣1 =1 then 𝑣2 =j 1 1
For eigenvalue 1 + 𝑗: For eigenvalue 1 − 𝑗:
𝑗 −𝑗
Caley Hamilton Theorem
Solution of LTI Discrete-Time State Equations
x(k 1) A x(k ) Bu (k )
y (k ) C x(k ) D u (k )
k 1
x(k ) A x(0) Ak j 1Bu ( j ),
k
k 1,2,3....
j 0
k 1
y (k ) CA x(0) C Ak j 1Bu ( j ) Du (k )
k
j 0
Discrete-time State Transition Matrix
It is possible to write the solution of the homogeneous state equation as
x(k 1) Ax(k )
(k 1) A (k ), (0) I ,
( k ) Ak
Output Equation
k 1
x(k ) A x(0) Ak j 1Bu ( j ),
k k 1,2,3....
j 0
k 1
x(k ) (k ) x(0) (k j 1) Bu ( j )
j 0
k 1
(k ) x(0) ( j ) Bu (k j 1)
j 0
k 1
y (k ) CAk x(0) C Ak j 1Bu ( j ) Du (k )
j 0
k 1
y (k ) C (k ) x(0) C (k j 1) Bu ( j ) Du (k )
j 0
k 1
C (k ) x(0) C ( j ) Bu (k j 1) Du (k )
j 0
Diagonalization/Jordan Form
x(k 1) Ax(k ) Bu (k )
y(k ) Cx(k ) Du (k )
Define a new state vector x(k ) by x(k ) P x(k ) P: nonsingular matrix
P x(k 1) AP x(k ) Bu (k ) x(k 1) P AP x(k ) P 1Bu (k )
1
y (k ) CP x(k ) Du (k )
P AP Aˆ ,
1 1
P BB CP C DD
x(k 1) A x(k ) Bu (k )
y (k ) C x(k ) D u (k )
Jordan Form
x(k 1) Ax(k ) Bu (k ) x(k 1) A x(k ) Bu (k )
y(k ) Cx(k ) Du (k )
y (k ) C x(k ) D u (k )
by properly choosing a matrix P such that P 1 AP = diagonal matrix
m 0
2. Similarity Transformation
Eigen values
#Method :1
Method 2
Eigen vectors
Method 3: Caley Hamilton Theorem
Eigen values
Solution: x(k)
LTV Discrete-Time State Equation
Consider discrete-time state equation
xk 1 Ak xk Bk uk (1)
yk Ck xk Dk uk (2)
Solution of 1 (by Recursion) : given initial sate 𝑥[𝑘0 ]and input 𝑢[𝑘] for
𝑘≥0
k , k0 is defined 𝑘≥0
k , k0 k0 , k k0 , k
35
LTV Discrete-Time State Equation
k 1
y k C k k , m 1 B m u m D k u k
If initial state is zero
m k0
If k , m 0 for k m ,then
k
yk Ck k , m 1Bm Dm k mum
m k0
36
• Solution of Homogenous equation x k 1 A k x k
x k k , k0 x0
k, k I
k , k0 k0 , k 1 k , k0 exists for all k
k2 , k0 [k2 , k1 ][k1 , k0 ]
37
Example
x k 1 A k x k
• Consider the homogenous state equation x(0) x 0
1 k
x(k )
x1 k 1 x1 k k x2 (k ) 0 1
z
x2 ( z ) x20 x2 (k ) (1) k x20
x2 k 1 x2 (k ) z x2 ( z ) z x20 x2 ( z ) z 1
x1 k 1 x1 k k x2 (k )
Take z transform and inverse z transform
1 1 1
x1 (k ) x10 (1) k (1) k x20
1 4 2
1 1 1
x1 (k ) 1 (1) k (1) k x10
x (k ) 1 4 2
0
2 k x2
0 ( 1)
x1 (k ) (k , 0) x 0 38
k , k0 Ak 1Ak 2...Ak0
k0 , k0 I k 1, k0 Ak k , k0
k0 1, k0 A[k0 ]
k0 2, k0 A[k0 1] A[k0 ]
k0
k0 , k0 I
39
Solution of LTV dıscrete tıme State-space equatıons
Consider x [k 1] A[k ] x [k ] B [k ] u [k ] (1)
y (k ) C x(k ) D u (k ) (2)
k k0 , k0 1, k0 2...
STM k , k0 is given by
k , k0 A(k 1) A(k 2) A(k0 ) k k0
k 1
We obtain x k 1 A[k ] k , k0 x[k] ] k 1, m 1 B[m]u[m]
m k0
k 1, k 1 B[k ]u[k ]
k 1, k0 A[k ] k , k0
k 1
x k 1 A[k ] k , k0 x[k0 ] A[k ] k , k0 B[m]u[m] I B (k )u (k )
m k0
k 1
x k 1 A[k ] k , k0 x0 (k0 ) [k , k0 ]B[m]u[m] I B[k ]u[k ]
m k0