You are on page 1of 30

Systems Analysis and Control

Matthew M. Peet
Illinois Institute of Technology

Lecture 23: Drawing The Nyquist Plot

Overview

In this Lecture, you will learn:


Review of Nyquist
Drawing the Nyquist Plot
Using the Bode Plot
What happens at r =
Poles on the imaginary axis

Phase Margin and Gain Margin


Reading Stability Margins off the Nyquist Plot

M. Peet

Lecture 23: Control Systems

2 / 30

Review
Systems in Feedback

The closed loop is


kG(s)
1 + kG(s)
We want to know when
1 + kG(s) = 0
Question: Does

1
k

+ G(s) have any zeros in the RHP?

u(s) +

M. Peet

G(s)

Lecture 23: Control Systems

y(s)

3 / 30

Review
The Nyquist Contour

Definition 1.
The Nyquist Contour, CN is a contour which contains the imaginary axis and
encloses the right half-place. The Nyquist contour is clockwise.
A Clockwise Curve
Starts at the origin.
Travels along imaginary axis till r = .

r=

At r = , loops around clockwise.


Returns to the origin along imaginary axis.

We want to know if
1
+ G(s)
k
has any zeros in the Nyquist Contour
M. Peet

Lecture 23: Control Systems

4 / 30

Review
Contour Mapping Principle

Key Point: For a point on the mapped contour, s = G(s),


s = G(s)
We measure , not phase.

To measure the 360 resets in G(s)


We count the number of +360 resets in !
We count the number of times CG encircles the origin Clockwise.

The number of clockwise encirclements


of 0 is

s*= G(s)

The #poles #zeros in the RHP


s
= < G(s)

M. Peet

Lecture 23: Control Systems

5 / 30

The Nyquist Contour


Closed Loop

The number of unstable closed-loop poles is


N + P , where
N is the number of clockwise

encirclements of

1
k .

P is the number of unstable open-loop

poles.
If we get our data from Bode, typically P = 0
-1/k

How to Plot the Nyquist Curve?

M. Peet

Lecture 23: Control Systems

6 / 30

Plotting the Nyquist Diagram


Example

How are we to plot the Nyquist diagram for


G(s) =

1
(1 s + 1)(2 s + 1)

1 = 1
1
2 = 10

First lets take a look at the root locus.


Root Locus
6

Obviously stable for any k > 0.

Imaginary Axis

6
12

M. Peet

10

Lecture 23: Control Systems

6
4
Real Axis

7 / 30

The Nyquist Plot


Bode Plot: Lets look at the Frequency Response.
Bode Diagram

The Bode plot can give us information


on |G| at different frequencies.

20

B
C

.1
1
3
10
100

G
0
45
90
135
175

|G|
1
.7
.3
.07
.001

The last two columns give us points on


the Nyquist diagram.

-40

E
-60
-80
-100
-120

-45
Phase (deg)

Point
A
B
C
D
E

Magnitude (dB)

-20

C
-90

D
-135

E
-180
10

M. Peet

-2

10

-1

Lecture 23: Control Systems

10
Frequency (rad/sec)

10

10

10

8 / 30

The Nyquist Plot


Plot the points from the Bode Diagram.
Nyquist Diagram

.1
1
3
10
100

G
0
45
90
135
175

|G|
1
.7
We get
.3
.07
.001

the upper half of the Nyquist diagram


from symmetry.

0.8

0.6

0.4

0.2
Imaginary Axis

Point
A
B
C
D
E

D
-0.2

C
-0.4

-0.6

-0.8
-0.2

M. Peet

0.2

Lecture 23: Control Systems

0.4
Real Axis

0.6

0.8

1.2

9 / 30

The Nyquist Plot


Nyquist Diagram
0.8

0.6

0.4

Imaginary Axis

0.2

D
-0.2

C
-0.4

-0.6

-0.8
-0.2

0.2

0.4
Real Axis

0.6

0.8

1.2

There are no encirclements of k1 .


Stable for all k > 0.
We already knew that from Root Locus.
M. Peet

Lecture 23: Control Systems

10 / 30

The Nyquist Plot


Example 2

G(s) =

1
(s + 1)3

First lets take a look at the root locus.


Root Locus

We expect instability for large k.

1.5

Imaginary Axis

0.5

0.5

1.5

2
2.5

M. Peet

1.5

Lecture 23: Control Systems

1
Real Axis

0.5

0.5

11 / 30

The Nyquist Plot


Bode Plot: Lets look at the Frequency Response.
Bode Diagram

The Bode plot can give us information


on |G| at different frequencies.

10

G
0
45
135
180
260

