3.5.42 · D1Guidance, Navigation & Control (GNC)

Foundations — Gain margin, phase margin — stability margins

2,646 words12 min readBack to topic

This page assumes nothing. Before you can read the parent note on stability margins, you must own every symbol it throws at you. We build each one from a picture, then show why the topic needs it.


0. What is a "signal", and what is a "loop"?

Look at Figure s01 below: the blue sent wave enters on the left, journeys around the loop, and returns as the red wave. Two things may have happened to it on the trip — it may have grown or shrunk (its height changed, yellow arrow), and it may have slid left or right in time (its timing changed, green arrow).

Figure — Gain margin, phase margin — stability margins

Those two changes — height and timing — are the only two things the entire topic cares about. Every symbol below is a tool for measuring one of them.


1. Frequency — how fast the wave wiggles

Figure — Gain margin, phase margin — stability margins

Why the topic needs it: a control loop behaves differently at every wiggle-speed. It might be perfectly calm for slow signals and go berserk at one specific fast one. So we must test every — that is why later formulas are functions of .


2. The complex plane — a home for "height AND timing" at once

Height and timing are two numbers. The clever trick of this whole field is to store both in a single point on a flat map called the complex plane.

Figure — Gain margin, phase margin — stability margins
  • Length 1, angle = the arrow pointing straight left with length one = the point . That is the disaster point.
  • Angle means "flipped upside down" = the wave comes back inverted in timing.
  • Length means it comes back exactly as strong.

Why the topic needs it: the single sentence "signal returns inverted and equally strong ⟹ instability" is "the arrow lands on ." Margins measure the distance from your arrow to .


3. Transfer function — the machine that changes the arrow

The parent note calls the open-loop transfer function: controller times plant/sensor , i.e. everything the wave passes through on one trip before we close the loop.

Figure s04 makes this concrete: the imaginary axis is where is a non-fading spin.

Figure — Gain margin, phase margin — stability margins
  • = the length of the returned arrow = the height-change (the gain).
  • = the angle of the returned arrow = the timing-shift (the phase).

Why the topic needs it: margins are just special readings of and at special frequencies.


4. Reading gain in decibels () and the

The parent note keeps writing gains in dB. Here is that symbol, from zero.

raw in dB
(unity) dB
dB
dB
dB

Why the topic needs it: "gain margin in dB" is just how many dB the length sits below dB at the danger frequency.


5. Angles, sign convention, degrees, radians, and

Converting for the delay formula: the parent's needs PM in radians, so


6. The tangent, arctangent, and why phase uses them

The parent note computes phase as sums of . Here is why that tool, and no other, shows up.

Figure — Gain margin, phase margin — stability margins

Why the topic needs it: the total phase is a sum of small angles, one per factor of , and each factor's angle is an of "imaginary-over-real."


7. Putting it together: the two crossover questions

Now every symbol in the parent's key definitions is earned. The whole topic is two readings, drawn in Figure s06:

Figure — Gain margin, phase margin — stability margins
  1. Phase crossover — the frequency where the arrow points to (straight left). Ask: how much shorter than length 1 is it? → that spare length factor is the gain margin .
  2. Gain crossover — the frequency where the arrow has length (0 dB). Ask: how far is its angle from ? → that spare angle is the phase margin .

Each margin is measured where the other quantity already sits at its critical value — remember the parent's "GaP" mnemonic.


How the foundations feed the topic

Figure s07 is the annotated version of the dependency map — read it if the code block below feels abstract: each box is one thing you learned above, arrows point from a prerequisite to what it enables, ending at the stability-margins topic.

Figure — Gain margin, phase margin — stability margins

Sine wave = spinning arrow

Frequency omega spin rate

Complex plane point

Magnitude = length = gain

Angle = rotation = phase

Logarithm base ten

Decibels dB

tan and arctan

Transfer function L of j omega

The critical point minus 1

Gain margin

Phase margin

Stability margins topic


Equipment checklist

Self-test — cover the right side and see if each answer is automatic. Everything here is built on this page (the section is noted in brackets); you do not need the parent note to answer.

What does measure, and what picture goes with it?
The spin rate (radians per second) of the arrow whose shadow is the sine wave (§1, Fig s02).
What two real things does a point on the complex plane store at once?
Its length = gain (height change) and its angle = phase (timing shift) (§2, Fig s03).
What single point means "instability"?
: length at angle — returned wave inverted and equally strong (§2).
Which rotation direction is a positive angle, and which is a lag?
Counter-clockwise is positive; a lag (arriving late, clockwise) is negative (§5).
What does mean physically, and why the imaginary axis?
Set the growth/decay part in ; what remains, , is a steady non-fading sine — a point on the imaginary axis (§3, Fig s04).
Why do amplitudes use but power uses ?
Power amplitude; the square pulls a factor of out of the log, turning into (§4).
Convert: length to dB, and back.
; back is (§4).
What is dB in raw length?
Exactly (§4).
What question does answer?
"Which angle has tangent ?" — it turns a side-ratio back into an angle (§6).
Convert to radians.
rad (§5).
At which crossover is gain margin read, and phase margin read?
GM at phase crossover (); PM at gain crossover () (§7, Fig s06).