Chapter 6 DCS Part 1
Chapter 6 DCS Part 1
State Space
Analysis
EE4L005 DIGITAL CONTROL SYSTEMS
N. C. Sahoo
Introduction
• The conventional analysis methods of discrete-time
systems using z-transforms, transfer functions, block
diagrams, and signal flow graphs have so far been
discussed.
• State space method has the following advantages.
(1) State variable formulation is natural and
convenient for computing solutions.
(2) It allows a unified representation of digital
systems with various types of sampling schemes.
(3) It allows a unified representation of single-
variable and multivariable systems.
(4)It can be used for nonlinear as well as time-
varying systems.
• In state space analysis, a continuous-time system is
represented by a set of first-order differential
equations, called state equations.
Setting t 0 kT ,
t
x(t ) φ(t kT )x(kT ) φ(t )B d u(kT ) , kT t (k 1)T
kT
t
Let θ(t kT ) φ(t )B d , then
KT
where m is replaced by .
• This is a set of first order difference equations,
referred to as discrete state equations of the
sampled-data system.
• These state equations, however, describe the
dynamics only at the sampling instants. All
information between the sampling instants is lost.
t 2t
2 t 2t
φ(t ) l 1[(sI A) 1 ] t 2t t 2t
2 2 2
T
(T ) 2(T )
T
θ(T ) φ(T )Bd (T ) 2 (T ) d
0 0 2
0.5 0.5
T 2T
T 2T
Thus,
x1 (k 1) 2 T 2T T 2T x1 (k )
x (k 1) T 2T T 2T
2 2 2 2 2
x ( k )
0.5 T 0.5 2T
T 2T u (k )
Therefore,
x1 ( N ) 2 NT 2 NT NT 2 NT x1 (0)
x ( N ) NT 2 NT NT 2 NT
2 2 2 2 x2 (0)
N 1
(1 T ) ( N k 1)T 0.5(1 2T ) 2( N k 1)T
(1 T ) ( N k 1)T (1 2T
) 2 ( N k 1)T u (k )
k 0
Relationship Between State Equations
and Transfer Function
• Consider the MIMO discrete-time system given by
C( z ) G( z )U( z )
U1 ( z ) C1 ( z )
U ( z ) C ( z )
U( z ) , C( z ) 2
2
U
p ( z ) C
q ( z )
G11 ( z ) G12 ( z ) G1 p ( z )
G ( z ) G ( z ) G2 p ( z )
G( z) 21 22
Gq1 ( z ) Gq 2 ( z ) Gqp ( z )
• Elements of G (z ) are of the following form:
1 m
bm bm1 z b0 z
Gij ( z )
an an1 z 1 a0 z n
• In state space,
x(k 1) Ax(k ) Bu(k )
c(k ) Dx(k ) Eu(k )
2 T 2T T 2T
φ(T ) T 2T T 2T
2 2 2
0.5 T 0.5 2T
θ(T ) T 2T
D = [1 0] and E = 0
G1 ( s ) D( sI A) 1 B
C ( s) 1
G1 ( s ) 2
U ( s ) s 3s 2
C ( z) 1 1
G( z) (1 z )
R( z ) s( s 1)(s 2)
This will give the same result as obtained earlier.
Eigenvalues and Eigenvectors
• The characteristic equation of discrete-time system
is defined from A {or φ(T ) } of the system as
zI φ(T ) 0
In the case of an all-digital system, the characteristic
equation is
zI A 0
• The roots of the characteristic equation are defined
as the eigenvalues of the matrix A {or φ(T ) }.
• Important properties of the eigenvalues are:
1)If the coefficients of the characteristic equation
are scalar quantities, the eigenvalues are either
real or in complex conjugate pairs.
2) The trace of A, which is defined as the sum of
elements on the main diagonal of A, is given by
trace of A = tr(A) = z1 z 2 z n
where zi , i 1,2,, n are eigenvalues of A.
Properties of Eigenvectors:
1) An eigenvector cannot be a null vector.
2) The rank of ( zi I A) ,where zi , i 1,2,, n denotes
distinct eigenvalues of A, is n 1 .
3) The eigenvector p i is given by any nonzero column
of matrix adj ( zi I A), where zi is a distinct eigenvalue
of A.
4) If the matrix A has distinct eigenvalues, the set of
eigenvectors are linearly independent.
5) If p i is an eigenvector of A, then kp i is also an
eigenvector of A, where k is a scalar quantity.
0
p2
0.5
Diagonalization of “A” Matrix
• Solving the state equations of LTI systems is a
simple matter if these equations are decoupled
from each other, i.e., if A matrix is diagonal.
• In general, if A has distinct eigenvalues, it can be
diagonalized by a similarity transformation as
follows.
x(k 1) Ax(k ) Bu(k )
Let P be a nonsingular matrix such that
1
x(k ) Py(k ) y ( k ) P x( k )
The transformed state equations are:
y (k 1) Λy (k ) Γu(k )
z1 0 0 0
0 z2 0 0
where
Λ 0 0 z3 0
0 0 0 z n
and z1 , z 2 , , z n are the distinct eigenvalues of A.
p1 p 2 p n Λ PΛ AP
1
Λ P AP
Jordan Canonical Form
• When A cannot be diagonalized, a similarity
transformation exists such that Λ P 1AP , where
is the Jordan canonical form, which is nearly a
diagonal matrix.
For example, let us say A has eigenvalues z1 , z 2 , z 3 , z 3
,and z 3 (the last three are identical).
Then, the Jordan canonical form matrix is given by
z1 0 0 0 0
0 z2 0 0 0
Λ 0 0 z3 1 0
0 0 0 z3 1
0 0 0 0 z3
• A Jordan canonical form matrix has the following
properties.
(i) Its diagonal elements are the eigenvalues of A.
(ii) All the elements below the principal diagonal
are zeros.
(iii) Some of the elements above the principal
diagonal are ones.
(iv)The sub-matrices formed by each eigenvalue
are called Jordan blocks.
p m1 z j p m Ap m
After rearrangement, the equations become
( z j I A)p1 0
( z j I A)p 2 p1
( z j I A)pm pm1
A 2 6A 5I
A 6A 5A 31A 30I
3 2
A 6A 5A 156 A 155I
4 3 2
and so on.
State Diagram
• The conventional and sampled signal flow graphs
studied earlier apply only to algebraic equations.
They can be used only for the derivation of input-
output relations in transform domain.
• The method can be extended to the state transition
signal flow graph or the state diagram to represent
the difference equations.
• For a continuous-time system, the state diagram
resembles the block diagram of analog computer
diagram. From the state diagram, the problem can be
solved either by analog computer or by pencil-paper.
• The same notation and relations are utilized for their
digital counterparts.
(A) State Diagrams for Continuous-Time Systems:
(a) Block
diagram of
integrator;
(b) (c) State
diagrams
(B) State Diagrams for Discrete-Time Systems:
Some of the basic linear operations of a digital system
are as follows.
(a) Multiplication by a constant:
x2 (kT ) ax1 (kT ) X 2 ( z ) aX 1 ( z )
(b) Summing:
x3 (kT ) x1 (kT ) x2 (kT ) X 3 ( z ) X 1 ( z ) X 2 ( z )
1 2
Δ 1 2 z 3z
• The transfer function between the output and input
is determined from state diagram by gain formula
as
C ( z) X 1 ( z) 1
2
R( z ) R( z ) z 2 z 3
Decomposition of Transfer Functions
• The transfer function of a digital controller or system
D(z ) may be realized by a digital processor, digital
circuit, microprocessor, or a general-purpose digital
computer.
• The steps involved in realizing the state diagram and
dynamic equations of z-transfer function are termed
decomposition.
• There are three basic types of decomposition:
(A) Direct decomposition
(B) Cascade decomposition
(C) Parallel decomposition
(A) Direct Decomposition:
• The transfer function of a digital system is typically of
the form:
1 m
C ( z ) bm bm1 z b0 z
D( z )
R( z ) an an1 z 1 a0 z n
For physical realizability, an 0 .
• For direct decomposition, the right hand side is
multiplied by a variable X (z ) .
Thus, C ( z ) b bm1 z 1
b z m
X ( z)
m 0
R( z ) a n a n1 z 1
a 0 z n
X ( z)
C ( z ) bm bm1 z 1 b0 z m X ( z )
R ( z ) an an1 z a0 z X ( z )
1 n
x1 (k 1) 0.5 0 0 0 x1 (k ) 1
x (k 1) 0 0.8 0 0 x (k ) 1
2 2 r (k )
x3 (k 1) 0 0 0 1 x3 (k ) 106.25
x4 (k 1) 0 0 0 0 x4 (k ) 25