We consider this just for unity feedback systems. This essentially controls how much variation is allowed before instability kicks in.

Gain Margin and Phase Margin

Gain margin is the magnitude below 0 dB at the frequency where the phase becomes 180°.

The phase margin is the phase angle above -180° at the frequency where the gain becomes 0 dB.

If and are positive, the closed-loop system is stable for unity feedback.

Main Idea

How much variation of gain and phase is allowed to the open-loop system while the closed-loop system remains stable? (when the loop is closed by a unity feedback)

The reciprocal of the gain margin is the maximum amount that the gain can be before the system become unstable by only looping at the open-loop frequency response.

Ex. For the gain main, your critical because

For the phase margin, this represents how much phase (time) delay you can allow without making the system unstable, when you go below the critical angle of 180°, the closed-loop system becomes unstable

  • You can find the time delay like this for a phase margin of 87°…

Also note that a Re / Im plot is for the closed loop system but the bode plot is for the open-loop system.

Solving

From the GM and PM equations, we basically plug in to the magnitude and phase equations defined in Frequency Domain Analysis

  • GM: and solve for
    • Now find the amplitude () at the found
    • Use
  • PM: Now find that satisfies (probably use wolfram)
    • Find the phase angle at the found
    • The phase margin (PM) is now = -180°-

The PM is directly related to as !
Also note that overshoot has a 1:1 relationship to the damping ratio which has a 1:1 relationship with the phase margin. To get k, you can use the closed-loop transfer function to solve for , we should now have , and we can use a comaprison of coefficients in the characteristic polynomial to derive a required k!