Skip to content
Tactiverge

School/○ Innovator/Week 30

Why P control always falls short

Turn the proportional gain up from 1 to 9 and the error shrinks from half the setpoint to a tenth. Why does it never reach zero?

About 40 min · 3 goals · Checked by automated tests

1.Why should I care?

Proportional control is the first controller everyone tries, and it nearly works. Understanding exactly why it leaves an error, and by how much, tells you when it is good enough and when you need something more.

  • ◇ Derive the steady-state error of proportional control for a plant with static gain K.
  • ◇ Calculate the gain needed to meet an error specification.
  • ◇ Explain why higher gain is not a free fix.

2.Predict

A unit-gain plant under P control with Kp = 1 is asked to reach 1.0. Where does it settle?

Guess first. Being wrong here is how the surprise works.

3.Discover

Choose P control on the first-order plant with gain 1. Try Kp = 1, 3 and 9 and read the final value each time. Compare with 1/(1 + Kp). Then double the plant gain: what happens to the error?

Explorer 02 — Feedback control

Measure, compare, correct

A controller compares the setpoint with what the sensor reports and pushes the plant to close the gap. Tune the gains and watch speed, overshoot and accuracy trade against each other.

OUTPUT y vs SETPOINT r0.00.51.0Ts 1.30sCONTROL EFFORT u0.02.0012345678910TIME (s)
  • Setpoint r = 1
  • Closed-loop output
  • Open loop (u = r/K)
  • ±2 % band
Controller

Gains

2.0
1.5
0.20

Applies the command the model says is right, u = r / K, without ever measuring.

Plant

Plant model

Like motor speed or an oven: τ·ẏ = −y + K·u. K = 1.

1.0 s

Real-world effects

0.000

Noise only affects the closed loop: the derivative term amplifies it.

Rise 10–90 %
0.72 s
Overshoot
0.0 %
Settling 2 %
1.30 s
Steady-state err
0.333
theory r/(1+Kp·K) = 0.333

State

P control, Kp 2.0 on a first-order plant with τ 1.0 s. Rise time 0.72 s, overshoot 0.0 %, 2 % settling 1.30 s, steady-state error 0.333 (theory for P: 0.333). Peak control effort 2.00. Open loop: steady-state error 0.000.

P control, Kp 2.0 on a first-order plant with τ 1.0 s. Rise time 0.72 s, overshoot 0.0 %, 2 % settling 1.30 s, steady-state error 0.333 (theory for P: 0.333). Peak control effort 2.00. Open loop: steady-state error 0.000.

How to read this

The top panel shows the setpoint (dashed line at 1) and the plant's true output after a step command at t = 0. The solid line is the controlled system; the dotted line is open loop. The bottom panel shows the control effort u the actuator is asked to deliver.

Rise time is how long the output takes to go from 10 % to 90 % of where it ends up. Overshoot is how far it passes that value. Settling time is when it stays inside ±2 % for good. Steady-state error is the gap left at the end: P control always leaves one on these plants; integral action removes it.

Assumptions & limitations
  • Linear plant models with known, constant parameters (K = 1). Real motors and heaters have friction, dead zones and parameters that drift with temperature and wear.
  • Controller runs every 10 ms and holds its output between samples; the plant is integrated with 4th-order Runge–Kutta at the same step. There is no transport delay, which real systems almost always have.
  • The derivative acts on the measurement (not the error) through a 50 ms low-pass filter, a common practical choice that avoids a spike when the setpoint jumps.
  • Sensor noise is white Gaussian and seeded for repeatability; it is added only to the measurement, never to the true output.
  • Metrics are computed on the true output up to the disturbance time (or 10 s); a response still moving at the end of the window is reported as not settled.
  • Open loop uses the exact plant gain to pick its command. That flatters it: any modelling error would show up as steady-state error.
Can't use the interactive? Read a description instead

In the feedback lab with P control on a unit-gain plant, the output settles at 0.5 for Kp = 1, 0.75 for Kp = 3 and 0.9 for Kp = 9, matching 1 − 1/(1 + Kp).

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1 · a fresh version every time

A plant with static gain K = 1 is under proportional control with Kp = 5. The setpoint steps to r = 5. What is the steady-state error e = r − y once it settles?

5.Watch

→ Listen for why a proportional controller needs some error to produce any output at all.

Shows how proportional, integral and derivative terms each help a system reach its setpoint quickly without overshooting or drifting.

11 min 42 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

The video is optional: everything you need is also in the lesson text and the interactive.

6.Understand

The error is doing a job

A P controller's output is proportional to the error. To hold a motor at speed, the motor needs a steady push; the only way P can provide one is to keep some error. That leftover is the steady-state error, e = r/(1 + K·Kp).

Designing to a spec

If the error must be within 2 % of r, set r/(1 + K·Kp) ≤ 0.02·r, so K·Kp ≥ 49. For a unit plant, Kp ≥ 49. That is a large gain, which leads to the next problem.

Why not just crank Kp?

High gain amplifies sensor noise into the motor command, can push the actuator into saturation, and on plants with more dynamics (a springy joint, a delay) causes overshoot and oscillation or even instability. Integral action removes steady-state error without needing enormous gain.

Explain it another way

Holding a heavy door half-open against a spring: you only push when it starts to close. So it always sags a little before you push back hard enough.

Derivation: Steady-state error of P control
  1. Controller: u = Kp·e, where e = r − y (setpoint minus output).

  2. Plant at steady state: once nothing is changing, the output is just its static gain times its input, y = K·u.

  3. Combine: y = K·Kp·e. Substitute into e = r − y to get e = r − K·Kp·e.

  4. Collect the e terms: e·(1 + K·Kp) = r.

  5. So e = r / (1 + K·Kp). For a unit plant (K = 1) and unit setpoint, e = 1/(1 + Kp).

  6. e is zero only if Kp is infinite. Any finite gain leaves an error, because the controller needs a non-zero error to produce the non-zero push that holds the output up.

Worked example 1

K = 2, Kp = 4, r = 10. Find the steady-state error and final output.

e = 10/(1 + 2×4) = 10/9 ≈ 1.11. Output y = 10 − 1.11 ≈ 8.89.

Worked example 2

A unit plant must settle within 5 % of its setpoint. What Kp is needed?

Kp = (1/0.05 − 1)/1 = 19.

Common mix-ups

  • Steady-state error means the controller is badly tuned.
    ✓ With P only, some error is built in: e = r/(1 + K·Kp). Tuning trades its size against noise and overshoot.
  • Doubling Kp halves the error.
    ✓ The error goes as 1/(1 + K·Kp), so doubling Kp from 1 to 2 takes it from 1/2 to 1/3, not 1/4.

7.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2 · a fresh version every time

A plant with static gain K = 0.5 is under proportional control with Kp = 1. The setpoint steps to r = 2. What is the steady-state error e = r − y once it settles?

Practice 3 · a fresh version every time

A plant with static gain K = 2 must settle within 5 % of a setpoint r = 2 using proportional control only. What is the smallest Kp that achieves this?

Practice 4

Why can a P controller never remove the steady-state error completely?

Practice 5

Which is NOT a usual cost of raising Kp a lot?

8.Apply it

In the feedback lab, find the smallest Kp that keeps the P-only error within 10 % on the first-order plant. Check it against the formula, then add sensor noise and describe what the high gain does to the control effort.

9.Reflect

Concepts: Proportional control · Steady-state error and integral action