Nyquist and Frequency Stability Margins
Nyquist analysis is the frequency-domain stability test that complements Routh-Hurwitz and root locus. Instead of forming a Routh table or drawing pole paths, it studies how the open-loop transfer function maps a contour around the right half-plane. Nise uses Nyquist to connect encirclements of the critical point with closed-loop stability, then defines gain and phase margins as practical robustness measures.
The power of Nyquist is that it reasons from open-loop frequency response while accounting for open-loop unstable poles. Bode plots are easier to read for routine design, but Nyquist gives the underlying stability logic and handles cases where open-loop right-half-plane poles matter.
![]()
Figure: Nyquist plot in the complex plane. Image: Wikimedia Commons, Engelec, public domain.
Definitions
For a negative-feedback system with loop transfer function
the closed-loop characteristic equation is
The critical point is therefore
The Nyquist plot is the image of a specified contour in the -plane under . In many practical stable open-loop examples, engineers sketch for from to and reflect it for negative frequencies.
The Nyquist criterion relates:
using one common sign convention, where is the number of right-half-plane zeros of , is the number of right-half-plane poles of , and is the net number of clockwise encirclements of . Closed-loop stability requires .
The gain margin is the factor by which loop gain can be multiplied before the Nyquist plot passes through . On a Bode plot, it is measured at the phase crossover frequency where phase is :
In decibels,
The phase margin is the additional phase lag required to reach at the gain crossover frequency where :
Key results
For open-loop stable systems, the Nyquist stability condition often reduces to a simple rule: the Nyquist plot should not encircle . If it passes close to , the closed-loop system may be stable but fragile. Margins quantify that fragility.
Margins are not merely numerical rituals:
| Margin | Read at | Meaning |
|---|---|---|
| gain margin | phase | allowable loop gain increase before instability |
| phase margin | magnitude | allowable extra lag before instability |
| crossover frequency | magnitude | approximate closed-loop speed location |
| distance to | Nyquist plot | combined gain-phase robustness |
Closed-loop transient behavior is related but not identical to margins. A low phase margin often corresponds to high overshoot and oscillation. A larger phase margin often gives more damping. However, exact time-domain predictions require more than margin alone, especially for high-order systems or nonminimum-phase plants.
Time delay is especially important in frequency response. A pure delay has magnitude but phase
in radians. It can destroy phase margin without changing the magnitude plot.
Nyquist plots also make clear why the point is special. The closed-loop denominator is . If the open-loop frequency response reaches , then and the closed-loop system has a pole on the imaginary axis. Passing near that point means the closed-loop denominator becomes small at some frequency, which usually appears as resonant amplification, oscillation, or poor damping.
For open-loop unstable plants, gain and phase margins require more care. A plant with a right-half-plane pole may need a specific encirclement of to produce a stable closed loop. Simply asking for "no encirclements" is valid only for open-loop stable cases under the usual convention. This is where Nyquist is stronger than a casual Bode-margin reading: it keeps track of the unstable open-loop poles through .
The direction of encirclement is a convention-sensitive detail, but consistency is not optional. Some texts write with counterclockwise encirclements positive; others write with clockwise encirclements positive. The physical conclusion is the same when the convention is used consistently. When solving problems, state the convention and define , , and before counting.
Margins are local robustness summaries. A gain margin of dB says the loop gain can be doubled before reaching the marginal point, assuming phase shape and model structure remain the same. A phase margin of says an additional of phase lag at crossover would bring the loop to the stability boundary. Real uncertainty may change gain and phase across frequency simultaneously, so margins are useful but incomplete robustness measures.
Nyquist thinking is also useful for experimental data. If frequency-response data are measured point by point, the plotted curve can reveal whether the loop is close to the critical point even when a clean transfer-function model is unavailable. This is common in hardware commissioning: the engineer measures loop response at safe amplitudes, estimates margins, then decides whether the controller can be made faster or must be backed off for robustness.
The Nyquist contour includes more than the visible positive-frequency curve. For real-coefficient systems, the negative-frequency portion is the mirror image of the positive-frequency portion. If there are poles on the imaginary axis, the contour must indent around them. These details are often suppressed in introductory sketches, but they explain why integrators and marginal open-loop poles require careful handling in formal Nyquist tests.
Gain and phase margins should be reported with the crossover frequencies at which they occur. A phase margin at a very high crossover may be irrelevant if unmodeled dynamics begin earlier. A gain margin at a frequency far beyond actuator bandwidth may not represent the practical robustness bottleneck. The frequency location tells the engineer what physical effects might threaten the margin.
In design reviews, a Nyquist or margin calculation should identify the loop broken for analysis. Multiloop systems can have inner current loops, velocity loops, and outer position loops. Each loop has its own loop transfer and margins when opened at a specific point. Ambiguous loop-breaking leads to ambiguous stability claims.
Nyquist plots should be drawn with enough frequency labels to show direction. Encirclement count depends on how the curve is traversed as frequency increases. Without arrows or frequency markers, a plot may show shape but not the information needed for the criterion.
Visual
Nyquist idea near the critical point
Im
^
| curve L(jw)
| /
| /
| x / x = -1 + j0
|----x----------------------> Re
|
|
| Situation | Nyquist interpretation | Closed-loop implication |
|---|---|---|
| no open-loop RHP poles and no encirclement | , | stable |
| no open-loop RHP poles and one clockwise encirclement | , | unstable |
| one open-loop RHP pole and one counterclockwise encirclement | sign convention cancels | can be stable |
| plot crosses | characteristic root on axis | marginal boundary |
Worked example 1: gain and phase margins
Problem: For
find the gain crossover frequency and phase margin.
Method:
- Magnitude:
- Gain crossover occurs when magnitude is :
- Rearrange:
Let :
- Solve:
Since ,
- Phase:
At ,
Thus
- Phase margin:
Checked answer: rad/s and .
Worked example 2: time-delay phase loss
Problem: A loop has phase margin at crossover frequency rad/s. A pure delay is added. What delay reduces the phase margin to ?
Method:
- The allowable phase loss is
- Convert to radians:
- Delay phase at crossover is
- Set phase loss:
- Solve:
Checked answer: a delay of about ms reduces phase margin from to at rad/s.
Code
import numpy as np
from scipy import signal
num = [10.0]
den = [1.0, 2.0, 0.0]
sys = signal.TransferFunction(num, den)
w = np.logspace(-2, 3, 5000)
w, mag_db, phase_deg = signal.bode(sys, w=w)
gc_index = np.argmin(np.abs(mag_db))
w_gc = w[gc_index]
pm = 180 + phase_deg[gc_index]
print("gain crossover:", w_gc)
print("phase margin approx:", pm)
delay = np.deg2rad(20) / 4
print("delay for 20 deg phase loss at 4 rad/s:", delay)
Common pitfalls
- Using closed-loop transfer function for Nyquist margins instead of open-loop loop transfer .
- Forgetting open-loop right-half-plane poles in the Nyquist encirclement count.
- Mixing clockwise and counterclockwise sign conventions without consistency.
- Treating gain margin and phase margin as independent guarantees. Simultaneous gain and phase changes can be worse than either alone.
- Ignoring time delay because it has unity magnitude. Delay can remove phase margin rapidly.
- Assuming a comfortable margin fixes actuator saturation or nonlinear behavior.
Connections
- Bode plots provide the magnitude and phase data used to read margins.
- Frequency-response design shapes margins with lead and lag networks.
- Routh-Hurwitz stability is the polynomial-domain stability counterpart.
- Complex functions underlies contour mapping arguments.
- Digital control maps stability from the -plane to the -plane.