Question: what are gain and phase margins?
Answer: Gain margin is defined as the amount of change in open-loop gain needed to make a closed-loop system unstable. The gain margin is the difference between 0 dB and the gain at the phase cross-over frequency that gives a phase of −180°. ... 2.25, meaning a positive gain margin, then the closed-loop system is stable.