Professional Documents
Culture Documents
Chapter 8
Chapter 8
1 / 129
Chapter 8
2 / 129
Frequency response
We want to know how a linear system responds to a sinusoidal input
in steady state.
Consider the system
Y (s)
= G (s) .
U (s)
Consider the input
u (t) = u0 sin (t) U (s) =
u0
.
+ 2
s2
u0
.
+ 2
s2
Chapter 8
3 / 129
Frequency response
After doing a partial fraction expansion (assume distinct roots)
1
n
0
0
+ +
+
+
s a1
s an
s + j s j
y (t) = 1 exp (a1 t) + + n exp (an t) +2 |0 | sin (t + )
{z
}
|
Y (s) =
yss
= 2 |0 | sin (t + )
= Au0 sin (t + )
Chapter 8
4 / 129
Frequency response
Notice that, 0 is found using partial fraction expansion method, and
A and may be found from 0 as
A = |G (s)| |s=j
and
= |G (j)|
q
=
[R (G (j))]2 + [I (G (j))]2
= G (s) |s=j
= G (j)
I (G (j))
.
= tan1
R (G (j))
Chapter 8
5 / 129
1
.
1 + RCs
1
.
1 + j
Chapter 8
6 / 129
Chapter 8
7 / 129
0.0
0.5
1.0
1.5
2.0
3.0
5.0
10.0
+
G (j)
1.0000.0
0.894 26.6
0.707 45.0
0.555 56.3
0.447 63.4
0.316 71.6
0.196 78.7
0.100 84.3
0.000 90.0
Chapter 8
8 / 129
We will later see that the polar plot will help us determine stability
properties of the plant and the closedloop system.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
9 / 129
Chapter 8
10 / 129
Chapter 8
11 / 129
These plots are in natural scale, but usually a loglog plot is preferred.
These are called Bode plots or Bode diagrams.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
12 / 129
Bode plots
ab
cd
Chapter 8
13 / 129
Bode plots
Example
For
G (s) =
s +1
j + 1
G (s) |s=j = G (j) =
s/10 + 1
j/10 + 1
we obtain
|G (j)| =
and thus
|j + 1|
|j/10 + 1|
p
log10 |G (j)| = log10 1 + 2 log10
1+
2
10
Chapter 8
14 / 129
Bode plots
Consider the following expression
s
log10
For n ,
log10
1+
1+
2
2
log10 1 = 0.
For n ,
log10
1+
2
log10
Chapter 8
15 / 129
Bode plots
Figure:
Chapter 8
16 / 129
Chapter 8
17 / 129
Chapter 8
18 / 129
Chapter 8
19 / 129
Chapter 8
20 / 129
For a zero on the real axis (LHP or RHP), the standard Bode form is
G (s) =
s
1
n
s
1
n
and draw the constant gain n separately from the term (s/n 1).
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
21 / 129
s
1 G (j) = j
1.
G (s) =
n
n
So, we obtain
20 log10
For n ,
1+
1+
1+
2
20 log10
2
20 log10
2
1 = 0.
.
Chapter 8
22 / 129
Figure: Bode magnitude plot for a zero on real axis, but not at origin
Chapter 8
23 / 129
For a pole on the real axis (LHP or RHP), standard Bode form is
G (s) =
1
1
s
G (j) = j
1
.
1
n
n
So, we obtain
s
1+
2
1+
2
which is same as zero on real axis, but not at origin except for a
minus sign.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
24 / 129
Figure: Bode magnitude plot for a pole on real axis, but not at origin
Chapter 8
25 / 129
2
n
n + 1 .
Chapter 8
26 / 129
Complex zero pair does not lend themselves very well to straight line
approximation.
We write complex zero pair (LHP or RHP) as
"
#
s 2
s
G (s) =
2
+1 .
n
n
At = n , magnitude value = 20 log10 (2) dB.
For n , magnitude value 0 dB.
Chapter 8
27 / 129
Chapter 8
28 / 129
"
s
n
2
s
n
#1
+1
Chapter 8
29 / 129
Chapter 8
30 / 129
Chapter 8
31 / 129
2000 (s + 0.5)
.
s (s + 10) (s + 50)
2000 0.5
10 50 s
2
s
10
G (j) = 2
j
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
+1
1
.
s
50 + 1
s
0.5 +
+1
s
10
s
0.5 +
s
50
+1
+1
.
+ 1 j
+
1
50
j
10
1
j
0.5
Chapter 8
32 / 129
Chapter 8
33 / 129
Chapter 8
34 / 129
2000(s+0.5)
s(s+10)(s+50)
Chapter 8
35 / 129
Chapter 8
36 / 129
Chapter 8
37 / 129
Chapter 8
38 / 129
Chapter 8
39 / 129
Chapter 8
40 / 129
Chapter 8
41 / 129
Bode plots we have seen so far consist of only the magnitude plots.
There are also phase plots.
They differ depending on whether the dynamics (the poles and the
zeros) are at the RHP or the LHP.
Chapter 8
42 / 129
Chapter 8
43 / 129
ab
cd
Chapter 8
44 / 129
For G (s) = K ,
(K ) =
0
for K 0
180 for K < 0
Chapter 8
45 / 129
j
1
1
= = 90 .
j
Chapter 8
46 / 129
For a real LHP zero, we have G (s) = si + 1 .
So,
j
1
+ 1 = tan
G (j) =
.
i
i
Chapter 8
47 / 129
s
i
1
.
+1
j
1
+ 1 = tan
.
i
i
Chapter 8
48 / 129
For a real RHP zero, we have G (s) = si 1 .
So,
j
1
G (j) =
1 = 180 +tan
= 180 tan
.
i
i
i
Chapter 8
49 / 129
s
i
1
.
1
j
1
1 = 180 + tan
.
i
i
Chapter 8
50 / 129
Chapter 8
51 / 129
Chapter 8
52 / 129
Chapter 8
53 / 129
Chapter 8
54 / 129
Chapter 8
55 / 129
2000 (s + 0.5)
.
s (s + 10) (s + 50)
2000 0.5
10 50 s
2
s
10
G (j) = 2
j
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
+1
1
.
s
50 + 1
s
0.5 +
+1
s
10
s
0.5 +
s
50
+1
+1
.
+ 1 j
+
1
50
j
10
1
j
0.5
Chapter 8
56 / 129
Chapter 8
57 / 129
2000(s+0.5)
s(s+10)(s+50)
Chapter 8
58 / 129
o
o
zero at
pole at
zero at
pole at
1
10
+1
10
minimum
phase
nonminimum
phase
|j+1|
+1
|G1 (j)| = 10 |j+10|
= 10 2 +100
|j1|
=
|G2 (j)| = 10 |j+10|
2 +1
10 2 +100
Chapter 8
59 / 129
s+1
s1
Figure: Bode magnitude plot for G1 (s) = 10 s+10
and G2 (s) = 10 s+10
Chapter 8
60 / 129
s+1
s1
Figure: Bode phase plots for G1 (s) = 10 s+10
and G2 (s) = 10 s+10
Note that, the change in phase of G1 is much smaller than the change
of phase in G2 .
Hence G1 is minimum phase and G2 is nonminimum phase.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
61 / 129
s1
where we notice that s+1
is very similar to a first order Pade
approximation of a delay.
Chapter 8
62 / 129
Bode plots
Stability revisited
where
D (s) = K , G (s) =
1
s (s + 1)2
Chapter 8
63 / 129
Bode plots
Stability revisited
Root Locus
3
Imaginary Axis
3
5
Real Axis
1
s(s+1)2
with D (s) = K
Chapter 8
64 / 129
Bode plots
Stability revisited
Chapter 8
65 / 129
Bode plots
Stability revisited
Chapter 8
66 / 129
Bode plots
Stability revisited
Chapter 8
67 / 129
Bode plots
Stability revisited
Chapter 8
68 / 129
Nyquist stability
If the poles of a closedloop transfer function are in RHP, then the
system is unstable.
Nyquist found a way to count the closedloop poles in RHP.
If the count is greater than zero, then the system is unstable.
Idea:
First, find a way to count closedloop poles inside a contour.
Second, make the contour equal to the RHP.
Nyquists technique is a graphical method to determine:
system stability,
regions of stability,
margins of stability.
It involves graphing complex functions of s as a polar plot.
Counting is related to complex functional mapping.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
69 / 129
Nyquist stability
Complex functional mapping
Chapter 8
70 / 129
Nyquist stability
Complex functional mapping
Chapter 8
71 / 129
Nyquist stability
Complex functional mapping
Chapter 8
72 / 129
Nyquist stability
Complex functional mapping
Idea:
By drawing maps of a specific contour, using a mapping function
related to the plant openloop frequency response, we will be able to
determine closedloop stability of systems.
Chapter 8
73 / 129
Nyquist stability
Mapping function: Poles of the function
= G (s0 )
where
=
zeros
poles.
Chapter 8
74 / 129
Nyquist stability
Mapping function: Poles of the function
Chapter 8
75 / 129
Nyquist stability
Mapping function: Poles of the function
Chapter 8
76 / 129
Nyquist stability
Mapping function: Poles of the function
Chapter 8
77 / 129
Nyquist stability
Cauchys Theorem
Theorem
Let F (s) be the ratio of two polynomials in s.
Let the closed curve C in the splane be mapped into the complex plane
through the mapping F (s).
If the curve C does not pass through any zeros or poles of F (s) as it is
traversed in the CW direction, the corresponding map in the F (s)plane
encircles the origin N = Z P times in the CW direction, where
Z
= # of zeros of F (s) in C ,
P = # of poles of F (s) in C .
Chapter 8
78 / 129
Nyquist stability
Cauchys Theorem
D (s) G (s)
.
1 + D (s) G (s) H (s)
Chapter 8
79 / 129
Nyquist stability
Cauchys Theorem
Let F (s) = 1 + D (s) G (s) H (s), and count the number of zeros of
F (s) in RHP using Cauchys theorem where the contour is the entire
RHP.
Chapter 8
80 / 129
Nyquist stability
Cauchys Theorem
Note that, for F (s) = 1 + D (s) G (s) H (s), from Cauchys Theorem,
N = # of encirclements of origin.
Chapter 8
81 / 129
Nyquist stability
Nyquist criterion
Chapter 8
82 / 129
Chapter 8
83 / 129
Chapter 8
84 / 129
Chapter 8
85 / 129
Note that, changing the gain K of F (s) magnifies the entire plot.
This magnification property allows an enhanced test to obtain ranges
of K for stability.
For the loop transfer function KD (s) G (s) H (s), N = # of
encirclements of 1/K point when F (s) = D (s) G (s) H (s) where
the rest of test is the same.
Chapter 8
86 / 129
Nyquist stability
Example
5
(s + 1)2
, D (s) = H (s) = 1.
We have:
I. For s = 0, G (s) = 5.
II. For s = j, G (j) = 5/ (j + 1)2 .
III. For |s| = , G (s) = 0.
Chapter 8
87 / 129
Nyquist stability
Example
R (G (j)) I (G (j))
0.0000
5.0000
0.0000
0.0019
4.9999
0.0186
0.0040
4.9998
0.0404
0.0088
4.9988
0.0879
0.0191
4.9945
0.1908
0.0415
4.9742
0.4135
0.0902
4.8797
0.8872
0.1959
4.4590
1.8172
0.4258
2.9333
3.0513
R (G (j)) I (G (j))
0.9253
0.2086
2.6856
2.0108
0.5983
0.7906
4.3697
0.2241
0.1082
9.4957
0.0536
0.0114
20.6351
0.0117
0.0011
44.8420
0.0025
0.0001
97.4460
0.0005
0.0000
500.0000 0.0000
0.0000
Chapter 8
88 / 129
Nyquist stability
Example
No encirclements of 1: N = 0.
No openloop unstable poles: P = 0.
So, Z = N + P = 0, thus, closedloop system is stable.
No encirclements of 1/K for any K > 0.
So, the system is stable for any K > 0.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
89 / 129
Nyquist stability
Example
1 + 5K
Chapter 8
90 / 129
Nyquist stability
Example
50
2
(s + 1) (s + 10)
, D (s) = H (s) = 1.
We have:
I. For s = 0, G (s) = 50/10 = 5.
II. For s = j, G (j) =
50
.
(j+1)2 (j+10)
50
(j+1)2 (j+10)
= G (j).
Chapter 8
91 / 129
Nyquist stability
Example
R (G (j)) I (G (j))
0.0
5.0000
0.0000
0.1
4.9053
0.8008
0.2
4.4492
1.8624
0.5
2.4428
3.2725
1.2
0.5621
2.0241
2.9
0.4764
0.1933
7.1
0.0737
0.0262
17.7 0.0046
0.0064
43.7 0.0002
0.0006
100
0.0000
0.0000
Chapter 8
92 / 129
Nyquist stability
Example
Chapter 8
93 / 129
Nyquist stability
Example
Chapter 8
94 / 129
Nyquist stability
Pole at the origin
1
, D (s) = H (s) = 1.
s ( s + 1)
Chapter 8
95 / 129
Nyquist stability
Pole at the origin
where the bump at the origin makes a detour around the offending
pole.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
96 / 129
Nyquist stability
Pole at the origin
where 0 90 .
From above,
1
exp (j) ( exp (j) + 1)
where 0 90 .
Chapter 8
97 / 129
Nyquist stability
Pole at the origin
Magnitude when 0 is
lim G (s) |s= exp(j) =
1
1
.
| exp (j) + 1|
Phase when 0 is
So,
lim G ( exp (j)) lim
1
+
Chapter 8
98 / 129
Nyquist stability
Pole at the origin
N = # of encirclements of 1: N = 0.
Chapter 8
99 / 129
Nyquist stability
Example
1
, D (s) = H (s) = 1.
s 2 (s + 1)
where 0 90 .
From above,
G (s) |s= exp(j) =
1
2 exp (j2) ( exp (j)
+ 1)
where 0 90 .
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
100 / 129
Nyquist stability
Example
Magnitude when 0 is
lim |G ( exp (j))| =
1
1
2.
2 | exp (j) + 1|
Phase when 0 is
lim G (s) |s= exp(j) = 2 ( exp (j) + 1) 2+ .
So,
lim G ( exp (j)) lim
where
90 .
1
2+
2
Chapter 8
101 / 129
Nyquist stability
Example
N = # of encirclements of 1: N = 2.
P = # of loop transfer function poles inside the modified contour:
P = 0.
So, Z = N + P = 2, thus, closedloop system is unstable for K = 1.
In fact, the system is unstable for any K > 0.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
102 / 129
Stability margins
A large fraction of systems to be controlled are stable for small gain
but become unstable if gain is increased beyond a certain point.
The distance between the current (stable) system and an unstable
system is called a stability margin.
We can have a gain margin and a phase margin.
Gain Margin: Factor by which the gain is less than the neutral
stability value.
Gain margin measures How much can we increase the gain of the
loop transfer function D (s) G (s) H (s) and still have a stable
system?
Phase Margin: Phase factor by which phase is greater than neutral
stability value.
Phase margin measures How much delay can we add to the loop
transfer function and still have a stable system?
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
103 / 129
Stability margins
Many Nyquist plots are like this one:
Chapter 8
104 / 129
Stability margins
Many Nyquist plots are like this one:
Chapter 8
105 / 129
Stability margins
This is usually easier to check on Bode plot, even though derived on
Nyquist plot.
Define gain crossover as frequency where Bode magnitude is 0 dB.
Define phase crossover as frequency where Bode phase is 180 .
PM = Bode phase at gain crossover (180 ).
Chapter 8
106 / 129
Stability margins
Chapter 8
107 / 129
Chapter 8
108 / 129
where
D (s) = K .
Similar to the root locus method, we use the characteristic equation
in the form
cl (s) = 1 + KG (s)
to examine the stability and the performance of Bode plot parameters.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
109 / 129
Chapter 8
110 / 129
PM = tan1 qp
1 + 4 4 2 2
Chapter 8
111 / 129
Chapter 8
112 / 129
where
G (s) =
s
2
1
, D (s) = K .
+1
Chapter 8
113 / 129
1.
2.
3.
4.
5.
6.
7.
Chapter 8
114 / 129
s
2
1
.
+1
Chapter 8
115 / 129
Chapter 8
116 / 129
6. The difference between the desired magnitude plot and the original
magnitude plot is
shift = desired + original = 0 9 = 9 dB.
Assoc. Prof. Enver Tatlicioglu (EEE@IYTE)
Chapter 8
117 / 129
Chapter 8
118 / 129
where
G (s) =
(s + 1)
s
10
1
+1
s
100
, D (s) = K .
+1
Chapter 8
119 / 129
(s + 1)
s
10
1
+1
s
100
.
+1
Chapter 8
120 / 129
Chapter 8
121 / 129
Chapter 8
122 / 129
6. The difference between the desired magnitude plot and the original
magnitude plot is
shift = desired + original = 0 20 = 20 dB.
7. Calculate K by using the following formula derived from the
magnitude condition
K = 10(shift/20) = 10(20/20) = 10.
Chapter 8
123 / 129
Chapter 8
124 / 129
Ts+1
Ts+1
where < 1.
Chapter 8
125 / 129
Chapter 8
126 / 129
Chapter 8
127 / 129
Chapter 8
128 / 129
Chapter 8
129 / 129