Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Nyquist stability criterion

Valeri Ougrinovski

August 9, 2006

Abstract
This note gives a brief introduction to the closed loop system stability analysis based on
the frequency response of the system open loop gain.

1 Nyquist polar plots


A polar plot of the frequency response produces a curve with frequency as a parameter relating
the points on the polar plot to the appropriate points on the Bode plots, see Fig. 1.
The Nyquist plot contains the same information as the Bode plot. Thus, one can use ap-
proximate Bode plots to reconstruct the shape of the Nyquist plot. For instance, the Bode and
Nyquist plots of
5(s + 1)
G(s) = 2
s + 2s + 10)
are shown below in Figure 1. Arrows on the Nyquist plot indicate the direction in which the
plot changes as the frequency increases from −∞ to +∞ (or equivalently, jω sweeps from the
−jω to +jω along the imaginary axis).
Note the two symmetric branches of the Nyquist plot corresponding to positive and negative
frequencies. Unlike Bode plots, both positive and negative frequencies are used for plotting
Nyquist curves; the reasons for this will become clear later.
The Matlab command to produce accurate Nyquist plots is as follows:

>> nyquist(G,w);

The second argument is optional; it allows you to specify an array of frequencies of interest to
capture some details of the plot. For example, to produce the Nyquist plot in Fig 1, you need
to type

>> G=tf(5*[1 1],[1 2 10]);


>> nyquist(G);

The command nyquist can also be used for computing the frequency response of a system loop
gain for positive frequencies only. No plot is produced, hence the command plot must be used:

>> G=tf(5*[1 1],[1 2 10]);


>> [reG,imG]=nyquist(G,{0.01,1000});
>> plot(squeeze(reG),squeeze(imG))

1
Bode Diagram
10
System: G
Frequency (rad/sec): 2.83
0 Magnitude (dB): 7.96
Magnitude (dB)

−10

−20

−30
45

0
Phase (deg)

System: G
Frequency (rad/sec): 2.83
Phase (deg): −1.66e−14
−45

−90
0 1 2
10 10 10
Frequency (rad/sec)
Nyquist Diagram

1.5

0.5 System: G System: G System: G


Real: 5e−06 Real: 0.5 Real: 2.5
Imaginary Axis

Imag: 0.005 Imag: −0 Imag: 0.00186


Freq (rad/sec): −1e+03 Freq (rad/sec): −0 Freq (rad/sec): −2.83
0
System: G
Real: 5e−06
Imag: −0.005
−0.5 Freq (rad/sec): 1e+03

−1

−1.5

−1 −0.5 0 0.5 1 1.5 2 2.5


Real Axis

5(s+1)
Figure 1: Bode and Nyquist plots of the loop gain transfer function G(s) = s2 +2s+10

2
The graphical method can be used to obtain an approximate Nyquist plot. Consider an
example. Let
100(−s + 10)
G(s) = .
(s + 0.1)2 (s2 + 0.1s + 100)
This transfer function has the single nonminumum phase zero at s = 10, the double pole at
s = −0.1 (real), and the pair of complex conjugate poles at s ≈ −0.05 ± 10j. First let us sketch
the magnitude Bode plot.
dB
60

40

20

PSfrag replacements
0
0.1 1 10 100 ω

-20

-40

-60

-80

Note that zero at −10 and the pair of complex conjugate poles at −0.05 ± 10j yield the
same corner frequency ω = 10 rad/sec. Hence the net change of slope at this corner frequency
is +20 − 40 = −20 dB/decade.
Also, note that the poles −0.05 ± 10j are very underdamped, hence it is appropriate to draw
a peak at the corresponding corner frequency.
We now proceed to phase calculations. Write the transfer function in a “standard form”:

−100(s − 10)
G(s) = .
(s + 0.1)2 (s2 + 0.1s + 100)

Note the gain factor of −100. The “−” sign means that the +180 ◦ or −180◦ term should be
taken into account, let’s use −180◦ . The phase of G(jω) can be expressed as

∠G(jω) = −180◦ + θ1 − 2θ2 − θ3 − θ4 ;

the angles are shown in the Figure 2 below. Note the factor of 2 in front of θ 2 , this factor is to
reflect the contribution of the double pole at s = −0.1.

3
θ3
PSfrag replacements

θ1

θ2

θ4

Figure 2:

ω, rad/sec θ1 θ2 θ3 θ4 ∠G(jω) = 180◦ + θ1 − 2θ2 − θ3 − θ4


