Part 4 · Chapter 17

Relative Stability: Gain and Phase Margins

Chapter 16 asked only whether the Nyquist plot encircles the critical point; this chapter asks how far it stays away, and answers with two numbers — the extra gain the loop could tolerate before instability, and the extra phase lag it could tolerate — which together fix not just the safety of a design but its damping, its overshoot and the dead time it can survive.

Control Systems Prof. Mithun Mondal Reading time ≈ 45 min
i What you'll learn
  • Why a binary stability verdict is not enough, and what relative stability measures.
  • The two crossover frequencies: phase crossover \(\omega_{pc}\) and gain crossover \(\omega_{gc}\).
  • Gain margin \(\mathrm{GM}=1/|GH(j\omega_{pc})|\), and why it is quoted in decibels.
  • Phase margin \(\mathrm{PM}=180^\circ + \angle GH(j\omega_{gc})\), and how to read both margins off a Bode or Nyquist plot.
  • The link \(\zeta \approx \mathrm{PM}/100\) that turns a frequency-domain margin into Chapter 8's overshoot.
  • The delay margin, and the cases — conditional stability, resonant plants — where the two classical margins lie.
Section 17-1

From Yes or No to How Much

The Nyquist criterion of Chapter 16 returns a verdict: the closed loop is stable, or it has \(Z\) poles in the right half-plane. That verdict is exact and it is also, on its own, of limited engineering value. Consider two loops, both stable, whose Nyquist plots cross the negative real axis at \(-0.98\) and at \(-0.2\). Both satisfy \(Z=0\). But the first is a hair's breadth from disaster: a two per cent rise in gain — a warmer amplifier, a stiffer actuator, a component tolerance — tips it over. The second would survive a five-fold gain error.

Real plants are never known exactly. Their parameters drift with temperature and age, their models omit high-frequency dynamics, and their gains change with operating point. A design that is stable only for the nominal model is not a design at all. What we need is a measure of relative stability: how much the loop can be perturbed before the plot reaches the critical point.

The phrase "reaches the critical point" is the key. Stability is lost when the Nyquist plot passes through \(-1\). So the natural measure of safety is the distance, in some sense, between the plot and that point. The two classical margins are the two simplest such distances — one measured radially, one measured along the unit circle — and each corresponds to a physically meaningful kind of model error.

The same idea in the time domain. Chapter 8 measured transient quality by overshoot and settling time; Chapter 9 measured accuracy by \(e_{ss}\). Relative stability is the third leg of the same specification, and — as Section 17-7 will show — it is not independent of the first: a small phase margin and a large overshoot are two descriptions of one underlying fact, that the dominant closed-loop poles are lightly damped.
Section 17-2

Two Ways to Reach the Critical Point

The point \(-1\) is the complex number of magnitude 1 and angle \(-180^\circ\). A point on the Nyquist plot coincides with it only if both conditions hold at the same frequency. That observation splits the approach to instability into two independent directions.

A loop can fail because its gain is too large at the frequency where the phase is already \(-180^\circ\). The frequency at which \(\angle G(j\omega)H(j\omega) = -180^\circ\) is the phase crossover frequency \(\omega_{pc}\). At that frequency the plot lies on the negative real axis; whether the loop is safe depends on how far along that axis it lies.

Alternatively, a loop can fail because its phase lag is too great at the frequency where the gain is already unity. The frequency at which \(|G(j\omega)H(j\omega)| = 1\) — that is, \(0\) dB — is the gain crossover frequency \(\omega_{gc}\). At that frequency the plot lies on the unit circle; whether the loop is safe depends on how far round that circle it has swung.

CrossoverDefining conditionWhere the plot isMargin measured there
Phase crossover \(\omega_{pc}\)\(\angle GH = -180^\circ\)On the negative real axisGain margin
Gain crossover \(\omega_{gc}\)\(|GH| = 1\) (0 dB)On the unit circlePhase margin

Each margin answers a question of the form "how much of one thing can change before the plot lands on \(-1\), the other thing being held fixed?" That is exactly the structure of a tolerance specification, which is why the margins survived from Bode's laboratory notebooks into every control textbook since.

One warning to plant early: the two are computed at different frequencies. A perfectly respectable gain margin at \(\omega_{pc}\) tells you nothing about the phase at \(\omega_{gc}\). This is not a technicality; it is the source of most of the errors students make with margins, and Example 1 makes it concrete.

Section 17-3

Gain Margin

Suppose the loop is open-loop stable and its Nyquist plot crosses the negative real axis at \(-a\), so that \(|G(j\omega_{pc})H(j\omega_{pc})| = a\). Section 16-7 showed that multiplying the loop gain by a factor \(\lambda\) scales that crossing to \(-\lambda a\). The crossing lands exactly on \(-1\) when \(\lambda a = 1\). The critical multiplier is therefore \(1/a\), and it has a name.

🔑
Gain margin
\[ \mathrm{GM} = \frac{1}{\big|G(j\omega_{pc})H(j\omega_{pc})\big|}, \qquad \mathrm{GM}_{\text{dB}} = -20\log_{10}\big|G(j\omega_{pc})H(j\omega_{pc})\big| \]

The gain margin is the factor by which the loop gain may be multiplied before the closed loop becomes marginally stable, the phase characteristic being unchanged. It is dimensionless; in decibels it is simply the number of dB by which the magnitude curve lies below 0 dB at the phase crossover frequency.

Three readings of the same number are worth keeping straight. As a ratio, \(\mathrm{GM}=2\) means the gain may double. In decibels the same margin is \(20\log_{10}2 = 6.02\) dB. As a position on the plot, it says the negative-real-axis crossing sits at \(-0.5\), halfway to the critical point.

The sign convention deserves a moment. If the crossing is at \(-0.5\), then \(a=0.5\), \(\mathrm{GM}=2\), and \(\mathrm{GM}_{\text{dB}} = -20\log_{10}0.5 = +6\) dB: positive, and the loop is stable with room to spare. If the crossing is at \(-2\), then \(\mathrm{GM}=0.5\) and \(\mathrm{GM}_{\text{dB}} = -6\) dB: negative, and for an open-loop stable minimum-phase plant that means the loop is already unstable, the gain needing to be halved to recover. A negative gain margin in decibels is not a small margin; it is a failed design.

Two degenerate cases are common enough to name. If the phase never reaches \(-180^\circ\) — true of every first- and second-order loop with no delay and no right-half-plane zero — there is no \(\omega_{pc}\), no real-axis crossing, and the gain margin is infinite. Such a loop cannot be destabilised by gain alone, and its phase margin is then the only margin that means anything. Conversely, if the plot crosses the negative real axis at several frequencies, the gain margin is quoted at the crossing closest to \(-1\) from the right, since that is the one the gain reaches first.

Gain margin of a type-1 third-order loop
\[ G(s)H(s)=\frac{K}{s(s+1)(s+2)}: \quad \omega_{pc}=\sqrt{2}, \quad \big|GH(j\omega_{pc})\big| = \frac{K}{6}, \quad \mathrm{GM}=\frac{6}{K} \]

The gain margin collapses to unity — 0 dB — exactly at \(K=6\), the stability boundary found in Chapter 16. The margin and the boundary are the same fact stated twice.

Section 17-4

Phase Margin

Now hold the gain fixed and let phase lag creep in. At the gain crossover frequency the plot has magnitude 1, so it sits on the unit circle at some angle \(\phi = \angle G(j\omega_{gc})H(j\omega_{gc})\). For a stable design this angle is somewhere between \(-90^\circ\) and \(-180^\circ\). Adding a pure phase lag rotates that point clockwise around the unit circle without changing its magnitude; it reaches \(-1\) after a rotation of \(180^\circ + \phi\) — remembering that \(\phi\) is negative, so this is a positive quantity.

🔑
Phase margin
\[ \mathrm{PM} = 180^\circ + \angle G(j\omega_{gc})H(j\omega_{gc}) \qquad \text{where } \big|G(j\omega_{gc})H(j\omega_{gc})\big| = 1 \]

The phase margin is the additional phase lag that may be inserted at the gain crossover frequency before the closed loop becomes marginally stable, the magnitude characteristic being unchanged. A positive PM means a stable loop for an open-loop stable minimum-phase plant; a PM of zero puts the plot exactly on \(-1\).

Where the gain margin guards against errors in gain — amplifier tolerance, actuator authority, a changing load — the phase margin guards against errors in timing. Unmodelled high-frequency poles, computational delay in a digital controller, sampling, transport lag: all of these subtract phase while leaving the low-frequency magnitude essentially untouched. The phase margin is the budget from which they are paid, and it is the margin that is usually the binding constraint in practice.

Because a lag of \(\mathrm{PM}\) degrees at \(\omega_{gc}\) is what kills the loop, and because a dead time \(T\) produces a lag of \(\omega T\) radians, the phase margin converts directly into a tolerable dead time. That conversion is the delay margin of Section 17-8.

Both margins are about the same event. Instability begins when the plot touches \(-1\). Gain margin measures the shortfall in magnitude at the frequency where the angle is already fatal; phase margin measures the shortfall in angle at the frequency where the magnitude is already fatal. Neither is more fundamental. A complete statement of relative stability quotes both, together with the two frequencies at which they were measured.
Section 17-5

Reading the Margins on a Bode Plot

The Bode plot is where margins are actually read, because the two crossover frequencies appear as two horizontal reference lines rather than as geometric constructions. The magnitude panel carries the \(0\) dB line; the phase panel carries the \(-180^\circ\) line. The recipe is four steps and no arithmetic.

Find \(\omega_{gc}\) where the magnitude curve crosses \(0\) dB. Drop down to the phase panel at that frequency and read the phase; the amount by which it exceeds \(-180^\circ\) is the phase margin. Then find \(\omega_{pc}\) where the phase curve crosses \(-180^\circ\), go up to the magnitude panel at that frequency and read the magnitude in dB; the amount by which it lies below \(0\) dB is the gain margin.

|GH| dB 0 dB GM ω_gc ω_pc log ω phase ° −180° −90° PM log ω
GM is read at ω_pc on the magnitude panel; PM is read at ω_gc on the phase panel

Notice the crossing pattern in the figure: the gain margin is measured on the upper panel at the frequency identified on the lower one, and the phase margin the other way round. Reading both on the same panel, or both at the same frequency, is the single most common mistake in the subject.

The asymptotic Bode construction makes this quick even by hand. Because the magnitude asymptotes are straight lines of slope \(-20\) dB/decade per pole, \(\omega_{gc}\) can usually be located by inspection, and the phase there estimated from the pole and zero corner frequencies. A design rule follows directly and is worth memorising: a loop whose magnitude curve crosses \(0\) dB on a \(-20\) dB/decade slope has a healthy phase margin; one that crosses on \(-40\) dB/decade is marginal, and one that crosses on \(-60\) dB/decade is almost certainly unstable. The reason is Bode's gain–phase relation: for a minimum-phase system, a sustained slope of \(-20n\) dB/decade is accompanied by a phase of roughly \(-90n\) degrees, so a \(-40\) dB/decade crossover implies a phase near \(-180^\circ\) and a phase margin near zero.

Slope at \(0\) dB crossoverApproximate phase thereApproximate PMVerdict
\(-20\) dB/decade\(\approx -90^\circ\)\(\approx 90^\circ\)Comfortable, possibly sluggish
\(-40\) dB/decade\(\approx -180^\circ\)Small, often \(20^\circ\)–\(40^\circ\)Marginal; check exactly
\(-60\) dB/decade\(\approx -270^\circ\)NegativeUnstable

The \(-40\) dB/decade entry is deliberately vague, and honestly so: nearby corner frequencies pull the true phase well away from the asymptotic estimate, which is exactly why that case must be computed rather than guessed. The rule is a screening tool, not a substitute for evaluating \(\angle GH(j\omega_{gc})\).

Section 17-6

Margins on the Nyquist Plot

On the Nyquist plot both margins live in one picture, which is why the plot remains the better vehicle for understanding even though the Bode plot is the better vehicle for measurement.

Draw the unit circle centred at the origin. The plot crosses it at \(\omega_{gc}\); the angle between the negative real axis and the radius to that crossing is the phase margin, measured as a rotation the plot would still have to make to reach \(-1\). The plot crosses the negative real axis at \(\omega_{pc}\), at the point \(-a\); the gain margin is \(1/a\), which is the factor by which the whole curve would have to be inflated for that crossing to reach \(-1\).

unit circle Re Im −1 −a GM = 1/a PM ω_gc on the unit circle vector margin = shortest distance
Both margins in one picture, with the shortest distance to −1 shown dashed

Seeing them together exposes what neither reveals alone. The gain margin is measured strictly along the real axis; the phase margin strictly along the unit circle. Between those two directions lies a whole arc of the plot that neither margin inspects. If the curve makes an excursion toward \(-1\) at some intermediate frequency, both classical margins can be large while the true distance to the critical point is small.

That true distance has a name: the vector margin, the shortest Euclidean distance from \(-1\) to the Nyquist plot. Since the distance from \(-1\) to a point on the plot is \(|1+G(j\omega)H(j\omega)|\), the vector margin is

Vector margin and the sensitivity peak
\[ \text{VM} = \min_{\omega}\big|1 + G(j\omega)H(j\omega)\big| = \frac{1}{\displaystyle\max_{\omega}\left|\frac{1}{1+G(j\omega)H(j\omega)}\right|} = \frac{1}{M_s} \]

The quantity inside the maximum is the sensitivity function, and its peak \(M_s\) is a single number that no excursion of the plot can hide from. A common modern specification is \(M_s \le 2\), equivalently a vector margin of at least \(0.5\). It is a useful fact that \(M_s\le 2\) automatically guarantees a gain margin of at least \(2\) and a phase margin of at least about \(29^\circ\), so the vector margin is the stronger requirement, and the classical pair are the more easily measured consequence of it.

Section 17-7

Margins, Damping and Speed

A margin would be a bureaucratic quantity if it only certified safety. Its real value is that it predicts the closed-loop transient, and it does so through the prototype second-order system of Chapter 8. Take the unity-feedback loop whose open-loop transfer function is

The prototype loop
\[ G(s) = \frac{\omega_n^{2}}{s\,(s + 2\zeta\omega_n)} \quad\Longrightarrow\quad \frac{C(s)}{R(s)} = \frac{\omega_n^{2}}{s^{2} + 2\zeta\omega_n s + \omega_n^{2}} \]

This is the standard second-order closed loop, so its overshoot and settling time are exactly those of Chapter 8. Now compute its phase margin. First locate the gain crossover by setting the magnitude to unity:

Gain crossover of the prototype loop
\[ \big|G(j\omega)\big| = \frac{\omega_n^{2}}{\omega\sqrt{\omega^{2} + 4\zeta^{2}\omega_n^{2}}} = 1 \;\Longrightarrow\; \omega^{4} + 4\zeta^{2}\omega_n^{2}\,\omega^{2} - \omega_n^{4} = 0 \]
\[ \omega_{gc} = \omega_n\sqrt{\sqrt{1 + 4\zeta^{4}} - 2\zeta^{2}} \]

The quadratic in \(\omega^{2}\) has one positive root, taken above. Now evaluate the phase there. The open-loop phase is \(-90^\circ\) from the integrator plus the lag of the real pole:

Phase margin of the prototype loop
\[ \mathrm{PM} = 180^\circ - 90^\circ - \arctan\!\frac{\omega_{gc}}{2\zeta\omega_n} = \arctan\!\frac{2\zeta\omega_n}{\omega_{gc}} = \arctan\!\frac{2\zeta}{\sqrt{\sqrt{1+4\zeta^{4}} - 2\zeta^{2}}} \]

The result depends on \(\zeta\) alone — \(\omega_n\) has cancelled. That is the whole point: the phase margin is a measure of damping, not of speed. Evaluating the expression gives a relation between a frequency-domain margin and a time-domain overshoot that no amount of algebra could have made obvious.

\(\zeta\)Exact PM\(100\zeta\) (deg)Overshoot \(M_p\)
0.2\(22.6^\circ\)2052.7 %
0.3\(33.3^\circ\)3037.2 %
0.4\(43.1^\circ\)4025.4 %
0.5\(51.8^\circ\)5016.3 %
0.6\(59.2^\circ\)609.5 %
0.7\(65.2^\circ\)704.6 %
🔑
The margin–damping rule of thumb
\[ \zeta \;\approx\; \frac{\mathrm{PM}\;[\text{degrees}]}{100} \qquad (\mathrm{PM} \lesssim 60^\circ) \]

Accurate to within a degree or two up to \(\mathrm{PM}=60^\circ\), after which the exact curve falls below the straight line and the estimate becomes conservative. Combined with \(M_p = e^{-\pi\zeta/\sqrt{1-\zeta^{2}}}\) from Chapter 8, it converts a measured phase margin into a predicted overshoot without ever computing a closed-loop pole.

ζ PM (deg) 0.2 0.4 0.6 0.8 20 40 60 80 ζ = PM/100 exact rule of thumb valid here
Phase margin against damping ratio: the linear rule holds to about ζ = 0.6

If the phase margin fixes the damping, what fixes the speed? The gain crossover frequency. From the expression for \(\omega_{gc}\) above, at \(\zeta=0.5\) we get \(\omega_{gc}=0.786\,\omega_n\), and Chapter 8's two per cent settling time \(t_s \approx 4/(\zeta\omega_n)\) then gives

Speed from the gain crossover frequency
\[ \omega_n = \frac{\omega_{gc}}{0.786} = 1.272\,\omega_{gc} \quad\Longrightarrow\quad t_s \approx \frac{4}{0.5 \times 1.272\,\omega_{gc}} \approx \frac{6.3}{\omega_{gc}} \]

The pairing is the central design insight of frequency-domain design: \(\omega_{gc}\) sets how fast the loop is; PM sets how well behaved it is. Compensator design in Part 5 is then a matter of raising \(\omega_{gc}\) for speed and restoring the phase margin the increase destroyed — which is exactly what a lead network does — or of raising the low-frequency gain for accuracy while leaving \(\omega_{gc}\) and PM alone, which is what a lag network does.

Design targets worth remembering. Typical practice asks for a gain margin of at least \(6\) dB (a factor of 2) and a phase margin between \(30^\circ\) and \(60^\circ\), with \(45^\circ\) a common compromise. Below \(30^\circ\) the response rings badly; above \(60^\circ\) the loop is sluggish and the low-frequency gain, and with it the steady-state accuracy of Chapter 9, is usually being sacrificed. These are conventions, not theorems — a flight control law and a temperature loop reasonably choose different points on the same trade-off.
Section 17-8

The Delay Margin

The phase margin becomes concrete the moment it is converted into time. A pure dead time \(T\) contributes a phase lag of \(\omega T\) radians, and Section 17-4 established that the loop can absorb a lag of PM before the plot reaches \(-1\). Since the critical frequency is \(\omega_{gc}\), equating the two gives the largest dead time the loop can survive.

🔑
Delay margin
\[ T_{\max} = \frac{\mathrm{PM}\;[\text{radians}]}{\omega_{gc}} = \frac{\mathrm{PM}\;[\text{degrees}]}{57.3\,\omega_{gc}} \]

The delay margin is the additional transport lag that would drive the closed loop to marginal stability. It is the phase margin expressed in seconds, and it is the number to quote when arguing about sampling rates, network latency, or computational delay in a digital implementation.

The formula carries an uncomfortable message. A fast loop — large \(\omega_{gc}\) — spends its phase margin quickly, because the same delay costs more phase at a higher frequency. Doubling the bandwidth halves the tolerable delay at fixed PM. Speed and delay tolerance are traded directly against one another, and no choice of controller structure repeals the exchange rate. Bandwidth is limited by the loop's slowest un-modelled lag, and it is limited hard.

A practical corollary: in a digital control loop the sample-and-hold alone contributes an average dead time of half a sample period, \(T_s/2\). Requiring that this consume no more than about a fifth of the delay margin is the usual justification for the rule that the sampling frequency should be at least twenty to thirty times the gain crossover frequency — a far more demanding requirement than the Nyquist–Shannon sampling rate, and one derived from stability rather than from information.

Section 17-9

When the Margins Mislead

The two classical margins are summaries, and every summary discards something. Four situations are worth recognising on sight, because in each the margins are computed correctly and the conclusion drawn from them is still wrong.

Multiple crossovers. If the magnitude curve crosses \(0\) dB more than once, there are several gain crossover frequencies and therefore several phase margins; if the phase crosses \(-180^\circ\) more than once, several gain margins. Quoting one of them as "the" margin hides the others. The honest procedure is to list all of them and take the worst, and to check the encirclement count of Chapter 16 rather than trusting any margin at all.

Conditional stability. Section 16-7 met loops that are destabilised by decreasing the gain. Their gain margin, quoted as a factor by which gain may be increased, says nothing whatever about the lower boundary. For such a system the margin must be quoted as an interval, \(K_1 \lt K \lt K_2\), or it is worse than useless.

Open-loop unstable plants. With \(P\ge1\) a positive phase margin does not imply stability; only \(N=-P\) does. Margins remain meaningful as measures of distance from the critical point, but the sign conventions invert and the verdict must always come from the encirclement count first.

Resonant excursions. A lightly damped mode can send the Nyquist plot on a loop that passes close to \(-1\) at a frequency far from either crossover. Both classical margins can then be textbook-perfect while the loop rings violently and a small parameter change destabilises it. This is precisely the failure the vector margin of Section 17-6 detects, and it is the reason \(M_s\) has largely replaced GM and PM in modern robust design.

SituationWhat goes wrongWhat to use instead
Several \(0\) dB crossingsSeveral phase margins; one quoted, others hiddenList all; take the smallest, and count encirclements
Conditionally stable loopGM describes only the upper gain limitQuote the stable band \(K_1 \lt K \lt K_2\)
Open-loop unstable plant (\(P\ge1\))Positive PM does not imply stabilityNyquist count \(Z=N+P\) first, margins second
Lightly damped resonancePlot approaches \(-1\) between the crossoversVector margin, or sensitivity peak \(M_s\)
Non-minimum-phase zeroMagnitude slope no longer predicts phaseCompute \(\angle GH(j\omega_{gc})\) explicitly
The right order of operations. Establish stability first, by the encirclement count of Chapter 16. Only then measure how far from instability the design sits, with GM, PM and — where the plot is not simple — the vector margin. Margins quantify a stability that has already been established; they do not establish it. Every classroom error involving a "positive phase margin" on an unstable plant comes from reversing those two steps.
Section 17-10

Worked Examples

1 Both margins of a type-1 third-order loop

Problem. For the unity-feedback loop with \(G(s)=\dfrac{3}{s(s+1)(s+2)}\), find \(\omega_{pc}\), the gain margin in dB, \(\omega_{gc}\), and the phase margin.

Solution. Take the gain margin first, since the phase crossover is the easier root. From Section 17-3, \(\omega_{pc}=\sqrt2 = 1.414\) rad/s and \(|GH|=K/6 = 0.5\):

Gain margin
\[ \mathrm{GM} = \frac{1}{0.5} = 2, \qquad \mathrm{GM}_{\text{dB}} = 20\log_{10} 2 = 6.02\ \text{dB} \]

For the gain crossover, set the magnitude to unity. Writing \(u=\omega^{2}\):

Gain crossover
\[ \frac{3}{\omega\sqrt{\omega^{2}+1}\,\sqrt{\omega^{2}+4}} = 1 \;\Longrightarrow\; u(u+1)(u+4) = 9 \;\Longrightarrow\; u^{3}+5u^{2}+4u-9=0 \]

Trying \(u=0.9\) gives \(-0.62\) and \(u=0.95\) gives \(+0.17\), so the root is \(u=0.9395\) and \(\omega_{gc}=0.969\) rad/s. Evaluate the phase there:

Phase margin
\[ \angle G(j\omega_{gc}) = -90^\circ - \arctan(0.969) - \arctan(0.4846) = -90^\circ - 44.1^\circ - 25.9^\circ = -160.0^\circ \]
\[ \mathrm{PM} = 180^\circ - 160.0^\circ = 20.0^\circ \]

A gain margin of \(6\) dB looks respectable; a phase margin of \(20^\circ\) does not. The rule of thumb predicts \(\zeta\approx 0.20\) and therefore an overshoot near \(50\%\). Factoring the closed-loop polynomial \(s^{3}+3s^{2}+2s+3\) gives a real pole at \(s=-2.671\) and a complex pair from \(s^{2}+0.329s+1.123\), whose damping ratio is \(0.155\) — poorly damped, exactly as the phase margin warned, the discrepancy arising because the real pole is not far enough away for the second-order approximation to be tight. The two margins genuinely disagree about this design, and the phase margin is the one to believe.

2 Choosing the gain for a specified gain margin

Problem. For \(G(s)=\dfrac{K}{s(s+1)(s+2)}\), find \(K\) so that the gain margin is \(10\) dB.

Solution. The phase crossover frequency does not depend on \(K\), so it remains \(\omega_{pc}=\sqrt2\), where \(|GH| = K/6\). Convert the specification out of decibels:

Working
\[ \mathrm{GM}_{\text{dB}} = -20\log_{10}\frac{K}{6} = 10 \;\Longrightarrow\; \frac{K}{6} = 10^{-10/20} = 0.3162 \]
\[ K = 6 \times 0.3162 = 1.897 \]

Compare with the stability boundary \(K=6\) found in Chapter 16: a \(10\) dB margin costs a factor of \(3.16\) in loop gain, and by Chapter 9 that same factor is lost from \(K_v\) and so gained back as ramp-tracking error. Margin is bought with accuracy — the trade-off that motivates every compensator in Part 5.

3 Choosing the gain for a specified phase margin

Problem. For \(G(s)=\dfrac{K}{s(s+2)}\), find \(K\) giving a phase margin of \(45^\circ\).

Solution. Here the order is reversed: the phase margin fixes the frequency first, and the gain follows. Requiring \(\angle G(j\omega_{gc}) = -180^\circ + 45^\circ = -135^\circ\):

Locate the crossover from the phase condition
\[ -90^\circ - \arctan\frac{\omega_{gc}}{2} = -135^\circ \;\Longrightarrow\; \arctan\frac{\omega_{gc}}{2} = 45^\circ \;\Longrightarrow\; \omega_{gc}=2\ \text{rad/s} \]

Now force the magnitude to be unity at that frequency:

Fix the gain from the magnitude condition
\[ \frac{K}{\omega_{gc}\sqrt{\omega_{gc}^{2}+4}} = \frac{K}{2\sqrt{8}} = 1 \;\Longrightarrow\; K = 4\sqrt2 = 5.657 \]

The gain margin of this design is infinite: the phase approaches \(-180^\circ\) only as \(\omega\to\infty\), where the magnitude has already fallen to zero, so the plot never touches the negative real axis. No increase in \(K\) can destabilise the loop — it merely erodes the phase margin, which is the margin that matters here.

4 Delay margin, and what a real delay costs

Problem. For the design of Example 3 (\(\omega_{gc}=2\) rad/s, \(\mathrm{PM}=45^\circ\)), find the delay margin. Then find the phase margin that remains if the loop actually contains a dead time of \(0.2\) s, and estimate the resulting overshoot.

Solution. Convert the phase margin to radians and divide by the gain crossover frequency:

Delay margin
\[ T_{\max} = \frac{45^\circ \times \pi/180}{2} = \frac{0.7854}{2} = 0.393\ \text{s} \]

A dead time of \(0.2\) s is comfortably inside that limit, so the loop remains stable. Because a delay has unit magnitude at every frequency, \(\omega_{gc}\) is unchanged; only the phase moves:

Phase lost, margin remaining
\[ \Delta\phi = \omega_{gc} T = 2 \times 0.2 = 0.4\ \text{rad} = 22.9^\circ, \qquad \mathrm{PM}_{\text{new}} = 45^\circ - 22.9^\circ = 22.1^\circ \]

Half the phase margin has gone. Applying the rule of thumb, \(\zeta\approx 0.221\), and Chapter 8's overshoot formula gives

Predicted overshoot
\[ M_p = e^{-\pi\zeta/\sqrt{1-\zeta^{2}}} = e^{-\pi(0.221)/0.975} = e^{-0.711} = 0.49 \;\to\; 49\% \]

A fifth of a second of dead time has turned a well-mannered \(45^\circ\) design into one that overshoots by half. This is the calculation to perform before choosing a sampling rate.

5 Margins read from measured data

Problem. A frequency sweep on an unknown open-loop stable plant gives: at \(\omega = 4\) rad/s the loop gain is \(0\) dB with phase \(-145^\circ\); at \(\omega = 9\) rad/s the phase is \(-180^\circ\) with gain \(-8\) dB. Find both margins, and estimate the closed-loop overshoot.

Solution. No transfer function is needed. The first measurement is at the gain crossover by definition, the second at the phase crossover:

Working
\[ \omega_{gc}=4: \quad \mathrm{PM} = 180^\circ - 145^\circ = 35^\circ \]
\[ \omega_{pc}=9: \quad \mathrm{GM} = 0 - (-8) = 8\ \text{dB} \quad (\text{a factor of } 10^{8/20} = 2.51) \]

Both are positive and \(P=0\), so the closed loop is stable. Applying the rule of thumb, \(\zeta\approx 0.35\), and

Overshoot and speed estimates
\[ M_p = e^{-\pi(0.35)/\sqrt{1-0.1225}} = e^{-1.174} = 0.309 \;\to\; 31\%, \qquad t_s \approx \frac{6.3}{\omega_{gc}} = 1.6\ \text{s} \]

Note what has been achieved: an overshoot and a settling time predicted for a plant whose transfer function was never written down. That is the practical reason the frequency-domain methods of this Part exist.

6 Checking the rule of thumb exactly

Problem. For \(G(s)=\dfrac{100}{s(s+10)}\), find both margins, the exact closed-loop damping ratio, and compare with the estimate \(\zeta \approx \mathrm{PM}/100\).

Solution. The phase is \(-90^\circ - \arctan(\omega/10)\), which approaches \(-180^\circ\) only as \(\omega\to\infty\). There is no finite phase crossover, so the gain margin is infinite. For the gain crossover, with \(u=\omega^{2}\):

Gain crossover
\[ \frac{100}{\omega\sqrt{\omega^{2}+100}} = 1 \;\Longrightarrow\; u^{2} + 100u - 10^{4} = 0 \;\Longrightarrow\; u = \frac{-100 + \sqrt{5\times10^{4}}}{2} = 61.80 \]
\[ \omega_{gc} = 7.862\ \text{rad/s}, \qquad \mathrm{PM} = 180^\circ - 90^\circ - \arctan(0.7862) = 51.8^\circ \]

The closed-loop transfer function is \(100/(s^{2}+10s+100)\), so \(\omega_n = 10\) rad/s and \(2\zeta\omega_n = 10\) gives \(\zeta = 0.500\) exactly. The rule of thumb predicts \(\zeta \approx 51.8/100 = 0.518\) — an error of under four per cent, and in the safe direction only because this loop is the prototype second-order system from which the rule was derived. The agreement in Example 1 was much poorer precisely because that loop had a third pole close enough to matter.