|G|
1
.95
.35
.1
.001

D
Magnitude (dB)

.1
.28
1
1.8
10

-20
-30
-40
-50

-60
-70
0

-45

-90
Phase (deg)

Point
A
B
C
D
E

-10

C
-135

D
-180

-225
-270
10

-2

10

-1

10

10

Frequency (rad/sec)

M. Peet

Lecture 23: Control Systems

12 / 30

The Nyquist Plot


Plot the points from the Bode Diagram.
Nyquist Diagram

.1
.28
1
1.8
10

G
0
45
135
180
260

|G|
1
.95
.35
.1
.001

Point D is especially important.

0.8

0.6

0.4

0.2
Imaginary Axis

Point
A
B
C
D
E

-0.2

-0.4

-0.6

B
-0.8
-0.4

M. Peet

-0.2

Lecture 23: Control Systems

0.2

0.4
Real Axis

0.6

0.8

1.2

13 / 30

The Nyquist Plot


Nyquist Diagram
0.8

0.6

0.4

Imaginary Axis

0.2

-0.2

-0.4

-0.6

B
-0.8
-0.4

-0.2

0.2

0.4
Real Axis

0.6

0.8

1.2

Point D: Two CW encirclements when k1 < .1 (N=2).


Instability for k1 < .1
Stable for k < 10.
Could have used Routh Table.
M. Peet

Lecture 23: Control Systems

14 / 30

The Nyquist Plot


Conclusion: We can use the Bode Plot to map the
imaginary axis onto the Nyquist Diagram.

r=

Question: What about the other part of the Nyquist


contour at r = ?

Case 1: Strictly Proper.


lim |G(s)| = 0

What happens at doesnt matter.


Case 2: Not Strictly Proper.

< s-p1

lim |G(s)| = c

< s-z = < s-p1 = < s-p2 = < s-p3

Re(s)

Constant Magnitude at .
M. Peet

Im(s)

Lecture 23: Control Systems

15 / 30

The Nyquist Plot


Case 2: Not Strictly Proper.
Angle to all poles and zeros is the same.
Degree of n(s) and d(s) the same.
I

< s-p1

Im(s)

Number of Poles and Zeros the same.

The total angle is


G(s) =

n
X

< s-z = < s-p1 = < s-p2 = < s-p3

(s zi )

i=1

n
X

Re(s)

(s pi )

i=1
Nyquist Diagram

=0

0.8

0.6

The contour map at has

0.4

0.2
Imaginary Axis

Constant magnitude.
Zero angle.

0.2

0.4

The infinite loop is mapped to a single point!


Either (0, 0) or (c, 0).
M. Peet

0.6

0.8
0.6

Lecture 23: Control Systems

0.8

1.2

1.4
Real Axis

1.6

1.8

2.2

16 / 30

The Nyquist Plot


Another Problem: Recall the non-inverted pendulum
with PD feedback.
s+1
G(s) = 2 p g
s + l
p
Magnitude goes to at = gl .
Question How do we plot the Nyquist
Diagram?

Bode Diagram
160
140
120
Magnitude (dB)

100
Nyquist Diagram

80
60
40
20
0

20
40
45

0
0

Phase (deg)

Imaginary Axis

45

90

135
2

10

10

10
Frequency (rad/sec)

10

10

1.5

M. Peet

0.5

0
0.5
Real Axis

1.5

2.5

Lecture 23: Control Systems

17 / 30

The Nyquist Plot


Problem: The Nyquist Contour passes through a pole.
Because of the pole, the argument principle is invalid.
What to do?

r=

We Modify the Nyquist Contour.


We detour around the poles.
Can detour to the right or left.
If we detour to the left, then the poles count as unstable open loop poles.
P=2
Assume we detour to the right.
P=0
M. Peet

Lecture 23: Control Systems

18 / 30

The Nyquist Plot


Look at the detours at small radius.
Obviously, magnitude
Before the Detour, the phase from the pole is

(s p) = 90

< (s - p) = 80o

In the middle of the Detour, the phase from the

pole is
(s p) = 0
At the end of the Detour, the phase from the pole

< (s - p) = -5o

is
(s p) = 90
The total phase change through the detour is 180 .
Corresponds to a CW loop at large radius.
If there are two or more poles, there is a -180 loop for each pole.

M. Peet

Lecture 23: Control Systems

19 / 30

The Nyquist Plot


Look at the following example:
G(s) =

s+2
s2

There are 2 poles at the origin.


At = 0,
I
I

G(0) = 180
|G(0)| =

2 poles means 360 loop at = 0


M. Peet

Lecture 23: Control Systems

20 / 30

