The load
A motor must hold the speed we ask for, R = 1. The controller G1 turns the error into a torque command u. The motor, the plant, is G2(s) = 1/(s + 2). G1 is a gain of 8. The speed settles at 0.800.
At t = 5 s a load torque D = 1 starts to drag on the shaft. It enters between the controller and the motor and subtracts from the torque the controller asks for. The speed sags from 0.800 to 0.700.
Finding the error
The loop is linear, so the effects of R and D simply add. The error R − c splits into a part caused by R and a part caused by D. Here: 0.200 from R plus 0.100 from the load.
Set R = 0 and follow D: through the motor to the output, back through the feedback and the controller, and into the motor again. Reducing that loop gives E_D(s) = G2·D / (1 + G1·G2).
For a step load D(s) = D0/s, the final value theorem gives e = D0 / (1/G2(0) + G1(0)). The motor's G2(0) = 1/2, so 1/G2(0) = 2. With G1(0) = 8: e = 1/10 = 0.100.
Removing it
Raise the gain to 38 and the load error drops to 1/40 = 0.025, a quarter of before. It never reaches zero: a plain gain needs some error to make the extra torque that balances the load.
Suppose the plant had the integrator: G2 = 1/(s(s + 2)), a motor whose output is its angle. It is type 1, so the step in R leaves no error. But 1/G2(0) = 0, so the load still leaves 1/8 = 0.125.
Back to the speed motor, and add integral action: G1 = 8 + 20/s. Now G1(0) is infinite, so e = 1/(2 + ∞) = 0. The load still makes a dip, to 0.924, but the speed climbs back to exactly 1.000.
While any error is left, the integral keeps changing and so does the torque command. It can only stop when the error is zero. Then u carries the load's torque too: 2.000 before the load, 3.000 after.
To remove the steady error from a step load, the integrator must sit before the point where the load enters, in the controller. Gain there only shrinks the error. An integrator after it, in the plant, does not help.
What is happening
# step 1/10 · loop # about: Reference R, Error e = R − c, Controller G1, Motor G2, Speed c, K = 8 R 1 (step at t = 0) G1(s) 8 (proportional) G2(s) 1/(s + 2) speed before any load 0.800 error from R alone 0.200 = 1/(1 + 8/2) (the lessons on steady-state error and system type cover this part)
The motor is a simple model with illustrative numbers: speed obeys dc/dt = −2c + u − d, so G2(s) = 1/(s + 2). Every curve and number in the figure is simulated from that model (RK4, 1 ms steps) and matches the final-value formula. The Python on the steps is plain Python 3, no imports. It uses Euler steps of 1 ms; their steady state is the true one, so the printed speeds match the formula to three decimals.