System type and error constants
About this lesson
Count the poles of G(s) at s = 0 and you know, without simulating anything, whether a unity-feedback loop can follow a step, a ramp or a parabola. One loop is played three ways: with no integrator, with one and with two. The error either settles, goes to zero or grows without limit, exactly as the position, velocity and acceleration constants predict.
One loop, three inputs
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.
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)Read the lesson step by step
One loop, three inputs
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.
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)Count the integrators
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.
G(s) = 10 / ((s+1)(s+5)) = slot 1 · slot 2 · plant = 1/(s+1) · 1 · 10/(s+5) poles s = −1, s = −5 at s = 0: none → type 0 Type = how many factors 1/s G(s) has.Type 0 on a step
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.
Kp = lim G(s) = G(0) = 10/(1·5) = 2 s→0 e(∞) = 1/(1 + Kp) = 1/3 = 0.333 simulated at t = 8 s: e = 0.333 A type 0 loop needs some error to hold the output up: y = Kp·e = 2 × 1/3 = 2/3.Type 0 on a ramp
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.
r = t R(s) = 1/s² e(∞) = 1/Kv, Kv = lim s·G(s) = 0 s→0 = ∞ late in the run: e ≈ t/3 + 0.27 simulated at t = 8 s: e = 2.93Move the pole to zero
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.
slot 1: 1/(s+1) → 1/s G(s) = 10 / (s(s+5)) type 1 An integrator's output is the running sum of its input. It stops changing only when its input, here the error, is zero.Type 1 on a step
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.
Kp = lim 10/(s(s+5)) = ∞ s→0 e(∞) = 1/(1 + ∞) = 0 simulated at t = 8 s: e = 0.000Type 1 on a ramp
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.
Kv = lim s·G(s) = lim 10/(s+5) = 2 s→0 s→0 e(∞) = 1/Kv = 0.500 simulated at t = 8 s: e = 0.500 # type 1 loop, ramp input, stepped in time # G = 10/(s(s+5)): y'' + 5y' = 10e dt, t, y, v = 0.001, 0.0, 0.0, 0.0 while t < 20: e = t - y # r = t v += (10 * e - 5 * v) * dt y += v * dt t += dt print(round(t - y, 2)) # 0.5Type 1 on a parabola
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.
r = t²/2 R(s) = 1/s³ e(∞) = 1/Ka, Ka = lim s²·G(s) = 0 s→0 = ∞ late in the run: e ≈ t/2 − 0.15 simulated at t = 8 s: e = 3.85Type 2 on a parabola
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.
slot 2: 1 → (s+1)/s G(s) = 10(s+1) / (s²(s+5)) type 2 Ka = lim s²·G(s) = 10·1/5 = 2 s→0 e(∞) = 1/Ka = 0.500 simulated at t = 8 s: e = 0.500 without the zero: 1 + G → s³ + 5s² + 10 (no s term): the loop is not stable.The whole pattern
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.
step ramp parabola type 0 1/(1+Kp) ∞ ∞ type 1 0 1/Kv ∞ type 2 0 0 1/Ka Kp = lim G Kv = lim sG Ka = lim s²G # error constants: s^n·G(s) as s -> 0 def G(s, n): if n == 0: return 10 / ((s + 1) * (s + 5)) if n == 1: return 10 / (s * (s + 5)) return 10 * (s + 1) / (s * s * (s + 5)) s = 1e-9 Kp, Kv, Ka = G(s, 0), s * G(s, 1), s * s * G(s, 2) print(round(1 / (1 + Kp), 3), round(1 / Kv, 3), round(1 / Ka, 3)) # 0.333 0.5 0.5
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01What is the system type of G(s) = 4(s+3) / (s²(s+1)(s+8))?
The type is the number of poles at s = 0. The factor s² gives two, so it is type 2. The poles at −1 and −8 do not count.
02A type 0 loop has Kp = 4. What steady-state error does it leave on a unit step?
For a step, e(∞) = 1/(1 + Kp) = 1/(1 + 4) = 0.2. A type 0 loop always leaves some step error.
03G(s) = 20 / (s(s+4)). What is the steady-state error for a unit ramp, r = t?
Type 1, so the ramp error is 1/Kv with Kv = lim s·G(s) = 20/4 = 5. So e(∞) = 1/5 = 0.2.
04A type 1 loop follows a parabola, r = t²/2. What happens to the error?
For a type 1 loop Ka = lim s²·G(s) = 0, so 1/Ka is infinite. In the figure it climbs by about half a unit per second.
05In the figure, why does the type 2 loop use G(s) = 10(s+1)/(s²(s+5)) and not simply 10/(s²(s+5))?
A missing coefficient in the characteristic polynomial means the loop is not stable. Adding integrators raises the type but makes stability harder; the zero fixes it here.
Glossary
- System type
- The number of poles of the open-loop transfer function G(s) at s = 0, that is, the number of pure integrators 1/s in the loop.
- Unity feedback
- A loop where the output is fed back unchanged, so the error is e = r − y.
- Position constant Kp
- Kp = lim G(s) as s → 0. A unit step leaves an error of 1/(1 + Kp).
- Velocity constant Kv
- Kv = lim s·G(s) as s → 0. A unit ramp leaves an error of 1/Kv.
- Acceleration constant Ka
- Ka = lim s²·G(s) as s → 0. A unit parabola t²/2 leaves an error of 1/Ka.
- Integrator
- A block 1/s. Its output is the running sum of its input, so it only stops changing when its input is zero.
- Steady-state error
- What is left of e(t) = r(t) − y(t) once the response has settled, found with the final value theorem for a stable loop.
Notes and sources
- 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.
- Kp, Kv and Ka, and the final value theorem behind them, only apply to a stable closed loop. All three loops here are stable; the Routh-Hurwitz lessons later in this module show how to check that without finding the poles.
- Kp has no units, Kv has units of 1/s and Ka of 1/s². The inputs are unit test signals: a step of height 1, a ramp of slope 1 and a parabola t²/2.
- 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.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 7, steady-state errors)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (§5-8 steady-state errors in unity-feedback systems)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 4, a first analysis of feedback)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- python-control documentation: control.dcgain
Quiz Unlocks after the last step.