The Nyquist plot is the polar plot of $G(j\omega)H(j\omega)$ for $\omega$ from $-\infty$ to $\infty$ (the Nyquist contour enclosing the right half plane).
Criterion
$$Z = N + P$$
- $P$: open-loop poles in the right half plane.
- $N$: clockwise encirclements of the point $-1 + j0$ by the plot.
- $Z$: closed-loop poles in the right half plane. Stable if and only if $Z = 0$.
For an open-loop stable system ($P = 0$), the closed loop is stable if the plot does not encircle $-1$.
Relative stability
If the plot crosses the negative real axis at $-a$, the gain margin is $1/a$. The phase margin is the angle between the negative real axis and the point where the plot crosses the unit circle.
Poles on the imaginary axis (such as $1/s$) are avoided with a small semicircle, which maps into a large arc in the Nyquist plot.