Lecture 23: Nyquist Stability: Frequency Response and the Argument Principle
Introduction
Bode analysis relates a transfer function to magnitude and phase, but a feedback design requires a further conclusion: whether the closed loop is stable. The Nyquist approach obtains this conclusion from open-loop frequency information and the number of unstable open-loop poles. Its foundation is the argument principle, which relates the net rotation of a complex-valued function along a contour to the zeros and poles inside that contour. We develop this connection using negative unity feedback and a clockwise contour enclosing the right half-plane.
Video lecture
The lecture is presented in one video, Nyquist Stability: The Argument Principle.
Chapters: 0:00 Same open-loop shape, different closed loop · 2:47 The closed loop and 1 + G(s) · 4:08 A transfer function maps s to a complex number · 4:30 A contour and its image · 5:26 A point outside the contour: no net change · 6:20 A zero inside: minus 2 pi · 7:20 A pole inside: plus 2 pi · 7:55 The four rules, and one zero with one pole · 8:52 Adding up the angles: the argument principle · 11:10 What Z and P count · 12:05 Watching a closed-loop pole cross · 14:48 Three things to keep, and what comes next
Lecture materials
- Fill-in skeleton slides, to print or annotate and fill in while watching the video: PDF
The lecture notes are on this page. Exercises with answers are at the end.
Same open-loop shape, different closed loop
A fifth-order loop shows why a separate stability test is needed. Under negative unity feedback, consider
$$ L(s)=\frac{K}{s(s+1)(s+2)(s+3)(s+4)},\qquad K\gt 0, $$whose closed-loop characteristic polynomial is $s^5+10s^4+35s^3+50s^2+24s+K$. With $K=10$ every closed-loop pole lies in the left half-plane, the right-most pair at $-0.222\pm j0.498$. With $K=40$ two closed-loop poles have moved just across the imaginary axis, to $0.072\pm j0.926$, and the closed loop is unstable. On the Bode plot, raising the gain from $10$ to $40$ shifts the magnitude curve up by $20\log_{10}4=12.04$ dB and leaves the phase curve unchanged. Somewhere within that shift the closed loop loses stability, yet neither curve marks the place. Solving a fifth-order characteristic equation by hand for every gain is impractical, whereas the frequency response can be sketched from the factors or measured on the physical system. The question for this lecture and the next is therefore whether closed-loop stability can be decided from $L(j\omega)$ and the open-loop poles alone. Lecture 24 answers it for this loop.
The figure below overlays the Bode plots for the two gains. The magnitude curves are $12.04$ dB apart at every frequency and the phase curves coincide, although the closed loop is stable for $K=10$ and has the unstable poles $0.072\pm j0.926$ for $K=40$.
The question arose in practice at Bell Telephone Laboratories. On August 2, 1927, on the Lackawanna ferry across the Hudson, Harold Black sketched the negative feedback amplifier on a page of that day’s New York Times. Feedback made long-distance telephone repeaters accurate, but feedback amplifiers could also oscillate, or “sing”, and engineers observed that in some cases raising or lowering the gain stopped the singing. Black’s patent was filed in 1928 and granted in December 1937. In between, in 1932, Harry Nyquist published “Regeneration Theory” in the Bell System Technical Journal and showed how to decide stability from the frequency response alone. The argument principle developed below is the tool behind his answer.
Frequency response of an unstable system
The comparison of a stable pole $1/(s+a)$ with an unstable pole $1/(s-a)$, $a\gt 0$, which opened this lecture in class, is now in Lecture 22, Part 3. The two have the same magnitude at every frequency, $1/\sqrt{a^2+\omega^2}$, but different phases: on the continuous branch, the stable pole’s phase moves from $0$ to $-90^\circ$ and the unstable pole’s from $-180^\circ$ to $-90^\circ$. Magnitude alone therefore cannot distinguish the two pole locations.
The closed-loop characteristic equation
Since phase contains information that magnitude alone misses, we seek a stability test using the complete complex response. For negative unity feedback, the relevant roots are those of the closed-loop characteristic equation. Write the loop transfer function as $L(s)=C(s)G(s)=n(s)/d(s)$ to identify that equation.
$$ L(s)=C(s)G(s)=\frac{n(s)}{d(s)},\qquad T(s)=\frac{L(s)}{1+L(s)}=\frac{n(s)}{d(s)+n(s)}. $$The roots of $d$ are open-loop poles. The roots of $d+n$ are closed-loop characteristic roots. The algebra preserves the numerator before cancellations, but an apparent cancellation must not hide an unstable internal mode. These notes assume a well-posed negative-feedback interconnection and no hidden unstable cancellations. Use a coprime representation when interpreting the root counts. The video lecture writes the same loop as $\tilde G=GC=N_o/D_o$, with $N_o$ and $D_o$ the open-loop numerator and denominator; on this page $L=\tilde G$, $n=N_o$ and $d=D_o$.
Derive the feedback transfer function
The characteristic denominator follows directly from the signal equations in the block diagram. If $r$ is the reference, $y$ is the output, and $e=r-y$ is the error, the forward path gives $y=Le$. Eliminating $e$ yields the closed-loop transfer function and shows why $d+n$ determines its characteristic roots.
$$ \begin{aligned}e&=r-y,\\y&=Le=L(r-y),\\(1+L)y&=Lr,\\T=\frac{y}{r}&=\frac{L}{1+L}.\end{aligned} $$The error subtracts the measured output from the reference. Substitute the error into the forward path and collect the terms multiplying $y$. With $L=n/d$, multiplying numerator and denominator by $d$ yields $T=n/(d+n)$. Negative feedback changes the characteristic denominator from $d$ to $d+n$, while retaining the finite zeros before cancellations. The question is now how to count right-half-plane roots of $d+n$ without solving for all of them.
Complex mappings and winding
We could solve $d+n=0$ directly, but a geometric method can count unstable roots without locating each one. To develop it, let $s$ move around a closed contour and observe the image of a simple factor $s-z$. The total change in its continuous angle records whether the contour surrounds $z$.
$$ \Delta_\Gamma\arg(s-z)=0\quad\text{if }z\text{ lies outside a simple contour }\Gamma. $$The vector $s-z$ may rotate forward and backward even when its net rotation is zero. Track the continuous angle around the complete path; comparing only the principal angles at the start and end loses whole turns. The picture shows a clockwise contour. A point on the contour is excluded from this argument because the vector would become zero.
A zero and a pole contribute opposite signs
When the zero lies inside a clockwise contour, the vector completes one clockwise turn. A pole contributes a reciprocal factor, which reverses that angular change. These opposite contributions are the basis of the argument principle.
$$ \Delta_\Gamma\arg(s-z)=-2\pi,\qquad \Delta_\Gamma\arg\!\left(\frac{1}{s-p}\right)=+2\pi. $$These equations apply when the indicated zero or pole lies inside a simple clockwise contour. Multiplicity matters: a double zero contributes $-4\pi$ and a double pole contributes $+4\pi$. Factors outside the contour contribute zero.
Add the phase of every factor
A general rational function is a product of the same elementary factors. Its angle is therefore the sum of the zero-factor angles minus the sum of the pole-factor angles. Over a complete traversal, only the enclosed roots contribute a net turn.
$$ \begin{aligned}F(s)&=k\frac{\prod_i(s-z_i)}{\prod_k(s-p_k)},\\\arg F(s)&=\arg k+\sum_i\arg(s-z_i)\\&\hspace{9mm}-\sum_k\arg(s-p_k).\end{aligned} $$Each numerator factor is a vector from a zero to the moving point $s$; each denominator factor is a vector from a pole. Multiply magnitudes and add numerator angles, then subtract denominator angles. Over the complete clockwise contour, outside factors contribute zero net angle. Each enclosed zero contributes $-2\pi$ and each enclosed pole contributes $+2\pi$. A constant gain changes the starting angle but has zero net change. For example, if one zero lies outside a clockwise contour and one pole lies inside it, the net angle change of $(s-z)/(s-p)$ is $0+2\pi=+2\pi$.
Apply the argument principle to one plus the loop
To turn this root count into a feedback stability test, apply it to $F(s)=1+L(s)$. Its numerator is the closed-loop characteristic polynomial, while its denominator contains the open-loop poles. The resulting net phase change relates a known open-loop pole count to the unknown closed-loop root count.
$$ F(s)=1+L(s)=\frac{d(s)+n(s)}{d(s)},\qquad \Delta_\Gamma\arg F=2\pi(P-Z). $$Here $P$ counts poles of $F$ inside the contour and $Z$ counts its zeros, including multiplicities. A nonzero constant gain has no net phase change around a closed path, even if its fixed phase is not zero. The formula assumes no pole or zero lies on the contour. For a contour enclosing the right half-plane, $P$ becomes the number of unstable open-loop poles and $Z$ the number of unstable closed-loop characteristic roots.
This relation is the argument principle; the argument of a complex number is its angle. The result is much older than feedback control and goes back to Augustin-Louis Cauchy in the nineteenth century. Nyquist’s 1932 paper reached the stability criterion by a different route, and around 1930 Felix Strecker at Siemens found the criterion independently.
Which zeros and poles are being counted?
The meaning of the zeros in this calculation deserves care. They are zeros of $1+L$, rather than transmission zeros of $L$. With a contour enclosing the right half-plane, these zeros are precisely the unstable closed-loop characteristic roots that the stability test must count.
$$ \begin{aligned}F(s)&=\frac{d(s)+n(s)}{d(s)},\\F(s)=0&\ \Longleftrightarrow\ d(s)+n(s)=0,\\\Delta\arg F&=-2\pi Z+2\pi P.\end{aligned} $$The zeros in the argument-principle calculation are zeros of $F=1+L$, not zeros of $L$. They are the closed-loop characteristic roots. The poles of $F$ are the open-loop poles, using a coprime loop representation. Enclosing the right half-plane makes $P$ the unstable open-loop pole count and $Z$ the unstable closed-loop pole count. Assume no roots on the contour and no hidden unstable cancellation.
The stability target
The stability objective can now be stated as a target phase change. We require no right-half-plane closed-loop roots, so set $Z=0$ in the argument-principle relation. The required net rotation then depends on how many unstable poles the open loop already contains.
$$ Z=0\quad\Longleftrightarrow\quad \Delta_\Gamma\arg(1+L)=2\pi P. $$For a stable open loop, $P=0$, the required net phase change is zero. With one unstable open-loop pole, $P=1$, the required net phase change is $2\pi$. This is a root-count statement, not a measure of how far the design is from instability. Boundary roots must be checked separately; they are not asymptotically stable.
Worked example: watching a closed-loop pole cross
The video lecture closes its derivation with an example that can be checked by hand. Consider
$$ L(s)=\frac{K}{(s-1)(s+2)},\qquad d(s)+n(s)=s^2+s+(K-2),\qquad K\gt 0. $$The open-loop pole at $s=1$ lies in the right half-plane, so $P=1$ for every gain. A quadratic with positive leading coefficient has both roots in the left half-plane exactly when its other two coefficients are positive, so the closed loop is stable for $K\gt 2$. For the contour, take the clockwise D-contour that runs up the imaginary axis and returns along a half circle of radius $2.5$ in the right half-plane. The table lists three gains.
| $K$ | closed-loop poles | $Z$ | $\Delta_\Gamma\arg(1+L)$ |
|---|---|---|---|
| $1$ | $0.618$, $-1.618$ | $1$ | $0$ |
| $2$ | $0$, $-1$ | pole on the contour | undefined |
| $3$ | $-0.5\pm j0.866$ | $0$ | $2\pi$ |
At $K=1$ the pole at $0.618$ lies inside the contour, so $Z=1$ and $2\pi(P-Z)=0$: the image of $1+L$ makes no net turn about the origin. As $K$ increases, the image slides to the left. Its point for $s=0$ is $1+L(0)=1-K/2$, which reaches the origin at $K=2$, at the same moment that a closed-loop pole reaches $s=0$ on the contour. There the argument principle gives no answer. For $K\gt 2$ both closed-loop poles lie in the left half-plane. At $K=3$ the image circles the origin once counterclockwise, the net angle change is $2\pi=2\pi P$, and the closed loop is stable with poles $-\tfrac12\pm j\tfrac{\sqrt3}{2}=-0.5\pm j0.866$. To reproduce these counts with the practice tool below, place poles at $1$ and $-2$ and zeros at the closed-loop poles for the chosen gain.
The figure below shows the three gains in both planes. The closed-loop pole at $0.618$ for $K=1$ lies inside the D-contour and the pole at $0$ for $K=2$ lies on it, while in the image plane the point $1+L(0)$ moves from $0.5$ through $0$ to $-0.5$ and only the image for $K=3$ encloses the origin.
Raising the gain made this loop stable, which is the opposite of the common expectation that more gain makes a loop less stable. It is the same kind of behavior that the Bell Laboratories engineers met when a change of gain stopped an amplifier from singing. The image of $1+L$ also contains a small loop near the point $1$: it is the image of the half circle, where $|L(s)|\le 0.444$ for $K=3$, and a larger radius shrinks it toward $1$. Finally, the vector from the origin to $1+L(s)$ is the vector from $-1$ to $L(s)$, so the curve of $1+L$ about the origin is the curve of $L$ about $-1$, moved one unit to the right. From the next lecture on, only $L$ is drawn.
Three things to keep
The video lecture ends with three points, stated here in the notation of this page.
- To find the closed-loop poles, watch $1+L$, where $L=GC$ is the open loop of the feedback diagram. The zeros of $1+L$ are the closed-loop poles, and its poles are the open-loop poles.
- Count angles around a clockwise contour. Each zero inside adds $-2\pi$, each pole inside adds $+2\pi$, and any zero or pole outside adds nothing.
- Check the total, $\Delta_\Gamma\arg(1+L)=2\pi(P-Z)$. Here $Z$ counts the zeros of $1+L$ inside the contour, the unstable closed-loop poles, and $P$ counts the poles of $1+L$ inside the contour, the unstable open-loop poles. A stable closed loop needs a net angle change of exactly $2\pi P$.
Practice: tracking the angle around a contour
The tool below lets you place the zeros and poles of $F(s)=1+\tilde G(s)$, with $\tilde G$ the loop transfer function ($L$ in the notes above), and move $s$ around a circle, an ellipse or a D-contour. As $s$ travels clockwise, the tool draws the vectors $s-z_i$ and $s-p_k$, accumulates the angle change of each factor, and traces the image of $F$, so that $\Delta\angle F$ can be compared with the number of turns of that image about the origin. Practice mode generates random configurations, some with points close to the contour, and asks you to predict $P$, $Z$ and $\Delta\angle F$ before checking. The Python cell at the end repeats the calculation with NumPy on the same contour samples, and its printed values should agree with the readouts in the tool.
- Load the lecture example, with zeros at $0.8\pm 0.6j$ and $-1.2$ and poles at $1$, $-0.6\pm 0.9j$ and $-2$, inside a D-contour of radius $2.2$. Predict $\Delta\angle F$ from $P$ and $Z$, then play the traversal and confirm that it equals $2\pi(P-Z)$.
- In the same example, drag the zero pair at $0.8\pm 0.6j$ into the left half-plane. Explain the new value of $\Delta\angle F$ and what it says about the number of unstable closed-loop poles.
- Load the example $F=1+2/(s-1)$ and switch the direction to counterclockwise. Explain why the contribution of the enclosed pole changes sign while the contribution of the zero at $-1$ remains zero.
Perspective
The argument principle converts the closed-loop stability question into a net rotation of $1+L$. For a clockwise right-half-plane contour, that rotation is $2\pi(P-Z)$. Once $P$ is known, measuring the rotation determines $Z$. The next geometric step is to read the same rotation from encirclements of $-1$ by the loop response itself.
The same feedback view now reaches well beyond amplifiers. Gradient descent on a loss $f$, $w_{k+1}=w_k-\eta\nabla f(w_k)$, feeds the gradient back into the weights at every step, so training a neural network by gradient descent is itself a feedback loop. Lessard, Recht and Packard (2016) analyzed common optimization algorithms as feedback interconnections with tools from robust control. Cohen and colleagues (2021) found that full-batch gradient descent on neural networks tends to run right at its stability limit: the sharpness, the largest eigenvalue of the Hessian of the loss, rises until it hovers near $2/\eta$, the step-size boundary beyond which gradient descent on a quadratic stops converging.
The next lecture constructs the complete Nyquist contour, applies the resulting encirclement criterion to worked examples, and finds the gain between $10$ and $40$ at which the fifth-order loop of the opening section becomes unstable.
Exercises
Try each exercise before opening its answer.
Exercise 1. Let
$$ F(s)=\frac{(s-0.5)(s+3)}{(s+1)^2\,(s^2-2s+2)}. $$Find the net angle change $\Delta_\Gamma\arg F$ when $s$ travels each of the following clockwise contours once: (a) the circle $|s|=2$; (b) the circle $|s-1|=0.8$; (c) a D-contour of radius $5$ enclosing the right half-plane. In each case, state how the image of $F$ circles the origin.
Answer
The zeros of $F$ are $0.5$ and $-3$. Its poles are $-1$, counted twice, and $1\pm j$, the roots of $s^2-2s+2$. The pair $1\pm j$ lies at distance $\sqrt2=1.414$ from the origin and at distance $1$ from $s=1$.
(a) The circle $|s|=2$ encloses the zero at $0.5$, the double pole at $-1$ and the pair $1\pm j$, so $Z=1$ and $P=4$. Then $\Delta_\Gamma\arg F=2\pi(4-1)=6\pi$, and the image of $F$ circles the origin three times counterclockwise. The zero at $-3$ lies outside and contributes nothing.
(b) The circle $|s-1|=0.8$ encloses only the zero at $0.5$, which is $0.5$ from the centre. The pair $1\pm j$ is at distance $1$ and the double pole at distance $2$, so both lie outside. With $Z=1$ and $P=0$, $\Delta_\Gamma\arg F=-2\pi$, and the image circles the origin once clockwise.
(c) The D-contour encloses the roots in the right half-plane with magnitude below $5$: the zero at $0.5$ and the poles $1\pm j$. With $Z=1$ and $P=2$, $\Delta_\Gamma\arg F=2\pi$, and the image circles the origin once counterclockwise.
Exercise 2. The loop transfer function
$$ L(s)=\frac{2(3-s)}{(s-1)(s+4)} $$has a zero at $s=3$ in the right half-plane. (a) Write $F=1+L$ as a ratio of polynomials and find $P$ and $Z$ for a clockwise D-contour enclosing the right half-plane. (b) Predict $\Delta_\Gamma\arg(1+L)$ and decide whether the closed loop is stable. (c) A classmate counts the zero of $L$ at $s=3$ in $Z$. What net angle change would that predict, and why is the count wrong? (d) Confirm your answer to (b) with the practice tool on this page. In Explore mode, remove the existing zeros and poles, add poles at $1$ and $-4$ and a zero pair near the closed-loop poles, select the D-contour, and play the traversal.
Answer
(a) With $n(s)=2(3-s)$ and $d(s)=(s-1)(s+4)=s^2+3s-4$,
$$ F(s)=1+L(s)=\frac{d(s)+n(s)}{d(s)}=\frac{s^2+s+2}{(s-1)(s+4)}. $$The poles of $F$ are the open-loop poles $1$ and $-4$, so $P=1$. The zeros of $F$ are the closed-loop poles $-0.5\pm 1.323j$ (the imaginary part is $\sqrt7/2$). Both lie in the left half-plane, so $Z=0$.
(b) $\Delta_\Gamma\arg(1+L)=2\pi(1-0)=2\pi$, so the image of $1+L$ circles the origin once counterclockwise. This equals the stability target $2\pi P$, and the closed loop is stable.
(c) Counting the zero at $s=3$ would give $Z=1$, a predicted net angle change of $2\pi(1-1)=0$, and the false conclusion that one closed-loop pole is unstable. The point $s=3$ is a root of $n$. The zeros of $F$ are the roots of $d+n$, and $F(3)=1+L(3)=1$, so $s=3$ is not a zero of $F$. The zeros of $L$ change the shape of the image of $1+L$, and they affect the count only through the roots of $d+n$.
(d) With the tool’s default radius $R=2.2$, the pole at $1$ is the only point inside the D-contour, and the tool reports $\Delta\angle F=2\pi=2\pi(1-0)$. The points need not be placed exactly, because only their side of the imaginary axis matters here. Any radius larger than $1$ gives the same result.
Exercise 3. A loop transfer function $L$ is strictly proper and has four open-loop poles, two of them in the right half-plane and none on the imaginary axis. As $s$ travels a clockwise D-contour large enough to enclose every right-half-plane pole, the image of $1+L$ circles the origin once clockwise and never passes through it. (a) How many closed-loop poles lie in the right half-plane, and how many in the left half-plane? (b) A new controller keeps $P=2$. How must the image of $1+L$ circle the origin for the new closed loop to be stable?
Answer
(a) One clockwise turn means $\Delta_\Gamma\arg(1+L)=-2\pi$. The relation $\Delta_\Gamma\arg(1+L)=2\pi(P-Z)$ with $P=2$ gives $-2\pi=2\pi(2-Z)$, so $Z=3$. Because $L=n/d$ is strictly proper, $d+n$ has the same degree as $d$, and the closed loop has four poles. None lies on the imaginary axis, since the image avoids the origin, so the remaining closed-loop pole is in the left half-plane.
(b) Stability requires $Z=0$, so the net angle change must equal $2\pi P=4\pi$. The image must circle the origin twice counterclockwise. The measured image falls short of this target by three counterclockwise turns, one for each unstable closed-loop pole.
Exercise 4. Consider $L(s)=\dfrac{K}{(s-1)(s+2)(s+3)}$ with $K\gt 0$ and a clockwise D-contour of radius $10$. (a) Find $P$ and the closed-loop characteristic polynomial. (b) For $K=3$, $8$ and $15$, compute the closed-loop poles numerically, find $Z$, and predict $\Delta_\Gamma\arg(1+L)$. (c) Find the gains at which a closed-loop pole lies on the imaginary axis, and the range of $K$ for which the closed loop is stable.
Answer
(a) The open-loop poles are $1$, $-2$ and $-3$, so $P=1$ for every $K$. With $d(s)=(s-1)(s+2)(s+3)=s^3+4s^2+s-6$ and $n(s)=K$, the characteristic polynomial is
$$ d(s)+n(s)=s^3+4s^2+s+K-6. $$(b) The roots of this polynomial and the resulting counts are:
| $K$ | closed-loop poles | $Z$ | $\Delta_\Gamma\arg(1+L)$ |
|---|---|---|---|
| $3$ | $0.700$, $-1.239$, $-3.461$ | $1$ | $0$ |
| $8$ | $-0.062\pm 0.716j$, $-3.875$ | $0$ | $2\pi$ |
| $15$ | $0.131\pm 1.447j$, $-4.261$ | $2$ | $-2\pi$ |
Each entry in the last column is $2\pi(1-Z)$. At $K=3$ the image of $1+L$ makes no net turn about the origin, at $K=8$ it circles the origin once counterclockwise, and at $K=15$ once clockwise. Every closed-loop pole has magnitude below $10$, so the contour encloses all of the unstable ones.
(c) Substituting $s=j\omega$ gives
$$ (j\omega)^3+4(j\omega)^2+j\omega+K-6=(K-6-4\omega^2)+j\omega(1-\omega^2). $$Both parts vanish for $\omega=0$ with $K=6$, and for $\omega=1$ with $K=10$. Closed-loop poles can move between the half-planes only at these two gains, so the three cases in (b) settle each interval: one unstable closed-loop pole for $0\lt K\lt 6$, none for $6\lt K\lt 10$, and two for $K\gt 10$. The closed loop is stable for $6\lt K\lt 10$, which is exactly where $\Delta_\Gamma\arg(1+L)$ equals the target $2\pi P=2\pi$.
Exercise 5. In Exercise 4, the argument principle gives no answer at $K=6$ or at $K=10$. Describe what the image of $1+L$ does at these two gains and at which points of the contour this happens. Then explain why the net angle change can change value only at gains of this kind.
Answer
At $K=6$, $1+L(0)=1-K/6=0$, so the image passes through the origin at the moment $s$ crosses $s=0$. The closed-loop poles are $0$, $-2+\sqrt3=-0.268$ and $-2-\sqrt3=-3.732$. At $K=10$, $(j-1)(j+2)(j+3)=-10$, so $L(j)=-1$ and $1+L(\pm j)=0$. The image passes through the origin twice, when $s=j$ and when $s=-j$, and the closed-loop poles are $\pm j$ and $-4$. In both cases a zero of $1+L$ lies on the contour, where the angle of $1+L$ is undefined, so the assumption behind $2\pi(P-Z)$ fails. Neither closed loop is asymptotically stable.
For every other gain, the image is a closed curve that avoids the origin, and its net angle change is a whole multiple of $2\pi$. As $K$ varies, the curve deforms continuously, so its number of turns about the origin stays fixed until the curve passes through the origin. That requires a zero of $1+L$ on the contour. On the arc of radius $10$, $|L|$ stays below $0.02$ for $K\le 20$, so the image of the arc stays close to $1$, and a crossing can only occur on the imaginary axis. The net angle change therefore changes only when a closed-loop pole reaches the imaginary axis. It is $0$ at $K=5.9$ and $2\pi$ at $K=6.1$, and it is $2\pi$ at $K=9.9$ and $-2\pi$ at $K=10.1$. Throughout, $P=1$, because the open-loop poles do not depend on $K$. At $K=10$ the loop response itself passes through $L(j)=-1$; the next lecture reads the same count from encirclements of $-1$ by $L$.
The closed-loop poles, root counts and net angle changes in these answers were checked with a short Python script that computes each net angle change from a densely sampled contour.
Exercises from the video
These exercises follow particular moments in the video lecture and use its notation, $\tilde G(s)=N_o(s)/D_o(s)$ for the open loop $L(s)=n(s)/d(s)$ of these notes, and each one names the chapter and time to watch before you start it.
Video exercise 1. Closed-loop poles of the fifth-order loop. From the chapter “Same open-loop shape, different closed loop”, at 0:00.
The video opens with the loop
$$ \tilde G(s)=\frac{K}{s(s+1)(s+2)(s+3)(s+4)} $$under negative unity feedback, which is stable for $K=10$ and unstable for $K=40$.
(a) Show that the closed-loop characteristic polynomial is $s^5+10s^4+35s^3+50s^2+24s+K$.
(b) Show that raising the gain from $K=10$ to $K=40$ moves the Bode magnitude plot up by the same amount at every frequency, find that amount in decibels, and explain why the phase plot does not change.
(c) Run the lines below and use the output to confirm the closed-loop poles stated in the video. How many closed-loop poles lie in the right half-plane for each gain?
import numpy as np
for K in [10, 40]:
p = np.roots([1, 10, 35, 50, 24, K])
print(K, np.round(p, 3))
Video exercise 2. The roles of $N_o$ and $D_o$ in a worked illustration. From the chapter “The closed loop and 1 + G(s)”, at 2:47.
The video illustrates the roles of the open-loop numerator and denominator with
$$ \tilde G(s)=\frac{2(s+3)}{(s+1)(s+2)}. $$(a) Starting from $T(s)=\tilde G(s)/(1+\tilde G(s))$ with $\tilde G=N_o/D_o$, derive $T(s)=N_o(s)/(N_o(s)+D_o(s))$ and $1+\tilde G(s)=(N_o(s)+D_o(s))/D_o(s)$.
(b) For this illustration, write $N_o(s)$, $D_o(s)$ and $T(s)$. Give the open-loop poles, the closed-loop poles, the zero of the open loop and the zero of the closed loop, and the DC gain $T(0)$.
(c) Which of the numbers in (b) are the zeros of $1+\tilde G(s)$, and which are its poles? Is the closed loop stable?
Video exercise 3. One zero and one pole on the same contour. From the chapter “The four rules, and one zero with one pole”, at 7:55.
In this chapter $s$ travels once clockwise around an ellipse with center $0.2$, semi-axis $1.2$ along the real axis and semi-axis $1.0$ along the imaginary axis, that is, the curve $\left(\frac{x-0.2}{1.2}\right)^2+y^2=1$ with $s=x+jy$. The zero is at $z=-1.6+j0.5$ and the pole at $p=0.5$.
(a) Decide whether $z$ and $p$ lie inside or outside the contour.
(b) Use the four rules of the video to predict the net angle change of $(s-z)/(s-p)$ over one clockwise trip.
(c) Move the zero to $z=j0.3$ and keep $p=0.5$. Predict the net angle change again.
(d) Keep $z=j0.3$ and move the pole to $p=2$. Predict the net angle change.
Video exercise 4. The image of $1+\tilde G(s)$ when a closed-loop pole crosses. From the chapter “Watching a closed-loop pole cross”, at 12:05.
The video uses $\tilde G(s)=K/((s-1)(s+2))$, which has $P=1$, and a clockwise D-contour of radius $2.5$ in the s-plane.
(a) Write the closed-loop poles as functions of $K$. At which gain do the two real closed-loop poles meet, and where? Evaluate the poles for $K=1$ and $K=3$.
(b) For $K=3$, compute $1+\tilde G(s)$ at the two points where the D-contour meets the real axis, $s=0$ and $s=2.5$. Show that $\operatorname{Im}\tilde G(j\omega)\lt 0$ for every $\omega\gt 0$, and that on the half circle $s=2.5e^{j\theta}$, $|\theta|\lt 90^\circ$, the image is real only at $\theta=0$.
(c) Use (b) to show that the image of $1+\tilde G(s)$ goes around the origin once counterclockwise for $K=3$, so that the net angle change is $+2\pi=2\pi P$. What is $Z$?
(d) Compute the same two image points for $K=1$ and explain why the net angle change is $0$ there.
Video exercise 5. Gradient descent as a feedback loop. From the chapter “Three things to keep, and what comes next”, at 14:48.
The video states that the sharpness of a network trained by full-batch gradient descent hovers near $2/\eta$, where $\eta$ is the step size, and that this is the boundary where gradient descent on a quadratic stops converging.
(a) For $f(w)=\tfrac12 hw^2$ with $h\gt 0$, write one step $w_{k+1}=w_k-\eta f^{\prime}(w_k)$ in the form $w_{k+1}=\lambda w_k$. Show that the iteration converges from every starting point exactly when $0\lt \eta h\lt 2$. Interpret $\lambda$ as the pole of a discrete-time feedback loop.
(b) With $\eta=0.1$ and $w_0=1$, compute $|w_{20}|$ for $h=15$ and for $h=25$.
(c) For $f(w)=\tfrac12 w^{\mathsf T}Hw$ with $H=\operatorname{diag}(4,25)$, which step sizes give convergence? Check $\eta=0.05$ and $\eta=0.1$.
References
Norman S. Nise, Control Systems Engineering, 6th ed., Wiley, 2011.
- §5.2: Feedback block diagrams.
- §10.1: Frequency response.
- §10.3: Nyquist criterion and the argument principle.
Sources for the historical remarks and the optimization example:
- H. Nyquist, “Regeneration theory,” Bell System Technical Journal, vol. 11, pp. 126–147, 1932.
- H. S. Black, “Inventing the negative feedback amplifier,” IEEE Spectrum, 1977.
- L. Lessard, B. Recht and A. Packard, “Analysis and design of optimization algorithms via integral quadratic constraints,” SIAM Journal on Optimization, 2016.
- J. Cohen et al., “Gradient descent on neural networks typically occurs at the edge of stability,” International Conference on Learning Representations (ICLR), 2021.