Finally, the delay margin of this design is \(51.8^\circ = 0.904\) rad divided by \(7.862\) rad/s, or \(115\) ms. A digital implementation would want a sample period well under about \(20\) ms.

Review

Chapter Summary

Two crossovers

\(\omega_{pc}\) where \(\angle GH=-180^\circ\); \(\omega_{gc}\) where \(|GH|=1\). They are different frequencies.

Gain margin

\(\mathrm{GM}=1/|GH(j\omega_{pc})|\); in dB, how far the magnitude sits below \(0\) dB at \(\omega_{pc}\).

Phase margin

\(\mathrm{PM}=180^\circ+\angle GH(j\omega_{gc})\); how far the phase sits above \(-180^\circ\) at \(\omega_{gc}\).

Reading them

GM on the magnitude panel at \(\omega_{pc}\); PM on the phase panel at \(\omega_{gc}\) — never both on one panel.

Damping

\(\zeta \approx \mathrm{PM}/100\) up to \(60^\circ\), which converts straight into Chapter 8's overshoot.

Speed

\(\omega_{gc}\) sets bandwidth: \(t_s \approx 6.3/\omega_{gc}\) for the prototype loop.

Delay margin

\(T_{\max}=\mathrm{PM}\,[\text{rad}]/\omega_{gc}\) — the phase margin measured in seconds.

Typical targets

\(\mathrm{GM}\ge 6\) dB, \(\mathrm{PM}\) between \(30^\circ\) and \(60^\circ\), sensitivity peak \(M_s\le 2\).

When they lie

Multiple crossovers, conditional stability, unstable plants, sharp resonances — use the vector margin.

Practice

Problems

In every problem identify which crossover frequency the question needs before computing anything. Assume unity feedback and an open-loop stable minimum-phase plant unless stated otherwise. Difficulty rises down the list.

  1. A loop's Nyquist plot crosses the negative real axis at \(-0.25\). State the gain margin as a ratio and in decibels.
  2. At its gain crossover frequency a loop has a phase of \(-152^\circ\). Find the phase margin and estimate the closed-loop damping ratio and percentage overshoot.
  3. For \(G(s)=\dfrac{K}{s(s+1)(s+5)}\), find \(\omega_{pc}\) and the gain margin as a function of \(K\). What value of \(K\) makes the gain margin exactly \(6\) dB?
  4. For \(G(s)=\dfrac{K}{s(s+4)}\), find \(K\) for a phase margin of \(60^\circ\). State the gain margin of your design and explain the answer.
  5. A design has \(\mathrm{PM}=50^\circ\) at \(\omega_{gc}=8\) rad/s. Find the delay margin. If the loop is implemented digitally with a sample period of \(10\) ms, estimate the phase margin that survives, taking the sample-and-hold as a dead time of half a sample period.
  6. Measurements on a plant give \(-14\) dB at the frequency where the phase is \(-180^\circ\), and \(-138^\circ\) at the frequency where the gain is \(0\) dB. Find both margins and state whether the design meets the usual targets.
  7. Explain why a magnitude curve crossing \(0\) dB on a \(-40\) dB/decade slope tends to have a small phase margin, and why this reasoning fails for a plant with a right-half-plane zero.
  8. For \(G(s)=\dfrac{K e^{-0.5 s}}{s+1}\), find the value of \(K\) that gives a phase margin of \(45^\circ\). (Solve the phase condition for \(\omega_{gc}\) numerically first.)
  9. A loop has \(\mathrm{GM}=12\) dB and \(\mathrm{PM}=55^\circ\), yet its step response rings badly at a frequency between the two crossovers. Explain how this is possible and name the quantity that would have exposed it.
  10. Show that increasing the loop gain of a stable minimum-phase system always reduces both margins, and use Chapter 9's error constants to explain why a designer nevertheless keeps wanting to increase it.
Tip: the two margins are computed by opposite procedures, and remembering which is which saves most of the confusion. For a gain margin, the frequency comes first: solve the phase condition \(\angle GH = -180^\circ\) for \(\omega_{pc}\), then evaluate the magnitude there. For a phase margin the frequency also comes first, but from the other equation: solve \(|GH|=1\) for \(\omega_{gc}\), then evaluate the phase there. When instead a margin is specified and a gain is wanted, the phase-margin problem is the easier one, because the phase of \(G(j\omega)\) does not contain \(K\) at all — the crossover frequency drops out of the phase condition alone, and \(K\) is then whatever makes the magnitude unity there.