1. Three terms
The plant in this lesson is the unit-DC-gain second-order system ÿ + 2 ζ wn ẏ + wn² y = wn² u. The controller does not know m, c, or k. It knows the error e = r − y. The standard combination is below. The derivative is taken on y rather than on e, for a reason the fourth section makes numerical.
2. Proportional offset
With only Kp, a constant reference has to leave a constant error. Otherwise u would be zero and, for a plant whose DC gain is finite, the output would fall back. The error settles where the proportional push exactly holds the output. Raising Kp shrinks that error. It does not delete it.
Example: wn = 1, ζ = 1, Kp = 9, Ki = Kd = 0, r = 1
In steady state the derivatives vanish and u = 9(1 − y). The plant then requires u = y.
The general result for this plant is y∞ = Kp / (Kp + 1). Kp = 9 buys a 10% offset. Kp = 99 would buy a 1% offset, and a much snappier, less damped transient.
3. Integral
The integrator state ż = e keeps moving whenever the error is not zero. Equilibrium is possible only at e = 0, provided the loop is stable. That is the entire steady-state argument. It does not promise a calm transient. A large Ki winds the integrator up during the rise and then overshoots while it unwinds.
4. Derivative on the measurement
Differentiating the error differentiates the reference. A step in r is an impulse in ė, and a naive D term commands an infinite spike. Differentiating y instead leaves the step in the proportional term only. On the plant ÿ + 0.6 ẏ + y = u, which is wn = 1 and ζ = 0.3, the closed-loop damping becomes
Kp raises the frequency and lowers the damping. Kd puts damping back. That is why “more proportional” on this plant rings, and a little derivative calms it. The step-response markers are how you decide whether the calm was enough.
5. Practice
Same plant as the worked example, Kp = 4, no I and no D. What is y∞ for a unit reference?
You add a positive Ki and the loop stays stable. What is the new steady error?
On ÿ + 0.6 ẏ + y = u, Kp = 3 and Kd = 0. What is the closed-loop damping ratio before any integral is added?
6. Resources
Tune on the PID playground with the overshoot and settling readouts in view. If the final value is not 1, the integrator is still at zero or the horizon has not reached steady state.
Continue the track
Open the playground for this topic
PID Playground →Tune Kp, Ki, and Kd on a second-order plant and watch offset, overshoot, and settling move.