# Effect of Phase Lead Compensator on Phase and Gain margins

Tags:
1. Jan 27, 2016

### AnkleBreaker

1. The problem statement, all variables and given/known data
What is the effect on the phase and gain margins of a system when a Phase Lead Controller/Compensator is added?

2. Relevant equations
I have designed the phase lead controller for the system so if anyone wants to see it, please ask

3. The attempt at a solution
I know, that in general, stability margins are increased, but I am unsure as to why.

2. Jan 27, 2016

### donpacino

do you know what phase and gain margin are?
in words, not mathematically

3. Jan 27, 2016

### donpacino

to start, why don't you put up a bode plot of your system with and without the controller.

answer this for me. what happens when the phase crosses zero before the gain crosses zero?

4. Jan 27, 2016

### AnkleBreaker

Gain Margin is the amount of gain that can be added to the system before the system becomes unstable
Phase Margin is the difference of the phase at the 0dB crossover frequency and -180

Original:

Modified:

I'm not really sure of the answer to that question

5. Jan 27, 2016

### donpacino

those look like closed loop bode plots, can you show me the open loop plots?

when the phase crosses zero before the gain crosses zero, your system will become unstable. That is due to the fact that you will get positive feedback when you close the loop. once the gain crosses zero, your system is attenuating, and you are in the green.

so your phase margin is how much margin you have in your phase before your system goes unstable. you want a good deal of phase margin in a real system for a variety of reasons.

1. component tolerances
2. temperature variations
and more!

your phase and gain margin will also effect your systems responses to changes in input.

6. Jan 28, 2016

### LvW

If you know that in case of a marginally phase margin the (negative) loop phase is too close to the critical values, it is clear that addition of a certain amout of positive phase (in the critical frequency region around the cross-over frequency) will improve the margin.