Lead, lag and lead-lag compensators
Covers lead, lag and lead-lag compensators: pole-zero placement, maximum phase and its frequency, and frequency-domain design to meet error and phase-margin specifications.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Often a loop cannot meet both its accuracy and its damping specifications by adjusting gain alone: the gain needed for small steady-state error leaves too little phase margin. A compensator — a simple pole-zero network, built from an RC circuit with an op-amp or as a few lines of controller code — reshapes the loop's frequency response so both can be met. Lead, lag and lead-lag networks are the classical tools for this, and their design is a standard GATE topic.
Key ideas
Lead compensator — zero closer to the origin than the pole.
- Transfer function
Gc(s) = (1 + aTs)/(1 + Ts), witha > 1(zero at−1/(aT), pole at−1/T). - Gives positive phase (lead) between the corner frequencies, with a maximum
φmat their geometric meanωm. - Raises high-frequency gain by the factor
a. Used to increase phase margin and bandwidth: less overshoot, faster response. Cost: more noise amplification; and a single stage gives at most about 60° (larger leads need two stages). - Root-locus view: the zero pulls the locus left, toward better damping. It behaves like a filtered PD controller.
Lag compensator — pole closer to the origin than the zero.
Gc(s) = (1 + Ts)/(1 + bTs), withb > 1(zero at−1/T, pole at−1/(bT)).- Attenuates high frequencies by
1/bwhile leaving low frequencies untouched. With the loop gain raised byb, the low-frequency gain (and soKp,KvorKa) rises bybwhile the crossover region is unchanged — steady-state error falls by aboutbtimes with little change in transient response. - Its phase lag must be kept well below the gain crossover: place the zero about one decade below the new
ωgc, so it costs only about 5° of phase margin. Cost: lower bandwidth and a slow "tail" in the response from the near-cancelling pole-zero pair. It behaves like a filtered PI controller.
Lead-lag compensator: a lag section for accuracy in series with a lead section for margin and speed, Gc(s) = [(1 + T1s)/(1 + bT1s)]·[(1 + aT2s)/(1 + T2s)], with the lag corners well below the lead corners.
Another common notation: many textbooks write the lead network as (1 + Ts)/(1 + αTs) with α < 1 (so α = 1/a) and the lag network as (1 + Ts)/(1 + βTs) with β > 1. The physics is identical; always identify which corner is the zero and which is the pole before using a formula.
Passive RC networks: a passive lead network has DC gain 1/a (an attenuator), so an amplifier of gain a is needed to restore the gain; a passive lag network has unity DC gain.
Frequency-domain lead design (outline)
- Choose loop gain
Kfrom the steady-state error specification. - Find the uncompensated phase margin.
- Required lead:
φm = PM(required) − PM(uncompensated) + 5° to 12°(the extra allows for the crossover moving right). - Get
afromφm. - Place
ωmat the new gain crossover, where the uncompensated magnitude equals−10·log10(a)dB. T = 1/(ωm·√a); check the final margin.
Formulas
- Lead:
Gc(s) = (1 + aTs)/(1 + Ts),a > 1. φm = sin⁻¹[(a − 1)/(a + 1)]; inversea = (1 + sin φm)/(1 − sin φm).ωm = 1/(T·√a)— geometric mean of the corners1/(aT)and1/T.|Gc(jωm)| = √a, i.e.10·log10(a)dB.- Lag:
Gc(s) = (1 + Ts)/(1 + bTs),b > 1; maximum lagsin⁻¹[(b − 1)/(b + 1)]atω = 1/(T·√b); high-frequency gain1/b(−20·log10 bdB). Gc(jω) phase = tan⁻¹(ω·(zero time constant)) − tan⁻¹(ω·(pole time constant)).
Symbols: T time constant (s); a, b dimensionless ratios of corner frequencies; φm degrees; ω, ωm rad/s.
Worked examples
Example 1 — characterising a lead network
Given: Gc(s) = (1 + 0.1s)/(1 + 0.02s).
- Zero corner
1/0.1 = 10 rad/s, pole corner1/0.02 = 50 rad/s; zero first, so this is a lead network withT = 0.02 sanda = 0.1/0.02 = 5. φm = sin⁻¹[(5 − 1)/(5 + 1)] = sin⁻¹(0.667) = 41.8°.ωm = 1/(0.02 × √5) = 22.4 rad/s(also√(10 × 50)).- Gain at
ωm:√5 = 2.24, i.e. 6.99 dB; high-frequency gaina = 5(14 dB).
Result: maximum lead 41.8° at 22.4 rad/s, with 7.0 dB of gain added there.
Example 2 — lead design for a velocity servo (GATE level)
Given: plant G(s) = 4/[s(s + 2)], unity feedback. Specifications: Kv = 20 s⁻¹, PM ≥ 45°.
- Gain:
Kv = lim s·K·G = K × 4/2 = 2K = 20→K = 10, so the loop is40/[s(s + 2)]. - Uncompensated crossover:
ω·√(ω² + 4) = 40→ω² = 38.05,ω = 6.17 rad/s;PM = 90° − tan⁻¹(6.17/2) = 18.0°. - Lead needed:
45° − 18° + about 5°→ choosea = 4, givingφm = sin⁻¹(3/5) = 36.9°. - New crossover where
|G| = 1/√4 = 0.5:ω·√(ω² + 4) = 80→ω² = 78.0,ωm = 8.83 rad/s. T = 1/(8.83 × 2) = 0.0566 s;aT = 0.226 s. Compensator:Gc(s) = (1 + 0.226s)/(1 + 0.0566s), zero at −4.42, pole at −17.7.- Check: uncompensated phase at 8.83 rad/s is
−90° − tan⁻¹(4.42) = −167.2°; adding 36.9° gives−130.4°, soPM = 49.6°.
Result: Gc(s) = (1 + 0.226s)/(1 + 0.0566s) with loop gain 10 gives Kv = 20 s⁻¹ and PM ≈ 49.6° at 8.83 rad/s.
Common mistakes
- Calling a network "lag" or "lead" without checking which corner is the zero; the zero comes first (lower frequency) in a lead network.
- Mixing the
a > 1andα < 1conventions in the same calculation. - Placing
ωmat the old crossover: the lead's own gain moves the crossover to the right. - Using a lag network to add phase margin — lag adds phase lag; it helps margin only indirectly by lowering the crossover.
- Putting a lag zero too close to the crossover, which eats the phase margin.
- Forgetting the DC attenuation of a passive lead network.
For GATE IN
Expect questions on identifying lead or lag networks from a transfer function or RC circuit, computing maximum phase lead/lag and the frequency at which it occurs, the gain added at ωm, and single-step lead or lag design to meet Kv and phase-margin specifications. Practise the sin⁻¹[(a − 1)/(a + 1)] and geometric-mean results until they are automatic.
Quick check
- Is
(1 + 0.5s)/(1 + 0.1s)a lead or lag network? - What is the maximum phase lead of a network with
a = 9? - At what frequency does
(1 + 10s)/(1 + 50s)give its maximum lag? - Which compensator increases bandwidth?
Answers: 1. Lead (zero at 2 rad/s before pole at 10 rad/s); 2. sin⁻¹(0.8) = 53.1°; 3. 1/√(10 × 50) = 0.0447 rad/s; 4. Lead.
Interview questions
All Control Systems interview questionsTry answering each one aloud before you open it.
1.What is a lead compensator in control systems?Concept
A lead compensator is a type of controller used in control systems to improve the transient response of a system. It adds a zero and a pole to the system's transfer function, where the zero is closer to the origin than the pole. This results in an increase in the system's phase margin, which helps in reducing overshoot and improving stability.
2.Explain the purpose of a lag compensator in control systems.Concept
A lag compensator is used to improve the steady-state accuracy of a control system. It introduces a pole and a zero into the system's transfer function, with the pole being closer to the origin than the zero. This configuration increases the system's low-frequency gain, which enhances the steady-state performance without significantly affecting the transient response.
3.What is a lead-lag compensator and when is it used?Concept
A lead-lag compensator combines the characteristics of both lead and lag compensators. It is used when both transient and steady-state performance improvements are required. The lead part of the compensator improves the transient response by increasing the phase margin, while the lag part enhances the steady-state accuracy by increasing the low-frequency gain.
4.How does a lead compensator affect the phase margin of a control system?Application
A lead compensator increases the phase margin of a control system. By adding a zero and a pole, where the zero is closer to the origin, it introduces a positive phase lead in the frequency response. This phase lead helps in stabilizing the system and reducing overshoot, thus improving the transient response.
5.Why would you use a lag compensator in a control system?Application
A lag compensator is used to improve the steady-state accuracy of a control system. It increases the low-frequency gain, which helps in reducing steady-state errors such as offset. This is particularly useful in systems where precise control is required over long periods, without significantly affecting the transient response.
6.What happens to the stability of a system if a lead compensator is improperly designed?Application
If a lead compensator is improperly designed, it can lead to an increase in overshoot and potentially destabilize the system. This occurs if the zero and pole are not placed correctly, resulting in insufficient phase margin improvement or even a reduction in phase margin. Proper design is crucial to ensure that the compensator enhances stability rather than degrades it.
7.Describe a scenario where a lead-lag compensator would be necessary.Application
A lead-lag compensator would be necessary in a scenario where both transient and steady-state performance improvements are required. For example, in a precision positioning system, the lead component can reduce overshoot and improve response time, while the lag component can minimize steady-state error, ensuring accurate positioning over time.
8.Calculate the transfer function of a lead compensator with a zero at -2 and a pole at -5.Numerical
The transfer function of a lead compensator is given by the formula: G(s) = K * (s + z) / (s + p), where z is the zero and p is the pole. For a zero at -2 and a pole at -5, the transfer function becomes: G(s) = K * (s + 2) / (s + 5). The value of K depends on the specific system requirements.
9.A lag compensator has a zero at −0.1 and a pole at −0.01. Write its transfer function and state its high-frequency attenuation.Numerical
In time-constant form Gc(s) = (1 + 10s)/(1 + 100s), equivalently 0.1·(s + 0.1)/(s + 0.01); the pole is nearer the origin than the zero, which is what makes it a lag network. Its DC gain is 1 and its high-frequency gain is 10/100 = 0.1, i.e. 20 dB of attenuation (b = 10). Raising the loop gain by 10 then multiplies the error constant by 10 while keeping the crossover region roughly unchanged.
10.What are the effects of adding a lead-lag compensator to a control system's frequency response?Application
Adding a lead-lag compensator to a control system affects its frequency response by introducing both phase lead and phase lag. The lead component increases the phase margin, improving transient response, while the lag component increases low-frequency gain, enhancing steady-state accuracy. This combination allows for a balanced improvement in both transient and steady-state performance.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?