MCT Notes
MCT Notes
Linear Systems
1.1 Introduction
Control theory can be approached from a number of directions. The first
systematic method of dealing with what is now called control theory began
to emerge in the 1930s. Transfer functions and frequency domain techniques
dominated the so called classical approaches to control theory. In the late 1950s
and early 1960s a time domain approach using state variable descriptions started
to emerge. The 1980s saw great advances in control theory for the robust design
of systems with uncertainties in their dynamic characteristics. The concepts of
H∞ control and µ-synthesis theory were introduced.
For a number of years the state variable approach was synonymous with
modern control theory. At the present time state variable approach and the
various transfer function based methods are considered on an equal level, and
nicely complement each other. This course is concerned with the analysis and
design of control systems with the state variable point of view. The class of
systems studied are assumed linear time-invariant (LTI) systems.
1
2 CHAPTER 1. LINEAR SYSTEMS
Example 1.1 Consider the simple mechanical system of Figure 1.1. Derive the equations
of motion for the system.
f (t)
y(t)
M
K B
Solution We sum forces on the mass, M . Three forces influence the motion
of the mass, namely, the applied force, the frictional force, and the spring force.
Hence we can write
d2 y(t) dy
M 2
= f (t) − B − Ky(t)
dt dt
rearranging the terms implies
d2 y(t) dy
M 2
+B + Ky(t) = f (t) (1.1)
dt dt
This is a second-order differential equation with constant coefficients. Note
that the order of the differential equation is the order of the highest derivative.
Systems described by such equations are called linear systems of the same order
as the differential equation.
A transfer function can be found for the system of Figure 1.1, with the
applied force f (t) as the input and the displacement of the mass y(t) as the
output. We can express the Laplace transform of the system equation (1.1) as
M s2 Y (s) + BsY (s) + KY (s) = (M s2 + Bs + K)Y (s) = F (s)
The initial conditions are ignored, since the transfer function is to be derived.
Thus the transfer function is given by
Y (s) 1
G(s) = = (1.2)
F (s) M s2 + Bs + K
1.2. REVIEW OF SYSTEM MODELING 3
As a second example, consider the mechanical system shown in Figure 1.2. Example 1.2
This is a simplified model of a car suspension system of one wheel, with M1
the mass of the car, B the shock absorber, K1 the springs, M2 the mass of the
wheel, and K2 the elastance of the tire.
Solution Note that two equations must be written, since two independent
displacements exist; that is, knowing displacement x1 (t) does not give us knowl-
wdge of displacement x2 (t).
As mass M2 moves in the direction of positive x2 , the spring K2 will compress
and react with a force K2 x2 against the motion. The spring K1 will also react
with a force K1 (x2 − x1 ) against the motion. Likewise the damper will resist
motion with viscous friction force B( dx dx1
dt − dt ). The free-body diagram of the
2
M1
dx2 dx1
K1 (x2 − x1 ) B dt − dt
M2
f (t) K2 x2
Figure 1.3: Free-body diagram s showing the masses in Figure 1.2 and the forces
that act on them.
Suppose the transfer function is desired between F (s) and X1 (s), that is, be-
tween a force applied to the wheel and the resulting displacement of the car.
First we solve the Equation (1.5) for X1 (s),
Bs + K1
X1 (s) = X2 (s) = G1 (s)X2 (s)
M1 s2 + Bs + K1
where
Bs + K1
G1 (s) =
M1 s2 + Bs + K1
Next we solve Equation (1.6) for X2 (s),
1 Bs + K1
X2 (s) = F (s) + X1 (s)
s2
M2 + Bs + K1 + K2 2
M2 s + Bs + K1 + K2
= G2 (s)F (s) + G3 (s)X1 (s)
where
1
G2 (s) =
M2 s2 + Bs + K1 + K2
1.2. REVIEW OF SYSTEM MODELING 5
and
Bs + K1
G3 (s) =
s2
M2 + Bs + K1 + K2
To find the transfer function between F1 (s) and X1 (s), we construct a block
diagram for this example from the system equations as shown in Figure 1.4
Thus the transfer function is, from the block diagram,
Consider the circuit of Figure 1.5. In this circuit we consider v1 (t) to be the Example 1.3
circuit input and v2 (t) to be the circuit output. Write a set of equations such
that the solution of these equations will yield v2 (t) as a function of v1 (t).
Hence, these two equations form the mathematical model of the circuit in Figure
1.5. Also we can derive the transfer function of the circuit of example 1.3. Taking
the Laplace transform of equation (1.7) yields
1
R1 I(s) + R2 I(s) + I(s) = V1 (s)
sC
We solve for I(s):
V1 (s)
I(s) = 1
R1 + R2 + sC
Next the Laplace transform of (1.8) yields
1
R2 I(s) + I(s) = V2 (s)
sC
we substitute the value of I(s) found earlier:
1
R2 + sC
V2 (s) = 1 V1 (s)
R1 + R2 + sC
d2 y(t) dy
M +B + Ky(t) = f (t) (1.9)
dt2 dt
1.3. STATE-VARIABLE MODELING 7
f (t)
y(t)
M
K B
Y (s) 1
G(s) = = (1.10)
F (s) M s2 + Bs + K
This equation gives a description of the position y(t) as a function of the force
f (t). Suppose that we also want information about the velocity. Using the state
variable approach, we define the two state variables x1 (t) and x2 (t) as
and
dy(t) dx1 (t)
x2 (t) = = = ẋ1 (t) (1.12)
dt dt
Thus x1 (t) is the position of the mass and x2 (t) is its velocity. Then from (1.26),
(1.27) and (1.12), we may write
d2 y(t)
dx2 (t) B K 1
2
= = ẋ2 (t) = − x2 (t) − x1 (t) + f (t) (1.13)
dt dt M M M
The state variable model is usually written in a specific format which is given
by rearranging the equations as
Knowledge of the state at some initial time t0 , plus knowledge of the system
inputs after t0 , allows the determination of the state at a later time t1 . As
far as the state at t1 is concerned, it makes no difference how the initial state
was attained. Thus the state at t0 constitutes a complete history of the system
behaviour prior to t0 .
The most general state space representation of a LTI system is given by
where
Equation (1.14) is called the state equation, and Equation (1.15) is called the
output equation, together they are referred to as the state-variable equations.
Equations (1.14) and (1.15) are shown in block diagram form in Figure 1.7.
The heavier lines indicate that the signals are vectors, and the integrator symbol
really indicates n scalar integrators.
Consider the system described by the coupled differential equations Example 1.4
ÿ1 + k1 ẏ1 + k2 y1 = u1 + k3 u2
ẏ2 + k4 y2 + k5 ẏ1 = k6 u1
where u1 and u2 are inputs, y1 and y2 are outputs, and ki = 1, · · · , 6 are system
parameters. Write a state space representation for the differential equations.
x1 = y1 x2 = ẏ1 = ẋ1 x3 = y2
ẋ2 = −k2 x1 − k1 x2 + u1 + k3 u2
ẋ3 = −k5 x2 − k4 x3 + k6 u1
ẋ1 = x2
ẋ2 = −k2 x1 − k1 x2 + u1 + k3 u2
ẋ3 = −k5 x2 − k4 x3 + k6 u1
y1 = x1
y2 = x3
In this figure Z
y(t) = x(t) dt
The input to the first integrator must be ÿ(t). We can use these two integrators
to construct a simulation diagram of the mechanical system of Figure 1.1. The
input to the cascaded integrators in Figure 1.9 is ÿ(t) and the equation that
ÿ(t) must satisfy for the mechanical system is obtained from (1.1) as
B K 1
ÿ(t) = − ẏ(t) − y(t) + f (t)
M M M
Hence a summing junction and appropriate gains can be added to the block
diagram of Figure 1.9 to satisfy this equation as shown in Figure 1.10.
simulation diagram, the simulation diagram can be of many forms, that is, the
simulation diagram is not unique. Next, we consider two common and useful
forms of the simulation diagram, namely, control canonical form and observer
canonical form (The names will become evident later in the course). The two
different simulation diagrams are derived from the general transfer functions of
the form
m
X
bi si
Y (s)
G(s) = = i=0
n
U (s) X
ai si
i=0
b0 + · · · + bm−1 sm−1 + bm sm
= (1.16)
a0 + · · · + an−1 sn−1 + sn
where
m<n and an = 1
U (s) W (s)
Y (s)
A simulation diagram, called the control canonical form shown in Figure 1.11
can be drawn. Once a simulation diagram of a transfer function is constructed,
a state model of the system is easily obtained. The procedure is as follows:
1. Assign a state variable to the output of each integrator starting from right
to left. (We could assign state variables from left to right to obtain what
we call input feedforward canonical form).
2. Write an equation for the input of each integrator and an equation for
each system output.
Following the procedure above the state variable satisfy:
ẋ1 = x2
ẋ2 = x3
ẋ3 = −a0 x1 − a1 x2 − a2 x3 + u(t)
Note the direct connection with coefficients of the transfer function. The bottom
row of the A matrix contains the negatives of the coefficients of the characteristic
equation (i.e., the denominator of G(s)), starting on the left with −a0 and ending
on the right with −a2 . Above the bottom row is a column of zeros on the left
and a 2 × 2 identity matrix on the right. The B matrix is similarly very simple,
1.4. SIMULATION DIAGRAMS 13
all the elements are zero except for the bottom element, which is the gain from
the original system. The C matrix contains the positive of the coefficients of the
numerator of the transfer function, starting on the left with b0 and ending on
the right with b2 . These equations are easily extended to the nth -order system.
It is important to note that state matrices are never unique, and each G(s) has
infinite number of state models.
leading to
Y (s) = −[a2 s−1 + a1 s−2 + a0 s−3 ]Y (s) + [b2 s−1 + b1 s−2 + b0 s−3 ]U (s)
U (s)
Y (s)
2ÿ − ẏ + 3y = u̇ − 2u
To show that the answer is true let us construct a simulation diagram. First we
have to express the transfer function in standard form:
1 −1
2s − s−2
Y (s) = U (s)
1 − 2 s + 32 s−2
1 −1
Therefore,
W (s)[1 − 12 s−1 + 32 s−2 ] = U (s)
and
Y (s) = ( 12 s−1 − s−2 )W (s)
1
2
−1
1
−
2
3
2
Figure 1.13: Simulation diagram for Example 1.7 in control canonical form.
After we assign a state variable to the output of each integrator from right to
left we get,
ẋ1 = x2
3 1
ẋ2 = − x1 + x2 + u
2 2
1
y = −x1 + x2
2
ẋ1 = A1 x1 + B1 u
y1 = C1 x1 + D1 u
ẋ2 = A2 x2 + B2 y1
y = A2 x2 + D2 y1
Then
ẋ = Ax + Bu, y = Cx + Du
where
" # " #
A1 0 B1
A= , B=
B2 C1 A2 B2 D1
C = D 2 C1 C2 , D = D2 D1
ẋ1 = A1 x1 + B1 e = A1 x1 + B1 (r − C2 x2 )
ẋ2 = A2 x2 + B2 u = A2 x2 + B2 (C1 x1 + D1 (r − C2 x2 ))
y = C2 x 2
18 CHAPTER 1. LINEAR SYSTEMS
Taking
x1
x=
x2
we get
ẋ = Ax + Br, y = Cx
where
" # " #
A1 −B1 C2 B1
A= , B=
B2 C1 A2 − B2 D1 C2 B2 D1
C= 0 C2
We wish to solve this equation for X(s); to do this we reaarange the last equation
and the state vector x(t) is the inverse Laplace transform of this equation.
Therefore,
Z t
At
x(t) = e x(0) + eA(t−τ ) Bu(τ ) dτ (1.18)
0
The exponential matrix eAt is called the state transition matrix Φ(t) and is
defined as
Φ(t) = L−1 (sI − A)−1 = eAt
and
Φ(s) = (sI − A)−1
The exponential matrix eAt represents the following power series of the matrix
At, and
1 1
Φ(t) = eAt = I + At + A2 t2 + A3 t3 + · · · (1.19)
2! 3!
Equation (1.18) can be written as
Z t
x(t) = Φ(t)x(0) + Φ(t − τ )Bu(τ ) dτ (1.20)
0
In Equation (1.20) the first term represents the response to a set of initial
conditions (zero-input response), whilst the integral term represents the reponse
to a forcing function u(t) (zero-state response). Similarly, the output equation
is given by
Z t
y(t) = CΦ(t)x(0) + CΦ(t − τ )Bu(τ ) dτ + Du(t) (1.21)
0
Use the infinite series in (1.19) to evaluate the transition matrix Φ(t) if Example 1.9
0 1
A=
0 0
Solution This is a good method only if A has a lot of zeros, since this
guarantees a quick convergence of the infinite series. Clearly,
2 0 0
A =
0 0
20 CHAPTER 1. LINEAR SYSTEMS
and we stop here, since A2 = 0 and any higher powers are zero. Therefore,
At 1 t
e = I + At =
0 1
The most common way of evaluating the transition matrix Φ(t) is with the use
of Laplace, as the next Example demonstrates.
Example 1.10 Use the Laplace transform to find the transition matrix if A is the same as
in Example 1.9.
det(sI − A) = s2
(b) To find the state transition matrix, we first calculate the matrix (sI − A),
1 0 −3 1 s + 3 −1
sI − A = s − =
0 1 −2 0 2 s
det(sI − A) = s2 + 3s + 2 = (s + 1)(s + 2)
(c) If a unit step is applied as an input. Then U (s) = 1/s, and the second term
in (1.17) becomes
s 1
(s + 1)(s + 2) (s + 1)(s + 2) 0 1
(sI − A)−1 BU (s) =
−2 s+3 1 s
(s + 1)(s + 2) (s + 1)(s + 2)
1 1 −1 1
2
+ + 2
s(s + 1)(s + 2) s
s+1 s+2
= =
s+3 3 −2 1
2
s(s + 1)(s + 2) + + 2
s s+1 s+2
The inverse Laplace transform of this term is
1 1
− e−t + e−2t
2 2
L−1 ((sI − A)−1 BU (s)) =
3 1
− 2e−t + e−2t
2 2
22 CHAPTER 1. LINEAR SYSTEMS
(1,1) element = [−e−(t2 −t1 ) + 2e−2(t2 −t1 ) ][−e−(t1 −t0 ) + 2e−2(t1 −t0 ) ]
+ [e−(t2 −t1 ) − e−2(t2 −t1 ) ][−2e−(t1 −t0 ) + 2e−2(t1 −t0 ) ]
= [e−(t2 −t0 ) − 2e−(t2 +t1 −2t0 ) − 2e−(2t2 −t1 −t0 ) + 4e−2(t2 −t0 ) ]
+ [−2e−(t2 −t0 ) + 2e−(t2 +t1 −2t0 ) + 2e−(2t2 −t1 −t0 ) − 2e−2(t2 −t0 ) ]
which is the (1,1) element of Φ(t2 − t0 ). The other three elements of the
product matrix can be verified in a like manner.
The second property is based on time invariance. It implies that a state-
transition process can be divided into a number of sequential transitions.
Figure 1.17 illustrates that the transitionn from t = t0 to t = t2 is equal
to the transition from t0 to t1 , and then from t1 to t2 .
Thus
Φ(−t) = Φ−1 (t) = e−At
1.7.1 Eigenvalues
The roots of the characteristic equation are often referred to as the eigenvalues
of the matrix A.
|sI − A| = s2 − 1
1.7.2 Eigenvectors
Any nonzero vector pi which satisfies the matrix equation
Consider that a state equation has the matrix A given as in Example 1.12. Example 1.13
Find the eigenvectors.
Thus, p21 = 0, and p11 is arbitrary which in this case can be set equal to 1.
Similarly, for λ = −1, (1.25) becomes
−2 1 p12 0
=
0 0 p22 0
26 CHAPTER 1. LINEAR SYSTEMS
which leads to
−2p12 + p22 = 0
The last equation has two unkowns, which means that one can be set arbitrarily.
Let p12 = 1, then p22 = 2. The eigenvectors are
1 1
p1 = p2 =
0 2
−3p11 (1 − j) − 3p21 = 0
6p11 + 3p21 (1 + j) = 0
or
p21 = −p11 (1 − j)
Thus if we choose p11 = 1,
1
p1 =
−1 + j
To find the other eigenvector we just conjugate the one already found, p1 . Thus
1
p21 =
−1 − j
−4p11 + 8p21 = 0
−2p11 + 4p21 = 0
p11 = 2p21
For the generalized eigenvector that is associated with the second eigenvalue,
we use a variation of the equation we used to find the eigenvector. That is, we
write
λ−2 8 p12 2
=−
−2 λ + 6 λ=−2 p22 1
| {z }
p2
−4p12 + 8p22 = −2
−2p12 + 4p22 = −1
which is simplified to
p1 B AB A2 B · · · An−1 B = 0
0 0 ··· 1
| {z }
=C
Hence,
1 C −1
p1 = 0 0 0 ···
Having found p1 we can now go back and construct all the rows of P−1 . Note
that we are only interested in the last row of C −1 to define p1 .
Therefore,
0.3333 0 −0.3333
−1
P = 0 0.3333 0
0 0.3333 1
Hence, the system can be transformed into the control canonical form,
0.3333 0 −0.3333 1 2 1 3 −1 1
Av = P−1 AP = 0 0.3333 0 0 1 3 0 3 0
0 0.3333 1 1 1 1 0 −1 1
and
0.3333 0 −0.3333 1
Bv = P−1 B = 0 0.3333 0 0
0 0.3333 1 1
1.8. SIMILARITY TRANSFORMATION 33
which could have been determined once the coefficients of the characteristic
equation are known; however the exercise is to show how the control canonical
transformation matrix P is obtained.
P−1 AP = Av =⇒ AP = PAv
and
CP = Cv
Let p1 , p2 , · · · , pn denote the columns of P. Then, AP = PAv is given by
−an−1 1 0 · · · 0
..
.
0 1 ··· 0
p1 p2 p3 · · · pn .. .. . . .. = Ap1 Ap2 Ap3 · · · Apn
−a2
. . . .
−a1 0 0 ··· 1
−a0 0 0 ··· 0
Therefore,
p1 = Ap2 = An−1 pn
..
.
pn−3 = Apn−2 = A3 pn
pn−2 = Apn−1 = A2 pn
pn−1 = Apn
Also, Cv = CP yields
1 0 ··· 0 = Cp1 Cp2 ··· Cpn
34 CHAPTER 1. LINEAR SYSTEMS
which implies
Cp1 = CAn−1 pn = 1
..
.
Cpn−2 = CA2 pn = 0
Cpn−1 = CApn = 0
Cpn = 0
Hence,
0
0
pn = O−1 0
..
.
1
Having found pn we can now go back and construct all the columns of P. Note
that we are only interested in the last column of O−1 to define pn .
We are only interested in the last column of O−1 to define p3 , in this case
0.3333
p3 = −0.3333
0.1667
Therefore,
0.3333 −0.1667 0.3333
P = 0.6667 0.1667 −0.3333
0.1667 0.1667 0.1667
Hence, the system can be transformed into the observer canonical form,
1 1 0 1 2 1 0.3333 −0.1667 0.3333
Av = P−1 AP = −2 0 4 0 1 3 0.6667 0.1667 −0.3333
1 −1 2 1 1 1 0.1667 0.1667 0.1667
and
0.3333 −0.1667 0.3333
Cv = CP = 1 1 0 0.6667 0.1667 −0.3333
0.1667 0.1667 0.1667
Thus, the observer canonical form model is given by
3 1 0 1
ẋ = 1 0 1 v + 2 u
3 0 0 3
y= 1 0 0 x
which could have been determined once the coefficients of the characteristic
equation are known; however the exercise is to show how the observer canonical
transformation matrix P is obtained.
36 CHAPTER 1. LINEAR SYSTEMS
Chapter 2
Controllability and Observability
37
38 CHAPTER 2. CONTROLLABILITY AND OBSERVABILITY
and so, if we use the initial condition x(0) = 0, and the input u(t) is the unit
step function we get
Z t "1 # " #
e(t−τ ) + e−(t−τ ) 1
e(t−τ ) − e−(t−τ )
2 2 0
x(t) = dτ
e(t−τ ) − e−(t−τ )
1 1 −(t−τ )
(t−τ )
0 2 2 e +e 1
" 1 #
t −t
2 (e + e ) − 1
= 1
2 (et + e−t )
The output is
y(t) = e−t − 1
Note that the output is behaving quite nicely. However, the states are all blow-
ing up to ∞ as t → ∞. This bad behavior is present in the state equation,
however, when we compute the output, this bad behavior gets killed by the out-
put matrix C. We say this system is unobservable, the concept of observabilty
will be discussed in details later in this chapter.
and so, if we use the initial condition x(0) = 0, and the input u(t) is the unit
step function we get
Z t" #" #
e(t−τ ) 0 0
x(t) = 1 (t−τ ) −(t−τ )
−(t−τ ) dτ
0 2 e −e e 1
" #
0
=
1 − e−t
The output is
y(t) = 1 − e−t
Everything looks okay, the output is behaving nicely, and the states are not
blowing up to ∞. Let’s change the initial condition to x(0) = (1, 0). We then
compute " #
et
x(t) =
1 + 12 (et − 3e−t )
and
1
y(t) = 1 + (et − 3e−t )
2
which we plot in Figure 2.2.
Figure 2.2: Output response of the system to a step input and non-zero initial
conditions.
Note that the system is blowing up in both state and output. It is not hard to
see what is happening here, we do not have the ability to access the unstable
dynamics of the system with our input. We say this system is uncontrollable.
A theory that we discuss in details next.
2.2 Controllability
Controllability is a property of the coupling between the input and the state,
and thus involves the matrices A and B.
to find some input function u(t), that when applied to the system will transfer
the initial state x(t0 ) to the origin at some finite time t1 , i.e., x(t1 ) = 0.
Some authors define another kind of controllability involving the output y(t).
The definition given above is referred to as state controllability. It is the most
common definition, and is the only type used in this course, so the adjective
”state” is omitted. If a system is not completely controllable, then for some
initial states no input exists which can drive the system to the zero state. A
trivial example of an uncontrollable system arises when the matrix B is zero,
because then the input is disconnected from the state.
hence
.. ..
0 −1 . −6 7 .
2
.. ..
C= B AB A B = 2
−3 . 12 −10 . A2 B
.. ..
4 −5 . 46 −55 .
2.3. OBSERVABILITY 41
Since the first three columns are linearly independent we can conclude that
rank C = 3. Hence there is no need to compute A2 B since it is well known
from linear algebra that the row rank of the given matrix is equal to its column
rank. Thus, rank C = 3 = n implies that the system under consideration
is controllable. Alternatively since C is nonsquare, we could have formed the
0 0
matrix CC , which is n × n; then if CC is nonsingular, C has rank n.
There are several alternate methods for testing controllability, and some of
these may be more convenient to apply than the condition in (2.1).
2.3 Observability
Observability is a property of the coupling between the state and the output,
and thus involves the matrices A and C.
is of rank n (that is, the matrix is non-singular, i.e. the determinant is non-
zero). Since only the matrices A and C are involved, we sometimes say the pair
(A, C) is observable.
where
−2 0
CA = 1 −1 = −5 5
3 −5
hence
C 1 −1
O= =
CA −5 5
Clearly the matrix is singular since it has a zero determinant. Also the row
vectors are linearly dependent since the second row is -5 times the first row and
therefore the system is unobservable.
Just as with controllability, there are several alternate methods for testing ob-
servability.
For a system in Jordan canonical form, the pair (A,C) is completely observable
if all the elements in the column of C that corresponds to the first row of the
Jordan block are not all zeros.
Note that G(s) is defined by a ratio of two ploynomials containing the cor-
responding system poles and zeros. The following controllability-observability
theorem is given without proof.
Consider a linear system represented by the the following transfer function Example 2.8
44 CHAPTER 2. CONTROLLABILITY AND OBSERVABILITY
(s + 3) s+3
G(s) = = 3
(s + 1)(s + 2)(s + 3) s + 6s2 + 11s + 6
The above theorem indicates that any state model for this system is either
uncontrollable or/and unobservable. To get the complete answer we have to go
to a state space form and examine the controllability and observability matrices.
One of the many possible state models of G(s) is as follows
0 1 0 0
ẋ = 0 0 1 x + 0 u
−6 −11 −6 1
y= 3 1 0 x
It is easy to show that the controllability and observability matrices are given
by
0 0 1 3 1 0
C = 0 1 −6 O= 0 3 1
1 −6 25 −6 −11 −3
Since
det C = 1 6= 0 =⇒ rank C = 3 = n
and
det O = 0 6= 0 =⇒ rank O < 3 = n
this system is controllable, but unobservable.
Example 2.9 For the circuit shown in Figure 2.3 , formulate a state variable description using
vc and iL as the state variables, with source voltage vs as the input and vo as
the output. Then determine the conditions on the resistor that would make the
system uncontrollable and unobservable.
iR
vo
which is one of the necessary state equations. Furthermore, for the capacitor
voltage,
dvc (t) 1
= ic (t)
dt C
1 vc (t)
= iL (t) + iR (t) −
C R
1 vs (t) − vc (t) vc (t)
= iL (t) + −
C R R
iL (t) 2vc (t) vs (t)
= − +
C RC RC
Therefore, the state equations are:
" # " 2 1
#" # " 1
#
v̇c (t) − RC C vc (t) RC
= + vs (t)
i̇L (t) − L1 0 iL (t) 1
L
vc (t)
vx (t) = −1 0 + vs (t)
iL (t)
Testing controllability
1 2 1
− +
RC R2 C 2 LC
C= B AB =
1 1
−
L RLC
The nonsingularity of this matrix can be checked by determining the determi-
nant
1 2 1
− 2 2+
RC R C LC 1 1
= 2 − 2
1 1 R LC 2 L C
−
L RLC
Clearly the condition under which the determinant is zero is
r
L
R=
C
Similarly, the observability matrix is:
−1 0
O= 2 1
−
RC C
which obviously is always nonsingular. Hence,q the system is always observable,
L
but becomes uncontrollable whenever R = C .
If we were to calculate the transfer function between the output vx (t) and
the input vs (t), (using basic circuit analysis), we obtain the following transfer
function:
1
s s+
vx RC
=
vs 2
2 1
s + s+
RC LC
46 CHAPTER 2. CONTROLLABILITY AND OBSERVABILITY
q
L
If R = C then the roots of the characteristic equation are given by
1
s1,2 = −
RC
1
giving a system with repeated roots at s = − RC . Thus, in pole-zero form, we
have
1
s s+
vx RC s
= =
vs 1 1 1
s+ s+ s+
RC RC RC
which is now a first order system. The energy storage elements, in conjunction
with this particular resistance value, are interacting in such a way that their
effects combine, giving an equivalent first-order system. In this case, the time
constants due to these two elements are the same, making them equivalent to a
single element.
Av = P −1 AP Bv = P −1 B
Cv = Bv Av Bv A2v Bv · · ·
= P −1 B P −1 AP P −1 B P −1 AP P −1 AP P −1 B · · ·
= P −1 B P −1 AB P −1 A2 B · · ·
= P −1 B P −1 AB · · · P −1 An−1 B
= P −1 B AB · · · An−1 B
= P −1 C
Stability is the most crucial issue in designing any control system. One of the
most common control problems is the design of a closed loop system such that
its output follows its input as closely as possible. If the system is unstable such
behavior is not guaranteed. Unstable systems have at least one of the state
variables blowing up to infinity as time increases. This usually cause the system
to suffer serious damage such as burn out, break down or it may even explode.
Therefore, for such reasons our primary goal is to guarantee stability. As soon
as stability is achieved one seeks to satisfy other design requirements, such as
speed of response, settling time, steady state error, etc.
3.1 Introduction
To help make the later mathematical treatment of stability more intuitive let
us begin with a general discussion of stability concepts and equilibrium points.
Consider the ball which is free to roll on the surface shown in Figure 3.1. The
ball could be made to rest at points A, E, F , and G and anywhere between
points B and D, such as at C. Each of these points is an equilibrium point of
the system.
In state space, an equilibrium point for a sytem is a point at which ẋ is zero
in the absence of all inputs and disruptive disturbances. Thus if the system is
placed in that state, it will remain there.
47
48 CHAPTER 3. STABILITY
A small perturbation away from points A or F will cause the ball to diverge
from these points. This behavior justifies labeling points A and F as unstable
equilibrium points. After small perturbations away from E and G, the ball will
eventually return to rest at these points. Thus E and G are labeled as stable
equilibrium points. If the ball is displaced slightly from point C, it will normally
stay at the new position. Points like C are sometimes said to be neutrally stable.
So far we assumed small perturbations, if the ball was displaced sufficiently
far from point G, it would not return to that point. We say the system is stable
locally. Stability therefore depends on the size of the original perturbation and
on the nature of any disturbances.
Stability deals with the following questions. If at time t0 the state is per-
turbed from its equilibrium point (such as the origin), does the state return to
that point, or remain close to it, or diverge from it? Whether an equilibrium
point is stable or not depends upon what is meant by remaining close. Such
a qualifying condition is the reason for the existence of a variety of stability
conditions.
ẋ = Ax + Bu x(0) = x0 6= 0
y = Cx + Du
The stability considered here refers to the zero-input case, i.e, the system has
zero input. The stability defined for u(t) = 0 is called internal stability and
sometimes referred to as zero-input stability. Clearly the solution of the state
equation is
x(t) = eAt x0
for any given value > 0 there exists a number δ > 0 such that if kx(0)k < δ,
then x(t) satisfies kx(t)k < for all t > 0.
where k(.)k stands for the Euclidean norm (also known as the 2-norm) of the
vector x(t), i.e.,
A simplified picture of the above definition is given in Figure 3.2. The stability
question here: if x(0) is near the origin, does x(t) remain near the origin? The
definition of stability is sometimes called the stability in the sense of Lyapunov.
If a system possesses this type of stability, then it is ensured that the state can
be kept within , in norm, of the origin by restricting the initial perturbation
to be less than δ, in norm. Note that δ ≤ .
Asymptotic Stability
The origin is said to be an asymptotically stable equilibrium point if:
Classical design techniques are based on either frequency response or the root
locus. Over the last decade new design techniques has been developed, which
are called modern control methods to differentiate them from classical methods.
In this chapter we present a modern control design method known as pole place-
ment, or pole assignment. This method is similar to the root-locus design, in
that poles in the closed-loop transfer function may be placed in desired loca-
tions. Achievement of suitable pole locations is one of the fundamental design
objectives as this will ensure satisfactory transient response. The placing of all
poles at desired locations requires that all state variables must be measured.
In many applications, all needed system variables may not be physically mea-
surable or because of cost. In these cases, those system signals that cannot be
measured must be estimated from the ones that are measured. The estimation
of system variables will be discussed later in the chapter.
The equations which describe the state feedback problem are (4.1), (4.2) and
the relation
u(t) = r(t) − Kx(t)
Combining gives
ẋ = [A − BK]x + Br
51
52 CHAPTER 4. MODERN CONTROL DESIGN
and
y = [C − DK]x + Dr
With this setup in mind the question is: What changes in overall system char-
acteristics can be achieved by the choice of K? Stability of the state feedback
system depends on the eigenvalues of (A − BK). Controllability depends on the
pair ([A − BK], B). Observability depends on the pair ([A − BK], [C − DK]).
Find the control law that places the closed-loop poles of the system so that they
are both at s = −2.
αc (s) = (s + 2)2
= s2 + 4s + 4 (4.9)
K2 = 4
1 + K1 = 4
therefore,
K1 = 3
K2 = 4
ẋ = Ax + Bu
(4.11)
y = Cx
4.4. STATE ESTIMATION 55
where A, B, and C are given and the input u(t) and output y(t) are available
to us. The state x, however, is not available to us. The problem is to estimate
x from u and y with the knowledge of A, B, and C. If we know A and B, we
can duplicate the original system as
and as shown in Figure 4.3. The duplication will be called an open-loop esti-
mator. In Figure 4.3, since the observer dynamics will never exactly equal the
system dynamics, this open-loop arrangement means that x and x̂ will gradually
diverge. Therefore, the open-loop estimator is, in general, not satisfactory. Now
we shall modify the estimator from the one in Figure 4.3 to the one in Figure
4.4, in which the output ŷ = Cx̂ is estimated and subtracted from the actual
output y of (4.11). The difference can be used, in a closed loop sense, to modify
the dynamics of the observer so that the output error (y − ŷ) is minimized.
The open-loop estimator in (4.12) is now modified as
Since y = Cx,
or
ė = (A − Ke C)e (4.18)
We see from this equation that the errors in the estimation of the states have
the same dynamics as the state estimator. This dynamic behaviour depends on
4.4. STATE ESTIMATION 57
|sI − A + Ke C| = 0 (4.20)
Note that this characteristic equation is the same as that of the error in (4.18).
As mentioned earlier, one method of designing state estimators is to make the
estimator five times faster than the closed-loop system. Hence we choose a
characteristic equation for the estimator, denoted by αe (s), that reflects the
desired speed of response:
αe (s) = (s + µ1 )(s + µ2 ) · · · (s + µn )
= sn + αn−1 sn−1 + · · · + α1 s + α0 = 0 (4.21)
The problem of observer design is essentially the same as the regulator pole
placement problem, and similar techniques may be used.
this is the same system used in Example 4.1. Compute the estimator gain matrix
that will place the estimator error poles at s = −10 (five times as fast as the
controller poles selected in example 4.1).
Solution We are asked to place the two estimator error poles at s = −10.
The corresponding characteristic equation is
We now derive the characteristic equation of the closed loop system of Figure
4.5. First the plant equations are
ẋ = Ax + Bu
(4.24)
y = Cx
4.5. CLOSED-LOOP SYSTEM CHARACTERISTICS 59
with the control law implemented using observed state variables u(t) = −Kx̂(t).
If the difference between the actual and observed state variables is
then
x̂(t) = x(t) − e(t) (4.25)
Then, from (4.24) and (4.25),
ẋ = Ax − BK(x − e)
(4.26)
= (A − BK)x + BKe
ė = (A − Ke C)e (4.27)
Equation (4.28) describes the closed-loop dynamics of the observed state feed-
back control system and because the matrix is block triangular the characteristic
equation is
Equation (4.29) shows that the desired closed-loop poles for the control system
are not changed by the introduction of the state observer. The 2n roots of the
closed-loop characteristic equations are then the n roots of the pole-placement
design plus the n roots of the estimator. Since the observer is normally designed
to have a more rapid response than the control system with full order observed
state feedback, the pole-placement roots will dominate.
The closed-loop state equations, with the states chosen as the system states
plus the estimates of those states, will now be derived. From (4.24) and since
the control law u = −Kx̂
ẋ = Ax − BKx̂ (4.30)
and from (4.13)
In Example 4.1 the gain matrix required to place the poles at s = −2 was
calculated to be
K= 3 4
and the state-estimator gain matrix was calculated in Example 4.2 to be
20
Ke =
99
x̂˙ = (A − Ke C − BK)x̂ + Ke y
u = −Kx̂
where y is the input and u is the output. Since these equations are in the
standard state-space equations form, we can calculate a transfer function with
input Y (s) and output U (s). Taking the Laplace transform of the controller-
estimator equations yields
˙
sX̂(s) = (A − Ke C − BK)X̂(s) + Ke Y(s)
U (s) = −KX̂(s)
and rearranging and solving for U (s), we obtain the transfer function
To illustrate the characteristic equation of (4.29), we consider the system of Example 4.4
Example 4.3. For this system, the characteristic equation is
We can also calculate the characteristic equation from (4.32), where the system
is represented as shown in Figure 4.6:
456s + 217 1
1 + Gec (s)Gp (s) = 1 + 2 =0
s + 24s + 183 s2 + 1
Comparing (4.37) with (4.38) and (4.39) with (4.40), we see that the equations
are equivalent if we make the following substitutions
x ← xe
A ← Aee
Bu ← Ae1 x1 + Be u
y ← ẋ1 − a11 x1 − b1 u
C ← A1e
Making these substitutions into the equation for the full-order estimator,
x̂˙ = (A − Ke C)x̂ + Bu + Ke y
where x1 has been replaced with y. The error dynamics are given by
Hence the characteristic equation of the estimator and of the errors of estimation
are given by
αe (s) = |sI − Aee + Ke A1e | = 0 (4.43)
We then choose Ke to satisfy this equation, where we have chosen αe (s) to give
the estimator certain desired dynamics.
4.6. REDUCED-ORDER STATE ESTIMATORS 63
Solution Comparing the above state equations with those of the partitioned
state matrices in (4.34) yields
a11 = 0 A1e = 1 b1 = 0
Ae1 = −1 Aee = 0 Be = 1
64 CHAPTER 4. MODERN CONTROL DESIGN
u = K1 [r − x1 ] − K2 x2 − · · · − Kn xn
Chapter 6
NON LINEAR SYSTEMS
6.1 Introduction
Many practical systems are sufficiently nonlinear so that the important features of their
performance may be completely overlooked if they are analyzed and designed through
linear techniques. The mathematical models of the nonlinear systems are represented by
nonlinear differential equations. Hence, there are no general methods for the analysis and
synthesis of nonlinear control systems. The fact that superposition principle does not
apply to nonlinear systems makes generalisation difficult and study of many nonlinear
systems has to be specific for typical situations.
6.2 Behaviour of Nonlinear Systems
The most important feature of nonlinear systems is that nonlinear systems do not obey the
principle of superposition. Due to this reason, in contrast to the linear case, the response
of nonlinear systems to a particular test signal is no guide to their behaviour to other
inputs. The nonlinear system response may be highly sensitive to input amplitude. For
example, a nonlinear system giving best response for a certain step input may exhibit
highly unsatisfactory behaviour when the input amplitude is changed. Hence, in a
nonlinear system, the stability is very much dependent on the input and also the initial
state.
Further, the nonlinear systems may exhibit limit cycles which are self-sustained
oscillations of fixed frequency and amplitude. Once the system trajectories converge to a
limit cycle, it will continue to remain in the closed trajectory in the state space identified
as limit cycles. In many systems the limit cycles are undesirable particularly when the
amplitude is not small and result in some unwanted phenomena.
Figure 6.1
A nonlinear system, when excited by a sinusoidal input, may generate several harmonics
in addition to the fundamental corresponding to the input frequency. The amplitude of
the fundamental is usually the largest, but the harmonics may be of significant amplitude
in many situations.
Another peculiar characteristic exhibited by nonlinear systems is called jump
phenomenon. For example, let us consider the frequency response curve of spring-mass-
damper system. The frequency responses of the system with a linear spring, hard spring
and soft spring are as shown in Fig. 6.2(a), Fig. 6.2(b) and Fig. 6.2(c) respectively. For a
hard spring, as the input frequency is gradually increased from zero, the measured
1
response follows the curve through the A, B and C, but at C an increment in frequency
results in discontinuous jump down to the point D, after which with further increase in
frequency, the response curve follows through DE. If the frequency is now decreased, the
response follows the curve EDF with a jump up to B from the point F and then the
response curve moves towards A. This phenomenon which is peculiar to nonlinear
systems is known as jump resonance. For a soft spring, jump phenomenon will happen as
shown in fig. 6.2(c).
2
Liapunov’s Method for Stability: The analytical solution of a nonlinear system is rarely
possible. If a numerical solution is attempted, the question of stability behaviour can not
be fully answered as solutions to an infinite set of initial conditions are needed. The
Russian mathematician A.M. Liapunov introduced and formalised a method which allows
one to conclude about the stability without solving the system equations.
6.4 Classification of Nonlinearities
The nonlinearities are classified into i) Inherent nonlinearities and ii) Intentional
nonlinearities.
The nonlinearities which are present in the components used in system due to the inherent
imperfections or properties of the system are known as inherent nonlinearities. Examples
are saturation in magnetic circuits, dead zone, back lash in gears etc. However in some
cases introduction of nonlinearity may improve the performance of the system, make the
system more economical consuming less space and more reliable than the linear system
designed to achieve the same objective. Such nonlinearities introduced intentionally to
improve the system performance are known as intentional nonlinearities. Examples are
different types of relays which are very frequently used to perform various tasks. But it
should be noted that the improvement in system performance due to nonlinearity is
possible only under specific operating conditions. For other conditions, generally
nonlinearity degrades the performance of the system.
6.5 Common Physical Nonlinearities: The common examples of physical
nonlinearities are saturation, dead zone, coulomb friction, stiction, backlash, different
types of springs, different types of relays etc.
Saturation: This is the most common of all nonlinearities. All practical systems, when
driven by sufficiently large signals, exhibit the phenomenon of saturation due to
limitations of physical capabilities of their components. Saturation is a common
phenomenon in magnetic circuits and amplifiers.
Dead zone: Some systems do not respond to very small input signals. For a particular
range of input, the output is zero. This is called dead zone existing in a system. The
input-output curve is shown in figure.
Figure 6.3
Backlash: Another important nonlinearity commonly occurring in physical systems is
hysteresis in mechanical transmission such as gear trains and linkages. This nonlinearity
is somewhat different from magnetic hysteresis and is commonly referred to as backlash.
In servo systems, the gear backlash may cause sustained oscillations or chattering
phenomenon and the system may even turn unstable for large backlash.
3
Figure 6.4
Relay: A relay is a nonlinear power amplifier which can provide large power
amplification inexpensively and is therefore deliberately introduced in control systems. A
relay controlled system can be switched abruptly between several discrete states which
are usually off, full forward and full reverse. Relay controlled systems find wide
applications in the control field. The characteristic of an ideal relay is as shown in figure.
In practice a relay has a definite amount of dead zone as shown. This dead zone is caused
by the facts that relay coil requires a finite amount of current to actuate the relay. Further,
since a larger coil current is needed to close the relay than the current at which the relay
drops out, the characteristic always exhibits hysteresis.
Multivariable Nonlinearity: Some nonlinearities such as the torque-speed characteristics
of a servomotor, transistor characteristics etc., are functions of more than one variable.
Such nonlinearities are called multivariable nonlinearities.
4
Chapter 7
Phase Plane Analysis
7.1 Introduction
Phase plane analysis is one of the earliest techniques developed for the study of second
order nonlinear system. It may be noted that in the state space formulation, the state
variables chosen are usually the output and its derivatives. The phase plane is thus a state
plane where the two state variables x1 and x2 are analysed which may be the output
variable y and its derivative . The method was first introduced by Poincare, a French
mathematician. The method is used for obtaining graphically a solution of the following
two simultaneous equations of an autonomous system.
The plot of the state trajectories or phase trajectories of above said equation thus gives an
idea of the solution of the state as time t evolves without explicitly solving for the state.
The phase plane analysis is particularly suited to second order nonlinear systems with no
input or constant inputs. It can be extended to cover other inputs as well such as ramp
inputs, pulse inputs and impulse inputs.
7.2 Phase Portraits
From the fundamental theorem of uniqueness of solutions of the state equations or
differential equations, it can be seen that the solution of the state equation starting from an
initial state in the state space is unique. This will be true if and are
analytic. For such a system, consider the points in the state space at which the derivatives
of all the state variables are zero. These points are called singular points. These are in
fact equilibrium points of the system. If the system is placed at such a point, it will
continue to lie there if left undisturbed. A family of phase trajectories starting from
different initial states is called a phase portrait. As time t increases, the phase portrait
graphically shows how the system moves in the entire state plane from the initial states in
the different regions. Since the solutions from each of the initial conditions are unique,
the phase trajectories do not cross one another. If the system has nonlinear elements
which are piece-wise linear, the complete state space can be divided into different regions
and phase plane trajectories constructed for each of the regions separately.
7.3 Phase Plane Method
Consider the homogenous second order system with differential equations
5
This equation may be written in the standard form
where ζ and ωn are the damping factor and undamped natural frequency of the system.
Defining the state variables as x = x1 and = x2, we get the state equation in the state
variable form as
These equations may then be solved for phase variables x1 and x2. The time response
plots of x1, x2 for various values of damping with initial conditions can be plotted. When
the differential equations describing the dynamics of the system are nonlinear, it is in
general not possible to obtain a closed form solution of x1, x2. For example, if the spring
force is nonlinear say (k1x + k2x3) the state equation takes the form
Dividing the above equations we get the slope of the state trajectory in the x1-x2 plane as
6
For a constant value of this slope say M, we get a set of equations
which is a straight line in the x1-x2 plane. We can draw different lines in the x1-x2 plane
for different values of M; called isoclines. If draw sufficiently large number of isoclines
to cover the complete state space as shown, we can see how the state trajectories are
moving in the state plane. Different trajectories can be drawn from different initial
conditions. A large number of such trajectories together form a phase portrait. A few
typical trajectories are shown in figure given below.
Figure 7.1
The Procedure for construction of the phase trajectories can be summarised as
below:
1. For the given nonlinear differential equation, define the state variables as x1 and x2
and obtain the state equations as
7
3. For typical values of M, draw a large number of isoclines in x1-x2 plane
4. On each of the isoclines, draw small line segments with a slope M.
5. From an initial condition point, draw a trajectory following the line segments with
slopes M on each of the isoclines.
Example 7.1: For the system having the transfer function and a relay with dead
zone as nonlinear element, draw the phase trajectory originating from the initial condition
(3,0).
Since the input is zero, e = r – c = -c and the differential equation in terms of error will be
We can identify three regions in the state plane depending on the values of e = x1.
Region 1:
Here u = 1, so that the isoclines are given by or
For different values of M, these are a number of straight lines parallel to the x-axis.
M 0 1/3 1/2 2 3 -4 -3 -2 -1
Region 2:
8
Here u = 0, so that the isoclines are given by or M = -1, which are parallel lines
having constant slope of -1. Trajectories are lines of constant slope -1.
Region 3:
Here u = -1 so that on substitution we get or
These are also lines parallel to x – axis at a constant distance decided by the value of the
slope of the trajectory M.
M 0 1/3 1 2 3 -5 -4 -3 -2
Isoclines drawn for all three regions are as shown in figure. It is seen that trajectories
from either region 1 or 2 approach the boundary between the regions and approach the
origin along a line at -1 slope. The state can settle at any value of x1 between -1 and +1 as
this being a dead zone and no further movement to the origin along the x 1-axis will be
possible. This will result in a steady state error, the maximum value of which is equal to
half the dead zone. However, the presence of dead zone can reduce the oscillations and
result in a faster response. In order that the steady state error in the output is reduced, it is
better to have as small a dead zone as possible.
Example 7.2: For the system having a closed loop transfer function , plot the
phase trajectory originating from the initial condition (-1,0).
The differential equation for the system is given by
Let
Then,
9
The slope of the trajectory is given by
When x2 = 0,
When M = 2,
When M = 4,
When M = 8,
When M = -2,
When M = -4,
When M = -6,
When M = -10,
10
Figure 7.3
The isoclines are drawn as shown in figure. The starting point of the trajectory is marked
at (-1,0). At (-1,0), the slope is , ie., the trajectory will start at an angle 90o. From the
next isoclines, the average slope is (8+4)/2 = 6, ie., a line segment with a slope 6 is drawn
(at an angle 80.5o).The same procedure is repeated and the complete phase trajectory will
be obtained as shown in figure.
7.3.2 Delta Method:
The delta method of constructing phase trajectories is applied to systems of the form
Where may be linear or nonlinear and may even be time varying but must be
continuous and single valued.
With the help of this method, phase trajectory for any system with step or ramp or any
time varying input can be conveniently drawn. The method results in considerable time
saving when a single or a few phase trajectories are required rather than a complete phase
portrait.
While applying the delta method, the above equation is first converted to the form
In general, depends upon the variables x, and t, but for short intervals the
changes in these variables are negligible. Thus over a short interval, we have
, where δ is a constant.
Let us choose the state variables as x1 = x; , then
11
Therefore, the slope equation over a short interval is given by
With δ known at any point P on the trajectory and assumed constant for a short interval,
we can draw a short segment of the trajectory by using the trajectory slope dx 2/dx1 given
in the above equation. A simple geometrical construction given below can be used for
this purpose.
1. From the initial point, calculate the value of δ.
2. Draw a short arc segment through the initial point with (-δ, 0) as centre, thereby
determining a new point on the trajectory.
3. Repeat the process at the new point and continue.
Example 7.3: For the system described by the equation given below, construct the
trajectory starting at the initial point (1, 0) using delta method.
Let then
So that
At initial point δ is calculated as δ = 0+1-1 = 0. Therefore, the initial arc is centred at
point (0, 0). The mean value of the coordinates of the two ends of the arc is used to
calculate the next value of δ and the procedure is continued. By constructing the small
arcs in this way the complete trajectory will be obtained as shown in figure.
Figure 7.4
12
7.4 Limit Cycles:
Limit cycles have a distinct geometric configuration in the phase plane portrait, namely,
that of an isolated closed path in the phase plane. A given system may have more than
one limit cycle. A limit cycle represents a steady state oscillation, to which or from
which all trajectories nearby will converge or diverge. In a nonlinear system, limit cycles
describes the amplitude and period of a self sustained oscillation. It should be pointed out
that not all closed curves in the phase plane are limit cycles. A phase-plane portrait of a
conservative system, in which there is no damping to dissipate energy, is a continuous
family of closed curves. Closed curves of this kind are not limit cycles because none of
these curves are isolated from one another. Such trajectories always occur as a
continuous family, so that there are closed curves in any neighbourhood of any particular
closed curve. On the other hand, limit cycles are periodic motions exhibited only by
nonlinear non conservative systems.
As an example, let us consider the well known Vander Pol’s differential equation
The figure shows the phase trajectories of the system for μ > 0 and μ < 0. In case of μ > 0
we observe that for large values of x1(0), the system response is damped and the
amplitude of x1(t) decreases till the system state enters the limit cycle as shown by the
outer trajectory. On the other hand, if initially x1(0) is small, the damping is negative, and
hence the amplitude of x1(t) increases till the system state enters the limit cycle as shown
by the inner trajectory. When μ < 0, the trajectories moves in the opposite directions as
shown in figure.
Figure 7.5
A limit cycle is called stable if trajectories near the limit cycle, originating from outside
or inside, converge to that limit cycle. In this case, the system exhibits a sustained
13
oscillation with constant amplitude. This is shown in figure (i). The inside of the limit
cycle is an unstable region in the sense that trajectories diverge to the limit cycle, and the
outside is a stable region in the sense that trajectories converge to the limit cycle.
A limit cycle is called an unstable one if trajectories near it diverge from this limit cycle.
In this case, an unstable region surrounds a stable region. If a trajectory starts within the
stable region, it converges to a singular point within the limit cycle. If a trajectory starts
in the unstable region, it diverges with time to infinity as shown in figure (ii). The inside
of an unstable limit cycle is the stable region, and the outside the unstable region.
7.5 Analysis and Classification of Singular Points:
Singular points are points in the state plane where . At these points the slope
of the trajectory dx2/dx1 is indeterminate. These points can also be the equilibrium points
of the nonlinear system depending whether the state trajectories can reach these or not.
Consider a linearised second order system represented by
Using linear transformation x = Mz, the equation can be transformed to canonical form
Where, λ1 and λ2 are the roots of the characteristic equation of the system.
The transformation given simply transforms the coordinate axes from x1-x2 plane to z1-z2
plane having the same origin, but does not affect the nature of the roots of the
characteristic equation. The phase trajectories obtained by using this transformed state
equation still carry the same information except that the trajectories may be skewed or
stretched along the coordinate axes. In general, the new coordinate axes will not be
rectangular.
The solution to the state equation being given by
Based on the nature of these eigen values and the trajectory in z 1 – z2 plane, the singular
points are classified as follows.
Nodal Point:
Consider eigen values are real, distinct and negative as shown in figure (a). For this case
the equation of the phase trajectory follows as
14
Where, k1 = (λ2/λ1) ≥ 0 so that the trajectories
become a set of parabola as shown in figure (b) and
the equilibrium point is called a node. In the
original system of coordinates, these trajectories
appear to be skewed as shown in figure (c).
If the eigen values are both positive, the nature of
the trajectories does not change, except that the
trajectories diverge out from the equilibrium point
as both z1(t) and z2(t) are increasing exponentially.
The phase trajectories in the x1-x2 plane are as
shown in figure (d). This type of singularity is
identified as a node, but it is an unstable node as the
trajectories diverge from the equilibrium point.
Saddle Point:
Consider now a system with eigen values are real,
distinct one positive and one negative. Here, one of
the states corresponding to the negative eigen value
converges and the one corresponding to positive eigen value diverges so that the
trajectories are given by z2 = c(z1)-k or (z1)kz2 = c which is an equation to a rectangular
hyperbola for positive values of k. The location of the eigen values, the phase portrait in
z1 – z2 plane and in the x1 – x2 plane are as shown in figure. The equilibrium point
around which the trajectories are of this type is called a saddle point.
Figure 7.7
Focus Point:
Consider a system with complex conjugate eigen values. The canonical form of the state
equation can be written as
15
The slope
We get,
This is an equation for a spiral in the polar coordinates. A plot of this equation for
negative values of real part is a family of equiangular spirals. The origin which is a
singular point in this case is called a stable focus. When the eigen values are complex
conjugate with positive real parts, the phase portrait consists of expanding spirals as
shown in figure and the singular point is an unstable focus. When transformed into the
x1-x2 plane, the phase portrait in the above two cases is essentially spiralling in nature,
except that the spirals are now somewhat twisted in shape.
Figure 7.8
Centre or Vortex Point:
Consider now the case of complex conjugate eigen values with zero real parts.
ie., λ1, λ2 = ±jω
16
Integrating the above equation, we get which is an equation to a circle of
radius R. The radius R can be evaluated from the initial conditions. The trajectories are
thus concentric circles in y1-y2 plane and ellipses in the x1-x2 plane as shown in figure.
Such a singular points, around which the state trajectories are concentric circles or
ellipses, are called a centre or vortex.
Figure 7.9
Example 7.4:
Determine the kind of singularity for the following differential equation.
i.e, or λ2 + 3λ + 2 = 0
λ1, λ2 = -2, -1. Since the roots are real and negative, the type of singular point is stable
node.
Example 7.5: For the nonlinear system having differential equation:
find all singularities.
17
At singular points,
The eigen values are complex with positive real part. The singular point is an unstable
focus.
Linearization around (-1,0)
Therefore λ2 – 0.1λ - 1 = 0
λ1, λ2 = 1.05 and -0.98. Since the roots are real and one negative and another positive, the
singular point is a saddle point.
Example 7.6:
Determine the kind of singularity for the following differential equation.
18
At singular points,
So that the singular points
The eigen values are complex with negative real parts. The singular point is a stable
focus.
Linearization around (-2,0)
Therefore λ2 + 0.5λ - 2 = 0
λ1, λ2 = 1.19 and -1.69. Since the roots are real and one negative and another positive, the
singular point is a saddle point.
19
Chapter 8
STABILITY ANALYSIS
8.1 Introduction:
For linear time invariant (LTI) systems, the concept of stability is simple and can be
formalised as per the following two notions:
a) A system is stable with zero input and arbitrary initial conditions if the resulting
trajectory tends towards the equilibrium state.
b) A system is stable if with bounded input, the system output is bounded.
In nonlinear systems, unfortunately, there is no definite correspondence between the two
notions. The linear autonomous systems have only one equilibrium state and their
behaviour about the equilibrium state completely determines the qualitative behaviour in
the entire state plane. In nonlinear systems, on the other hand, system behaviour for small
deviations about the equilibrium point may be different from that for large deviations.
Therefore, local stability does not imply stability in the overall state plane and the two
concepts should be considered separately. Secondly, in a nonlinear system with multiple
equilibrium states, the system trajectories may move away from one equilibrium point
and tend to other as time progresses. Thus it appears that in case of nonlinear systems,
there is no point in talking about system stability. More meaningful will be to talk about
the stability of an equilibrium point. Stability in the region close to the equilibrium point
or in the neighbourhood of equilibrium point is called stability in the small. For a larger
region around the equilibrium point, the stability may be referred to as stability in the
large. In the extreme case, we can talk about the stability of a trajectory starting from
anywhere in the complete state space, this being called global stability. A simple physical
illustration of different types of stability is shown in Fig. 8.1
1
Equilibrium State: In the system of equation , a state xe where f(xe,t) = 0 for
all ‘t’ is called an equilibrium state of the system. If the system is linear time invariant,
namely f(x,t) = Ax, then there exists only one equilibrium state if ‘A’ is non-singular and
there exist infinitely many equilibrium states if ‘A’ is singular. For nonlinear systems,
there may be one or more equilibrium states. Any isolated equilibrium state can be
shifted to the origin of the coordinates, or f(0,t) = 0, by a translation or coordinates.
8.2 Stability Definitions:
The Russian mathematician A.M. Liapunov has clearly defined the different types of
stability. These are discussed below.
Stability: An equilibrium state xe of the system is said to be stable if for each
real number ε > 0 there is a real number δ(ε,t0) > 0 such that implies
for all t ≥ t 0. The real number δ depends on ε and in general, also
depends on t0. If δ does not depend on t0, the equilibrium state is said to be uniformly
stable.
An equilibrium state xe of the system of equation is said to be stable in the
sense of Liapunov if, corresponding to each S(ε), there is an S(δ) such that trajectories
starting in S(δ) do not leave S(ε) as t increases indefinitely.
Asymptotic Stability: An equilibrium state xe of the system is said to be
asymptotically stable, if it is stable in the sense of Liapunov and every solution starting
within S(δ) converges, without leaving S(ε), to xe as ‘t’ increases indefinitely.
Asymptotic Stability in the Large: If asymptotic stability holds for all states from
which trajectories originate, the equilibrium state is said to be asymptotically stable in the
large. An equilibrium state xe of the system is said to be asymptotically
stable in the large, if it is stable and if every solution converges to xe as ‘t’ increases
indefinitely. Obviously a necessary condition for asymptotic stability in the large is that
there is only one equilibrium state in the whole state space.
The above said definitions are represented graphically in Fig. 8.2
Instability: An equilibrium state xe is said to be unstable, if for some real number ε > 0
and any real number δ > 0, no matter how small, there is always a state x0 in S(δ) such
that the trajectory starting at this state leaves S(ε).
2
8.3 Stability by the Method of Liapunov
Russian mathematician A.M. Liapunov has proposed a few theorems for the study of
stability of the system. The most popular among this is called the “Second Method of
Liapunov” or “Direct Method of Liapunov”. This method is very general in its
formulation and can be used to study of stability of linear or nonlinear systems. The
method is called ‘direct’ method as it does not involve the solution of the system
differential equations and stability information is available without solving the equations
which is definitely an advantage for nonlinear systems. The stability information
obtained by this method is precise and involved no approximation.
First Method of Liapunov: The first method of Liapunov, though rarely talked about, is
essentially a theorem stating the conditions under which system stability information can
be inferred by examining the simplified equations obtained through local linearization.
This theorem is applicable only to autonomous systems.
8.4 Sign Definiteness
Let V(x1, x2, x3, ……. Xn) be a scalar function of the state variables x1, x2, x3, …….., xn.
Then the following definitions are useful for the discussion of Liapunov’s second method.
8.4.1 Scalar Functions:
A scalar function V(x) is said to be positive definite in a region Ω if V(x) > 0 for all
nonzero states x in the region Ω and V(0) = 0.
A scalar function V(x) is said to be negative definite in a region Ω if V(x) < 0 for all
nonzero states x in the region Ω and V(0) = 0.
A scalar function V(x) is said to be positive semi-definite in a region Ω if it is positive for
all states in the region Ω and except at the origin and at certain other states, where it is
zero.
A scalar function V(x) is said to be negative semi-definite in a region Ω if it is negative
for all states in the region Ω and except at the origin and at certain other states, where it is
zero.
A scalar function V(x) is said to be indefinite if in the region Ω it assumes both positive
and negative values, no matter how small the region Ω is.
Examples:
3
i.e.,
A necessary and sufficient condition in order that the quadratic form xTAx, where A is an
nxn real symmetric matrix, be negative definite is that the determinant of A be positive if
n is even and negative if n is odd, and the successive principal minors of even order be
positive and the successive principal minors of odd order be negative.
i.e.,
A necessary and sufficient condition in order that the quadratic form xTAx, where A is an
nxn real symmetric matrix, be positive semi-definite is that the determinant of A be
singular and the successive principal minors of the determinant of A be nonnegative.
i.e.,
A necessary and sufficient condition in order that the quadratic form xTAx, where A is an
nxn real symmetric matrix, be negative semi-definite is that the determinant of A be
singular and all the principal minors of even order be nonnegative and those of odd orders
be non positive.
i.e.,
Example 8.1: Using Sylvester’s criteria, determine the sign definiteness of the following
quadratic forms
4
Example 8.2:
Example 8.3:
5
Fig. 8.3 Energy function and movement of states
Theorem 2: Suppose that a system is described by , where f(0,t) = 0 for all t ≥
0. If there exists a scalar function V(x,t) having continuous first partial derivatives and
satisfying the following conditions.
1. V(x,t) is positive definite
2.
3. does not vanish identically in t ≥ t0 for any t0 and any x0 ≠ 0,
where denotes the trajectory or solution starting from x0 at t0.
Then the equilibrium state at the origin of the system is uniformly asymptotically stable in
the large.
If however, there exists a positive definite scalar function V(x,t) such that is
identically zero, then the system can remain in a limit cycle. The equilibrium state at the
origin, in this case, is said to be stable in the sense of Liapunov.
Theorem 3: Suppose that a system is described by where f(0,t) = 0 for all t ≥
t0. If there exists a scalar function W(x,t) having continuous first partial derivatives and
satisfying the following conditions
1. W(x,t) is positive definite in some region about the origin.
2. is positive definite in the same region, then the equilibrium state at the
origin is unstable.
6
Example 8.4: Determine the stability of following system using Liapunov’s method.
Let us choose
Then
Example 8.5: Determine the stability of following system using Liapunov’s method.
Let us choose
Then
This is a negative semi definite function. If is to be vanish identically for t ≥ t0, then
x2 must be zero for all t ≥ t 0.
This means that vanishes identically only at the origin. Hence the equilibrium state
at the origin is asymptotically stable in the large.
Example 8.6: Determine the stability of following system using Liapunov’s method.
Let us choose
Then
This is an indefinite function.
Let us choose another
Then
This is negative semi definite function. If is to be vanish identically for t ≥ t0, then
x2 must be zero for all t ≥ t 0.
This means that vanishes identically only at the origin. Hence the equilibrium state
at the origin is asymptotically stable in the large.
Let us choose
Then
7
Therefore, for asymptotic stability we require that the above condition is satisfied. The
region of state space where this condition is not satisfied is possibly the region of
instability. Let us concentrate on the region of state space where this condition is
satisfied. The limiting condition for such a region is . The dividing
lines lie in the first and third quadrants and are rectangular hyperbolas as shown in
Figure. 8.4. In the second and fourth quadrants, the inequality is satisfied for all values of
x1 and x2. Figure 8.4 shows the region of stability and possible instability. Since the
choice of Liapunov function is not unique, it may be possible to choose another Liapunov
function for the system under consideration which yields a larger region of stability.
Conclusions:
1. Failure in finding a ‘V’ function to show stability or asymptotic stability or instability
of the equilibrium state under consideration can give no information on stability.
2. Although a particular V function may prove that the equilibrium state under
consideration is stable or asymptotically stable in the region Ω, which includes this
equilibrium state, it does not necessarily mean that the motions are unstable outside
the region Ω.
3. For a stable or asymptotically stable equilibrium state, a V function with the required
properties always exists.
8
Hence, for the asymptotic stability of the system of , it is sufficient that Q be
positive definite. Instead of first specifying a positive definite matrix P and examining
whether or not Q is positive definite, it is convenient to specify a positive definite matrix
Q first and then examine whether or not P determined from is also
positive definite. Note that P being positive definite is a necessary condition.
Note:
1. If does not vanish identically along any trajectory, then Q may be
chosen to be positive semi definite.
2. In determining whether or not there exists a positive definite Hermitian or real
symmetric matrix P, it is convenient to choose Q = I, where I is the identity matrix.
Then the elements of P are determined from and the matrix P is
tested for positive definiteness.
-2P12 = -1
P11 – P12 – P22 = 0
2P12 – 2P22 = -1
1.5 > 0 and det(P) > 0. Therefore, P is positive define. Hence, the equilibrium state at
origin is asymptotically stable in the large.
9
Example 8.9: Determine the stability of the equilibrium state of the following system.
-2P11 + 2P12 = -1
-2P11 – 5P12 + P22 = 0
-4P12 – 8P22 = -1
10
23 > 0 and det(P) > 0. Therefore, P is positive define. Hence, the equilibrium state at
origin is asymptotically stable in the large.
Example 8.11: Determine the stability range for the gain K of the system given below.
Let us solve,
For P to be positive definite, it is necessary and sufficient that 12 – 2k > 0 and k > 0 or
0 < k <6. Thus for 0 < k <6, the system is stable; that is, the origin is asymptotically
stable in the large.
11
8.7 Stability Analysis of Nonlinear Systems
In a linear free dynamic system if the equilibrium state is locally asymptotically stable,
then it is asymptotically stable in the large. In a nonlinear free dynamic system, however,
an equilibrium state can be locally asymptotically stable without being asymptotically
stable in the large. Hence implications of asymptotic stability of equilibrium states of
linear systems and those of nonlinear systems are quite different.
If we are to examine asymptotic stability of equilibrium states of non linear systems,
stability analysis of linearised models of nonlinear systems is completely inadequate. We
must investigate nonlinear systems without linearization. Several methods based on the
second method of Liapunov are available for this purpose. They include Krasovskii’s
method for testing sufficient conditions for asymptotic stability of nonlinear systems,
Schultz – Gibson’s variable gradient method for generating Liapunov functions etc.
Krasovskii’s Method:
Consider the system defined by , where x is an n-dimensional vector. Assume
that f(0) = 0 and that f(x) is differentiable with respect to x i where, I = 1,2,3,…..,n. The
Jacobian matrix F(x) for the system is
We can obtain as
12
If is negative definite, we see that is negative definite. Hence V(x)is a
Liapunov function. Therefore, the origin is asymptotically stable. If
tends to infinity as , then the equilibrium state is asymptotically stable in the
large.
Example 8.12: Using Krasovskii’s theorem, examine the stability of the equilibrium state
x = 0 of the system given by
This is a negative definite matrix and hence the equilibrium state is asymptotically stable.
. Therefore the equilibrium state is
asymptotically stable in the large.
Example 8.13: Using Krasovskii’s theorem, examine the stability of the equilibrium state
x = 0 of the system given by
This is a negative definite matrix and hence the equilibrium state is asymptotically stable.
13
. Therefore the
equilibrium state is asymptotically stable in the large.
Example 8.14: Using Krasovskii’s theorem, examine the stability of the equilibrium state
x = 0 of the system given by
This is a negative definite matrix and hence the equilibrium state is asymptotically stable.
. Therefore the equilibrium state
is asymptotically stable in the large.
14
CONTROLLERS
The controller is an element which accepts the error in some form and decides the proper
corrective action. The output of the controller is then applied to the system or process.
The accuracy of the entire system depends on how sensitive is the controller to the error
detected and how it is manipulating such an error. The controller has its own logic to
handle the error. The controllers are classified based on the response and mode of
operation. On the basis of mode of operation, they are classified into Continuous and
Discontinuous controllers. The discontinuous mode controllers are further classified as
ON-OFF controllers and multiposition controllers. Continuous mode controllers,
depending on the input-output relationship, are classified into three basic types named as
Proportional controller, Integral controller and Derivative controller. In many practical
cases, these controllers are used in combinations. The examples of such composite
controllers are Proportional – Integral (PI) controllers, Proportional – Derivative (PD)
controllers and Proportional - Integral – Derivative (PID) controllers.
The block diagram of a basic control system with controller is shown in Figure. The error
detector compares the feedback signal b(t) with the reference input r(t) to generate an
error. e(t) = r(t) – b(t).
Proportional Controller:
In the proportional control mode, the output of the controller is proportional to the error
e(t). The relation between the error and the controller output is determined by a constant
called proportional gain constant denoted as KP. i.e. p(t) = KP e(t).
Though there exists linear relation between controller output and the error, for zero error
the controller output should not be zero as this will lead to zero input to the system or
process. Hence, there exists some controller output Po for the zero error. Therefore
mathematically the proportional control mode is expressed as P(t) = KP.e(t) + Po.
The performance of proportional controller depends on the proper design of the gain KP.
As the proportional gain KP increases, the system gain will increase and hence the steady
state error will decrease. But due to high gain, peak overshoot and settling time increases
and this may lead to instability of the system. So, compromise is made to keep steady
state error and overshoot within acceptable limits. Hence, when the proportional
controller is used, error reduces but can not make it zero. The proportional controller is
suitable where manual reset of the operating point is possible and the load changes are
small.
15
Integral Controller:
We have seen that proportional controller can not adapt with the changing load
conditions. To overcome this situation, integral mode or reset action controller is used.
In this controller, the controller output P(t) is changed at a rate which is proportional to
actuating error signal e(t). Mathematically the integral controller mode is expressed as
. The constant Ki is called integral constant. The output from
the controller at any instant is the area under the actuating error curve up to that instant.
If the error is zero, the controller output will not change. The integral controller is
relatively slow controller. It changes its output at a rate which is dependent on the
integrating time constant, until the error signal is cancelled. Compared to the
proportional controller, the integral control requires time to build up an appreciable
output. However it continues to act till the error signal disappears. Hence, with the
integral controller the steady state error can be made to zero. The reciprocal of integral
constant is known as integral time constant Ti. i.e., Ti = 1/Ki.
Derivative Controller:
In this mode, the output of the controller depends on the rate of change of error with
respect to time. Hence it is also known as rate action mode or anticipatory action mode.
The mathematical equation for derivative controller is . Where Kd
is the derivative gain constant. The derivative gain constant indicates by how much
percentage the controller output must change for every percentage per second rate of
change of the error. The advantage of the derivative control action is that it responds to
the rate of change of error and can produce the significant correction before the
magnitude of the actuating error becomes too large. Derivative control thus anticipates
the actuating error, initiates an early corrective action and tends to increase stability of the
system by improving the transient response. When the error is zero or constant, the
derivative controller output is zero. Hence it is never used alone.
PI Controller:
This is a composite control mode obtained by combining the proportional mode and
integral mode. The mathematical expression for PI controller is
The advantage of this controller is that the one to one correspondence of proportional
controller and the elimination of steady state error due to integral controller. Basically
integral controller is a low-pass circuit.
The PI Controller has following effects on the system.
16
1. It increases the order of the system
2. It increases the type of the system
3. It improves the steady state accuracy.
4. It increases the rise time so response become slow.
5. It filters out the high frequency noise
6. It makes the response more oscillatory.
PD Controller:
This is a composite control mode obtained by combining the proportional mode and
derivative mode. The mathematical expression for PI controller is
17
This is to note that derivative control is effective in the transient part of the response as
error is varying, whereas in the steady state, usually if any error is there, it is constant and
does not vary with time. In this aspect, derivative control is not effective in the steady
state part of the response. In the steady state part, if any error is there, integral control
will be effective to give proper correction to minimize the steady state error. An integral
controller is basically a low pass circuit and hence will not be effective in transient part of
the response where error is fast changing. Hence for the whole range of time response
both derivative and integral control actions should be provided in addition to the inbuilt
proportional control action for negative feedback control systems.
Example: The figure shows PD controller used for the system. Determine the value of Td
such that the system will be critically damped. Calculate the settling time.
18
Instructional Objectives
At the end of this lesson, the student should be able to:
Introduction
In the last lesson, a brief introduction about a process control system has been given. The basic
control loop can be simplified for a single-input-single-output (SISO) system as in Fig.1. Here
we are neglecting any disturbance present in the system.
The controller may have different structures. Different design methodologies are there for
designing the controller in order to achieve desired performance level. But the most popular
among them is Proportional-Integral-derivative (PID) type controller. In fact more than 95% of
the industrial controllers are of PID type. As is evident from its name, the output of the PID
controller u(t) can be expressed in terms of the input e(t), as:
⎡ de(t ) 1
t
⎤
u (t ) = K p ⎢ e ( t ) + τ d + ∫ e(τ ) dτ ⎥ (1)
⎣ dt τi 0 ⎦
and the transfer function of the controller is given by:
⎛ 1 ⎞
C ( s) = K p ⎜1 + τ d s + ⎟ (2)
⎝ τis ⎠
The terms of the controller are defined as:
K p = Proportional gain
τ d = Derivative time, and
Version 2 EE IIT, Kharagpur 3
τ i = Integral time.
In the following sections we shall try to understand the effects of the individual components-
proportional, derivative and integral on the closed loop response of this system. For the sake of
simplicity, we consider the transfer function of the plant as a simple first order system without
time delay as:
K
P(s) = (3)
1+τ s
Proportional control
With the proportional control action only, the closed loop system looks like:
This offset can be reduced by increasing the proportional gain; but that may also cause increase
oscillations for higher order systems.
The offset, often termed as “steady state error” can also be obtained from the error transfer
function and the error function e(t) can be expressed in terms of the Laplace transformation
form:
1 A 1+τ s A
e( s ) = =
KK p s 1 + KK p + τ s s
1+
1+τ s
Using the final value theorem, the steady state error is given by:
1+τ s A A
ess = Lt e ( t ) = Lt s e( s) = Lt =
t →∞ s →0 s →0 1 + KK + τ s s 1 + KK p
p
Often, the proportional gain term, Kp is expressed in terms of “Proportional Band”. It is inversely
proportional to the gain and expressed in percentage. For example, if the gain is 2, the
proportional band is 50%. Strictly speaking, proportional band is defined as the %error to move
the control valve from fully closed to fully opened condition. However, the meaning of this
statement would be clear to the reader afterwards.
Integral Control
If we consider the integral action of the controller only, the closed loop system for the same
process is represented by the block diagram as shown in Fig. 3.
K
c( s ) τ s(1 + τ s) K
= i =
r (s) 1 + K K + τ i s + ττ i s 2
τ i s(1 + τ s)
From the first observation, it can be seen that with integral controller, the order of the closed
loop system increases by one. This increase in order may cause instability of the closed loop
system, if the process is of higher order dynamics.
A
For a step input r ( s ) = ,
s
1 A τ i s (1 + τ s ) A
e( s ) = =
1+
K s τ i s (1 + τ s ) + K s
τ i (1 + τ s )
ess = Lt s e( s ) = 0
s →0
So the major advantage of this integral control action is that the steady state error due to step
input reduces to zero. But simultaneously, the system response is generally slow, oscillatory and
unless properly designed, sometimes even unstable. The step response of this closed loop system
with integral action is shown in Fig. 4.
The step responses of this process with P and P-D controllers are compared in Fig.8.
References
1. B. Liptak: Process Control: Instrument Engineers Handbook
Review Questions
1. A P-I controller has a proportional band of 50% and integration time of 2sec. Find the
transfer function of the controller.
2
2. The transfer function of a first order plant is G ( s ) = . It is used in a unity feedback
1 + 2s
system as shown in Fig. 2 with a proportional controller of proportional band 100%. Find
the steady state error for a unit step input, and the time constant of the closed loop
system.
3. Repeat problem 2 if proportional band is 50%.
4. What would be the steady state error for the plant in problem-2 if the transfer function of
1
the controller is Gc ( s) = 2(1 + ) ?
2s
5. Incorporation of P-I action may lead to instability in the closed loop performance- justify.
6. How does incorporation of derivative action in the controller improve the closed loop
performance?
7. Why derivative control is not recommended for a flow control process?
8. What type of controller would you recommend for control of pH level in a liquid?
PID controller
Systems that feed the error forward to the plant (or actual system) are called proportional control
systems.
Systems that feed the integral of the error to the plant are called integral control systems.
Systems that feed the derivative of the error to the plant are called derivative control systems.
PID stands for ‘Proportional-plus-integral-plus-derivative’.
Combination of PD controller and PI controller.
Implemented using active components (for example, op-amps) as active networks.
PD controller: The sum of a differentiator and a pure gain, also called an ideal derivative
compensator. Its purpose is to improve the transient response of a system.
PI controller: The sum of an integrator and a pure gain, also called an ideal integral
compensator. Its purpose is to reduce the steady-state error to zero.
Hence, the purpose of PID controller is to improve both the transient response and the steady-
state response (zero steady-state error).
A PID controller is shown in Figure 1.
Figure 4: Root locus for uncompensated system (zoomed for finding 20% overshoot)
Searching for the 20% overshoot in Figure 4 (zoomed graph of Figure 3), we find the dominant poles at
–5.41 ± 10.6 j with a gain of 121, and the corresponding damping ratio = 0.456.
Now, the step response of the uncompensated system with the gain value of 121 is shown in Figure 5.
Figure 5: Step response of the uncompensated system with K = 121
From Figure 5, the peak time is observed as 0.3 seconds. (Theoretically, the peak time can be calculated
from the imaginary part of the dominant pole (that is, 10.6j). We know that the dominant poles are given
by the roots n jd , where d n 1 2 . Now, the peak time (Tp) is given by
Tp 0.2964 seconds).
d 10.6
Step 2: Next, a PD controller has to be designed to reduce the peak time to two-thirds of that of the
uncompensated system, that is, (2 / 3) × 0.3 seconds = 0.2 seconds (theoretical value = 0.1976 seconds).
The dominant poles for the desired peak time of 0.1976 seconds (theoretical value) can be obtained by
theoretical means. From the peak time relation, the imaginary part of the desired dominant pole, d is
obtained as d = 15.9.
0.1976
Now, for finding the real part of the desired dominant pole, a line has to be drawn to the left of the
imaginary axis in s-plane with respect to the origin at an angle, cos 1 cos 1 0.456 = 62.87° as
shown in Figure 6. From that, the real part of the desired dominant pole can be obtained as follows:
15.9 15.9
tan 62.87 n = 8.147
n tan 62.87
Figure 6: Right angled triangle formed in s-plane to find the dominant pole
Therefore, the dominant poles for the desired transient response specification of peak time = 0.1976
seconds are –8.147±15.9j. Now, we start the design of PD controller by finding the location of the
controller’s zero using the root locus property as shown in Figure 7 by connecting the dominant pole to
all the uncompensated poles and zeros.
Figure 7: Angles formed between the dominant pole and all other poles and zeros
The angles formed between the dominant pole and all other poles and zeros can be obtained as follows:
15.9
1 = 180 tan 1 = 107.94°
8.147 3
15.9
2 180 tan 1 = 97.69°
8.147 6
15.9
3 180 tan 1 = 90.53°
8.147 8
15.9
tan 4 8.5807 4 = 83.35°
10 8.147
Now, the angle contribution required from the PD controller zero (zc) in order to make the root locus to
pass through the desired dominant pole can be obtained as
Angle contribution = 180° – (sum of angles from the dominant pole to all other poles)
+ (sum of angles from the dominant pole to all other zeros)
= 180 1 2 4 3 = 180 – (107.94+97.69+83.35) + 90.53 = –18.45°
Here, the angle contribution is for zero location, so, the angle can be taken as positive.
Now, the loop gain K for the PD-compensated system can be determined by either manual calculations
or from root locus graph of the PD-compensated system. The complete root locus of the PD-
compensated system GPD (s) G(s) is shown in Figure 9.
From the root locus graph obtained from MATLAB simulation (zoomed in Figure 10), it is evident that
the dominant pole for the PD-compensated system with 20% overshoot shows –8.17±15.9j with a loop
gain of 5.39.
Now, we can check the loop gain value through manual calculations.
Figure 9: Root locus for PD-compensated system
= 5.3735–0.0001 j
2 2
Therefore, K 5.3735 0.0001 = 5.3735 (remember, K = 5.39 from simulation)
Steps 3 and 4: Now, we have to check the PD-compensator design with loop gain of 5.39 in MATLAB
simulation. The step response of the PD-compensated system is shown in Figure 11.
In Figure 11, the peak time is observed as 0.174 seconds (desired value = 0.1976 seconds) with the loop
gain value of 5.39. Thus, it is evident from the simulation that the PD-compensated system satisfies the
peak time requirement better than the desired one and operating with overshoot of nearly 22%
(somewhat acceptable) and the result is satisfactory. The comparison of step responses of
uncompensated system and PD-compensated system is shown in Figure 12.
Figure 13: Comparison of step response for uncompensated system and PD-compensated system
From Figure 13, it is evident that the uncompensated system has the steady-state error of
1 – 0.843 = 0.157 and the PD-compensated system has the steady-state error of 1 – 0.93 = 0.07, thus the
PD-compensated system shown improvement in steady-state error also.
Step 5: Even though the PD-compensated system reduces the steady-state error over the uncompensated
system, the given requirement is zero steady-state error. So, we need to design the ideal integral
compensator (or PI controller) to reduce the steady-state error to zero for a step input. Any ideal integral
compensator zero will work, as long as the zero is placed close to the origin. Here, I am choosing the
ideal integral compensator zero to be 0.1, and thus the transfer function of the PI controller is given by
s 0.1
GPI s
s
Now, the loop gain K for the PID-compensated system (combination of PD and PI) can be determined
by either manual calculations or from root locus graph of the PID-compensated system. The complete
root locus of the PID-compensated system is shown in Figure 14. From the root locus graph obtained
from MATLAB simulation (zoomed in Figure 15), it is evident that the dominant pole for the PID-
compensated system with 20% overshoot shows –8.1±15.8j with a loop gain of 5.32.
Figure 14: Root locus for PID-compensated system
Manual calculations for finding the loop gain K for the PID-compensated system:
The characteristic equation is simply 1+G(s) = 0. The transfer function G(s) of the PID-
compensated system (including the loop gain K) is given by
K s 0.1 s 8 s 55.8
G s (Equation (2))
s s 3 s 6 s 10
K s 0.1 s 8 s 55.8 K s 0.1 s 8 s 55.8
From characteristic equation, 1 0 1
s s 3 s 6 s 10 s s 3 s 6 s 10
= 5.3871+0.0268 j
2 2
Therefore, K 5.3871 0.0268 = 5.3872 (remember, K = 5.32 from simulation)
Step 6: Now we determine the gains K1, K2, and K3 in Figure 1. We have obtained the transfer function
of the PID-compensated system and is given in Equation (2). From that equation, the transfer function
of the PID controller can be obtained as
K s 55.8 s 0.1
GPID s , K = 5.32
s
5.32 s 2 55.9 s 5.58
= (Equation (3))
s
Matching equations (1) and (3), K1 = 297.4, K2 = 29.7, K3 = 5.32
Steps 7 and 8: Now, we have to check the performance of PID controller design with loop gain of 5.32
in MATLAB simulation. The step response of the PID-compensated system is shown in Figure 16.
Figure 17: Comparison of step response for uncompensated system and PID-compensated system
Figure 18: Comparison of peak time for uncompensated system and PID-compensated system
Figure 19: Comparison of steady-state error for uncompensated system and PID-compensated system
Reference textbook
Norman S. Nise, ‘Control Systems Engineering’, Sixth Edition, John Wiley and Sons, 2011.
About the concepts explained here, feel free to ask your queries to: [Link]@[Link]
In a PID controller, integral control reduces steady-state error by applying a corrective action proportional to the accumulated past error. However, by increasing the system order, it can adversely affect system stability, particularly in systems with higher order dynamics. This can lead to slow, oscillatory responses and, if not properly configured, even instability. Despite this, integral control is effective for eliminating the offset in steady-state response due to persistent errors. Its benefits must be balanced against the potential for reduced stability and responsiveness .
A PID (Proportional-Integral-Derivative) controller enhances system performance by independently improving the transient and steady-state responses. The proportional component reduces the rise time and the integral component eliminates steady-state error, while the derivative component minimizes overshoot and improves the damping ratio, leading to a swift settling time. This combination allows for fine-tuned adjustments to reach a desired performance balance, making it widely applicable in industrial control systems. Despite these improvements, there is a trade-off as enhancing each aspect may inadvertently affect another, requiring careful tuning .
Phase plane methods are instrumental in the analysis of second order nonlinear systems as they provide a graphical approach to study the system dynamics without solving differential equations explicitly. By plotting state trajectories on a phase plane defined by state variables and their derivatives, one can visualize how the system evolves over time from different initial conditions. This technique helps identify equilibrium points, stability, and periodic behaviors present in the system under various inputs like zero, constant, or ramp inputs. It is particularly useful for systems where obtaining a closed-form analytical solution is difficult or impossible .
The phase portrait is crucial in phase plane analysis as it offers a comprehensive visualization of the system's trajectory across the entire state plane. By plotting how states evolve from various initial conditions, phase portraits provide insights into the stability and dynamic behavior of the system. They help identify equilibrium points and can illustrate complex phenomena such as oscillations or limit cycles in nonlinear systems. The uniqueness of trajectories ensures clarity in the behavior predictions, without overlapping paths, reinforcing the phase portrait's utility in analyzing autonomous or nearly autonomous systems .
State space representation plays a pivotal role in modern control theory as it offers a comprehensive framework to represent the dynamic behavior of linear time-invariant (LTI) systems. It uses state vectors to encapsulate the current status of the system, allowing one to predict future behavior given the current state and input functions. The general form of state space representation consists of state equations and output equations, which are expressed in a standardized matrix format. This systematic approach facilitates the analysis and design of control systems by providing a clear methodology to capture the relationship between inputs, outputs, and states .
In the context of phase plane methods, isoclines are curves along which the slope of the phase trajectory is constant. They aid in constructing phase trajectories by providing a systematic way to plot the directions of solutions on the phase plane. By knowing the slope along an isocline, one can draw straight line segments across different regions of the phase plane that represent the constant slope conditions. This graphical technique helps simplify the analysis of nonlinear differential equations by focusing on directional fields rather than solving the equations analytically .
Derivative control is generally not recommended for head-control or flow processes because such processes often have noise, which can cause excessive modulation in the control action due to the derivative term amplifying high frequency signals. This can result in erratic responses or instability. As derivative control is effective primarily in improving transient response, it is less useful when steady-state or precision constant level maintenance is required, which is more aligned with flow control process goals .
Relay controlled systems are limited in precision due to their binary switching nature and the presence of a dead zone in their operation. The relay switch changes states only when the input exceeds certain thresholds, leading to abrupt transitions between off, full forward, and full reverse states. This lack of intermediate control results in coarse adjustments and potential oscillatory behavior as the system tends to "chatter" around the switch point due to the hysteresis and dead zone effect, limiting precise control adjustments .
The proportional band, expressed as a percentage, affects how a proportional controller reacts to input changes. It is inversely proportional to the gain: a smaller proportional band corresponds to greater sensitivity (higher gain), resulting in a more aggressive response to error, while a larger band indicates less sensitivity. Altering the proportional band modifies the system's stability and oscillation characteristics; reducing the band may lead to faster control actions but risks increased oscillations, whereas increasing the band can result in smoother but slower responses .
An ideal relay controlled system can switch abruptly between discrete states such as off, full forward, and full reverse. This binary switching characteristic is governed by a hysteresis loop where a certain amount of current is necessary to activate the relay. In practice, a relay has a dead zone because the coil requires at least a minimal current to operate. The implications include rapid response to input changes, but with potential for chattering around the switch thresholds due to the dead zone and hysteresis. Such systems are valuable in applications requiring straightforward on-off control, despite their limitations in precision .