Explainer
Control theory explained: feedback, PID and stability
Control theory is the engineering of feedback: measuring what a system is doing, comparing it with what it should do, and correcting the difference.[1][2] The most common tool is the PID controller, which reacts to the present error, the accumulated past error and the error's trend.[3][4] Feedback makes systems robust to uncertainty but brings a risk of instability, which is why stability analysis sits at the centre of the field.[5][6]
This page is part of the computing and robotics crash courses. It uses no calculus in the beginner sections; the expert sections assume basic differential equations. Most of it draws on the free edition of Astrom and Murray’s textbook “Feedback Systems”. Choose a reading level in each section.
Feedback: the core idea
Control theory is about making machines behave as intended when the world doesn’t cooperate. Its core idea is simple: measure what is actually happening, compare it with what you want, and act on the difference.[1]
A car’s cruise control does exactly this. It measures the speed, compares it with the speed you set, and opens the throttle or applies the brake to close the gap.[7] An older example is the flyball governor on steam engines, which kept an engine at roughly constant speed however heavy the load. It helped make the Watt steam engine a success.[8]
Astrom and Murray define control as the use of algorithms and feedback in engineered systems. Its uses now include self-driving vehicles and robots.[2] Astrom and Murray even call the Internet probably the largest feedback control system ever built.[9]
Feedback means two or more dynamical systems coupled so that each influences the other, which makes their behaviour often counterintuitive.[10] A closed-loop system has its components interconnected in a cycle; cutting the loop gives the open-loop system.[11] Astrom and Murray define control as the use of algorithms and feedback in engineered systems.[2] The classic example is the centrifugal governor, which regulated steam-engine speed largely independently of load.[8]
Negative and positive feedback, feedback and feedforward
Most control uses negative feedback: the system reacts to a disturbance so that its effect shrinks. Positive feedback works the other way. A rise causes a further rise, which is destabilizing and usually stops only when something saturates.[12]
The alternative to feedback is feedforward: acting on a plan without checking the result. Feedback corrects for things you didn’t model, but it can make a system unstable. Feedforward can’t go unstable, but it is only as good as your model.[5]
Negative feedback attenuates disturbances. Positive feedback amplifies deviations and is typically limited by saturation.[12] Astrom and Murray’s comparison: feedback is closed loop, acts on deviations, is robust to model uncertainty and carries a risk of instability. Feedforward is open loop, acts on plans, is sensitive to model uncertainty and carries no risk of instability. Astrom and Murray add that combining the two is often advantageous.[5]
The PID controller
The workhorse of control engineering is the PID controller. It adds up three reactions to the error, the gap between where you are and where you want to be:[3]
- P (proportional) reacts to the error right now. A big gap gives a big push.
- I (integral) reacts to the error that has built up over time, so a small persistent gap eventually gets corrected.
- D (derivative) reacts to how fast the error is changing, which anticipates where it is heading.
The integral term is what removes a lasting offset: with integral action, the steady-state error is zero, provided the system settles down at all.[13] Astrom and Murray call PID by far the most common form of feedback in engineering. They quote a 2002 industry survey (Desborough and Miller) of over eleven thousand controllers in refining, chemicals and pulp and paper, which reported that 97 percent of regulatory controllers used it.[4]
The PID control action sums a proportional term on the present error, an integral term on past errors and a derivative term on predicted future errors.[3] Integral action guarantees zero steady-state error, though a steady state need not exist if the loop oscillates.[13] Astrom and Murray call PID by far the most common way of using feedback. Their chapter epigraph cites Desborough and Miller (2002): 97 percent of regulatory controllers in a survey of over eleven thousand in refining, chemicals and pulp and paper used PID.[4]
Stability and why delays cause trouble
A controller is useless if it makes things swing wildly. Control engineers call a resting point stable if a system nudged slightly away from it stays close. It is asymptotically stable if the system also drifts back to it.[14]
Delays are a common cause of instability. If a correction arrives late, it can push in the same direction as the disturbance instead of against it. When the loop amplifies signals enough, the swings grow instead of dying out.[6]
An equilibrium is stable (in the sense of Lyapunov) if trajectories starting near it stay near it. It is asymptotically stable if they also converge to it.[14] Time delay can destabilize a loop: disturbances that propagate around it can return in phase with the original. If the loop gain is at least one, this can lead to instability. Nyquist’s criterion analyses this through the loop transfer function L = PC.[6]
Beyond PID: model predictive control
Beyond PID, a common approach is model predictive control, also called receding horizon control. It is especially useful when there are hard limits on what a system’s inputs or states may do.[15] Today most control systems are implemented on computers.[15]
Receding horizon control (model predictive control) is a common design approach, especially useful under input or state constraints. Most controllers are now implemented digitally.[15] When conditions change significantly, designs based on linear models give way to gain scheduling, nonlinear control or adaptation.[15]
For robots that learn their behaviour from data, read how robots learn and how legged robots walk next.
Read next
Next in the crash course
How fast can computers multiply matrices? The race to lower omega
Why the matrix multiplication exponent omega matters, how the bound fell from 3 to about 2.371, what AI search has added, and what is still unknown.
Questions readers ask
What is a feedback control system?
A system that bases its corrective actions on the difference between the desired and the actual performance. Cruise control is an example. It measures the car's speed, compares it with the set speed and adjusts the throttle or brake.[1][7]
What is the difference between open-loop and closed-loop control?
In a closed-loop system the parts are connected in a cycle, so the output feeds back into the input. Breaking that connection gives an open-loop system. Feedback (closed loop) acts on deviations and is robust to model errors but can become unstable. Feedforward (open loop) acts on plans, is sensitive to model errors and has no risk of instability.[11][5]
What does PID stand for?
Proportional-integral-derivative. The proportional term depends on the present error, the integral term on past errors and the derivative term on anticipated future errors.[3]
How common is PID control?
Astrom and Murray call it by far the most common way of using feedback in engineering. They cite a 2002 survey of over eleven thousand controllers in refining, chemicals and pulp and paper, in which 97 percent of regulatory controllers used PID.[4]
What does it mean for a control system to be stable?
An equilibrium is stable if trajectories that start near it stay near it. It is asymptotically stable if, in addition, nearby trajectories converge to it over time.[14]
What is model predictive control?
Also called receding horizon control, it is a common approach that is especially useful when there are limits on a system's inputs or states.[15]
Sources
· 15 claims from 1 publisher
Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.
- [1]
The principle of feedback is to base correcting actions on the difference between desired and actual performance. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.5 (retrieved 2026-11-22)
- [2]
Astrom and Murray define control as the use of algorithms and feedback in engineered systems, with applications including autonomous vehicles and robots. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.3 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.3 (retrieved 2026-11-22)
- [3]
A PID controller combines three terms - a proportional term that depends on the present error, an integral term that depends on past errors and a derivative term that depends on anticipated future errors. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 11.1 (retrieved 2026-11-22)
- [4]
Astrom and Murray call PID control by far the most common way of using feedback in engineering, citing a 2002 survey of more than eleven thousand controllers in refining, chemicals and pulp and paper that found 97 percent of regulatory controllers used PID. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 11 opening (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 11 epigraph (Desborough and Miller, 2002) (retrieved 2026-11-22)
- [5]
Astrom and Murray say it is often advantageous to combine the two, and contrast feedback (closed loop, acts on deviations, robust to model uncertainty, risk of instability) with feedforward (open loop, acts on plans, sensitive to model uncertainty, no risk of instability). confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Table 1.1 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.2 (retrieved 2026-11-22)
- [6]
Delays in a feedback loop can cause instability - disturbances travelling around the loop can come back in phase with the original disturbance, and if the gain around the loop is one or more this can lead to instability; Nyquist's approach studies closed-loop stability through the loop transfer function L = PC. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 10 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 10 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 10 (retrieved 2026-11-22)
- [7]
In a car's cruise control, the measured speed is compared with the desired speed and the throttle or brake is adjusted based on the difference. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Figure 1.11 (retrieved 2026-11-22)
- [8]
The centrifugal (flyball) governor, which keeps a steam engine at roughly constant speed regardless of load, is a classic feedback device and was an enabler of the Watt steam engine. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- [9]
Astrom and Murray describe the Internet as probably the largest feedback control system humans have built. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 1, Uses of Feedback and Control (retrieved 2026-11-22)
- [10]
In control engineering, feedback means two or more dynamical systems connected so that each influences the other, which makes their behaviour strongly coupled and often counterintuitive. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- [11]
A closed-loop system has its parts interconnected in a cycle; breaking that interconnection gives an open-loop system. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- [12]
Negative feedback reacts to disturbances so that their effects decrease; positive feedback does the opposite, further increasing a quantity that rises, which is destabilizing. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.1 (retrieved 2026-11-22)
- [13]
A controller with integral action has zero steady-state error, though a steady state may not exist if the system oscillates. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.6 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Section 1.6 (retrieved 2026-11-22)
- [14]
An equilibrium is stable if trajectories that start near it stay near it, and asymptotically stable if, in addition, nearby trajectories converge to it over time. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 5, Figure 5.7 (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 5, stability definitions (retrieved 2026-11-22)
- [15]
Receding horizon control, also called model predictive control, is another common approach, especially useful when there are constraints on the inputs or states; most control systems today are implemented with computers, and when conditions change significantly designs based on linear models give way to gain scheduling, nonlinear control or adaptation. confirmedas of 2026-11-22
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 15, Architecture and System Design (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 15, Architecture and System Design (retrieved 2026-11-22)
- Feedback Systems: An Introduction for Scientists and Engineers, second edition (K. J. Astrom and R. M. Murray; free electronic edition) · Princeton University Press (free edition hosted by Caltech) · Primary source · 2020-07-24 · Chapter 15, Architecture and System Design (typo it it as in source) (retrieved 2026-11-22)
Revision history (1)
- Page created.
Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Aug 23, 2027.
Cite this page
"Control theory explained: feedback, PID and stability." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/control-theory-explained
Spotted an error? Suggest a correction or emailcorrections@contentlora.com.