Intuition The one core idea
A controller watches how wrong the machine is right now, adds up how wrong it has been, and notices how fast the wrongness is changing — then it pushes back. Tuning is choosing how hard it pushes on each of those three pieces so the machine settles onto its target quickly without wobbling out of control.
This page assumes you know nothing . Every symbol the parent note used is unpacked here, in the order that lets each one lean on the last.
Before any symbol, look at the loop. A machine we want to control is called the plant . We tell it where to go; it reports where it actually is; we compare; we correct. Round and round.
Definition The four signals in the loop
r ( t ) — the reference (or setpoint): where we want the output to be. The dashed target line.
y ( t ) — the measured output : where the plant actually is right now.
e ( t ) — the error : how wrong we are. Defined below.
u ( t ) — the control signal : the push the controller sends to the plant.
The little ( t ) after each letter means "this is a value that changes with time t ." At t = 0 we start; as seconds tick by, each of these numbers moves.
e ( t ) = r ( t ) − y ( t )
Plain words: error = where we want to be minus where we are. Picture: the vertical gap between the dashed target line and the solid output curve in the figure above. If the output sits below target, e is positive (push up); if it overshoots above , e goes negative (push back down). Why we need it: the whole point of control is to drive this gap to zero, so every controller is built out of e .
The controller only ever sees the error signal e ( t ) . But that one wiggling line secretly contains three different stories, and the letters P, I, D are just names for reading each story.
Now the three tools. Each is a piece of maths chosen to answer exactly one of those questions.
Definition The proportional term
K p e ( t )
Plain words: push in proportion to how wrong you are right now — twice the error, twice the push. Picture: the orange arrow measuring the height of the error curve at the present instant. Why this piece: it is the simplest possible reaction — no new symbol, just the raw error e ( t ) scaled by a number. Why the topic needs it: something must react to the present gap, and P is that something; it is the backbone every loop starts from. What problem it solves and its limits: P alone gets you most of the way to target fast, but two flaws appear. (1) It leaves a leftover steady-state error — because to keep pushing at all, P needs a non-zero error to feed on, so it settles just short of target. (2) If you scale it too hard (big K p ) the loop over-reacts and starts to oscillate , threatening stability. Those two flaws are exactly why the I and D pieces below have to exist.
∫ 0 t e ( τ ) d τ
Plain words: take the error at every instant from the start (0 ) up to now (t ), and sum them all up . Picture: the green shaded area under the error curve. Why this symbol: the tall thin ∫ is a stretched "S" for "Sum". The τ (Greek "tau") is a stand-in time that sweeps from 0 to t — we need a different letter from t because t is the fixed "now" and τ is the moving "back then". Why the topic needs it: if a steady wind keeps pushing the plant off-target, the height error might be tiny but the area keeps growing — so the integral keeps pushing harder until the gap truly closes. This is why I-action kills steady-state error , fixing P's leftover offset.
Definition The derivative
d t d e ( t )
Plain words: how fast the error is changing per second, right now. Picture: the steepness of the tangent line touching the error curve — the red line in the figure. Steep down = error shrinking fast. Why this symbol: d t d e literally reads "a tiny change in e divided by the tiny slice of time d t it happened over" = slope. Why the topic needs it: if we are rushing at the target fast (steep slope), we should ease off early so we don't zoom past — that is damping , taming P's tendency to oscillate. See PID controller basics for how the three combine.
K p , K i , K d
These are plain numbers (constants) you dial in. The letter K is the traditional symbol for a "gain" — a multiplier. The subscripts say which story it scales: K p scales the present error, K i scales the summed-up past, K d scales the slope.
u ( t ) = present K p e ( t ) + past K i ∫ 0 t e ( τ ) d τ + future K d d t d e ( t )
Why "tuning" exists at all: too much K p → wobble; too much K i → sluggish overshoot; too much K d → jittery from noise. Choosing the trio is the entire subject of the parent note.
Mnemonic Which knob does what
P = P ower now, I = I ron out leftover offset, D = D amp the rush.
The parent note suddenly writes C ( s ) = K p + s K i + K d s . Where did t go, and what is s ?
Intuition Why swap time for
s
Working with integrals and derivatives in time is clumsy. There is a translation trick (the Laplace transform) that turns "integrate" into "divide by s " and "differentiate" into "multiply by s ". Suddenly calculus becomes ordinary algebra. That is the only reason engineers use s : it makes the maths easy.
Definition The Laplace transform itself
The transform of a time signal f ( t ) is defined by an integral:
L { f ( t )} = F ( s ) = ∫ 0 ∞ f ( t ) e − s t d t
Plain words: multiply your signal by a decaying probe e − s t and add it all up over all future time. Each value of s picks out one "flavour" of the signal, packing the whole time history into a single function F ( s ) . Why e − s t : that decaying factor is what magically turns a derivative into "× s " (integration-by-parts does it) and an integral into "÷ s ". The fine print (region of convergence): the integral only adds up to a finite answer when s is "big enough" that e − s t shrinks faster than f ( t ) grows — the set of such s is the region of convergence . For the well-behaved, bounded signals in control this is always satisfied near s = j ω , which is the only region we actually evaluate, so we may treat the transform as valid everywhere we need it.
Definition The complex frequency
s and j
s is a "frequency-like" variable. Setting s = j ω asks: how does the system respond to a pure sine wave wiggling at frequency ω ?
ω (Greek "omega") = angular frequency in radians per second — how fast the wiggle spins. A full cycle is 2 π radians, so if a wave has period T seconds, then ω = T 2 π .
j = − 1 , the imaginary unit. Engineers write j (not i ) because i already means electric current. It lets one number carry both size and timing (phase) of a wave at once.
Definition Transfer function
A transfer function like G ( s ) or C ( s ) is the machine's "recipe": feed in a wiggle, it tells you the output wiggle. C ( s ) is the controller's recipe, G ( s ) is the plant's recipe. Multiplying them, L ( s ) = C ( s ) G ( s ) , is the open-loop recipe — the signal's whole trip around the loop before feedback closes it. (Heads-up: the same letter L will return in §6 meaning something totally different — a dead-time delay. We flag it there so you are never caught out.)
When we plug s = j ω , the result is a complex number. It has two readable parts, and the entire loop-shaping method lives on these two.
∣ L ( j ω ) ∣ and phase ∠ L ( j ω )
Magnitude ∣ L ( j ω ) ∣ : how much bigger or smaller the wave comes out — the length of the arrow in the complex plane. Value 1 means "same size in as out."
Phase ∠ L ( j ω ) : how much the wave is shifted in timing , measured as an angle. − 180° means the wave comes out perfectly upside-down (flipped).
Common mistake "The phase is just
arctan ( up-part / right-part ) ."
Why it feels right: on the arrow picture, arctan of (vertical over horizontal) is the slope-angle, and for an arrow in the top-right corner it is correct.
The fault: plain arctan only ever returns an angle between − 90° and + 90° , so it cannot tell a bottom-left arrow (real < 0 , imag < 0 , true angle near − 135° ) from a top-right one — it collapses opposite quadrants together. But control lives out near − 180° , exactly where this fails.
Fix: use the two-argument atan2 ( imag , real ) , which looks at the signs of both parts to place the arrow in the correct quadrant and returns the full signed angle over the whole − 180° … + 180° range. In the figure, the bottom-left arrow gets its true ≈ − 143° only because we checked both signs. See Bode plot & frequency response , which plots this quadrant-correct phase versus ω .
− 180° is the danger line
Feedback subtracts y from r . If a wave travels the loop and comes back both flipped (phase = − 180° ) and at full size (magnitude = 1 ), the subtraction actually reinforces it every lap — a signal that feeds itself forever. That is the exact edge of instability the ZN "ultimate gain" method rides. This is the seed of the Nyquist stability criterion and Stability margins (gain & phase margin) .
Now the last cluster of symbols the parent uses.
Definition Crossover and margins
ω c — gain crossover frequency : where ∣ L ( j ω c ) ∣ = 1 . Marks how fast the loop can react (its bandwidth).
Phase margin PM = 180° + ∠ L ( j ω c ) — how many degrees of extra lag you could add before hitting the − 180° danger line. Aim 30 –60° .
Gain margin GM = 1/∣ L ( j ω 180 ) ∣ — at the frequency where phase is already − 180° , how much more gain you could add before magnitude reaches 1 . Aim ≥ 6 dB.
Definition Decibels (dB) and "per decade"
A decibel rewrites a magnitude on a log scale: dB = 20 log 10 ∣ L ∣ . It turns multiply into add, so slopes become straight lines.
A decade = a factor of 10 in frequency. "− 20 dB/decade" means every tenfold rise in ω shrinks the magnitude tenfold.
L , gain K , time constant T (FOPDT)
Symbol warning: here L is a brand-new, unrelated meaning — a dead-time delay in seconds , not the open-loop transfer L ( s ) from §4. Same letter, different job; context tells them apart (L ( s ) always carries an ( s ) , the dead time never does. Some books write θ or τ d for the delay to dodge the clash).
The open-loop ZN method fits a real plant to G ( s ) ≈ T s + 1 K e − L s :
K — steady gain (final output ÷ step size).
T — time constant: how sluggishly it responds.
L — dead time: a pure delay before anything happens (e − L s shifts the signal later).
The prerequisite map below is drawn as a real figure — colour-coded by which of the three "stories" each idea belongs to — so you can see the dependency flow rather than read it.
Read it bottom-to-top: the raw loop signals feed the error; the error splits into the present/past/future pieces; those attach to gains and combine into the control law; the control law is carried into the s -domain, read off as magnitude and phase, and finally distilled into the margins that ZN and loop-shaping tune.
Hide the right side and test yourself before moving on.
What does e ( t ) mean and what is its formula? The error, e ( t ) = r ( t ) − y ( t ) — where we want to be minus where we are.
What problem does pure proportional control leave unsolved? A leftover steady-state offset (it needs a non-zero error to keep pushing), and it can oscillate if K p is too big.
What is the picture of the integral ∫ 0 t e d τ ? The accumulated shaded area under the error curve from start to now.
What does the derivative d e / d t represent visually? The slope (steepness) of the error curve at the present instant.
Which knob scales the past, and how do you undo integration in the s -domain? K i scales the past; integrating becomes dividing by s .
Write the defining integral of the Laplace transform. F ( s ) = ∫ 0 ∞ f ( t ) e − s t d t , valid on its region of convergence.
Why do we replace t with s ? Laplace turns calculus into algebra — integrate ⇒ ÷s , differentiate ⇒ ×s .
What are j and ω ? j = − 1 , the imaginary unit;
ω is angular frequency in rad/s, with
ω = 2 π / T .
Why can't plain arctan give the phase, and what fixes it? It collapses opposite quadrants (± 90° only); atan2 ( imag , real ) uses both signs for the full − 180° … + 180° range.
What do magnitude and phase of L ( j ω ) tell you? Magnitude = size change of the wave; phase = timing shift in degrees.
Why is phase = − 180° with magnitude = 1 the instability edge? The wave returns flipped and full-size, so feedback reinforces it forever.
Define phase margin. PM = 180° + ∠ L ( ω c ) , the spare lag before instability; aim 30 –60° .
What are K u and T u ? Gain at sustained oscillation, and the period of that oscillation.
The letter L has two meanings on this page — what are they? L ( s ) = open-loop transfer function (§4); L = dead-time delay in seconds in the FOPDT model (§6).