Lesson
The theory — Bode/Nyquist Control Lab
The Nyquist stability criterion settles whether a feedback loop is stable by counting instead of solving. Plot the open-loop response G(jω) on the complex plane, count how many times the curve wraps around the point −1 + j0, and add the number of unstable poles the loop already had before it was closed: Z = N + P. Any Z other than zero means the closed loop runs away.
What each symbol means
P- the number of poles of the open-loop
G(s)that already sit in the right half-plane, counted before the loop is closed. For the plant on this page it is always 0. N- the number of clockwise encirclements of
−1 + j0made by the Nyquist curve. Anticlockwise turns count as negative, soNcan be below zero. Z- the number of closed-loop poles in the right half-plane — the answer you actually wanted.
Z = 0is stability; anything else is not. −1 + j0- the critical point, drawn in red on the Nyquist panel. It is where the loop gain is exactly 1 with exactly 180° of lag: a signal sent once around the loop returns the same size and upside down.
Where the formula comes from
- Ask the question properly. With unity negative feedback the closed-loop response is
G/(1 + G), so its poles are the zeros of1 + G(s). Stability collapses to one question: does1 + G(s)have any zeros in the right half of the complex plane? Finding them means factoring a polynomial you may not even possess. - Count them rather than find them. The argument principle says that when
stravels once clockwise around a closed contour, the image of1 + G(s)winds around the origin exactly as many times as the zeros inside, minus the poles inside. Winding around the origin of1 + Gis the same motion as winding around−1ofG— which is why the critical point sits where it does, and why it is−1and not some other number. - Choose the contour to be the entire right half-plane: up the imaginary axis, back around an infinite semicircle. Now "inside the contour" and "unstable" mean the same thing. The enclosed zeros are
Z, the enclosed poles areP, the winding count isN, and the argument principle readsN = Z − P— rearranged,Z = N + P. Along the imaginary axiss = jω, andG(jω)is the frequency response: the curve this page already draws. - That last sentence is the whole payoff. Nothing in the count requires a model.
G(jω)can be measured — shake real hardware with sine waves, record what returns — so you can get a stability verdict on a system nobody ever wrote an equation for. Gain and phase margin are then two ways of asking how widely the measured curve misses−1: one along the negative real axis, one around the unit circle.
How to read what you see
All three panels show the open loop — G(jω) by itself, with the feedback path not yet connected — while the two margins beneath them describe what happens once it is. So the magnitude peak near ωn, and the ωr and Mr in the table, belong to G and not to the closed loop you are designing. On the Nyquist panel the solid curve is ω running from zero upward and the dashed curve is its mirror for negative ω. You need both: an encirclement only exists once the contour closes, and a frequency sweep can only ever measure half of one. The arrows give the direction of travel, which is what decides whether a wrap counts as clockwise.
- Assumes
- Unity negative feedback, and a known
P. This page never asks you forP— it takes it as zero, which is correct here only because the damping slider stops atζ = 0.05and both poles stay in the left half-plane for every setting you can reach. Hand the same criterion a plant that is already unstable open-loop and a curve making no encirclements means the exact opposite of what it means here. It also assumes nothing cancelled on the way round: a right-half-plane pole cancelled by a zero disappears fromG(s)while remaining in the hardware, and the count will then certify a loop that still runs away. - Breaks when
- Nyquist returns yes or no about one exact model, and hardware is neither exact nor stationary.
Z = 0tells you the nominal loop is stable and nothing whatever about how far a gain has to drift, or a temperature move, before it is not — which is why this page prints two margins instead of the single word "stable". The margins are themselves optimistic, because each is measured with the other held still: a loop can show a comfortable gain margin and a comfortable phase margin while a modest change in both at once walks the curve straight through−1. The honest number is the shortest distance from the curve to the critical point, in any direction at all, and no panel here draws it.
Problem solved in full
-
A resonant peak of 1.0002 and an infinite gain margin 6 steps
A second-order loop with ζ = 0.7. The panel reports a resonant peak of 1.0002 and an infinite gain margin. Explain both.
-
The standard second-order form, with the three parameters the sliders set. Everything below is read off the denominator.
-
The poles are the roots. The real part is the decay rate and the imaginary part is the ringing frequency, and both are visible in the step response.
-
The resonant frequency is not the natural frequency. The square root under it can vanish, which is the whole of the next step.
-
It vanishes at ζ = 1/√2. At 0.7 the system is barely inside the peaked region, and the peak is 0.002 dB — present in the algebra and invisible on any plot.
-
Now the phase. Each pole contributes a lag that approaches 90°, so two of them approach 180° from above and never cross it.
-
No crossing means no gain margin to speak of, which is what the panel reports.
Answer
ζ = 0.7 sits just below 1/√2, and two poles cannot reach −180°. The resonant frequency carries √(1 − 2ζ²), which vanishes at ζ = 0.7071 — so 0.7 is 0.001 inside the region where a peak exists at all, and the peak it has is 1.0002, or 0.002 dB. That threshold is the Butterworth condition, and it is why 0.707 is the damping every filter textbook reaches for: it is the most responsive setting that still has no peak. The infinite gain margin is a stronger statement and a more dangerous one. Each pole contributes at most 90° of lag, so two of them approach 180° and never arrive, and no amount of gain will make this loop oscillate. Real loops always do oscillate eventually — the third pole, the transport delay, the unmodelled resonance — so an infinite gain margin is a reliable sign that the model is missing something, not that the hardware is safe.
-
References (2)
- The lesson — the encirclement count Z = N + P, in the paper that introduced it: H. Nyquist, "Regeneration Theory." Bell System Technical Journal 11(1), 126–147, 1932.
- Insight block 3 — phase margin as a delay budget: K. Ogata, Modern Control Engineering, 5th edition, ch. 7. Prentice Hall, 2010. ISBN 978-0-13-615673-4.