Skip to content
GATEiit

GATE EC · Control Systems

Compensators, PID controller

Lead, lag and lag-lead compensators (pole-zero placement, maximum phase lead, effect on margins, bandwidth and error) and P, PI, PD and PID controllers: what each term does to transient and steady-state response.

Before you start

Concept notes

1. Why compensate, and the three compensators

A plant with a simple gain controller often cannot meet both a steady-state specification (small error, which needs high gain) and a transient specification (enough damping, which needs limited gain). A compensator Gc(s) placed in series with the plant reshapes the loop so both can be met.

The first-order compensator is

Gc(s)=K s+zs+p

Type Pole-zero position Phase added Behaves like
Lead z<p: zero nearer the origin positive (lead) PD (high-pass)
Lag p<z: pole nearer the origin negative (lag) PI (low-pass)
Lag-lead a lag section at low frequency and a lead section at high frequency lag, then lead PID

To classify one quickly, look at which is closer to the origin. In s+2s+10 the zero is closer, so it is lead. In s+2s+0.2 the pole is closer, so it is lag.

In time-constant form, lead is 1+aTs1+Ts with a>1, and lag is 1+Ts1+bTs with b>1.

Passive RC lead network: a resistor R1 in parallel with a capacitor C1, in series with a shunt resistor R2 across the output:

VoVi=1a⋅1+aTs1+Ts,aT=R1C1,a=R1+R2R2

It attenuates DC by a, so an amplifier of gain a usually follows it.

R1C1R2+vi−+vo−
Passive lead network: R1 in parallel with C1 in the series path, R2 across the output. Zero at −1/(R1C1), pole at −1/((R1 ∥ R2)C1).

2. The lead compensator

For Gc(s)=1+aTs1+Ts with a>1, the zero is at −1aT and the pole at −1T. The phase is ϕ(ω)=tan⁡−1(aTω)−tan⁡−1(Tω), positive at every frequency.

Maximum phase lead occurs at the geometric mean of the corner frequencies:

ωm=1Ta=z p,sin⁡ϕm=a−1a+1=p−zp+z

At ωm the magnitude is a, that is 10log⁡10a dB. A single stage gives at most about 60∘ in practice (beyond that a becomes very large), so bigger deficits need two stages.

Effects of lead compensation:

  • Adds phase near crossover, so phase margin rises and overshoot falls.
  • Raises high-frequency gain, so the crossover frequency and bandwidth increase: a faster response (smaller rise and settling time).
  • Amplifies high-frequency noise.
  • Does little for steady-state error by itself.

Frequency-domain design outline: choose the gain K to meet the error constant; find the phase margin deficit; add 5∘ to 12∘ to allow for the crossover shift; get a from sin⁡ϕm; put ωm at the frequency where the uncompensated gain is −10log⁡10a dB (this becomes the new crossover).

On the root locus, the lead zero pulls the locus to the left, so the dominant poles can be placed with more damping and a higher ωn.

ω (log)phase of Gc1/(aT)1/Tωm = 1/(T√a)φm0°
Phase of a lead compensator with a = 9: positive at all frequencies, peaking at φm ≈ 53° at the geometric mean of the corners 1/(aT) and 1/T.

3. The lag compensator

For Gc(s)=1+Ts1+bTs with b>1, the pole at −1bT is closer to the origin than the zero at −1T. Its gain is 1 at low frequency and falls to 1/b (that is −20log⁡10b dB) at high frequency.

Used with a gain K, a lag compensator lets the low-frequency gain be b times larger than the high-frequency gain. That is its purpose:

  • Improves steady-state accuracy: the error constant (Kp, Kv or Ka) rises by about b while the gain near crossover stays the same.
  • Its phase is negative, so the corners are placed well below the gain crossover (zero roughly a decade below), where the lag it adds at crossover is only a few degrees.
  • It lowers the crossover frequency and bandwidth, so the response becomes slower. It also filters high-frequency noise.
  • In the root-locus view, the pole and zero sit very close together near the origin (a dipole). They barely move the dominant poles but multiply the error constant by z/p.

Lead vs lag at a glance:

Lead Lag
Main aim transient (phase margin, speed) steady-state error
Bandwidth increases decreases
Response faster slower
Noise amplified filtered

A lag-lead compensator does both: the lag section fixes the error, the lead section fixes the margin.

4. P, I and D actions

A PID controller acts on the error e(t):

u(t)=Kp e(t)+Ki∫0te dτ+Kd dedt,Gc(s)=Kp+Kis+Kds

