3.5.42 · D4Guidance, Navigation & Control (GNC)

Exercises — Gain margin, phase margin — stability margins

2,179 words10 min readBack to topic

Before we start, one reminder of the two rulers, because every problem leans on them:


Level 1 — Recognition

Problem 1.1

An open-loop response has at its phase crossover. State the gain margin as a plain factor and in decibels.

Recall Solution

WHAT we do: plug straight into the definition. GM is the factor you can multiply the loop gain by before reaches at the dangerous phase, so it is the reciprocal of the magnitude there. In dB: the decibel is just of a magnitude ratio (a compressed ruler so huge and tiny numbers fit on one axis — the same ruler Bode plots use). Sanity: GM (positive dB) ⟹ stable margin. You could quadruple the gain before touching .

Problem 1.2

At the gain crossover, . Find the phase margin. Is the loop stable in phase?

Recall Solution

WHAT & WHY: PM is the gap from the current phase up to the danger angle . It is not the angle itself (classic trap — see below). Positive ⟹ stable, and sits at the top of the healthy band .

Problem 1.3

True or false: gain margin is read off at the frequency where . Explain in one sentence.

Recall Solution

False. Gain margin lives at the phase crossover (), because only there is the loop already pointing at 's direction, so a pure gain boost is all that's left to reach it. (PM is the one read at .)


Level 2 — Application

Problem 2.1

For , find the phase crossover frequency . (Note: it does not depend on — explain why.)

Recall Solution

WHY drops out: a constant gain scales magnitude but adds zero phase. Phase crossover is defined purely by the phase equation, so is invisible here. The phase: each factor contributes an angle. A pure integrator gives ; each in the denominator gives . So . When two arctangents sum to , their tangents are reciprocals, i.e. : See the phase curve in Figure s01 crossing at exactly .

Figure — Gain margin, phase margin — stability margins

Problem 2.2

Same with . Compute the gain margin in dB.

Recall Solution

WHAT: magnitude at . Magnitude multiplies factor-by-factor: At : . Contrast with the parent note (where gave GM , i.e. dB): quadrupling shrank GM by exactly a factor ( dB). Gain and margin trade off directly.

Problem 2.3

For , the parent note found rad/s and PM . Using the rule of thumb, estimate the closed-loop damping ratio and comment on overshoot.

Recall Solution

Rule of thumb: for PM up to . A damping ratio near means moderate, well-controlled overshoot — see Damping ratio and overshoot. For a standard second-order system, gives roughly overshoot, a fast but not wild response.


Level 3 — Analysis

Problem 3.1

For the loop in Problem 2.1, find the value of that makes the closed loop marginally unstable (GM , i.e. dB). Interpret it.

Recall Solution

WHAT: marginal instability means the curve exactly touches , so with . From Problem 2.2, at , . Setting this to : Interpretation: at the loop sustains a steady oscillation at rad/s. Any ⟹ GM ⟹ unstable. This is exactly the gain the Root locus branches cross the imaginary axis, and the Nyquist stability criterion would show the curve passing through .

Problem 3.2

A loop has rad/s and PM . A pure time delay is now inserted. Find the largest the loop can tolerate before instability, and explain the mechanism.

Recall Solution

WHY a delay is dangerous: a pure delay has magnitude (it never changes gain) but adds phase — a phase lag that grows with frequency. It eats directly into the phase margin without warning on the magnitude plot. This is the Time delay and Padé approximation story. Convert PM to radians: rad. Max delay: the delay's phase lag at the gain crossover must not exceed the margin: Beyond s the extra lag pushes the phase past at unity gain ⟹ PM goes negative ⟹ unstable.

Problem 3.3

Two loops both have GM dB. Loop A has PM ; Loop B has PM . Which is the more robust design, and why can identical gain margins hide very different behaviour?

Recall Solution

Loop B is far more robust. Gain margin only measures safety along one direction (pure gain scaling toward ). A loop can have a comfortable GM yet pass close to from a different angle — that closeness is what PM captures. Loop A's PM ⟹ heavy ringing and large overshoot; the Nyquist stability criterion plot skims . Loop B's PM ⟹ smooth response. Moral (parent mistake #2 made concrete): you need both margins healthy; either alone can lie.


Level 4 — Synthesis

Problem 4.1

For , choose so that the phase margin is exactly . Report and .

Recall Solution

Set up the phase condition first (it fixes independent of 's value once we demand a target angle): At gain crossover we need . So rad/s. Now enforce at that frequency to pin down : Check: — nicely damped, small overshoot. This is a mini PID controller tuning step: we picked a pure gain to hit a phase-margin spec.

Problem 4.2

Take the design from Problem 4.1 (PM , ). What is its gain margin?

Recall Solution

Find : demands , i.e. . Interpret: the phase only approaches as ; it never actually reaches it for a finite frequency. As , . Meaning: infinite gain margin — you can multiply by any factor and this two-pole loop never becomes unstable (its phase can't quite reach ). All the design freedom here lives in the phase margin. See Figure s02 for the two Nyquist shapes side by side.

Figure — Gain margin, phase margin — stability margins

Level 5 — Mastery

Problem 5.1

A plant must satisfy both: GM dB (factor ) and PM . Using the phase-crossover result , find the range of meeting the gain-margin spec, and check whether also meets the PM spec. Conclude which constraint binds.

Recall Solution

Gain-margin constraint. From Problem 2.2's pattern, , so . Require : Check PM at . First find : solve : Numerically rad/s (verified in VERIFY). Phase there: PM fails! Even though passes the gain-margin test (GM dB), it violates the phase-margin spec. Conclusion: the phase margin binds first. We must lower further. This is a textbook Loop shaping insight: gain and phase specs can pull in opposite directions, and you honour the tighter one.

Problem 5.2

For the same family, estimate the at which PM (the tightest allowed), and state the final acceptable range .

Recall Solution

WHAT: we scan downward until PM rises to . Lowering pulls the magnitude curve down, moving to a lower frequency where the phase is less negative ⟹ larger PM. Numerically, PM occurs near (VERIFY confirms PM there). Final range (both specs, GM and PM ): The gain-margin ceiling is never the active limit — the phase margin caps us at roughly . A robust practical pick like (PM , GM ) sits comfortably inside.


Recall One-screen recap of every result

1.1 GM dB · 1.2 PM · 1.3 phase crossover. 2.1 · 2.2 GM dB · 2.3 . 3.1 · 3.2 s · 3.3 Loop B robust. 4.1 · 4.2 GM . 5.1 GM binds at but PM fails at () · 5.2 usable .


Parent: Gain margin, phase margin — stability margins