gainmarge
Gain margin, sometimes encountered in some texts as gainmarge, is a measure of robustness in a feedback control system. The standard term is gain margin. It quantifies how much the loop gain can be increased before the closed-loop system becomes unstable. For a continuous-time system with loop transfer function L(s), the gain margin is defined at the phase crossover frequency—where the phase of L(jω) is -180 degrees (mod 360). The gain margin gm is the reciprocal of the magnitude at that frequency: gm = 1/|L(jω_pc)|, where ω_pc satisfies ∠L(jω_pc) = -180°. In decibels, GM_dB = 20 log10(gm) = -20 log10(|L(jω_pc)|). If the phase never crosses -180° for positive frequencies, the gain margin is infinite, indicating no gain increase would destabilize the system within the ideal model.
Gain margin can be determined from Bode or Nyquist plots as well. On a Bode plot, gm
Usage and interpretation: gain margin reflects how much the loop gain can be amplified before instability occurs,