It is also written Kp(1+1Tis+Tds) with integral time Ti and derivative time Td. PID adds a pole at the origin and two zeros.

  • Proportional (P): a larger Kp reduces steady-state error and speeds the response, but for most plants it reduces damping and can cause instability. For a type 0 plant it cannot make the step error zero.
  • Integral (I): adds a pole at the origin, raising the system type by one. It removes the steady-state error to a step (for a type 0 plant), but adds −90∘ of phase, so it tends to reduce stability and increase overshoot.
  • Derivative (D): responds to the rate of change of error, so it anticipates and adds damping. It adds +90∘ of phase, reduces overshoot, and has no effect on steady-state error. It amplifies high-frequency noise, so in practice a filter pole is added.

Typical trends when one gain is increased (rules of thumb, not exact):

Increase Rise time Overshoot Settling time Steady-state error
Kp falls rises small change falls
Ki falls rises rises removed
Kd small change falls falls no change

5. PI and PD controllers as compensators

PD controller: Gc=Kp+Kds=Kp(1+Tds) adds one zero at −1/Td. It is the ideal form of a lead compensator.

For a type 1 plant Ks(s+a) in unity feedback, PD gives the characteristic equation

s2+(a+KKd)s+KKp=0

so Kp sets ωn2 and Kd raises the damping term 2ζωn independently. That is the main use of PD: more damping at the same speed.

PI controller: Gc=Kp+Kis=Kp (s+Ki/Kp)s adds a pole at the origin and a zero at −Ki/Kp. It is the ideal form of a lag compensator.

  • It raises the type by one: a type 0 plant becomes type 1, so the step error becomes zero and the ramp error becomes finite, ess=1/Kv.
  • The zero is placed close to the origin (or used to cancel a slow plant pole) so that the transient is not badly disturbed.

Root-locus view: adding a zero pulls the locus to the left (more stable); adding a pole, especially at the origin, pushes it to the right (less stable).

Steady-state error recap for unity feedback: step ess=11+Kp, ramp ess=1Kv with Kv=lim⁡s→0sGcG, parabola ess=1Ka. Here the position constant Kp=lim⁡s→0GcG is not the same thing as the proportional gain.

Formulas to remember

Lead compensator
Gc(s)=1+aTs1+Ts,a>1
Maximum phase lead
sin⁡ϕm=a−1a+1=p−zp+z
Frequency of maximum phaseGain there is a, that is 10log⁡10a dB
ωm=1Ta=z p
Lag compensatorHigh-frequency attenuation 20log⁡10b dB
Gc(s)=1+Ts1+bTs,b>1
RC lead network
VoVi=R2R1+R2⋅1+R1C1s1+R1R2R1+R2C1s
PID controller
Gc(s)=Kp+Kis+Kds=Kp(1+1Tis+Tds)
Velocity error constant
Kv=lim⁡s→0s Gc(s)G(s),ess,ramp=1Kv
Second-order damping
s2+2ζωns+ωn2=0

Common mistakes

  • Classifying lead and lag by which number is bigger in the numerator; check whether the zero or the pole is closer to the origin.
  • Forgetting the 1/a attenuation of a passive lead network, which must be made up by extra amplifier gain.
  • Placing the lag corners near the gain crossover; they belong well below it, or the lag eats into the phase margin.
  • Expecting proportional control alone to give zero step error for a type 0 plant; only integral action does that.
  • Confusing the position error constant Kp with the proportional gain Kp of a PID controller.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Analysing an RC lead network

numerical

A lead network has R1=100 kΩ in parallel with C1=1 μF, followed by a shunt R2=25 kΩ. Find the zero, the pole, the maximum phase lead and the frequency at which it occurs.

  1. Step 1: Find the zero.

    Try it on paper first.

Example 2: PI control removes the step error

numerical

A plant G(s)=10s+2 is in unity feedback. Find the step error with P control Kp=1, then the step and ramp errors with PI control Gc=1+2s.

  1. Step 1: P control: find the position constant.

    Try it on paper first.

Example 3: PD control adds damping

numerical

A plant 1s(s+1) is in unity feedback with gain 4. Find ζ. Then use PD control 4(1+0.25s) and find the new ζ and ωn.

  1. Step 1: P control only.

    Try it on paper first.

Example 4: Choosing lead or lag

conceptual

System A meets its error specification but has only 15∘ phase margin and too much overshoot; a faster response is welcome. System B has a good transient response but its ramp error is ten times too large. Which compensator suits each?

  1. Step 1: What does System A need?

    Try it on paper first.

Previous year questions

3 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 3 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.