# Nyquist plot interpretation when curve hits the origin

I'm a bit confused about the interpretation of the Nyquist plot when the origin is part of the plot. In this case I'm not even considering closed loops, I'm just looking at the Nyquist Plot of a given transfer function and trying to relate it to the corresponding poles and zeros.

For example, if I take the Nyquist Plot of $\frac{1}{s}$:

This system is marginally stable, and the origin is neither inside nor outside the loop, it is in the curve.

Now if I take Nyquist Plot of $\frac{1}{s+1}$:

Again, the origin is not outside the curve, but now the system is stable.

And, lastly, if I take an unstable system, like $\frac{1}{s-1}$:

The origin is, again, part of the curve.

In my understanding, the origin of the Nyquist Plot of $\frac{1}{s+1}$ should be outside the curve, since it has no poles and zeros in the right half plane. Also, the origin of the Nyquist Plot of $\frac{1}{s-1}$ should be surrounded by a counter-clockwise loop, since it has 1 pole and 0 zeros in the right half plane.

Shouldn't the Nyquist Plot of a given transfer function tell the difference between poles and zeros just by looking at how many times (and which direction) the origin is surrounded by plot loops?

• I don't use Nyquist plots so correct me if I am wrong; but aren't you supposed to be count encirclements around -1 ? Commented Dec 6, 2016 at 18:02
• @rrogers Usually you do use this, but this is based on the fact that if you let $s$ follow some closed curve, then $G(s)$ will have $Z$ (equal to the number op zeros of $G(s)$ inside the area enclosed by the curve) anti-clockwise encirclements of the origin and $P$ (equal to the number op poles of $G(s)$ inside the area enclosed by the curve) clockwise encirclement of the origin. Commented Dec 7, 2016 at 14:28
• @fibonatic I see, the -1 refers to the closed loop stability and the question is referring to standard transfer function stability. In any case: both answers point out the fact that, basically, the examples above never actually reach 0,0 with any output left. Commented Dec 8, 2016 at 14:20

First to clear up the OP's misunderstanding: the Nyquist Stability Criteria involves clockwise encirclements of -1, not the origin, and this would be the polar plot for the open-loop gain specifically.

I've included some details below for those that are more interested.

First a review of the basic equation relating Open Loop gain and Closed Loop Gain for a control loop:

$$G_{CL}= \frac{G_F}{1+G_{OL}}$$

The denominator of the closed loop gain is known as the "Characteristic Equation". Given that all physical processes that are linear time-invariant have transfer functions that are proper (the degree of the numerator cannot exceed the degree of the denominator), we are able to determine stability from the roots of the characteristic equation alone. The roots (zeros) of the characteristic equation are the poles in the closed loop transfer function (since the characteristic equation is the denominator of the closed loop transfer function).

Therefore all stability assessments are methods to determine if any of the roots of the characteristic equation are in the right half plane (and therefore unstable).

What Nyquist did in creating the "Nyquist Stability Criteria" was make use of Cauchy's Argument Principle as a method to determine this. The significance of his approach was that instead of using the characteristic equation, he was able to do this with just the Open Loop Gain alone ($$G_{OL}$$). And what you will observe when you see the approach is that you do not actually need an equation for the open loop gain; we can go in the lab (or simulate a complex digital design) and measure the transfer function as a magnitude and phase versus frequency, and from that measurement directly determine stability without having to solve for poles and zeros and polynomials etc. This is very significant so I will stress that again with examples: We could have a system that has time delays that would not easily translate to a polynomial, or a digital system with decimation resulting in fractional powers of z, or a complex system where the effort to measure the magnitude and phase versus frequency would be a fraction of the effort to create an actual equation with accuracy. Often digital systems will have parasitic $$z^{-1}$$ delays that may easily be missed in the effort to create a transfer function, but cannot hide from the visible phase delay that can be measured.

Cauchy's Argument Principle

The essence of Cauchy's Argument Principle as it applies to Nyquist's method is that if we map an arbitrary contour that encircles poles and zeros of a function H(s) on the complex plane, the mapping will encircle the origin in the same direction Z-P times, where Z is the number of zeros and P is the number of poles. This is demonstrated in the examples below showing the effect of each zero and pole; For each zero inside the contour, the mapping will encircle the origin in the same direction, for each pole inside the contour, the mapping with encircle the origin in the opposite direction. Anything outside does not contribute to an encirclement. An encirclement means the phase completes 0 to $$2\pi$$, for multiple poles and zeros, their individual phase (argument) contributions add and hence the name "Cauchy's Argument Principle":

Nyquist Plot