The Nyquist Plot


Lets re-examine the pendulum problem with derivative feedback.
Nyquist Diagram

___
=(g/l)
10

Imaginary Axis

10

10

0
Real Axis

10

Now we can figure out what goes on at .


pg
There is a 180 loop at each =
l.
M. Peet

Lecture 23: Control Systems

21 / 30

The Nyquist Plot

Conclusion: The loops connect in a non-obvious way!


Nyquist Diagram

Nyquist Diagram

1500

___
=(g/l)
10

1000

500
Imaginary Axis

Imaginary Axis

500

1000
10

10

For 0 <

1
k

0
Real Axis

1500
400 200

10

200

400
600
Real Axis

800

1000 1200 1400

< 1, we have N = 1

M. Peet

Lecture 23: Control Systems

22 / 30

Stability Margins
Recall the definitions of Gain Margin.

Definition 2.
The Gain Margin, Km = 1/|G()|
when G() = 180
Let Km is the maximum stable gain in
closed loop.
Km G(s) is unstable in closed loop
Sometimes expressed in dB

It is easy to find the maximum stable


gain from the Nyquist Plot.
1
Find the point K
which
m
destabilizes

M. Peet

Lecture 23: Control Systems

23 / 30

Stability Margins
Example

Recall
G(s) =

1
(s + 1)3

Nyquist Diagram
0.8

0.6

0.4

Stability: Stable for k < 10.


Km = 10 or

20dB.

Imaginary Axis

0.2

-0.2

-0.4

-0.6

B
-0.8
-0.4

M. Peet

-0.2

Lecture 23: Control Systems

0.2

0.4
Real Axis

0.6

0.8

1.2

24 / 30

Stability Margins
Example

Suspension System with integral feedback


There is a pole at the origin.
Nyquist Diagram

CW loop at .

Nyquist Diagram

6
50

9.5

40

4
30

20

Imaginary Axis

Imaginary Axis

2
10

10

20

-2

30

40

-4

50
20

20

40
Real Axis

60

Conclusion: Stable for

1
k

80

100

> 9.5.

Stable for k < .105

Km = .105
M. Peet

or

-6

-8
-14

-12

-10

-8

-6
Real Axis

-4

-2

19.5dB
Lecture 23: Control Systems

25 / 30

Stability Margins
Question: What is the effect of a phase change on the Nyquist Diagram.
A shift in phase changes the angle of all points.
A Rotation about the origin.
Will we rotate into instability?
Nyquist Diagram
0.8

0.6

0.6

0.4

0.4

0.2

0.2
Imaginary Axis

Imaginary Axis

Nyquist Diagram
0.8

-0.2

-0.2

-0.4

-0.4

-0.6

-0.6

-0.8

-0.8
-0.2

M. Peet

0.2

0.4
Real Axis

0.6

0.8

1.2

-0.2

0.2

Lecture 23: Control Systems

0.4
Real Axis

0.6

0.8

1.2

26 / 30

Stability Margins
Nyquist Diagram
3

Recall the definitions of Phase Margin.


2

Definition 3.
Imaginary Axis

The Phase Margin, M is the uniform


phase change required to destabilize the
system under unitary feedback.

M
0

3
3

0
Real Axis

Nyquist Diagram
3

Imaginary Axis

3
3

M. Peet

Lecture 23: Control Systems

0
Real Axis

27 / 30

Stability Margins
Example

The Suspension Problem


Nyquist Diagram
2

1.5

Imaginary Axis

0.5

-0.5

-1

-1.5

-2
-3

-2.5

-2

-1.5

-1
Real Axis

-0.5

0.5

Looking at the intersection with the circle:


Phase Margin: M
= 40
Gain Margin is infinite.
M. Peet

Lecture 23: Control Systems

28 / 30

Stability Margins
Example

The Inverted Pendulum Problem

Nyquist Diagram

1.5

Imaginary Axis

0.5

-0.5

-1

-1.5

-2

-1.5

-1

-0.5
Real Axis

0.5

Even though open-loop is unstable, we can still find the phase margin:
Phase Margin: M
= 35
Gain Margin is technically undefined because open loop is unstable.
There is a minimum gain, not a maximum.
M. Peet

Lecture 23: Control Systems

29 / 30

Summary

What have we learned today?


Review of Nyquist
Drawing the Nyquist Plot
Using the Bode Plot
What happens at r =
Poles on the imaginary axis

Phase Margin and Gain Margin


Reading Stability Margins off the Nyquist Plot

Next Lecture: Controller Design in the Frequency Domain

M. Peet

Lecture 23: Control Systems

30 / 30

You might also like