Nyquist Stability Diagram: Encirclement Criterion Visualizer

simulator advanced ~10 min
Loading simulation...
N = 0, Stable — no encirclements of -1+j0

With K=5, τ₁=1s, τ₂=0.5s, and Td=0.1s, the Nyquist contour does not encircle the critical point, confirming closed-loop stability with adequate margins.

Formula

G(jω) = K / ((1+jωτ₁)(1+jωτ₂)) · e^(-jωTd)
Z = N + P (Nyquist criterion)
GM = 1 / |G(jω_pc)| where ∠G = -180°

The Complex Plane Test

Harry Nyquist's 1932 paper introduced a remarkable stability test: plot the open-loop frequency response G(jω) as a curve in the complex plane, and count how many times it circles the point -1+j0. This single topological property — the encirclement count — determines whether closing the feedback loop creates an unstable system. No root-finding, no characteristic polynomial factoring, just geometry.

Drawing the Contour

The Nyquist contour traces G(jω) for ω from 0 to +∞ (the upper half), then mirrors it for negative frequencies. At ω=0, the plot starts at G(0) on the real axis (the DC gain). As frequency increases, the curve spirals inward due to pole roll-off, and time delay adds additional spiraling. The plot closes through an arc at infinity, completing the contour needed for the encirclement count.

Stability Margins Visualized

On the Nyquist plot, the gain margin is the reciprocal of the distance from the origin to where the contour crosses the negative real axis. The phase margin is the angle between the negative real axis and the point where the contour crosses the unit circle. Both margins are visible geometrically — the farther the contour stays from -1+j0, the more robust the stability.

Time Delay — The Stability Killer

Pure time delay e^(-sT) adds phase lag proportional to frequency without changing magnitude. On the Nyquist plot, this rotates each frequency point clockwise, causing the contour to spiral. Even a small delay can cause encirclement at moderate gains, which is why dead-time compensation (Smith predictor) is critical in process control. This simulator shows how increasing delay progressively wraps the contour around the critical point.

FAQ

What is the Nyquist stability criterion?

The Nyquist criterion relates closed-loop stability to the open-loop frequency response. It states: Z = N + P, where Z is the number of unstable closed-loop poles, N is the number of clockwise encirclements of the point -1+j0 by the Nyquist plot, and P is the number of unstable open-loop poles. For stability, Z must equal zero.

What is the Nyquist plot?

The Nyquist plot traces the open-loop transfer function G(jω) in the complex plane as ω varies from -∞ to +∞. It shows both magnitude and phase simultaneously. The plot's shape near the critical point -1+j0 reveals stability margins directly.

How does time delay affect stability?

Time delay adds phase lag that increases linearly with frequency: e^(-jωTd). This causes the Nyquist plot to spiral, eventually causing encirclement of -1+j0 at high enough gain or delay. There exists a maximum allowable delay for any given gain.

How is Nyquist different from Bode analysis?

Bode plots separate magnitude and phase on different graphs, while the Nyquist plot combines them in a single complex-plane view. Nyquist can handle open-loop unstable systems and non-minimum-phase systems where Bode stability criteria may fail.

Sources

Embed

<iframe src="https://homo-deus.com/lab/control-systems/nyquist-stability/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub