Concept

Gain margin — where it appears

How far below unity a loop's gain has fallen at the frequency where its phase reaches half a turn, which is how much gain may still be added. It answers a different question from the phase margin, and a conditionally stable loop is one where the two disagree about which direction is dangerous.

Named by 7 essays across 3 fields — each of them below, with the objects they name alongside it.

Loop gain of a three-pole amplifier closed for a gain of 100. Unity loop gain at 5.73 kHz, where 34.9° of phase remains before −180°. The phase reaches −180° at 89.6 kHz, where the loop gain is 46.1 dB below unity.

What is left at crossover

A feedback loop is stable or not according to one number read at one frequency — how much phase remains before −180° at the point where the loop gain passes unity. The loop gain here is obtained the way it is obtained on a bench: cut the loop, drive one side of the cut, and measure what comes back to the other.

feedback · Loop gain
A pair at Q = 0.7071: the sketch is -3.01 dB out at the corner. computed by solving, not by drawing. The solved magnitude against the two straight lines that stand in for it. At a conjugate pair the error at the corner is 20 log Q = -3.010 dB, which is unbounded in both directions, and the worst error anywhere is 3.010 dB at 1.00× the corner. No damping brings it inside 0.770 dB: that is the minimax, at Q = 0.9152, where the corner error and an interior maximum are equal.

The straight lines, and where they are not the curve

Two straight lines through a corner is the most-used approximation in this subject and almost the only one with no number attached. It has one, and it is exact: at a single real pole the sketch is 3.0103 decibels high at the corner and nowhere worse, and its error is the same a factor above the corner as the same factor below — a symmetry the construction does not suggest. A pole pair has no such bound at all, and the best any two-slope sketch can do on one is 0.770 decibels, at a quality factor of 0.9152.

frequency · Asymptotic approximation
Loop gain of a two-pole amplifier closed for a gain of 100. Unity loop gain at 5.73 kHz, where 35.0° of phase remains before −180°. The phase never reaches −180° at any frequency, so there is no gain margin to quote: 2 poles contribute at most 180° and the last of it arrives only at infinity.

The loop that never crosses

Every loop this field draws carries two margins, and one of them is not always a number. Take the third pole out of the standard loop and its crossover moves by 2.45 parts per million and its phase margin by 0.164 degrees — the third pole's own arctangent there, to five decimal places — while its gain margin goes from 46.06 decibels to no number at all. The phase reaches −180° only where the magnitude has already reached −62 decibels, and the two instruments that are supposed to notice report 3.19 × 10⁻⁶ either way.

feedback · Loop gain
The straight lines report 6.02 dB of gain margin on a loop that has none. computed by solving, not by drawing. The gain and phase of a loop made of an integrator and a pair at Q = 2, the corner at 1.00 kHz, the integrator set so that the straight-line asymptotes cross unity at 500 Hz. The loop's phase passes −180° at 1.00 kHz. There the lines put the loop gain at −6.02 dB and the solve at 0.00 dB, so the gain margin they report is 6.02 dB against 0.00 dB. The difference is 6.0206 dB, which is 20 log Q exactly with Q = 2, at any integrator gain. Closed, the loop is on the edge: the largest real part among its poles is -5.87e-17 of the corner's angular frequency.

The gain margin the straight lines get exactly wrong

A phase margin read off the straight lines is wrong by an amount that depends on where the loop crosses unity. A gain margin read off them is not: for an integrator and a pole pair the phase passes −180° at the pair's own frequency whatever the gain, and the lines are out there by exactly 20 log Q — 6.0206 dB for two real poles, 13.98 dB at a quality factor of five, at every integrator gain drawn. The stability condition for the loop turns out to be the same inequality: it is stable exactly when the gain margin the lines report exceeds that error.