0 180◦ 0◦ -90◦ 90◦ 0◦
0.1 180◦ 45◦ -90◦ 90◦ -90◦
1 180◦ 90◦ -90◦ 90◦ -180◦
9.5 135◦ 90◦ -90◦ 90◦ -225◦
9.95 135◦ 90◦ -45◦ 90◦ -270◦
10 135◦ 90◦ 0◦ 90◦ -315◦
10.05 135◦ 90◦ 45◦ 90◦ -360◦
10.5 135◦ 90◦ 90◦ 90◦ -405◦
100 90◦ 90◦ 90◦ 90◦ -450◦
∞ 90◦ 90◦ 90◦ 90◦ -450◦

This agrees with the true Bode plot shown in Figure 5. Note the rapid change of 180 ◦ around
the resonant frequency (natural undamped frequency) ω = 10rad/sec.
From the above analysis, we can sketch the Nyquist plot; see Figure 3. The true plot is
shown in Figure 4 (positive frequencies only). It was obtained using nyquist command:

>> num=100*[-1 100];


>> den=conv([1 0.2 0.01],[1 0.1 100]);
>> [re,im]=nyquist(num,den,{0.01,100});
>> plot(squeeze(re),squeeze(im));
>> grid
>>

On Figure 4 (left plot) the general shape of the plot can be seen but the loop near the origin
is invisible. In Figure 4 on the right, the axis limits have been set so that the behavior of the
polar plot near the frequency ω = 10 can be observed. One method of “zooming in” the picture
is to apply the commands

>> a=[-10 20 -10 20];


>> axis(a);

In the first command, a “zoom window” is defined as [Xmin Xmax Ymin Ymax]. The second
command scales the axes to show the part of the figure within the desired window.

4
Figure 3: Nyquist sketch for the example

20
100

0
15

−100

10
−200

−300 5

−400
0

−500

−5
−600

−700 −10
−200 0 200 400 600 800 1000 −10 −5 0 5 10 15 20

Figure 4: True Nyquist plot: complete and detailed

5
60

40

20

−20

−40

−60

−80
−2 −1 0 1 2
10 10 10 10 10

−100

−200

−300

−400

−500
−2 −1 0 1 2
10 10 10 10 10
ω, rad/sec

Figure 5: Bode plots

2 The Nyquist stability criterion


The Nyquist criterion is essentially a graphical method and allows to establish the stabilityof
the closed loop system from the Nyquist plot of the open loop gain transfer function G(s).
PSfrag replacements
R(s)+ Y (s)
M (s)
G(s) = D(s)

Figure 6:

Consider for simplicity the system shown in Figure 6. The closed loop system has the transfer
function
G(s) M (s)
Gcl (s) = = .
1 + G(s) D(s) + M (s)
Hence the poles of the closed loop system are the roots of D(s) + M (s):

D(s) + M (s) = 0, or, after dividing by D(s) (1)


1 + G(s) = 0. (2)

Hence, stability of the closed loop system can be determined from the analysis of the right
half-plane zeros of the function 1 + G(s).

6
Consider a contour Γs in the right half-plane of the s-plane; see figure 7. For s ∈ Γ s , the set
of complex values of the function G(s) forms another contour Γ G in the complex G(s) plane.

Im s Im G(s)
Γs
ΓG

Re s −1 Re G(s)
PSfrag replacements

Re G(s)
Im 1 + G(s)

a) b)

Figure 7: The s plane and G(s) plane.

The Principle of the Argument states:

If a contour Γs in the complex s plane encircles Z zeros and P poles of 1+G(s) and
the traversal is in the clockwise direction along the contour, then the corresponding
contour ΓG encircles the point −1+j0 in the complex G(s) plane exactly N  = Z −P
times in the clockwise direction.

The Principle of the Argument allows us to establish the number of poles of the closed loop
system by simply looking at the Nyquist plot of G(s). Select a contour Γ s to be large enough
to include the entire right half of the complex plane:


Γs

R=∞
σ
PSfrag replacements

This contour is often called D-contour because of its shape. Note that the D-contour must avoid
imaginary axis poles of G(s), as shown in the figure. For stability, 1 + G(s) should not have
roots in the right half plane, i.e, we need Z = 0. Also, since 1 + G(s) has the same poles as
G(s), then P equals the number of unstable poles of G(s). This leads to the following principle,
called the Nyquist stability criterion:

The Nyquist stability criterion


The closed loop system is stable if and only if the net number of anticlockwise encirclements of

7
the point −1 + j0 by the Nyquist plot of the system loop gain transfer function G(s) is equal to
the number of poles of G(s) in the right half-plane:

N = P.

The equivalent formulation of the Nyquist stability criterion


The closed loop system is stable if and only if the net number of clockwise encirclements of
the point −1 + j0 by the Nyquist plot of the system loop gain transfer function G(s) plus the
number of poles of G(s) in the right half-plane is zero:

N  + P = 0.

