System type
A unity-feedback loop: the error e = r − y drives G(s), and the output y is fed straight back. The lesson on steady-state error and the final value theorem gave e(∞) = lim s·R(s)/(1 + G(s)). Here we read it off G(s) instead.
The system type is the number of poles of G(s) at s = 0, each one a pure integrator 1/s. Our first G(s) = 10/((s+1)(s+5)) has poles at −1 and −5 and none at zero. It is type 0.
Type 0
A unit step asks for y = 1. The error starts at 1 and settles at 1/(1 + Kp), where the position constant Kp = G(0) = 10/5 = 2. So e(∞) = 1/3: close, but never zero.
Now a ramp, r = t: a target moving at a steady speed. Type 0 falls further behind every second. Its error grows by about a third of a unit per second, without limit: about 2.93 at 8 s.
Type 1
Slide the pole at −1 to 0: 1/(s+1) becomes 1/s, an integrator. Its output keeps changing while its input is not zero, so the loop can only come to rest with zero error. G(s) = 10/(s(s+5)) is type 1.
The same unit step. Now the error goes all the way to zero. G(0) is infinite, so Kp = ∞ and 1/(1 + Kp) = 0. The integrator holds the output at 1 with no error left over.
The ramp again. Type 1 keeps up with the speed but trails by a fixed gap, 1/Kv. The velocity constant Kv = lim s·G(s) = 10/5 = 2, so e(∞) = 0.5.
A parabola, r = t²/2: a target that keeps speeding up. One integrator is not enough. The error grows by about half a unit per second, without limit: about 3.85 at 8 s.
Type 2 and the pattern
Add a second integrator, with a zero at −1 to keep the loop stable: G(s) = 10(s+1)/(s²(s+5)), type 2. The parabola error now settles at 1/Ka, with Ka = lim s²G(s) = 2: e(∞) = 0.5.
Each integrator in G(s) wipes out the error for one more input. Type 0 leaves 1/(1 + Kp) on a step, type 1 leaves 1/Kv on a ramp, type 2 leaves 1/Ka on a parabola. Lower inputs: zero. Higher: unbounded.
What is happening
# step 1/10 · loop
# about: Input, Summing junction, Type badge, Output
E(s) = R(s) − Y(s)
Y(s) = G(s)·E(s)
R(s)
E(s) = --------
1 + G(s)
e(∞) = lim s·E(s) (final value theorem;
s→0 only for a stable loop)
All three loops share the plant 10/(s+5); only the poles at s = 0 change. The curves are the closed loop stepped in time (RK4, 0.002 s steps), not sketched; the settled values match the formulas. The Python is plain Python 3 with no libraries. The ramp loop uses a simple Euler step of 1 ms, so it lands on 0.5 to two decimal places; the figure uses a more accurate RK4 step.