frequency · Asymptotic approximation
3 equal lags in a loop closed by an inverting gain k, from k = 0 to 12.8. computed by solving, not by drawing: the closed-loop poles, rooted from the netlist's determinant at 61 gains. At k = 0 the 3 poles coincide at −1/τ; as k rises they leave along 3 straight lines at angles π(2j + 1)/3, each ∛k/τ from the start, to the imaginary axis at k = sec(π/3) to the power 3 = 8.000. A gain of a hundredth moves them 21.5% of their own frequency; a single lag would move 1%.

The root a ring of equal stages takes

Two coincident poles separate as the square root of whatever splits them; three as the cube root; m as the m-th. In a loop of m equal lags closed by a gain k, the m-fold pole leaves along an m-pointed star, each point the m-th root of k from where it started — fitted exponents 1.0000, 0.5000, 0.3333 and 0.2500 over six decades — so a loop gain of a hundredth moves a triple pole 21.5% of its frequency where a single lag would move 1%. The star's nearest points reach the imaginary axis at k = secᵐ(π/m): 8 for three lags, 4 for four, 1.884 for eight, falling towards one. Staggering three lags by a factor of four raises the gain they tolerate from 8 to 26.6, and at the same gain cuts a step's overshoot from 53.9% to 20.6% — or, at the same gain margin, buys nothing.

transients · Poles
Three loops with exactly 45° of phase margin, and their step responses. computed by solving, not by drawing; three lags spaced by a ratio r, the amplifier's gain bisected in each for a 45.000° margin, the step from the closed loop's residues. Lags a hundredfold apart need a loop gain of 141 and overshoot 23.6%. Spaced by three they need 4.7 and overshoot 34.5%; coincident, 2.83 and 41.0%. The same margin, and overshoots 1.73 times apart.

One margin, and the gain under it

A phase margin of 45° is quoted as an overshoot of 23 per cent, and on a loop with plenty of gain below its crossover it is: three lags a hundredfold apart, closed at 45°, overshoot 23.6%. Bring the same three lags together and the loop reaches 45° at a loop gain of 2.83 instead of 141, and overshoots 41.0% — the same margin, 1.73 times the ringing. The closed-loop peak follows the overshoot where the margin does not: predicted from the peak the worst error over 27 loops is 3.1 points, from the margin 22.2. The gain margin moves with it, from 37.2 dB to 9.0.

feedback · Margin overshoot
Two loops with exactly 45° of margin and the same crossover: with 100% of the extra lag a delay, the step overshoots 28.7%, against 23.3% for two poles. computed by solving, not by drawing: the closed-loop step of a loop K·exp(−sD)/(s(1 + s/p)) with its crossover at one, its phase margin exactly 45°, and 100% of the 45° beyond the integrator supplied by the delay (solid), against the same margin from a lag alone (dashed). Delay 0.785, lag's pole absent. Overshoot 28.7% against 23.3%; settled within 2% at 7.03 against 7.06; gain margin 6.0 dB against no limit. Marched with a history buffer, and at δ = 1 checked against the exact series of the method of steps.

The margin a delay spends

A phase margin can be made of a lag or of a delay, and the number is the same either way. Forty-five degrees from a lag overshoots 23.3 per cent, and forty-five degrees from a delay overshoots 28.7; at sixty degrees the sign reverses, 8.77 against 5.57, and the two cross near 54 degrees. The overshoot is the smaller difference. A two-pole loop's gain margin has no limit at all, and five per cent of its extra lag as delay brings that to 25.5 dB; with all of it delay the gain margin is 90°/(90° − margin), which is 6.0 dB at 45°, and nothing else is in the expression. Across twenty-one such loops the margin alone misses the overshoot by 13.1 points. The closed-loop peak, which already reads the whole band, misses by 1.2.

feedback · Margin overshoot

Named alongside it

The objects these essays reach for when they reach for this one.

Loop gainModel rangePhase marginDamping ratioOvershootSecond-order approximationStabilityAsymptotic approximationBode plotClosed-loop responseThe quality factorBisection

All concepts