Cours Systc3a8mes Asservis Numc3a9riques 1
Cours Systc3a8mes Asservis Numc3a9riques 1
where a, b, c, d are real constants. If we consider a = b = c = 1 and d = −1, then the transformation
takes a form
+1 z +1
z= or, =
−1 z −1
This transformation maps the inside of the unit circle in the z-plane into the left half of the w-
plane. Let the real part of w be α and imaginary part be β ⇒ w = α+jβ. The inside of the unit circle
in z-plane can be represented by:
+ 1 + j + 1
z = = 1
−1 + j − 1
( + 1) + 2 1 + 1 2 + 2 − 1 2 + 2 0
2
( ) ( )
( − 1) + 2
2
Thus inside of the unit circle in z-plane maps into the left half of w-plane and outside of the unit
circle in z-plane maps into the right half of w-plane. Although w-plane seems to be similar to s-
plane, quantitatively it is not same.
+1
In the stability analysis using bilinear transformation, we first substitute z = in the
−1
characteristics equation P ( z ) = 0 and simplify it to get the characteristic equation in -plane
as Q ( ) = 0 . Once the characteristics equation is transformed as Q ( ) = 0 , Routh stability
criterion is directly used in the same manner as in a continuous time system.
We will now solve the same examples which were used to understand the Jury’s test.
P ( z ) into -domain:
+ 1 + 1 + 1
3 2
3 0.14 −5.1
−1.06 2
−1.98
1
−5.36
0
−1.98
There is one sign change in the first column of the Routh array. Thus, the system is unstable with
one pole at right hand side of the -plane or outside the unit circle of z-plane.
Example 2: The characteristic equation: P(z) = z4 − 1.2z3 + 0.07z2 + 0.3z − 0.08 = 0 Transforming
+ 1 + 1 + 1 + 1
4 3 2
2 4.88 1.89
1 6.81
0 1.89
All elements in the first column of Routh array are positive. Thus, the system is stable.
Example 3: Consider the system shown in Figure 1. Find out the range of K for which the system
is stable.
Solution:
(
G ( z) = K 3
0.084 z 2 + 0.17 z + 0.019 )
( z − 1.5z 2 + 0.553z − 0.05)
Figure 1: Example 3
Characteristic equation:
1+ K
( 0.084 z + 0.17 z + 0.019) = 0
2
+ 1 + 1 + 1
3 2
1.1 − 0.11K
0 3.1 + 0.07K
The system will be stable if all the elements in the first column has same sign. Thus, the
conditions for stability, in terms of K, are:
−0.011 K 2.74
1.1 Singular Cases
In Routh array, tabulation may end in occurrence with any of the following conditions.
The remedy of the first case is replacing zero by a small number and then proceeding with the
tabulation. Stability can be checked for the limiting case. Second singular case indicates one or
more of the following cases.
• Pairs of complex conjugate roots which are equidistant from the origin.
When a row of all zeros occurs, an auxiliary equation A ( ) = 0 is formed by using the
coefficients of the row just above the row of all zeros. The roots of the auxiliary equation are
also the roots of the characteristic equation. The tabulation is continued by replacing the row of
dA ( )
zeros by the coefficients of .
d
Looking at the correspondence between w-plane and z -plane, when an all zero row occurs, we
can conclude that following two scenarios are likely to happen.
• Pairs of real roots in the z -plane that are inverse of each other.
P ( z ) = z 3 − 1.7 z 2 − z + 0.8 = 0
+ 1 + 1 + 1
3 2
Q ( ) = − 1.7 − + 0.8 = 0
− 1 − 1 − 1
2 0.1 −0.9
1 0 0
The tabulation ends here. The auxiliary equation is formed by using the coefficients of 2 row,
as:
A ( ) = 0.1 2 − 0.9 = 0
Taking the derivative,
dA ( )
= 0.2
d
Thus, the Routh tabulation is continued as
3 0.9 −8.1
2 0.1 −0.9
1 0.2 0
0 −0.9
As there is one sign change in the first row, one of the roots lie in -plane is on the right-hand
side of the w-plane. This implies that one root in z-plane lies outside the unit circle.
To verify our conclusion, the roots of the polynomial z 3 − 1.7 z 2 − z + 0.8 = 0 , are found out to be
z = 0.5, z = −0.8 and z = 2. Thus, one can see that z = 2 lies outside the unit circle and it is inverse
of z = 0.5 which caused the all zero row in -plane.
Since we have not introduced the concept of state variables yet, as of now, we will limit our
discussion to BIBO stability only.
An initially relaxed (all the initial conditions of the system are zero) LTI system is said to
be BIBO stable if for every bounded input, the output is also bounded.
C(z) G(z)
=
R(Z) 1 + GH(z)
can be determined from the location of closed loop poles in z-plane which are the roots of the
characteristic equation
1 + GH(z) = 0
1. For the system to be stable, the closed loop poles or the roots of the characteristic equation
must lie within the unit circle in z-plane. Otherwise the system would be unstable.
2. If a simple pole lies at |z| = 1, the system becomes marginally stable. Similarly if a pair of
complex conjugate poles lie on the |z| = 1 circle, the system is marginally stable. Multiple
poles on unit circle make the system unstable.
Example 1:
Determine the closed loop stability of the system shown in Figure 1 when K = 1.
I. Kar 1
Digital Control Module 3 Lecture 1
G(s)
Figure 1: Example 1
Solution:
1 − e−s 1
G(z) = Z .
s s(s + 1)
1
= (1 − z )Z 2
−1
s (s + 1)
Since H(s) = 1,
C(z) z−1 z (1 − e−1 )z
∴ = . −
E(z) z (z − 1)2 (z − 1)(z − e−1 )
(z − e−1 ) − (1 − e−1 )(z − 1)
=
(z − 1)(z − e−1 )
z − 0.368 − 0.632z + 0.632
=
(z − 1)(z − 0.368)
0.368z + 0.264
G(z) =
(z − 1)(z − 0.368)
Three stability tests can be applied directly to the characteristic equation without solving for
the roots.
→ Schur-Cohn stability test
→ Jury Stability test
→ Routh stability coupled with bi-linear transformation.
Other stability tests like Lyapunov stability analysis are applicable for state space system models
I. Kar 2
Digital Control Module 3 Lecture 1
which will be discussed later. Computation requirements in Jury test is simpler than Schur-
Cohn when the co-efficients are real which is always true for physical systems.
where a0 > 0.
Jury Table
Row z 0 z 1 z 2 z 3 z 4 ... z n
1 an an−1 an−2 ... ... ... a0
2 a0 a1 a2 ... ... ... ... an
3 bn−1 bn−2 ... ... b0
4 b0 b1 ... ... ... bn−1
5 cn−2 cn−3 ... c0
6 c0 c1 ... ... cn−2
. ............................
. ............................
. ............................
2n − 3 q2 q1 q0
where,
an an−1−k
bk =
a0 ak+1
k = 0, 1, 2, 3, ...., n − 1
bn−1 bn−2−k
ck =
b0 bk+1
k = 0, 1, 2, 3, ...., n − 2
p3 p2−k
qk =
p0 pk+1
I. Kar 3
Digital Control Module 3 Lecture 1
1. |an | < a0
2. P (z)|z=1 >0
3. P (z)|z=−1 > 0 for n even and P (z)|z=−1 < 0 for n odd
4.
2. P (1) = 1 − 1.2 + 0.07 + 0.3 − 0.08 = 0.09 > 0 ⇒ Second condition is satisfied.
3. P (−1) = 1 + 1.2 + 0.07 − 0.3 − 0.08 = 1.89 > 0 ⇒ Third condition is satisfied.
Jury Table
an a0
b3 = = 0.0064 − 1 = −0.9936
a0 an
an a1
b2 = = −0.08 × 0.3 + 1.2 = 1.176
a0 a3
Rest of the elements are also calculated in a similar fashion. The elements are b1 = −0.0756
b0 = −0.204 c2 = 0.946 c1 = −1.184 c0 = 0.315. One can see
|b3 | = 0.9936 > |b0 | = 0.204
|c2 | = 0.946 > |c0 | = 0.315
I. Kar 4
Digital Control Module 3 Lecture 1
2. P (1) = 1 − 1.3 − 0.08 + 0.24 = −0.14 < 0 ⇒ Second condition is not satisfied.
Since one of the criteria is violated, we may stop the test here and conclude that the system
is unstable. P (1) = 0 or P (−1) = 0 indicates the presence of a root on the unit circle and
in that case the system can at the most become marginally stable if rest of the conditions are
satisfied.
The stability range of a parameter can also be found from Jury’s test which we will see in
the next example.
Example 4: Consider the system shown in Figure 1. Find out the range of K for which
the system is stable.
Solution:
K(0.368z + 0.264)
G(z) =
(z − 1)(z − 0.368)
C(z) K(0.368z + 0.264)
The closed loop transfer function: = 2
R(z) z + (0.368K − 1.368)z + 0.368 + 0.264K
1. |a2 | < a0
2. P (1) > 0
3. P (−1) = 1 − (0.368K − 1.368) + 0.368 + 0.264K = 2.736 − 0.104K > 0 ⇒ 26.38 > K
I. Kar 5
Digital Control Module 3 Lecture 1
Jury Table
a3 a0
b2 = = 0.0625 − 1 = −0.9375
a0 a3
a3 a1
b1 = = 0.25 − 0.25 = 0
a0 a2
Thus the tabulation ends here and we know that some of the roots lie on the unit circle. If we
replace z by (1 + ǫ)z, the characteristic equation would become:
(1 + 3ǫ)z 3 + 0.25(1 + 2ǫ)z 2 + (1 + ǫ)z + 0.25 = 0
First three stability conditions are satisfied.
Jury Table
Row z0 z1 z2 z3
I. Kar 6
Digital Control Module 3 Lecture 1
|b2 | = |0.0625 − (1 + 6ǫ + 9ǫ2 )| and |b0 | = |1 + 3.875ǫ + 3ǫ2 − 0.0625|. Since, when ǫ → 0+ ,
1 + 6ǫ + 9ǫ2 > 1 + 3.875ǫ + 3ǫ2 , thus |b2 | > |b0 | which implies that the roots which are not on
the unit circle are actually inside it and the system is marginally stable.
I. Kar 7
Powered by TCPDF (www.tcpdf.org)
Digital Control Module 7 Lecture 1
State variable models are basically time domain models where we are interested in the dynamics
of some characterizing variables called state variables which along with the input represent the
state of a system at a given time.
• State: The state of a dynamic system is the smallest set of variables, x ∈ Rn , such that
given x(t0 ) and u(t), t > t0 , x(t), t > t0 can be uniquely determined.
• Usually a system governed by a nth order differential equation or nth order transfer function
is expressed in terms of n state variables: x1 , x2 , . . . , xn .
• The generic structure of a state-space model of a nth order continuous time dynamical
system with m input and p output is given by:
ẋ(t) = Ax(t) + Bu(t) : State Equation (1)
y(t) = Cx(t) + Du(t) : Output Equation
where, x(t) is the n dimensional state vector, u(t) is the m dimensional input vector, y(t)
is the p dimensional output vector and A ∈ Rn×n , B ∈ Rn×m , C ∈ Rp×n , D ∈ Rp×m .
Example
I. Kar 1
Digital Control Module 7 Lecture 1
where eAt = Φ(t) is known as the state transition matrix and x(t0 ) is the initial state of the
system.
I. Kar 2
Digital Control Module 7 Lecture 1
1. Systems that result from sampling the continuous time system output at discrete instants
only, i.e., sampled data systems.
2. Systems which are inherently discrete where the system states are defined only at discrete
time instants and what happens in between is of no concern to us.
Since the inputs are constants in between two sampling instants, one can write:
If t = (k + 1)T ,
θ(T ) as θ(T ) = Φ(T − t′ )Bdt′ . Equation (4) has a similar form as that of equation (3) if we
0
consider φ(T ) = Ā and θ(T ) = B̄. Similarly by setting t = kT , one can show that the output
equation also has a similar form as that of the continuous time one.
I. Kar 3
Digital Control Module 7 Lecture 1
When T = 1,
1
ẋ(t) t=kT
= [x((k + 1)T ) − x(kT )]
T
1
⇒ [x((k + 1)T ) − x(kT )] = Ax(kT ) + Bu(kT )
T
and, y(kT ) = Cx(kT ) + Du(kT )
We can thus conclude from the discussions so far that the discrete time state variable model
of a system can be described by
where A, B are either the descriptions of an all digital system or obtained by sampling the
continuous time process.
I. Kar 4
Digital Control Module 7 Lecture 2
In this lecture we will discuss about the relation between transfer function and state space
model for a discrete time system and various standard or canonical state variable models.
To find out the transfer function, we assume that the initial conditions are zero, i.e., x0 = 0,
thus
Y (z) = C(zI − A)−1 B + D U (z)
Therefore, the transfer function becomes
Y (z)
G(z) = = C(zI − A)−1 B + D (2)
U (z)
I. Kar 1
Digital Control Module 7 Lecture 2
Y (z) β0 z m + β1 z m−1 + . . . + βm
G(z) = = m≤n (3)
U (z) z n + α1 z n−1 + . . . + αn
Various canonical state variable models can be derived from the above transfer function model.
or in time domain as
The block diagram representation of above equations is shown in Figure 1. State variables are
selected as shown in Figure 1.
The state equations are then written as:
x1 (k + 1) = x2 (k)
x2 (k + 1) = x3 (k)
.. .
. = ..
xn (k + 1) = −αn x1 (k) − αn−1 x2 (k) − . . . − α1 xn (k) + u(k)
y(k) = (βn − αn β0 )x1 (k) + (βn−1 − αn−1 β0 )x2 (k) + . . . + (β1 − α1 β0 )xn (k) + β0 u(k)
I. Kar 2
Digital Control Module 7 Lecture 2
y(k)
+ + ... + +
β0 β1 β2 ... βn−1 βn
α1 α2 ... αn−1 αn
+ + ... +
where
0 1 0 ... 0 0
0 0 1 ... 0 0
.. .. .. ..
A= B = 0
. . . . .
. . ..
0 0 0 ... 1 .
−αn −αn−1 −αn−2 . . . −α1 1
C = [βn − αn β0 βn−1 − αn−1 β0 . . . β1 − α1 β0 ] D = β0
or, z n [Y (z) − β0 U (z)] + z n−1 [α1 Y (z) − β1 U (z)] + . . . + [αn Y (z) − βn U (z)] = 0
or, Y (z) = β0 U (z) − z −1 [α1 Y (z) − β1 U (z)] − . . . − z −n [αn Y (z) − βn U (z)]
The corresponding block diagram is shown in Figure 2. Choosing the outputs of the delay blocks
I. Kar 3
Digital Control Module 7 Lecture 2
u(k)
βn βn−1 ... β1 β0
+ x1 + x2 + xn + y(k)
z −1
z −1 ... z −1
- - - -
αn αn−1 ... α1
2.3 Duality
In previous two sections we observed that the system matrix A in observable canonical form is
transpose of the system matrix in controllable canonical form. Similarly, control matrix B in
observable canonical form is transpose of output matrix C in controllable canonical form. So also
output matrix C in observable canonical form is transpose of control matrix B in controllable
canonical form.
I. Kar 4
Digital Control Module 7 Lecture 2
Assume that z = λi , i = 1, 2, . . . , n are the distinct poles of the given transfer function
(3). Then partial fraction expansion of the transfer function yields
β0
+
u(k) + x1 (k) + y(k)
Z −1 r1
+ +
+
λ1
+ x2 (k)
Z −1 r2
λ2
+ xn (k)
Z −1 rn
λn
Considering the outputs of the delay blocks as the state variables, we can construct the state
model in matrix form (4), with
I. Kar 5
Digital Control Module 7 Lecture 2
λ1 0 0 ... 0
0 λ2 0 1
... 0 1
A = 0 0 λ3 ... 0 B = .. C = [r1 r2 . . . rn ] D = β0
.. .. .. ..
.
. . . ... .
1
0 0 0 . . . λn
When the matrix A has repeated eigenvalues, it cannot be expressed in a proper diagonal form.
However, it can be expressed in a Jordan canonical form which is nearly a diagonal matrix. Let
us consider that the system has eigenvalues, λ1 , λ1 , λ2 and λ3 . In that case, A matrix in Jordan
canonical form will be
λ1 1 0 0
0 λ1 0 0
A= 0 0 λ2 0
0 0 0 λ3
1. The diagonal elements of the matrix A are eigenvalues of the same.
3. Some of the elements just above the principal diagonal are one.
4. The matrix can be divided into a number of blocks, called Jordan blocks, along the
diagonal. Each block depends on the multiplicity of the eigenvalue associated with it. For
example Jordan block associated with a eigenvalue z1 of multiplicity 4 can be written as
z1 1 0 0
0 z1 1 0
A= 0 0 z1 1
0 0 0 z1
Solution:
The state variable model in controllable canonical form can directly be derived from the
transfer function, where the A, B, C and D matrices are as follows:
0 1 0
A= , B= , C = 0.04 0.17 , D = 0
−0.24 1.1 1
The matrices in state model corresponding to observable canonical form are obtained as,
0 −0.24 0.04
A= , B= , C= 0 1 , D=0
1 1.1 0.17
I. Kar 6
Digital Control Module 7 Lecture 2
To find out the state model in Jordan canonical form, we need to fact expand the transfer
function using partial fraction, as
0.17z + 0.04 0.352 −0.182
G(z) = = +
− 1.1z + 0.24
z2 z − 0.8 z − 0.3
Thus the A, B, C and D matrices will be:
0.8 0 1
A= , B= , C = 0.352 −0.182 , D = 0
0 0.3 1
I. Kar 7
Digital Control Module 7 Lecture 4
In this lecture we would discuss about the solution of discrete state equation, computation
of discrete state transition matrix and state diagram.
For k = 2,
and so on. If we combine all these equations, we would get the following expression as a
general solution:
k−1
X
k
x(k) = A x(0) + Ak−1−i Bu(i)
i=0
As seen in the above expression, x(k) has two parts. One is the contribution due to the initial
state x(0) and the other one is the contribution of the external input u(i) for i = 0, 1, 2, · · · , k−1.
I. Kar 1
Digital Control Module 7 Lecture 4
When the input is zero, solution of the homogeneous state equation x(k + 1) = Ax(k) can be
written as
x(k) = Ak x(0)
where Ak = φ(k) is the state transition matrix.
2 Evaluation of φ(k)
Similar to the continuous time systems, the state transition matrix of a discrete state model
can be evaluated using the following different techniques.
Example Compute Ak for the following system using three different techniques and hence find
y(k) for k ≥ 0.
0 1 0 k 1
x(k + 1) = x(k) + (−1) ; x(0) =
−0.21 −1 1 0
y(k) = x2 (k)
0 1
Solution: A = and eigenvalues of A are −0.3 and −0.7.
−0.21 −1
Method 1
( −1 )
z − 1 −1
Ak = Z −1 (zI − A)−1 = Z −1
1 z−1
I. Kar 2
Digital Control Module 7 Lecture 4
z+1 1
z 2 +z+0.21 z 2 +z+0.21
Ak = Z −1
−0.21 z
z 2 +z+0.21 z 2 +z+0.21
1.75 0.75 2.5 2.5
z+0.3
− z+0.7 z+0.3
− z+0.7
= Z −1
−0.525 0.525 −0.75 1.75
z+0.3
+ z+0.7 z+0.3
+ z+0.7
1.75(−0.3)k − 0.75(−0.7) k
2.5(−0.3)k − 2.5(−0.7)k
=
k k k k
−0.525(−0.3) + 0.525(−0.7) −0.75(−0.3) + 1.75(−0.7)
Method 2
(−0.3)k
k k k 0
A = P Λ P where Λ =
−1
. Eigen values are −0.3 and −0.7. The corre-
0 (−0.7)k
1 1
sponding eigenvectors are found, by using equation Avi = λi vi , as and respec-
−0.3 −0.7
tively. The transformation matrix is given by
1 1 −1 1.75 2.5
P = ⇒ P =
−0.3 −0.7 −0.75 −2.5
Thus,
Ak = P Λk P −1
(−0.3)k
1 1 0 1.75 2.5
=
−0.3 −0.7 0 (−0.7)k −0.75 −2.5
1.75(−0.3)k − 0.75(−0.7)k 2.5(−0.3)k − 2.5(−0.7)k
=
k k k k
−0.525(−0.3) + 0.525(−0.7) −0.75(−0.3) + 1.75(−0.7)
Method 3: Caley Hamilton Theorem
The eigenvalues are −0.3 and −0.7.
(−0.3)k = β0 − 0.3β1
(−0.7)k = β0 − 0.7β1
Solving,
β0 = 1.75(−0.3)k − 0.75(−0.7)k
β1 = 2.5(−0.3)k − 2.5(−0.7)k
Hence,
φ(k) = Ak = β0 I + β1 A
1.75(−0.3)k − 0.75(−0.7)k 2.5(−0.3)k − 2.5(−0.7)k
=
k k k k
−0.525(−0.3) + 0.525(−0.7) −0.75(−0.3) + 1.75(−0.7)
I. Kar 3
Digital Control Module 7 Lecture 4
k−1
X
k
x(k) = A x(0) + Ak−1−i Bu(i)
i=0
k−1
1.75(−0.3)k − 0.75(−0.7)k 2.5(−0.3)k−1−i − 2.5(−0.7)k−1−i
X
= + (−1)i
−0.525(−0.3)k + 0.525(−0.7)k −0.75(−0.3)k−1−i + 1.75(−0.7)k−1−i
i=0
Now,
k−1 k−1
X
i
X 1 − (3.33)k
(1/0.3) = (3.33)i = = −0.43[1 − (3.33)k ]
i=0 i=0
1 − 3.33
k−1 k−1
X X 1 − (1.43)k
(1/0.7)i = (1.43)i = = −2.33[1 − (1.43)k ]
i=0 i=0
1 − 1.43
3 State Diagram
Conventional signal flow graph method was meant for only algebraic equation, thus these are
generally used for the derivation of input output relation in a transformed domain.
State diagram or state transition signal flow graph is an extension of conventional signal flow
graph which can be applied to represent differential and difference equations as well.
Example 1: Draw the state diagram for the following differential equation.
Considering the state variables as x1 (t) = y(t) and x2 (t) = ẏ(t), we can write
I. Kar 4
Digital Control Module 7 Lecture 4
1 1
1 ẋ2 s s x1 1
u(t) y(t)
U (s) ẋ1 = x2 Y (s)
−2
−1
Example 2: Consider a discrete time system described by the following state difference equa-
tions.
x1 (k + 1) = −x1 (k) + x2 (k)
x2 (k + 1) = −x1 (k) + u(k)
y(k) = x1 (k) + x2 (k)
Draw the state diagram.
u(k) 1 x2 (k + 1) z −1 1 x1 (k + 1) z −1 1 y(k)
x2 (k) x1 (k)
−1
−1
I. Kar 5
Digital Control Module 7 Lecture 4
s−1
e(kT ) H(s)
where x(t0 ) is the initial state of the system and u(t) is the external input.
Z t
when t0 = kT, x(t) = φ(t − kT )x(kT ) + u(kT ) φ(t − τ )Bdτ
kT
Since we are interested in response between the sampling instants, let us consider t =
(k + ∆)T where k = 0, 1, 2, · · · and 0 ≤ ∆ ≤ 1. This implies
−1 −1 0
ẋ(t) = x(t) + u(t)
0 −2 1
y(t) = x1 (t)
which undergoes through a sampling process with period T . To derive the discrete state
space model, let us first compute the state transition matrix of the continuous time system
using Caley Hamilton Theorem.
λ+1 1
△(λ) = |λI − A| = = (λ + 1)(λ + 2) = 0 ⇒ λ1 = −1, λ2 = −2
0 λ+2
I. Kar 6
Digital Control Module 7 Lecture 4
Then
eAt = β0 I + β1 A
−t −2t
e e − e−t
=
0 e−2t
When t = (k + ∆)T ,
−∆T
e−∆T e−2∆T − e−∆T e − 0.5e−2∆T − 0.5
x(kT + ∆T ) = x(kT ) + u(kT )
0 e−2∆T 0.5 − 0.5e−2∆T
0.37 −0.23 −0.2
x(k + 1) = x(k) + u(k)
0 0.14 0.43
0.61 −0.24 −0.08
x(k + 0.5) = x(k) + u(k)
0 0.37 0.32
The responses in between the sampling instants, i.e., x(0.5), x(1.5), x(2.5) etc., can be found
by putting k = 0, 1, 2 · · · .
I. Kar 7
Powered by TCPDF (www.tcpdf.org)
Digital Control Module 7 Lecture 4
In this lecture we would discuss about the solution of discrete state equation, computation
of discrete state transition matrix and state diagram.
For k = 2,
and so on. If we combine all these equations, we would get the following expression as a
general solution:
k−1
X
k
x(k) = A x(0) + Ak−1−i Bu(i)
i=0
As seen in the above expression, x(k) has two parts. One is the contribution due to the initial
state x(0) and the other one is the contribution of the external input u(i) for i = 0, 1, 2, · · · , k−1.
I. Kar 1
Digital Control Module 7 Lecture 4
When the input is zero, solution of the homogeneous state equation x(k + 1) = Ax(k) can be
written as
x(k) = Ak x(0)
where Ak = φ(k) is the state transition matrix.
2 Evaluation of φ(k)
Similar to the continuous time systems, the state transition matrix of a discrete state model
can be evaluated using the following different techniques.
Example Compute Ak for the following system using three different techniques and hence find
y(k) for k ≥ 0.
0 1 0 k 1
x(k + 1) = x(k) + (−1) ; x(0) =
−0.21 −1 1 0
y(k) = x2 (k)
0 1
Solution: A = and eigenvalues of A are −0.3 and −0.7.
−0.21 −1
Method 1
( −1 )
z − 1 −1
Ak = Z −1 (zI − A)−1 = Z −1
1 z−1
I. Kar 2
Digital Control Module 7 Lecture 4
z+1 1
z 2 +z+0.21 z 2 +z+0.21
Ak = Z −1
−0.21 z
z 2 +z+0.21 z 2 +z+0.21
1.75 0.75 2.5 2.5
z+0.3
− z+0.7 z+0.3
− z+0.7
= Z −1
−0.525 0.525 −0.75 1.75
z+0.3
+ z+0.7 z+0.3
+ z+0.7
1.75(−0.3)k − 0.75(−0.7) k
2.5(−0.3)k − 2.5(−0.7)k
=
k k k k
−0.525(−0.3) + 0.525(−0.7) −0.75(−0.3) + 1.75(−0.7)
Method 2
(−0.3)k
k k k 0
A = P Λ P where Λ =
−1
. Eigen values are −0.3 and −0.7. The corre-
0 (−0.7)k
1 1
sponding eigenvectors are found, by using equation Avi = λi vi , as and respec-
−0.3 −0.7
tively. The transformation matrix is given by
1 1 −1 1.75 2.5
P = ⇒ P =
−0.3 −0.7 −0.75 −2.5
Thus,
Ak = P Λk P −1
(−0.3)k
1 1 0 1.75 2.5
=
−0.3 −0.7 0 (−0.7)k −0.75 −2.5
1.75(−0.3)k − 0.75(−0.7)k 2.5(−0.3)k − 2.5(−0.7)k
=
k k k k
−0.525(−0.3) + 0.525(−0.7) −0.75(−0.3) + 1.75(−0.7)
Method 3: Caley Hamilton Theorem
The eigenvalues are −0.3 and −0.7.
(−0.3)k = β0 − 0.3β1
(−0.7)k = β0 − 0.7β1
Solving,
β0 = 1.75(−0.3)k − 0.75(−0.7)k
β1 = 2.5(−0.3)k − 2.5(−0.7)k
Hence,
φ(k) = Ak = β0 I + β1 A
1.75(−0.3)k − 0.75(−0.7)k 2.5(−0.3)k − 2.5(−0.7)k
=
k k k k
−0.525(−0.3) + 0.525(−0.7) −0.75(−0.3) + 1.75(−0.7)
I. Kar 3
Digital Control Module 7 Lecture 4
k−1
X
k
x(k) = A x(0) + Ak−1−i Bu(i)
i=0
k−1
1.75(−0.3)k − 0.75(−0.7)k 2.5(−0.3)k−1−i − 2.5(−0.7)k−1−i
X
= + (−1)i
−0.525(−0.3)k + 0.525(−0.7)k −0.75(−0.3)k−1−i + 1.75(−0.7)k−1−i
i=0
Now,
k−1 k−1
X
i
X 1 − (3.33)k
(1/0.3) = (3.33)i = = −0.43[1 − (3.33)k ]
i=0 i=0
1 − 3.33
k−1 k−1
X X 1 − (1.43)k
(1/0.7)i = (1.43)i = = −2.33[1 − (1.43)k ]
i=0 i=0
1 − 1.43
3 State Diagram
Conventional signal flow graph method was meant for only algebraic equation, thus these are
generally used for the derivation of input output relation in a transformed domain.
State diagram or state transition signal flow graph is an extension of conventional signal flow
graph which can be applied to represent differential and difference equations as well.
Example 1: Draw the state diagram for the following differential equation.
Considering the state variables as x1 (t) = y(t) and x2 (t) = ẏ(t), we can write
I. Kar 4
Digital Control Module 7 Lecture 4
1 1
1 ẋ2 s s x1 1
u(t) y(t)
U (s) ẋ1 = x2 Y (s)
−2
−1
Example 2: Consider a discrete time system described by the following state difference equa-
tions.
x1 (k + 1) = −x1 (k) + x2 (k)
x2 (k + 1) = −x1 (k) + u(k)
y(k) = x1 (k) + x2 (k)
Draw the state diagram.
u(k) 1 x2 (k + 1) z −1 1 x1 (k + 1) z −1 1 y(k)
x2 (k) x1 (k)
−1
−1
I. Kar 5
Digital Control Module 7 Lecture 4
s−1
e(kT ) H(s)
where x(t0 ) is the initial state of the system and u(t) is the external input.
Z t
when t0 = kT, x(t) = φ(t − kT )x(kT ) + u(kT ) φ(t − τ )Bdτ
kT
Since we are interested in response between the sampling instants, let us consider t =
(k + ∆)T where k = 0, 1, 2, · · · and 0 ≤ ∆ ≤ 1. This implies
−1 −1 0
ẋ(t) = x(t) + u(t)
0 −2 1
y(t) = x1 (t)
which undergoes through a sampling process with period T . To derive the discrete state
space model, let us first compute the state transition matrix of the continuous time system
using Caley Hamilton Theorem.
λ+1 1
△(λ) = |λI − A| = = (λ + 1)(λ + 2) = 0 ⇒ λ1 = −1, λ2 = −2
0 λ+2
I. Kar 6
Digital Control Module 7 Lecture 4
Then
eAt = β0 I + β1 A
−t −2t
e e − e−t
=
0 e−2t
When t = (k + ∆)T ,
−∆T
e−∆T e−2∆T − e−∆T e − 0.5e−2∆T − 0.5
x(kT + ∆T ) = x(kT ) + u(kT )
0 e−2∆T 0.5 − 0.5e−2∆T
0.37 −0.23 −0.2
x(k + 1) = x(k) + u(k)
0 0.14 0.43
0.61 −0.24 −0.08
x(k + 0.5) = x(k) + u(k)
0 0.37 0.32
The responses in between the sampling instants, i.e., x(0.5), x(1.5), x(2.5) etc., can be found
by putting k = 0, 1, 2 · · · .
I. Kar 7