Control Theory
Control Theory
Dhruva Hegde
While designing an open loop system is easier and cheaper, it is not always
reliable and is more prone to disturbances.
A closed loop system is more difficult to design and can be expensive, but it
is more robust.
1
Feedback is the process of measuring the actual output of the system and
feeding it back to the system for better performance.
X E U P Y
− Controller Actuator P lant
Yf
Sensor
For simplicity, all the 3 blocks in the forward path are together represented
as G and the feedback block is represented as H (unless specified otherwise).
2
1.2 Impulse Response and Transfer Function
Impulse Response of a system is defined as the output of the system when
unit impulse function is provided as input.
If r(t) is the given input such that r(t) = 0 ∀ t < 0 and the impulse response
of the system is g(t), then the output y(t) is given by,
Z t
y(t) = r(τ )h(t − τ )dτ = r(t) ∗ g(t)
τ =0
The Laplace transform of the impulse response of a system is called its Trans-
fer Function.
By taking the Laplace transform on the above equation,
Y (s) = R(s)G(s)
Y (s)
=⇒ G(s) =
R(s)
From the definition, it can be noted that for transfer function to exist, the
system must be a Linear and Time-Invariant (LTI) System and the
input signal must be a Causal Signal.
The differential equation model is obtained by using basic laws such as New-
ton’s Laws and Kirchhoff’s Laws to obtain equations that describe how the
components interact with each other when connected in specific ways. This
model can be used to find the transfer function as well.
3
If a system input-output relation is defined by the differential equation,
d2 y(t) dy(t)
2
+ a1 + a2 y(t) = bo r(t)
dt dt
then by taken Laplace transform on both sides and manipulating,
Y (s) bo
= 2
R(s) s + a1 s + a2
which is its Transfer function.
Note that the impulse response or the differential equation represent the
behaviour of the system in time domain whereas the transfer function repre-
sents the behaviour of the system in frequency domain.
n(s)
The transfer function is expressed as ratio of 2 polynomials. G(s) = d(s)
Characteristic Equation:
The denominator polynomial of the CLTF equated to 0 gives the character-
istic equation of the system.
The denominator polynomial that determines the behaviour of the system,
4
while the numerator polynomial only determines amplitudes.
Type of a system:
The number of poles at the origin in the OLTF of a system is called its type.
Order of a system:
The highest degree of ’s’ in the characteristic equation (or denominator poly-
nomial of CLTF) is called its order.
Examples:
s+1
G(s) =
s(s + 5)
=⇒ Type 1, Order 2
2
G(s) =
(s3 − s + 6)
=⇒ Type 0, Order 3
Improper transfer functions are not physically realizable because a pure dif-
ferentiator can’t be physically realized.
If the highest power of the denominator polynomial is greater than the high-
est power of the numerator polynomial, then the transfer function is ”Strictly
Proper”.
The value of the transfer function at s = 0 is called the DC gain of the system.
5
Loading Effect on Transfer Function:
6
2 Principles of Feedback
As mentioned earlier, feedback is the process of measuring the actual output
of the plant using a sensor and comparing it with the input (desired output)
and controlling the plant accordingly.
A standard negative feedback system with open loop transfer function G(s)
and feedback element H(s) with input R(s) and output Y (s) is represented
as,
(each of the blocks and signals are expressed in terms of Laplace variable)
Yf (s)
H(s)
It can be algebraically derived that the overall transfer function of the system
will be
Y (s) D(s)G(s)
T (s) = =
R(s) 1 + D(s)G(s)H(s)
7
• Blocks in cascade
• Blocks in parallel
8
• Moving summing point present before block
• Feedback loop
Also note that neighbouring take-off points can be interchanged and neigh-
bouring summing points can be interchanged.
The block diagram technique is intuitive and can be used to solve simple sys-
tems. However, if the system becomes increasingly complex (i.e more blocks
and connections), then the process of simplification using block diagram re-
duction becomes cumbersome.
Forward Path is any path (of branches) that connects from the input node
to the output note (there can be one or more forward paths in a system).
Note that any node can be considered an output node. It depends on the
requirements of the analysis.
9
However, input nodes are only those nodes which have no incoming branches.
Meaning, the nodes that have outgoing branches only can be input nodes.
Loop is a path which originates and terminates at the same node without
repetition of any node in the middle.
Non-touching loops are a group of loops that have no nodes in common.
• Self loops immediately next to input node are useless and can be re-
moved.
• If there are multiple inputs and the transfer function with respect to
any one has to be found, then perform the analysis by making all the
other inputs zero.
• If the SFG does not consist of any input node and A/B has to be found,
then create a dummy input node I, find A/I and B/I and divide them.
r(t) 1 G y(t)
−H
10
2.3 Sensitivity analysis
Sensitivity is defined as the change observed in a certain quantity due to
variation (or change) that occurs in another quantity.
In control systems analysis, sensitivity is measured as change in the overall
transfer function of the system with changes in some part of the system (like
the parameter variations in the plant or the sensor).
∆α/α
Sβα =
∆β/β
T −D(s)G(s)H(s)
SH =
1 + D(s)G(s)H(s)
(considering G(s) as constant) This relation however tells that the system
will be highly sensitive to the changes in the sensor parameters, especially if
the gain of the controller is high.
Therefore, it must be ensured that the sensor is extremely well designed and
should not be susceptible to changes.
(it is easier to pose restrictions on the design on the sensor than the design
of the plant)
11
2.4 Disturbances
Disturbances are the unwanted signals that might get added to some pro-
cessed signals in the control system due to practical factors.
There are two types of Disturbances, namely Erratic High Frequency distur-
bances and Slow-varying disturbances.
δ(t) ←→ 1
Step Signal
Used to model a sudden (almost instantaneous) change.
1
u(t) ←→
s
Ramp Signal
Used to model linear change.
1
tu(t) ←→
s2
Parabolic Signal
Used to model quadratic change.
t2 1
u(t) ←→ 3
2 s
12
Pulse Signal
Used to model a sudden change which lasts only for a certain known period.
1 − e−sT
u(t) − u(t − T ) ←→
s
N (s) W (s)
=
Y (s) 1 + D(s)G(s)H(s)
Such disturbances will directly add to the output and nothing can be done
to compensate for it in the case of open loop control systems.
13
2.4.3 Noise filtering
The major source of noise in a system is the sensor itself. Hence, effect of
noise is something that is added due to feedback which was absent in the
open loop system.
This can be modelled into the block diagram as follows.
Here, the transfer function considering the noise signal as input is given by,
V (s) −D(s)G(s)H(s)
=
Y (s) 1 + D(s)G(s)H(s)
Hence the effect of noise becomes more significant as the controller gain is
increased. This reinforces the intuition that adding a sensor and closing the
loop will lead to noise effects.
To take care of this, a low pass filter must be used in order to avoid high
frequency noise from entering the loop.
14
3 Analysis of Standard Systems
Most practical systems can be modelled using First and Second order sys-
tems. Hence, analysis and characterization of these two will be extremely
useful.
R(s) E(s) 1
Y (s)
− k sτ
2.5
1.5
Amplitude
0.5
0
0 2 4 6 8 10 12
Time (sec)
15
Unit step response is given by,
t
s(t) = k[1 − e− τ ]u(t)
Step Response
4.5
3.5
3
Amplitude
2.5
1.5
0.5
0
0 2 4 6 8 10 12
Time (sec)
t
Here, k is the steady state response of the system and ke− τ is the transient
response of the system.
This means, the unit step input is getting multiplied by a factor of k in steady
state, hence it is called the system gain.
The time constant τ defines the speed of the system, since the transient re-
sponse tells how fast the system will reach it’s steady state.
Initial slope of step response is k/τ . This means, if the slope was maintained,
then the system transient would die out at t = τ .
However, since the slope is changing, the following observations can be made.
• at t = τ , the output would have reached 63.2% it’s steady state value.
• at t = 3τ , the output would have reached 95.0% it’s steady state value.
• at t = 4τ , the output would have reached 98.2% it’s steady state value.
Hence, 3τ and 4τ are called Settling Time with 5% and 2% tolerance band
respectively.
By the time t = 5τ , the output would have reached more than 99% of it’s
steady state value and for all practical purposes, it can be said that steady
state has been reached.
Hence, the system transients die faster if the time constant is lesser, which
is why it defines the speed of the system.
16
(note that the time constant is defined only for stable systems, meaning such
systems where the output actually settles down to some value and does not
tend to infinity [more on stability later])
R(s) E(s) 2
ωn
Y (s)
− k s2 +2ζωn s
Y (s) kωn2
T (s) = = 2
R(s) s + 2ζωn s + ωn2
e−ζωn t
s(t) = 1 − p sin(ωd t + θ) where θ = cos−1 ζ
1 − ζ2
17
cosθ = ζp
sinθ = √1 − ζ 2
1−ζ 2
tanθ = ζ
1
Time constant of a second order system is given by, τ = ζωn
.
Location of poles
Undamped
5 Underdamped
Critically damped
4
Overdamped
3
2
Imaginary axis
−1
−2
−3
−4
−5
−6 −4 −2 0 2 4
Real axis
Undamped Case: ζ = 0
There is no damping factor. Roots of CE are purely imaginary. Hence the
step response will be oscillatory, which is not usually favoured.
Step Response
2.5
2
Amplitude
1.5
0.5
0
0 2 4 6 8 10 12 14 16 18
Time (sec)
18
eventually.
This is the most commonly used configuration in second order systems.
When designing a second order system, the designer has to ensure the system
meets the transient and steady state specifications required. The transient
specifications are generally analysed from step response of the system in time
domain. Frequency domain specifications can also be useful in design.
Step Response
1.8
1.6
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
0
0 5 10 15
Time (sec)
19
• Delay time (td ) is the time required for the response to reach 50% of
it’s steady state value.
• Rise time (tr ) is the time required for the response to reach the steady
state value for the first time.
• Peak time (tp ) is the time required for the response to reach it’s maxi-
mum value.
• Settling time (ts ) is the time required for the response to reach 95%
of 98% of it’s final value (depending on which is appropriate for the
specific application)
These terms can be derived from the typical step response formulae using
the definitions.
π−θ
tr =
ωd
π
tp =
ωd
√−ζπ
mp = e 1−ζ 2
3
ts (f or 95%) =
ζωn
4
ts (f or 98%) =
ζωn
Number of oscillations completed before settling (N) is given by,
N = ts ω2πd
20
If the input is scaled by a factor, the output will also be scaled by that factor
and the peak overshoot will be same.
It can be noted that mp is a function of ζ and others are all functions of ζ and
ωn . Peak overshoot and rise time are usually chosen as design specifications
for satisfying the transient response required.
• mp ∝ 1/ζ
• mp ∝ 1/tp
• ζ ∝ 1/θ
21
k
Mr = p
2ζ 1 − ζ 2
p
ωr = ωn 1 − 2ζ 2
From theprelation, it is obvious that Mr exists only when ωr is real and pos-
itive i.e 1 − 2ζ 2 > 0.
ζ < 0.707 =⇒ Mr > 1
ζ = 0.707 =⇒ Mr = 1
ζ > 0.707 =⇒ Mr does not exist
1.4 1.4
1.2 1.2
1 1
Amplitude
Amplitude
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.5 1 1.5 2 2.5 3 3.5 4
Time (sec) Time (sec)
For a second order control system to be stable, the damping ratio has to be
positive. If it is negative, the system is certainly unstable.
22
that a designer might have to deal with higher order systems. In analysis of
systems of order 2 or more than 2, the concept of dominant poles becomes
very useful.
Consider a system has 2 poles at s = −s1 and s = −s2 . The location of these
poles determine the response of the system.
k
G(s) = (s+s1 )(s+s 2)
=⇒ G(s) = (1+s/s1k)(1+s/s
o
2)
in time constant form.
A B
=⇒ G(s) = s+s1 + s+s2 using partial fractions.
∴ g(t) = Ae−t/s1 + Be−t/s2 by Inverse Laplace transform.
The time constants of the terms are 1/s1 and 1/s2 . If the values of s1 and s2
are such that s2 ≥ 5s1 , it means that the term with time constant 1/s1 will
decay very slowly when compared to the term with time constant 1/s2 and
hence, the fast decaying pole is considered to be Insignificant pole whereas
the slow decaying pole is considered to be Dominant pole.
In case of higher order systems where the dominant poles are complex con-
jugates, the effective time constant is given by,
−1
τ=
Real [Dominant P ole]
If the dominant pole criterion is satisfied, it effectively reduces higher order
systems to lower order systems because insignificant poles can be neglected
(given the transfer function is expressed in pole-zero form).
For a general control system, the steady state error is defined as the difference
between the steady state value of the actual output and the desired output.
=⇒ ess = yss − rss
23
Steady State Error for unity feedback systems
If the system is a unity feedback system, it can be observed that the steady
state error is same as the final value of the error signal obtained (which is
fed to the controller).
R(s)
E(s) =
1 + D(s)G(s)
Using Final Value Theorem,
sR(s)
ess = lim
s→0 1 + D(s)G(s)
The following table gives steady state error for different types of inputs
against different types of systems.
Step input Ramp input Parabolic input
1
Type 0 system 1+Kp
∞ ∞
1
Type 1 system 0 Kv
∞
1
Type 2 system 0 0 Ka
24
Note that all these constants are DC gains of the particular systems. Hence,
by designing the appropriate controller which can manipulate the overall DC
gain, it is possible to reduce the steady state error using feedback.
• Find final value of the output (using final value theorem) and find the
difference of it with desired output.
Note that the steady state error is defined only for stable systems.
25
4 Stability Analysis
Any control system being designed has to be designed under the condition
that it must satisfy stability. Meaning, an unstable system which has all
other desired qualities is still unacceptable.
For most systems, both the above definitions will coincide, meaning for this
class of systems, analysis can be directly done for stability.
26
It can be noted that the impulse response will be absolutely summable only
if po , p1 , ....pn are positive.
If even one of them is negative, the impulse response will eventually tend to
infinity and it will be an unstable system.
The unique case in which the impulse response is neither dying nor growing,
but stays as a non-zero constant or oscillates in a fixed range (in steady state)
implies the system is ”Marginally stable”.
Therefore, it can be concluded that the system will be stable if and only if
all of its poles lie on the left half of s-plane.
The characteristic equation directly gives the coefficients of first two rows of
the Routh table. The rest of the table is filled according to the pattern shown.
Routh Table
27
sn a0 a2 a4 ...
sn−1 a1 a3 a5 ...
sn−2 b0 b1 b2 ...
sn−3 c0 c1 c2 ...
.. .. .. .. ..
. . . . .
s0 h0 0 0 0
where,
a1 a2 − a3 a0 a1 a4 − a5 a0
b0 = ; b1 =
a1 a1
b 0 a3 − a1 b 1 b 0 a5 − a1 b 2
c0 = ; c1 =
b0 b0
and so on...
Once the Routh Table is constructed, the sign changes in the first column of
the table are to be noted.
For the system to be stable, all coefficients in the first column of the Routh
table must be strictly positive.
If there are one or more sign changes, then the system is unstable.
The number of sign changes in the first row of the Routh table is equal to
the number of roots (of the equation) that lie in the right half of s-plane.
2. If row/s of zeros occurs, it means symmetric roots about the origin are
present.
Obtain Auxiliary Equation which is constructed by using the coefficients
of the row above the row of zeros.
Then differentiate this equation (w.r.t s) to obtain new coefficients for the
row of zeros and perform the usual analysis. Note that power of Auxiliary
28
equation must be even since it will give number of roots that are symmetric
about the origin.
• Number of sign changes above AE = number of roots on RHP
as2 + bs + c = 0
as3 + bs2 + cs + d = 0
Conditional Stability
In general, if a system with open loop transfer function G(s) is closed using
unity feedback and controller gain K. The characteristic equation of the
closed loop system will be 1 + KG(s) = 0.
Using Routh-Hurwitz criteria, the constraint equations on K can be found.
29
The value of K where the system is marginally stable is Km .
The conclusion for range of values of K can be-
Relative Stability
This technique can be used to find the number of roots (poles or zeroes from
the equation) that lie on the s = −a line, between s = 0 and s = −a lines,
RHS of s = −a line, LHS of s = −a line.
30
4.1.2 Root Locus
The Root Locus technique provides a graphical method of plotting the locus
of the roots (poles and zeros) of a closed loop transfer function in the s-plane
as a given system parameter (typically gain E) is varied over the complete
range of values (0 to ∞).
The Root Locus plot is extensively used in control systems design because
once the sketch is obtained, the roots corresponding to a particular value of
the system parameter can be obtained or the value of a desired root location
can be determined.
Consider a system with open loop transfer function G(s), is closed using
feedback element H(s) with controller gain K. Then the closed loop transfer
KG(s)
function will be T (s) = 1+KG(s)H(s) . Hence the characteristic equation of the
closed loop system will be 1 + KG(s)H(s) = 0. =⇒ KG(s)H(s) = −1
From the above result, two conditions can be obtained for any point s to lie
on the root locus.
Magnitude Criterion:
|KG(s)H(s)| = 1
Angle Criterion:
It can be noted that since K can take any value, every point in the s-plane
inherently satisfies the magnitude criterion. Hence, the magnitude criterion
is used to find the value of K given a particular value of s.
Since K does not contribute any angle, angle criterion is used to check if any
given point s = s1 lies on the root locus plot of the given closed loop system.
The construction of the root locus plot for any closed loop system for stabil-
ity and design purpose is done using the following steps/rules.
31
Root Locus Construction Rules
1. The root locus is symmetrical about the σ axis (jω = 0).
2. As K increases from 0 to ∞, each branch of the root locus originates
from an open loop pole with K = 0 and terminates at either an open
loop zero or infinity with K = ∞. The number of branches terminating
at ∞ is equal to the difference between open loop poles and zeros
(n − m).
3. A point on the real axis lies on the root locus if the number of open
loop poles and zeros on the real axis to the right of this point is odd.
4. The (n − m) branches that terminate at ∞ do so along straight line
o
asymptotes whose angles are given by, φA = (2q+1)180
n−m
; q = 0, 1, 2, ...n−
m − 1.
5. The asymptotes cross the real axis at a point known as centroid, deter-
mined by the relationship, C = (ΣReal[poles] − ΣReal[zeros])/(n − m).
6. Break away points are those points at which the root locus of two
different branches meet and break away towards ∞, hence they are the
points where multiple roots occur. The break away points of the root
locus are the solutions to dK/ds = 0.
Break away points are points on the real axis only. Meaning, if the
solutions to dK/ds = 0 are complex, then there are no points at which
the closed loop poles meet for breaking away.
7. In case of existence of complex break poles or zeros, the break away
directions are given by,
Angle of departure from an open loop pole side: φd = ±180o + φ;
Angle of arrival from an open loop zero side: φa = ±180o − φ;
where φ = Σθz − Σθp (i.e net angle contributed at the open loop root
by all other open loop roots)
8. The intersection of root locus branches with the jω axis can be deter-
mined by using Routh-Hurwitz criteria. At K = Km where the root
locus branches intersect the jω axis, a row of 0s will occur in the Routh
table. The row above this row gives auxiliary equation, whose roots
will give the points of intersection.
32
k
Consider a system with open loop transfer function G(s) = s(s+4) .
The root locus plot will be as indicated in the following figure.
Root Locus
2.5
1.5
1
Imaginary Axis
0.5
−0.5
−1
−1.5
−2
−2.5
−4.5 −4 −3.5 −3 −2.5 −2 −1.5 −1 −0.5 0 0.5
Real Axis
The addition of a pole to an open loop system will drive the system towards
instability if the loop is closed. This is illustrated in the root locus plot of
k
G(s) = s(s+2)(s+4) .
Root Locus
10
4
Imaginary Axis
−2
−4
−6
−8
−10
−14 −12 −10 −8 −6 −4 −2 0 2 4
Real Axis
33
The addition of a zero to an open loop system will increase the relative sta-
bility of the closed loop system. This is illustrated in the root locus plot of
k(s+1)
G(s) = s(s+2)(s+4) .
Root Locus
2
Imaginary Axis
−2
−4
−6
−8
−4.5 −4 −3.5 −3 −2.5 −2 −1.5 −1 −0.5 0 0.5
Real Axis
10
4
Imaginary Axis
−2
−4
−6
−8
−10
−12 −10 −8 −6 −4 −2 0 2 4 6 8
Real Axis
34
If the root locus of a system traces
√ the path of a circle, then the break away
√
points will be of the form a + b where a is the center of the circle and b
is it’s radius. G(s) = k(s+2)(s+4)
s(s+1)
Root Locus
1.5
0.5
Imaginary Axis
−0.5
−1
−1.5
−4.5 −4 −3.5 −3 −2.5 −2 −1.5 −1 −0.5 0 0.5
Real Axis
The root locus plot of a system with symmetric poles will have break away
points at the centroid. G(s) = s(s+2)(sk2 +2s+2)
Root Locus
2.5
1.5
1
Imaginary Axis
0.5
−0.5
−1
−1.5
−2
−2.5
−3.5 −3 −2.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5
Real Axis
35
Transportation Lag
The transportation lag is the delay between the time an input signal is applied
to a system and the time the system reacts to that input signal. Meaning if
input is r(t), the output can be represented as y(t-T).
In the Laplace domain, the transfer function representing the transportation
lag will be: YR(s)
(s)
= e−sT .
To incorporate the exponential term in the root locus, it can be approximated
as e−sT = 1 − sT using first order approximation of Taylor’s series expansion.
The rules that change in the complementary root locus from the original are-
• A point on the real axis lies on the complementary root locus if the
number of open loop poles and zeros on the real axis to the right of
this point is even.
36
4.2 Stability analysis using Frequency response
If a sinusoidal signal is applied as an input to a Linear Time-Invariant (LTI)
system, then it produces the steady state output, which is also a sinusoidal
signal. The input and output sinusoidal signals have the same frequency, but
differ in amplitudes and phase angles.
Consider a system with transfer function T(s) with input r(t) = Asin(ωo t+θ)
and output y(t) = Bsin(ωo t+φ) where B = A|G(jωo )| and φ = θ +∠G(jωo ).
Here, |G(jωo )| is the magnitude of the frequency response and ∠G(jωo ) is
the angle of the frequency response.
=⇒ G(ω) = |G(jω)|∠G(jω)
Gain Margin is the magnitude factor by which a stable system can be in-
creased before making it marginally stable (or driving it towards instability).
Mathematically, the gain margin (GM) is equal to the reciprocal of the mag-
nitude of the Nyquist plot at the phase cross over frequency.
=⇒ GM = M1pc
Gain is usually expressed in decibels for convenience, hence GM = 20 log10 M1pc
Where, Mpc is the magnitude in normal scale at ω = ωpc .
Phase Margin is the additional phase which can be added to a stable sys-
tem before making it marginally stable (or driving it towards instability).
Mathematically, the phase margin (PM) is equal to the sum of 180o and the
phase angle at the gain cross over frequency.
=⇒ P M = 180o + Φgc
Where, Φgc is the phase angle at ω = ωgc .
37
Frequency domain stability criteria:
4. Check whether the polar plot intersects the real axis, by making the
imaginary term of G(jω)H(jω) equal to zero and find the value of ω.
5. Check whether the polar plot intersects the imaginary axis, by making
real term of G(jω)H(jω) equal to zero and find the value of ω.
6. For drawing polar plot more clearly, find the magnitude and phase of
G(jω)H(jω) by considering the other value of ω.
Standard polar plot structure for different types and orders of systems is
shown.
38
The blue words (type of system) indicate the starting direction and the green
words (order of system) indicate the ending direction of the polar plot.
Polar plot of an open loop transfer function can be used for stability analysis
of its corresponding closed loop system.
• If the plot encloses the critical point (−1 + 0j), the system is unstable
since ωgc > ωpc i.e GM and PM are negative.
• If the plot intersects the critical point (−1+0j), the system is marginally
stable since ωgc = ωpc i.e GM and PM are zero.
• If the plot does not enclose the critical point (−1 + 0j), the system is
stable since ωgc < ωpc i.e GM and PM are positive.
39
The figure shows the polar plot of a stable system and illustrates when it can
reach instability using gain and phase margins.
The polar plot is used to analyse stability of closed loop system in more detail
the Nyquist stability criteria.
40
This principle can be applied to analyse stability.
Consider a system with open loop transfer function G(s), which is closed
using unity negative feedback. The closed loop transfer function will be
G(s)
T (s) = 1+G(s) .
The stability of open loop system is known, because it is given by the poles of
G(s) that are on right half of s-plane, denoted by P . To analyse the stability
of the closed loop system, it is necessary to get the number of poles of T (s)
present on the right half of s-plane which is same as the number of zeros of
the characteristic equation 1 + G(s), denoted by Z.
Hence, a contour on the s-plane is defined such that it covers the entire right
half of s-plane (starting from origin to +j∞ (imaginary axis), extends to ∞
on positive real axis to −j∞ (imaginary axis) and ends back at origin. This
is called ”Nyquist Contour”.
Instead of taking 1+G(s)-plane and considering anti-clockwise encirclements
of 0 + 0j (origin) for mapping, it is more convenient to take G(s)-plane and
consider anti-clockwise encirclements of −1 + 0j instead (which is called
”Critical Point”). When the Nyquist Contour is mapped to the G(s)-plane,
the obtained graph is called ”Nyquist Plot”.
N =P −Z
where P is known and N is found using the Nyquist plot.
Stability is determined using the value of Z.
• Z > 0 =⇒ closed loop system is unstable (or marginally stable)
• Z = 0 is zero =⇒ closed loop system is stable
A few examples implying the Nyquist stability criterion are given.
5(s+1)
(i) Consider an open loop transfer function G(s) = (s−2)(s+3) in unity nega-
tive feedback configuration.
There is 1 open loop pole on RHP (s = 2), hence P = 1. The characteristic
equation will be s2 + 6s − 1 = 0, which is unstable with 1 root on RHP, hence
Z = 1. N = Z − P = 0, meaning the Nyquist plot must encircle the critical
point 0 times.
4(s+2)
(ii) Next consider a different open loop transfer function G(s) = (s−1)(s−2)
in
unity negative feedback configuration.
41
There are 2 open loop poles on RHP (s = 1, 2), hence P = 2. The charac-
teristic equation will be s2 + s + 10 = 0, which is stable i.e no roots on RHP,
hence Z = 0. N = Z − P = −2, meaning the Nyquist plot must encircle the
critical point in clockwise direction 2 times.
10
(iii) Finally, consider another open loop transfer function G(s) = (s−1)(s+2)(s+3)
in unity negative feedback configuration.
There is 1 open loop pole on RHP (s = 1), hence P = 1. The characteristic
equation will be s3 + 4s2 + s + 4 = 0, which is marginally stable with a pair of
complex conjugate roots on jω axis, hence the Nyquist plot should intersect
the critical point twice.
The following steps are to be followed to obtain Nyquist plot from the Nyquist
contour i.e from s-plane to G(s)-plane.
2. For the second part, substitute s = lims→∞ Rejθ ; θ goes from 90o to
−90o . Usually this part maps to a single point in the G(s)-plane.
42
3. Third part is mapped by obtaining the inverse polar plot i.e mirror of
polar plot with respect to real axis.
4. For the fourth part, substitute s = lims→0 Rejθ ; θ goes from −90o to
90o . However, this is necessary only if there are open loop poles on the
jω axis.
For Nyquist plots that go to ∞ for some values of ω, in order to find the line
asymptotic to the plot, split the transfer function to real and imaginary parts
and then substitute of ω. This is because using the magnitude directly will
not give information regarding which part is causing the transfer function to
go to ∞.
1
For example, consider G(s) = s(s+1)(s+2)
. |G(jω)| → ∞ at ω = 0.
1 −j(−jω + 1)(−jω + 2)
G(ω) = =
jω(jω + 1)(jω + 2) ω(jω + 1)(jω + 2)(−jω + 1)(−jω + 2)
43
−3 −2 + ω 2
G(jω) = + j
(ω 2 + 1)(ω 2 + 4) (ω 2 + 1)(ω 2 + 4)
=⇒ Re[G(jω)] → −3/4 when ω → 0 and hence the plot is asymptotic to
Re[G(jω)] = −3/4 at ω = 0.
Systems having neither poles nor zeros in the right side of s-plane are called
”Minimum phase systems”. Minimum phase systems will have Nyquist plot
only on right side of GH-plane.
Systems with poles in left side of s-plane and zeros in right side of s-plane that
are symmetric about jω axis are called ”All pass systems”. All pass systems
will have symmetric Nyquist plot with respect to both real and imaginary
axes of GH-plane.
A strictly proper transfer function implies the number of poles is greater than
the number of zeros. Hence, the Nyquist plot of a system having a strictly
proper transfer function will go to 0 as ω → ∞.
44
4.2.3 Bode Plot
Bode plot is another tool used to analyse stability of a closed loop system in
the frequency domain. It actually consists of two plots, namely the Magni-
tude Bode plot and the Phase Bode plot.
Magnitude Bode plot is drawn between 20 log10 |G(jω)| (i.e magnitude in
dB) against ω in log scale. Phase Bode plot is drawn between ∠|G(jω)| (i.e
phase in degrees) against ω in log scale.
The gain and phase margins of the closed loop system can be obtained by
the two graphs and hence stability can be analysed.
45
4. Second order factors : G(s) = (s2 + 2ζωn s + ωn2 )±n (
q ±n 40 dB/dec : ω > ωn
|G(jω)| = ±20 n log10 ( (1 − ( ωωn )2 )2 + ( 2ζω
ωn
)2 =
0 : ω < ωn
o
±0
:ω→0
−1 ω o
∠G(jω) ≈ ±n tan ωn = ±n 90 : ω = ωn
o
±n 180 : ω → ∞
where ω = ωn is Corner Frequency.
Note that the above methods are to obtain approximate Bode plot. The
approximations will not hold at the corner frequencies and around it. If cal-
culated, at the corner frequency, the magnitude will be 3n dB more or less
than the approximated magnitude.
And also, Bode plot analysis is generally applicable only to Minimum phase
systems and where the open loop system is known to be stable.
0
0
Magnitude (dB)
−20
Magnitude (dB)
−50 −40
−60
−100
−80
−150 −100
0 0
Phase (deg)
−90 −90
Phase (deg)
−180 −180
−270 −270
−2 −1 0 1 2 −2 −1 0 1 2
10 10 10 10 10 10 10 10 10 10
Frequency (rad/sec)
Frequency (rad/sec)
(for marginally stable systems, the crossover frequency will be same, hence
there will be no margins i.e GM = 0 dB and P M = 0o )
46
Obtaining transfer function from given Bode Plot:
For a minimum phase system, the transfer function can be uniquely deter-
mined from the magnitude curve alone.
The following steps are to be followed to estimate the minimum phase transfer
function from a given magnitude Bode plot.
Bode plots and Nyquist plots are extremely useful in designing of controllers
and compensators using frequency domain representation.
5 Industrial Systems
As studied in the introduction, the plant by itself will not give desired re-
sponse. It is to be controlled by another system which gives signal to the
plant based on command input and actual output (i.e error signal). These
systems that modify the response of the plant to desired response based on
the error signal are either called controllers or compensators.
5.1 Controllers
Controllers are systems that are cascaded before the plant in order to use the
error signal and modify the action of the plant to satisfy design requirements
such as steady state error, rise time, settling time, maximum peak overshoot,
etc.
There are really 4 types of controllers that are used in practical systems, but
theoretically there can be 6 types which are all discussed in detail.
47
5.1.1 Proportional Controller
R(s) E(s) P (s) Y (s)
kp G(s)
−
H(s)
P (s) = kp E(s)
p(t) = kp e(t)
In majority of the practical systems, controlling the system gain alone will
not be able to meet all design requirements. There will be a trade-off between
speed and accuracy of the response.
When the error signal eventually reaches 0, then the control signal also be-
comes 0, which means there is nothing to drive the plant to stay in that state
and steady state output of the system will not be same as desired output. In
such a case, the gain can be increased to reduce the steady state error, but
it will never go to 0. (note that for systems that don’t need any power to
stay at the steady state value, proportional control will work).
Also, increasing the gain to solve this problem can lead to instability of the
closed loop system.
H(s)
48
The integral controller is used to increase the type of a system, which will
eliminate steady state error as it adds an additional pole. Hence, the con-
troller output is proportional to the sum of accumulated error signals i.e
integral of the error signal.
ki
P (s) = E(s)
s
Z t
p(t) = ki e(τ )dτ
τ =0
However, adding a pole to the system will adversely affect stability.
H(s)
The differential controller is used to make the system transient faster and
better since it adds a zero. Hence, the controller output is proportional to
the derivative of the error signal.
P (s) = skd E(s)
de(t)
p(t) = kd
dt
However, adding a zero to the system will adversely affect steady state ac-
curacy, and also a pure differentiator is not practically realizable.
5.1.4 PI Controller
R(s) E(s) P (s) Y (s)
kp + ki /s G(s)
−
H(s)
49
As discussed, a drawback of P controller is that if the error signal is 0, then
the control signal is 0 and there is no input to the plant to drive the system.
To avoid this, the control signal is made to be dependent on the accumulation
of error signal along with only the error signal, so the plant will never get
zero input. This will cause the plant to be driven exactly to the required
steady state and also ensure it has the energy to maintain it.
Hence, PI controller will effectively improve the steady state response of the
plant and is used when P controller alone would give some steady state error
for any value of the gain.
ki
P (s) = kp + E(s)
s
Z t
p(t) = kp e(t) + ki e(τ )dτ
τ =0
5.1.5 PD Controller
R(s) E(s) P (s) Y (s)
kp + skd G(s)
−
H(s)
P controller does not take into account the changes in the error signal which
should actually have an impact on the plant. For example, if the error is
decreasing too fast, then the plant needs to slow down to avoid overshoot
of the steady state value. Hence PD controller is used, to provide better
transient response. Note that PD controller also prevents any potential in-
stability issues due to high gain of P controller.
It should be noted that due to derivative action, high frequency or high am-
plitude signals can be introduced into the system, which have to be filtered
out or limited.
P (s) = kp + skd E(s)
50
de(t)
p(t) = kp e(t) + kd
dt
H(s)
ki
P (s) = kp + + skd E(s)
s
Z t
de(t)
p(t) = kp e(t) + ki e(τ )dτ + kd
τ =0 dt
The PID controller is the optimal controller which generates control signal
proportional to the error, its integral and its derivative. This controller can
almost always be used to ensure both steady state and transient response
requirements are met since the derivative part ensures gives higher speed
and the integral part ensures low steady state error, while stability is also
maintained.
5.2 Compensators
Compensators are more practical systems used to modify the behaviour of
the plant to satisfy the design specifications. Compensators are systems that
add extra poles and zeros in appropriate points in s-plane to get the desired
behaviour.
51
5.2.1 Lead Compensator
The lead compensator is an electrical network which produces an output
having phase lead for the input applied. The lead compensator circuit in the
‘s’ domain is shown.
α[1 + T s] R2
Gc (s) = α= ; T = R1 C
1 + αT s R1 + R2
Pole at s = −1/αT and Zero at s = −1/T Since α < 1, the zero is closer to
the origin than the pole.
The lead compensator provides slope of +20 dB/decade for the magnitude
response and a positive phase for the phase response of the uncompensated
system.
52
Maximum phase lead provided by the lead compensator is given by
−1 1 − α
θm = sin
1+α
The frequency at which maximum phase occurs is given by the geometric
mean of the corner frequencies.
1
ωm = √
T α
[1 + T s] R1 + R2
Gc (s) = β= ; T = R2 C
1 + βT s R2
53
Pole at s = −1/βT and Zero at s = −1/T Since β > 1, the pole is closer to
the origin than the zero.
The lag compensator provides slope of -20 dB/decade for the magnitude
response and a negative phase for the phase response of the uncompensated
system.
54
5.2.3 Lag-Lead Compensator
Lag-Lead compensator is an electrical network which produces phase lag
at one frequency region and phase lead at other frequency region. It is
a combination of both the lag and the lead compensators. The lag-lead
compensator circuit in the ‘s’ domain is shown.
α[1 + T1 s][1 + T2 s]
Gc (s) =
[1 + αT1 s][1 + βT2 s]
R2 R1 + R2
α= ; T1 = R1 C; β= ; T2 = R2 C
R1 + R2 R2
The lag-lead compensator can work both ways i.e provide phase lag first and
then phase lead or vice versa.
If the lag compensator pair is closer to origin, then the compensator behaves
like a band stop filter as shown in the magnitude Bode plot.
55
Bode Diagram
24
23
Magnitude (dB)
22
21
20
19
20
10
Phase (deg)
−10
−20
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
If the lead compensator pair is closer to origin, then the compensator behaves
like a band pass filter as shown in the magnitude Bode plot.
Bode Diagram
28
27
Magnitude (dB)
26
25
24
23
20
10
Phase (deg)
−10
−20
−1 0 1 2
10 10 10 10
Frequency (rad/sec)
56
6 State Space Analysis
Disadvantages of classical control theory:
4. Does not consider internal states of the system, considers only input
and output.
5. Any higher order system can be represented using first order equations
only.
6. Considers internal states of the system, along with input and output.
The state of a system corresponds to the minimum set of variables such that
the knowledge of these variables at time t = to and input at time t ≥ to
completely determines the behaviour of the system for any time t ≥ to .
These variables are called ”State Variables”. Since a system will have mul-
tiple state variables (say ’n’), then the vector consisting of all the n state
variables is called the ”State Vector”. The vector space consisting of all pos-
sible states of a system is called it’s ”State Space”.
57
The above system consists of r input variables (u1 , u2 , ....ur ), m output vari-
ables (y1 , y2 , ....ym ) and n state variables (x1 , x2 , ....xn ) all being functions
of time.
The outputs are also represented as functions of the states and inputs.
~y (t) = f (~x(t), ~u(t), t) for time varying systems
~y (t) = f (~x(t), ~u(t)) for time invariant systems
For linear time invariant systems, due to property of superposition and ho-
mogeneity, it can be found that the state equations and output equations
can be represented as follows.
58
Selection of state variables
• The number of state variables must be minimized.
• The number of state variables will be equal to the order of the differ-
ential equations and equal to the number of integrators used.
59
variables.
Take y(t) = x1 (t), then
dy(t)
dt
= x1˙(t) = x2 (t) and
d2 y(t)
dt2
= x2˙(t) = ku(t) − ax2 (t) − bx1 (t)
where x1 (t) and x2 (t) are the state variables.
From this, the state equations and output equations can be expressed in ma-
trix
" form # to obtain the 4 defining matrices.
x1˙(t)
0 1 x1 (t) 0
˙ = + u(t)
x2 (t) −b −a x 2 (t) k
x1 (t)
y(t) = 1 0 + 0u(t)
x2 (t)
Same concept can be applied to MIMO systems of higher order. Any order
differential equation with any number of inputs and outputs can be repre-
sented in the same manner.
For example,
Y (s) s+l
G(s) = = 2
U (s) s + cs + d
dx(t)
y(t) = + px(t)
dt
dx2 (t) dx(t)
2
+c + dx(t) = u(t)
dt dt
60
dx(t)
The state variables are x1 (t) = x(t) and x2 (t) = dt
These
" #equations expressed in matrix will give the 4 defining matrices.
˙
x1 (t)
0 1
x1 (t)
0
˙ = + u(t)
x2 (t) −d −c x2 (t) 1
x1 (t)
y(t) = l 1 + 0u(t)
x2 (t)
For MIMO systems, a unique transfer function will be defined for each com-
bination of input and output. Similar exercise for each of those transfer
functions provides overall state model.
−r
In the above state diagram (SFG) there are 2 integrators, whose outputs are
taken to be the state variables.
State equations:
x1˙(t) = x2 (t)
x2˙(t) = (p − q)x1 (t) − rx2 (t) + pu(t)
Output equation:
y2 (t) = x1 (t)
61
The above
" # equations expressed in matrix will give the 4 defining matrices.
˙
x1 (t) 0 1
x1 (t)
0
˙ = + u(t)
x2 (t) (p − q) −r x 2 (t) p
x1 (t)
y2 (t) = 1 0 + 0u(t)
x2 (t)
Y (s)
∴ = C[SI − A]−1 B + D
U (s)
Characteristic equation of the system will be given by |SI − A| = 0
since the determinant of that matrix is to be divided why finding the inverse.
|SI −A| = 0 will give the locations of the poles, which determine the stability
and characteristic behaviour of the system.
A general nth order MIMO LTI system with state equations defined by ẋ =
Ax + Bu and output equations defined by y = Cx + Du is controllable if
and only if the rank of the matrix Qc is n i.e determinant of the matrix Qc
is non-zero.
Qc = [B : AB : .... : An−1 B]
62
Observability of a system:
A system is said to be completely state observable if every state x(to ) can be
completely identified by measurements of the outputs y(t) over a finite time
interval.
A general nth order MIMO LTI system with state equations defined by ẋ =
Ax + Bu and output equations defined by y = Cx + Du is observable if and
only if the rank of the matrix Qo is n i.e determinant of the matrix Qo is
non-zero.
Qo = [C T : AT C T : .... : (AT )n−1 C T ]
63
6.4.1 State space transformations
A state space transformation can be obtained using a linear transformation
~
which links the old state vector ~x(t) with the new vector X(t).
~
X(t) = T ~x(t).
Applying this to the state equations and output equations, a new equivalent
set of equations are obtained.
~˙
X(t) ~
= A1 X(t) + B1~u(t)
~y (t) = C1~x(t) + D~u(t)
Where A1 = T −1 AT ; B1 = T −1 B; C1 = CT
64
The matrix Λ obtained by diagonalizing the system matrix A is the eigenvalue
matrix which consists of the eigenvalues as its principle diagonal elements.
The matrix that diagonalizes A i.e the matrix S is formed by placing the
eigenvectors of A as columns of the matrix. S = [x¯1 x¯2 ... x¯n ]
65