So using Cauchy's Argument Principle, Nyquist made the contour the entire right half plane to determine if any roots of the characteristic equation are inside the contour (and therefore an unstable system). Now if the Nyquist method did the contour for the characteristic equation itself, the encirclements would indeed be around the origin N= Z-P times as described above in the development of Cauchy's Argument Principle. Since the characteristic equation is $$1+G_{OL}(s)$$ and the roots are the solution to $$1+G_{OL}(s)=0$$, the Nyquist method instead does the contour around only $$G_{OL}(s)$$ and from $$G_{OL}(s)= -1$$ the encirclements if they exist due to roots in the right half plane will be around -1 (By subtracting 1 from both sides, we have simply shifted the origin but more importantly isolated the function for the open loop gain alone, as mentioned above it is a system parameter we can easily measure.

So, if there are clockwise encirclements of -1, the system is unstable as the number of clockwise encirclements is N=Z-P, and P cannot be negative. However from this we also see that if there are no clockwise encirclements, that does not guarantee stability unless we know that there are no poles in the right half plane for the open loop gain (P = 0). If our open loop system is stable, then we know that is true and we can make conclusions with regards to closed loop stability. If not, then in that condition we would need to determine the number of poles and their location (right or left half plane) in the open loop gain before concluding stability.

NOTE: I described the Nyquist plot in units of s implying an analog system, but everything described applies to digital systems as well in units of z (it is just the frequency magnitude and phase is done by sweeping the unit circle instead of the $$j\omega$$ axis.) It is interesting to observe the example below of an analog system that I mapped to digital using the method of impulse invariance, showing that the Nyquist plot for both systems is identical (at this scale). Point is the result of counting clockwise encirclements of -1 is still the same with the digital system:

• What if the function was GH = -1 + 1/(s-1)? This would make the mapped contour of the nyquist via 1+GH cuts through -1. Commented Nov 3, 2023 at 22:56

The problem here is that for the given functions, the usual Nyquist contour (see figure below) results in Nyquist plots from which no decision can be made about stability.

Nyquist contour ($$M\to\infty$$) (from Signals and Systems by A.V.Oppenheim)

The reason is the fact that for all three functions the limit for $$|s|\to\infty$$ equals zero. So the function value along the semi-circle in the right half-plane (with infinite radius) is zero. This is not always a problem, but for the given functions (with no finite zeros) it results in Nyquist plots from which the encirclements of the origin cannot be determined.

This problem can be solved by modifying the Nyquist contour along which the complex variable $$s$$ moves. For the function $$F(s)=\frac{1}{s}$$, the contour shown above needs to be modified anyway because poles on the contour are not allowed. The usual modification is the introduction of a semi-circle in the right half-plane with infinitesimal radius centered at the origin (see this answer for a figure of such a modified contour.) In that way the pole at $$s=0$$ is avoided but the contour still encloses the complete right-half plane. Note that this modification is not necessary for the other two functions, which do not have poles on the contour.

The other modification that will make visible the encirclements of the origin is to leave the radius $$M$$ in above figure finite. Of course, this implies that our contour does not enclose the complete right half-plane. However, the radius $$M$$ can be made as large as necessary. Moreover, for the given functions we know the pole locations anyway and we only want to show that the Nyquist plot along the modified contour does give the expected result.

The modified Nyquist plots are shown in the figure below. The finite radius $$M$$ results in Nyquist plots with a small circular segment close to the origin. The radius of that circular segment is (approximately) inversely proportional to the radius $$M$$ of the Nyquist contour.

For the function $$F(s)=\frac{1}{s}$$ (left-most figure) we see that the Nyquist plot does not encircle the origin, which agrees with the fact that there are no poles and no (finite) zeros in the right half-plane. [Note that the pole at $$s=0$$ is outside the Nyquist contour due to the infinitesimal semi-circle in the Nyquist contour mentioned above.]

There is also no encirclement of the origin for the function $$F(s)=\frac{1}{s+1}$$ (center figure). This is in agreement with the fact that there are no poles and no (finite) zeros in the right half-plane.

Finally, for $$F(s)=\frac{1}{s-1}$$ (right-most plot) we have one counter-clockwise encirclement of the origin, corresponding to one pole and no (finite) zeros in the right-half plane.

• How can I get the indentation as in the plot of 1/(s-1) in Matlab? Commented Nov 3, 2023 at 23:17

The Nyquist plot is nothing but a plot of the function $$\mathbb R \to \mathbb C,\qquad \omega\mapsto G(j\omega)$$ with $G$ your transfer function. Essentially the curve you see is the locus of points $G(j\omega)$ as $\omega$ varies in $\mathbb R$. Thus if you take $G(j\omega)= 1/(j\omega+1)$, the origin technically does not belong to the curve! In fact $+\infty$ and $-\infty$ do not belong to $\mathbb R$, and you have $G(j\omega)=0$ only for such values. all the points $G(j\omega)$ that you obtain for arbitrary big (or small) $\omega\in\mathbb R$ do belong to the plot, so the curve asyntotically tends to the origin, but it never reaches it. So yes, the origin is not on the curve.

Furthermore, if you consider the real part of $G(j\omega)$, that is the quantity $$Re[G(j\omega)] = Re\left[\dfrac{j\omega-1}{j\omega-1}G(j\omega)\right]=Re\left[\dfrac{j\omega-1}{-1-\omega^2}\right] = \dfrac{1}{1+\omega^2}$$ you have that for all $\omega\in\mathbb R$ the real part is positive! and it is zero only for $\omega=\pm\infty$, that however are not admissible. Therefore the origin lies at the left of the curve. The same reasoning applies for both the two other examples you gave.

You have to be careful if the origin seems to lie on the curve. Namely you need to investigate what the curve does during the D-part, $s=\infty\,i\,\,e^{-i\,\theta}$, with $0\leq\theta\leq\pi$. Because it might or might not barely encircle the origin.