3 Examples
3.1 Example 1
K
Consider the feedback system in Figure 6, in which G(s) = s+5 . The Nyquist D-contour for this
system is shown in Figure 8.


PSfrag replacements Γ
σ
jω A
Γs θ
R=∞ -5 σ

Figure 8:

To sketch the Nyquist plot of the loop gain transfer function, use the graphical method:
s ω, rad/sec Gain |G(jω)| Phase ∠G(jω) = −θ, deg.
K
j0 0 5 0◦
K
5j 5 √
5 2
−45◦
jω → +j∞ ω → +∞ |G(jω)| → 0 ∠G(jω) → −90◦
∞ × ejφ N/A 0 N/A
The Nyquist diagram of G(s) is shown in Figure 9. The Nyquist diagarm never encircles the
critical point −1 + j0 for any K > 0. I.e., the number of anti-clockwise encirclements (none)
= the number of unstable poles of G(s) (none). Thus, the closed loop system is stable for any
K > 0.
K
Now let G(s) = s−5 . We use the same Nyquist D-contour. Use the graphical method to
sketch the Nyquist plot of the loop gain transfer function:
s ω, rad/sec Gain |G(jω)| Phase ∠G(jω) = −θ, deg.
K
j0 0 5 −180◦
K
5j 5 √
5 2
−135◦
jω → +j∞ ω → +∞ |G(jω)| → 0 ∠G(jω) → −90◦
∞ × ejφ N/A 0 N/A

8
Nyquist Diagram
1

0.8

K=5
0.6

PSfrag replacements 0.4

0.2
σ
Imaginary Axis
−1+j0
jω 0
ω=−∞
ω=∞
K/5
Γs −0.2 (ω=0)

R=∞ −0.4
σ
jω −0.6

Γ −0.8

A −1
−1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1
θ Real Axis

Figure 9:

The Nyquist plot of G(s) for K = 4 and K = 6 is shown in Figure 10. The loop gain transfer
function G(s) has one unstable pole, P = 1.
When K = 4, the Nyquist plot does not encircle the critical point −1 + j0, N = 0; i.e, the
number of counter-clockwise encirclements 6= the number of unstable poles of G(s): N 6= P .
Thus, the closed loop system is unstable for K = 4.
When K = 6, the Nyquist diagarm makes one circle around the critical point −1 + j0 in the
anti-clockwise direction, N = 1, i.e., the number of anti-clockwise encirclements = the number
unstable poles of G(s), N = P . Thus, the closed loop system is stable for K = 6.
Indeed,
G(s) K
Gcl (s) = = .
1 + G(s) s−5+K
Hence if K = 4 the closed loop system has the unstable pole at s = 5 − 4 = 1. If K = 6 the
closed loop system has the stable pole at s = 5 − 6 = −1.
Nyquist Diagram
1

0.8
K=6

0.6
K=4
0.4

0.2
Imaginary Axis

ω=−∞
0
−1+j0 ω=+∞

−0.2

−0.4 K/(−5)
PSfrag replacements (ω=0)

−0.6
σ
jω −0.8

Γs −1
−1.4 −1.2 −1 −0.8 −0.6 −0.4 −0.2 0
R=∞ Real Axis

Figure 10:

9
3.2 Example 2
1
Consider the feedback system in Figure 6, with G(s) = s(s+1)(s+2) . The Nyquist D-contour for
this system is shown in Figure 11a. Note that the pole at 0 is avoided.
Since this pole is exluded from the right half plane by the chosen Nyquist contour, for
stability we need the Nyquist plot not to encircle −1 + j0. To sketch the Nyquist plot mapping

ω → −0
Sfrag replacements jω PSfrag replacements
σ σ
jω 2 jω ω=0
1
Γs Γs
R=∞ R=∞
σ
jω ω = +∞
θ1 4 −3/4
θ2 θ3 θ1
−2 −1 r θσ2 −1 ω = −∞
θ3
r −1/6
ω = +∞ pole at 0 3
ω = −∞
ω → +0
ω → −0
ω → +0
ω=0

(a) (b)

Figure 11:

the D contour onto the G plane, consider four regions denoted 1,2, 3 and 4 as labeled in the
figure.
Image of region 1. In this region, s = jω, r < ω < +∞, where r → 0.

s ω, rad/sec Gain |G(jω)| Phase ∠G(jω) = −θ 1 − θ2 − θ3 , deg.


jr → +0 r → +0 ∞√ −90◦
1j 1 1/ 10
√ ≈ −165◦
2j 2 1/(4 10) ≈ −195◦
jω → +j∞ ω → +∞ |G(jω)| → 0 ∠G(jω) → −270 ◦

Since the ∠G(jω) changes from −90◦ to −270◦ , then the plot may or may not encircle the
point −1 + jω. To find out for sure, we need to calculate the location of the intersection
of the plot and the real axis. The intersection is characterized by the condition
1
Im = 0.
jω(jω + 1)(jω + 2)
1
Calculate Im jω(jω+1)(jω+2) :

1 −j(−jω + 1)(−jω + 2)
=
jω(jω + 1)(jω + 2) ω(ω 2 + 1)(ω 2 + 4)
−3ω + j(ω 2 − 2)
=
ω(ω 2 + 1)(ω 2 + 4)

10
1 ω2 − 2
Im = =0
jω(jω + 1)(jω + 2) ω(ω 2 + 1)(ω 2 + 4)

at ω 2 = 2.√ Hence there are only two such
√ frequencies ω = − 2 rad/sec (not in region 1),
and ω = 2 rad/sec. At frequency ω = 2 rad/sec,
1 3 3 1
Re =− 2 2
=− =− .
jω(jω + 1)(jω + 2) (ω + 1)(ω + 4) 3·6 6

Thus, the plot crosses the real axis on the right of −1 + j0. Note that at ω = 2,
∠G(jω) = −180◦ ; i.e, we could determine the crossover point from the Bode plot of G(jω)
by looking at the gain at the phase crossover frequency. Note also that as ω → 0, then
Re G(jω) → − 34 .

Image of region 2. This region maps into the origin on the G plane.

Image of region 3, s = −jω. The plot is a mirror image of the plot corresponding to region 1.

Image of region 4, s = rejφ , r → 0. Note that φ goes from −90◦ to 90◦ anti-clockwise. Also,
1 1 1
G(s) = ≈ jφ = e−jφ
rejφ (rejφ + 1)(rejφ + 3) re r

Thus, G(s) → +∞ as r → 0, and ∠G(s) changes from 90 ◦ to −90◦ clockwise. Hence the
traversal along the arc maps to a curve of Nyquist plot which has the ‘radius’ 1/r → +∞
and swings from − 43 + j∞ to − 43 − j∞ in the clockwise direction. It is worthwhile to check
ourselves by computing G(rejφ ) at φ = 0:
1
G(r) = > 0.
r(r + 1)(r + 2)

The approximate Nyquist diagram is shown in Fig. 11b. The Nyquist plot does not circle around
−1 + j0, i.e, N = 0 and is equal to the number of poles of G inside the D-contour, hence the
closed loop system is stable.

3.3 Example 3
K(s+1)
Consider the feedback system in Figure 6, with G(s) = (s−1)(s+2) . Note that the loop gain
transfer function has one pole in the right half of the complex plane at s = 1. Thus, for the
closed-loop system to be stable, the Nyquist diagram of G(s) must make exactly one turn around
−1 + j0 in the anti-clockwise direction.
The Nyquist D-contour for this problem is the standard Nyquist D-contour; see Figure 8.

ω = 0, G(j0) = −K/2, ∠G(jω) = −180◦ .

ω > 0, ∠G(jω) = ∠(1 + jω) − ∠(jω − 1) − ∠(jω + 2).

ω → ∞, |G(jω)| → 0, argG(jω) = −90◦ .

The Nyquist diagram of the frequency response function G(jω) is shown in Figure 12 (plot (a) is
the approximate, plot (b) is the exact plot for K = 1). From the plot (a), we conclude that the
closed loop system is stable if and only if K > 2 because in this case the Nyquist plot encircles
the point −1 + jω.
The plot in figure (b) illustrates the Nyquist plot of G(s) corresponding to the unstable
system. In the plot (b), the Nyquist plot does not encircle the point −1 + jω. Since G(s) has
one unstable pole, then the function 1 + G(s) has one zero in the right half of the complex plane.

11
Nyquist Diagrams

0.5

0.4

0.3

0.2

Sfrag replacements PSfrag replacements 0.1

Imaginary Axis
ω=0 ω = −∞
σ σ 0

jω − k2 -1 jω −0.1
ω=∞
Γs Γs
−0.2
R=∞ R=∞
−0.3
ω = −∞
ω=∞ −0.4

ω=0 −0.5
−1 −0.9 −0.8 −0.7 −0.6 −0.5 −0.4 −0.3 −0.2 −0.1 0
− k2 Real Axis

(a) (b)

Figure 12:

4 Further reading
[1] Dorf & Bishop. Modern Control Systems, Chapter 9. Sections 9.1-9.3, 9.10, 9.12 are a must.
Section 9.12 includes a table of most common transfer functions and their Nyquist and Bode
plots; you may find it useful. Sections 9.5, 9.8, 9.11 are optional.

12

You might also like