electronics engineering
Course handbook · Third year
Automatic Controls 1
Automatic control: transfer functions, stability, feedback, root locus, Bode and Nyquist diagrams and controller design.
- 9Topics
- 18Solved exercises
- 36Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/automatic-control-1. Links work in the PDF too.
1Feedback and system models
A control system makes a physical quantity follow a desired value: the temperature of an oven, the speed of a motor, the altitude of a drone, the output voltage of a power supply. The key idea is feedback: continuously measure the result and correct the action according to the error. In this lesson we see why feedback works, how the transfer functions of a loop are written and how a model of a physical system is built.
Open loop and closed loop
In open loop the command is computed in advance: a toaster heats for a fixed time, without knowing whether the bread is ready. It works only if the system model is exact and there are no disturbances.
In closed loop a sensor measures the output
, it is compared with the reference
, and the controller
decides the command
based on the error
. The plant
is the system to be controlled, and
represents the disturbances acting on the output.

The loop transfer functions
Theorem. With the notation of the diagram and
(the loop function),
![]()
Proof. From the diagram
,
,
. Substituting,
, that is
. ∎
The two functions have names:
![]()
and
. If the loop gain
is large,
(the output follows the reference) and
(the disturbance is almost removed).
Why feedback works
Disturbance rejection. A disturbance that in open loop would reach the output in full is reduced
times.
Insensitivity to plant variations. The real plant is never identical to the model: components age, the load changes.
Theorem. The relative change of
due to a relative change of
is reduced by the factor
:
![]()
Proof.
, so
. Multiplying by
gives
. ∎
With a loop gain of 100, a 10% error in the plant becomes a 0.1% error in the closed-loop behaviour. It is the same principle as feedback operational amplifiers, whose gain depends only on two resistors and not on the transistor.
The price. Feedback can make a stable system unstable (corrections that are too strong and too late make the loop oscillate), and it brings sensor noise to the output, with transfer function
. The next lessons are about handling these two problems.
Models of physical systems
Designing the controller requires a model of the plant. The physical equations are written, usually differential equations, and their Laplace transform is taken with zero initial conditions (Mathematical Methods lessons).
Example: the DC motor. The armature circuit has resistance
and inductance
; the motor generates a back EMF
and a torque
(the same constant
for both, in SI units); the rotor has inertia
and viscous friction
:
![]()
Transforming and eliminating
:
![]()
a second-order system. With negligible inductance it becomes first order,
, with a single mechanical time constant.
Linearisation
Many systems are not linear: a pendulum has the equation
. The methods of this course apply to linear systems, and are used by linearising around an equilibrium point with a first-order Taylor expansion (Analysis 1 lesson): near
,
, and the equation becomes linear. A controller designed on the linearised model works as long as the system stays close to equilibrium, and feedback itself helps keep it there.
2Time response
Control system specifications are often given in time: “the temperature must reach the requested value in less than two minutes, without exceeding it by more than 5%”. To translate them into design conditions you need to know how pole locations determine the shape of the response. In this lesson we cover the step response of first- and second-order systems, the formulas for overshoot and settling time, and the idea of dominant poles.
Poles and zeros
A rational transfer function
has zeros (roots of the numerator) and poles (roots of the denominator). Expanding in partial fractions, the response to any input contains a term
for each pole
: real if the pole is real, oscillating if it is complex. The location of the poles in the complex plane therefore decides the shape of the response.
First order
![]()
has a pole at
. The unit step response is
![]()
After a time
the output is at 63% of its final value, after
at 95%, after
at 98%. The further the pole is from the imaginary axis, the faster the response. Many thermal processes and the motor with negligible inductance behave this way.
Second order
The standard form is
![Rendered by QuickLaTeX.com \[ G(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e2f7470aef19688af8b3aa559e862864_l3.png)
with natural frequency
and damping ratio
. For
the poles are complex conjugate:
![]()
In the complex plane they lie at distance
from the origin, and the angle
they make with the negative real axis satisfies
.

The unit step response is
![Rendered by QuickLaTeX.com \[ y(t) = 1 - \frac{e^{-\zeta\omega_n t}}{\sqrt{1 - \zeta^2}}\sin(\omega_d t + \theta) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-c1bfc2ba7cc34cc0adf9fbf023fc1e25_l3.png)
an oscillation at angular frequency
inside an envelope decaying as
.
Time-domain specifications
Theorem (overshoot). The peak of the response occurs at
and the overshoot is
![]()
Proof. The derivative of the step response is the impulse response,
, which first vanishes (after
) at
. There
, so
, and
. ∎
Overshoot depends only on the damping ratio:
| 0.2 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 1 | |
|---|---|---|---|---|---|---|---|
| 52.7% | 25.4% | 16.3% | 9.5% | 4.6% | 1.5% | 0 |
A value of
around 0.7 is a classic compromise: a fast response with less than 5% overshoot.
Settling time. The envelope
drops below 2% for
:
![]()
It depends only on the real part of the poles: to settle faster the poles must lie further to the left.
Rise time. The time to go from 10% to 90% is, for
around 0.5, about
: it depends mainly on the distance of the poles from the origin.
Specifications thus become regions of the s-plane: a maximum overshoot means poles inside a sector of maximum angle
; a maximum settling time means poles to the left of a vertical line. Design consists of bringing the closed-loop poles into that region.
Dominant poles
Real systems have many poles, but poles far from the imaginary axis produce terms that die out quickly. If one pair of poles is much closer to the axis than the others (at least five times), the response is nearly that of a second-order system with only those poles, the dominant poles. That is why second-order formulas are used everywhere as a first approximation.
Zeros modify the response: a left-half-plane zero close to the dominant poles increases overshoot; a right-half-plane zero (“non-minimum-phase” systems) produces a response that starts off in the wrong direction, like the altitude of an aircraft which, when the elevator is raised, dips for a moment before climbing.
3Stability and the Routh criterion
The first requirement of any control system is stability: after a disturbance it must return to normal operation, not oscillate more and more or diverge. A badly designed feedback loop can make even a perfectly stable plant unstable. In this lesson we cover the link between stability and pole locations and the Routh-Hurwitz criterion, which establishes stability without computing the roots.
Stability and poles
For a linear system with a rational transfer function, the impulse response is a sum of terms
, one for each pole
(with
up to the multiplicity minus one). It follows that:
- if all poles have negative real part, every term tends to zero, the impulse response is absolutely integrable and the system is stable (BIBO, as in the Signal Theory lesson);
- if even one pole has positive real part, the corresponding term grows without bound: unstable;
- simple poles on the imaginary axis give constant terms or sustained oscillations: the system is on the edge (marginally stable), and an input at the same frequency makes it diverge.

The stability of a closed loop therefore depends on the roots of
, the characteristic equation. For a high-degree polynomial the roots cannot be computed by hand, but to know whether a system is stable it is enough to know the sign of their real parts.
A necessary condition
Theorem. If all roots of a real polynomial
, with
, have negative real part, then all coefficients are positive.
Proof. The polynomial is
times the product of factors
for the real roots
, with
, and
for the complex pairs
. All these factors have positive coefficients, and the product of polynomials with positive coefficients has positive coefficients. ∎
A zero or negative coefficient is therefore enough to say the system is not stable. The converse does not hold:
has all positive coefficients but two roots with positive real part.
The Routh-Hurwitz criterion
A table is built. The first two rows contain the coefficients of the polynomial, alternating:
| … | ||||
|---|---|---|---|---|
| … | ||||
| … |
and each new row is computed from the two above with
![]()
down to the
row.
Criterion (statement). The number of roots with positive real part equals the number of sign changes in the first column. The system is stable if and only if all elements of the first column have the same sign.
The third-degree case. For
the first column is
: the system is stable if and only if all coefficients are positive and
![]()
In the example
:
, unstable, as stated.
The maximum gain
The typical use is finding the range of gain that keeps the loop stable.
Example. Plant
with a proportional controller
. The characteristic equation is
![]()
By the third-degree criterion:
and
. The loop is stable for
. At the limit,
, the
row vanishes and the
row gives the auxiliary equation
, that is
: the system oscillates at
rad/s. We will meet this again in the lesson on the root locus.
This example shows the general behaviour: with a low gain the system is stable but slow and inaccurate; increasing it makes it quicker, then less and less damped, and beyond a limit unstable. Controller design is the search for the best compromise within these limits.
4Steady-state error
A stable system, once the transient is over, reaches a steady state. But does the output follow the reference exactly, or is an error left? And how far do constant disturbances move the output? In this lesson we see how steady-state error is computed, the role of the system type, the error constants and why integral action removes the error for constant references.
The error and the final value theorem
From the feedback lesson, the error is
![]()
For the steady-state error
the final value theorem is used: if the limit exists (that is if the closed-loop system is stable),
![]()
System type
Write the loop function bringing out the poles at the origin (the integrators):
![]()
where the fraction on the right equals 1 at
. The number
of integrators is the system type, and
is the static (or generalised) gain.
Step (
):
.
- type 0:
, so
; - type 1 or higher:
, so
.
Ramp (
):
.
- type 0: infinite error, the output falls further and further behind;
- type 1:
, so
; - type 2 or higher: zero.

In summary:
| Type | Step | Ramp | Parabola |
|---|---|---|---|
| 0 | |||
| 1 | 0 | ||
| 2 | 0 | 0 |
Example. A type 0 plant with loop gain
leaves an error of
on a step. Getting down to 1% would need
: but such a high gain often makes the loop unstable or too oscillatory (lesson on stability).
Integral action
The solution is to add an integrator in the controller:
, or better a PI,
. The system becomes type 1 and the steady-state step error is zero, whatever the gain.
The intuitive reason: as long as there is even a small error, the integral keeps growing and the command with it; the system can come to rest only when the error is exactly zero. This is how a modern thermostat brings a room exactly to the set temperature, and cruise control holds the speed even uphill.
The price is one more pole at the origin, which adds 90° of phase lag to the loop function and tends to reduce stability: the controller must be designed with this in mind.
Disturbances
A constant disturbance
at the output produces in steady state, by the same formula, a shift of
for a type 0 loop, zero if the loop is type 1. Where the disturbance enters matters: to remove in steady state a constant disturbance acting at the plant input (for example a load torque on a motor), the integrator must be in the controller, before the point where the disturbance enters. This is a case of the internal model principle: to track or reject a signal in steady state, the loop must contain a model of that signal (an integrator for constant signals, a pair of imaginary poles for sinusoids).
The fundamental trade-off
Since
, both cannot be made small at the same frequency. At low frequencies one wants
small (good tracking and rejection of disturbances, which are slow); at high frequencies one wants
small, so that sensor noise does not reach the output and because the plant model is unreliable there. The loop gain must therefore be high at low frequency and low at high frequency, with the transition between the two shaped so as not to compromise stability. This is the starting point of frequency-domain design, in the next lessons.
5The root locus
As the gain of a proportional controller is increased, the closed-loop poles move in the complex plane: they start from the plant poles and, beyond a certain value, may cross the imaginary axis. The root locus is the drawing of these paths. It is sketched with a few rules, without solving high-degree equations, and shows at a glance which behaviours a simple gain can achieve and which need a more elaborate controller.
The definition
Let
, with
of degree
(zeros
) and
of degree
(poles
). The closed-loop poles are the roots of
![]()
The root locus is the set of these roots as
goes from 0 to
.
The magnitude and angle conditions. A point
belongs to the locus if and only if
, that is
![Rendered by QuickLaTeX.com \[ \sum_i \arg(s - z_i) - \sum_i \arg(s - p_i) = 180° + k\cdot 360°,\qquad K = \frac{\prod|s - p_i|}{\prod|s - z_i|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ca1eb6c80024483e9d5bd657bbefa794_l3.png)
The angle condition decides where the locus lies, the magnitude condition which gain corresponds to each point.
Sketching rules
- The locus has
branches, symmetric about the real axis. - The branches start at the poles of
(
) and end at the zeros (
);
branches go to infinity. - On the real axis, the points belonging to the locus are those with an odd number of real poles and zeros to their right (from the angle condition: each pole or zero to the right contributes 180°, those to the left 0°, complex pairs cancel).
- Branches going to infinity follow asymptotes with angles
, starting from the centroid
![]()
- Two branches meeting on the real axis break away at the points where
(breakaway points). - Crossings of the imaginary axis are found with the Routh criterion.
A complete example
![]()
Three poles (0, −2, −4), no zeros.
- Real axis: the segment between 0 and −2 (one pole to the right) and everything to the left of −4 (three poles) belong to the locus.
- Asymptotes:
, angles 60°, 180°, 300°, centroid
. - Breakaway:
,
gives
(the other root, −3.15, is not on the locus). There
. - Imaginary axis: from the lesson on stability,
and
.

Reading the plot. For
the poles are real: a response without oscillation but slow. Between 3.08 and 48 the dominant pair is complex and less and less damped. For damping
(16% overshoot) the poles must lie on the line at 60° from the negative real axis: the locus meets it at
, with poles at
; the third pole is at
, seven times further away, and the pair is truly dominant. The settling time is then about
s, and it cannot be reduced by changing the gain alone: the real part of the complex poles never goes further left than −2, the centroid of the asymptotes.
Reshaping the locus
This is where the method is useful in design. Adding a zero to the controller attracts the branches and moves them to the left: with a zero at −2.5, for example, the asymptotes become two at ±90° with centroid
, and the loop stays stable for any gain. This is the effect of derivative action and of lead networks. Adding a pole (like the integrator) pushes the branches to the right and reduces stability. The root locus makes this trade-off visible, which is why, even in the age of simulation software, it remains the tool for reasoning about design.
Root locus in depth: the rules proved, difficult cases, MATLAB and Python
This page goes deeper into the lesson on the root locus. There the sketching rules are stated; here they are proved one by one, starting from the angle condition. Then we study the cases that cause difficulty in exercises: departure angles from complex poles, the circular locus of a system with a zero, the process that is unstable in open loop, the locus with respect to a parameter other than the gain. At the end are the examples in MATLAB and Python, with verified code.
Notation:
, with
monic of degree
and zeros
,
monic of degree
and poles
; the closed-loop poles are the roots of
, for
.
The rules, proved
Angle and magnitude conditions.
is equivalent to
, a negative real number. A complex number is real and negative if and only if its argument is
(up to multiples of
). Since
, the angle condition follows; the magnitude gives the value of
. Every rule below is a consequence of these two.
Rule 1 (symmetry).
and
have real coefficients, so the complex roots of
come in conjugate pairs: the locus is symmetric about the real axis.
Rule 2 (start and end). The polynomial
has degree
for every
: there are
branches. As
the equation becomes
: the branches start from the poles. Dividing by
,
: as
,
roots tend to the zeros. The other
must go to infinity, because a polynomial of degree
has
roots and only
can stay finite.
Rule 3 (real axis). For real
, every real pole or zero to the left of
contributes an angle of 0°, every real pole or zero to the right contributes 180°, and a complex pair contributes opposite angles that cancel. The sum is
, and it equals
modulo
if and only if that number is odd.
Rule 4 (asymptotes and centroid). For large
,
![Rendered by QuickLaTeX.com \[ \frac{D(s)}{N(s)} = s^{n-m}\cdot\frac{1 - \frac{\sum p_i}{s} + \cdots}{1 - \frac{\sum z_i}{s} + \cdots} = s^{n-m}\left(1 - \frac{\sum p_i - \sum z_i}{s} + O(s^{-2})\right) \approx \left(s - \sigma_a\right)^{n-m} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-9af29827fc9451a092b78e68fe1f55ba_l3.png)
with
, because
(using the coefficients of
and
: the second coefficient of a monic polynomial is minus the sum of its roots). The locus equation becomes
:
. These are half-lines starting from
with the angles of the lesson. ∎
Rule 5 (breakaway). Where two branches meet,
has a double root
:
and
. Eliminating
:
, which is the numerator of
. Equivalently, on the real stretch of the locus
, and the breakaway point is a maximum (or minimum) of
: there two real roots merge and become complex. ∎
Rule 6 (departure angles). Near a pole
, all factors except
have almost constant argument, equal to their value at
. The angle condition then gives the direction of departure:
![]()
and in the same way the arrival angle at a zero
.
Rule 7 (sum of the poles). If
, the coefficient of
in
does not depend on
(because
has degree at most
), so the sum of the closed-loop poles is constant. If one pair moves to the right, another branch must move to the left by the same amount: a very useful check on sketches.
Rule 8 (imaginary axis). The crossing points are the solutions of
: setting real and imaginary parts to zero gives
and
. It is the same information as the zero row in the Routh table.

A zero and a circular locus
![]()
Real axis: the stretch between 0 and
and everything to the left of
. Breakaway points:
gives
, i.e.
(with
) and
(with
).
Theorem. The complex part of the locus is the circle centred at
(the zero) with radius
.
Proof. With
, the equation
has complex roots with
,
. From
:
, i.e.
. ∎
In general, with two real poles and one real zero the locus is always a circle centred at the zero, with radius equal to the geometric mean of the distances of the zero from the two poles (here
). The zero “attracts” the branches and keeps them in the left half-plane for every
: this is the effect of derivative action (lead network or PD).

Complex poles: the departure angle
![]()
Poles at
and
. Departure angle from
:
;
. So
: the branch leaves upwards and to the right, and crosses the imaginary axis.
Crossing:
. With
: real part
, imaginary part
. So
and
. Asymptotes: centroid
, angles
and
.

A process that is unstable in open loop
![]()
The pole at
makes the process unstable on its own. Characteristic equation:
. By the Routh criterion (second order: all coefficients positive) the closed loop is stable for
. The locus shows it: the branches start from 0 and from 2, meet on the real axis between the two poles, describe a circle around the zero at
(centre
, radius
) and cross the imaginary axis at
for
.
This is the typical situation of an inverted pendulum, a magnetic levitator or a fighter aircraft that is unstable by design: the feedback must have a minimum gain, and a failure of the controller is catastrophic.

The locus with respect to another parameter
The method works for any parameter that appears linearly in the characteristic equation. Suppose we want to know how the poles of
move as the damping
varies. Rewrite the equation as
![]()
which is a root locus with “gain”
, poles at
and a zero at 0. The locus is a circle of radius 2 centred at the origin (the poles have modulus
as long as they are complex): damping changes the angle of the poles but not the natural frequency
. For
the poles coincide at
(critical damping).

The locus in MATLAB and Python
The locus of the lesson example,
, with the search for the gain that gives damping 0.5.
MATLAB (Control System Toolbox):
G = tf(1, [1 6 8 0]); % G(s) = 1/(s(s+2)(s+4))
rlocus(G); sgrid(0.5, []) % locus and damping line 0.5
[K, poles] = rlocfind(G) % click on the desired point of the locus
T = feedback(8.3*G, 1); stepinfo(T)Python (free libraries numpy and python-control):
import numpy as np
import control as ct
G = ct.tf([1], [1, 6, 8, 0]) # G(s) = 1/(s(s+2)(s+4))
rlist, klist = ct.root_locus(G, plot=False)
# gain for which the dominant pair has damping 0.5
for K in np.linspace(0.5, 47, 50000):
p = np.roots([1, 6, 8, K])
c = p[np.argmax(p.imag)]
if c.imag > 0 and -c.real / abs(c) <= 0.5:
print(f"K = {K:.2f}, poles = {np.round(p, 3)}")
break
# critical gain: roots on the imaginary axis
print(np.roots([1, 6, 8, 48]))
T = ct.feedback(8.3 * G, 1)
print(ct.step_info(T)["Overshoot"])Running it prints
with poles
and
, then the roots
and
for
, and finally an overshoot of 15.5 %: slightly less than the 16.3 % of a pure second-order system with
, because of the third pole at
, which damps the response a little. With plot=True (or with ct.root_locus_plot in more recent versions of the library) the plot is drawn with matplotlib.

Exercises covering all the cases on this page are on the exercise page linked at the top.
Exercises
Root locus exercises of the kind set in Control Systems courses, in three levels: basic, with second-order systems and gain computation; intermediate, with asymptotes, breakaway points, departure angles and imaginary-axis crossings; exam, with unstable processes, compensation with a zero, locus with respect to a parameter and design to a specification. The result is given straight away; the full solution, with the locus drawn, opens with a click. The proved rules and the MATLAB and Python code are in the in-depth study linked at the top.
Basic level
Exercise 1. The simplest locus
Sketch the locus of
and find the gain for which the closed-loop poles have damping
.
Exercise 2. A gain for an overshoot
For
find the gain that gives the dominant poles a damping of 0.5, the position of the third pole and the critical gain.
Intermediate level
Exercise 3. Four poles: asymptotes, breakaway, stability
For
find the asymptotes, the breakaway points and the critical gain.
Exercise 4. The circular locus and maximum damping
For
find the breakaway points and the gain that gives maximum damping of the complex poles.
Exercise 5. Departure angle and crossing
For
compute the departure angle from the pole
, the asymptotes and the critical gain.
6Nyquist criterion and stability margins
The Routh criterion and the root locus need a model of the plant as a rational function. Often, however, the plant is known through its frequency response, measured with an analyser or obtained from tests, and the plant may contain pure delays that are not rational. The Nyquist criterion decides closed-loop stability by looking only at the open-loop frequency response, and in addition gives a measure of how far the system is from instability: the gain and phase margins.
The idea
The closed loop is unstable if
has roots in the right half-plane. The critical point is
: if at some frequency the loop function equals exactly −1, the signal going round the loop comes back identical (gain 1, 180° phase shift, which with the minus sign of the comparison becomes 360°) and the system oscillates on its own. It is the same principle as an electronic oscillator, and as the howl of a microphone held too close to its loudspeaker.
The Nyquist criterion
The Nyquist plot is the curve traced in the complex plane by
as
goes from
to
(the part for
is the mirror image about the real axis).
Criterion (statement). Let
be the number of poles of
in the right half-plane and
the number of times the Nyquist plot encircles the point −1, counted positive clockwise. The number of closed-loop poles in the right half-plane is
![]()
The closed loop is stable if and only if
.
Where it comes from. It is an application of the argument principle, a consequence of the residue theorem (Mathematical Methods lessons): as
travels along a closed curve enclosing the whole right half-plane, the image
winds around the origin a number of times equal to the difference between the zeros and poles of
enclosed. The zeros of
are the closed-loop poles, its poles are those of
; and winding around the origin for
is the same as winding around −1 for
. (If
has poles on the imaginary axis, like integrators, the curve goes around them with small semicircles.)
The common case. If
is stable (
), the closed loop is stable if and only if the plot does not encircle the point −1.
An example
![]()

The plot crosses the negative real axis where the phase is −180°:
rad/s, with
. The point −1 stays outside: the closed loop is stable. Multiplying the gain by 3 would make the curve pass exactly through −1: the same limit
given by the Routh criterion on the equation
(
).
Stability margins
The further the curve passes from −1, the more robust the system. The distance is measured by two numbers, which can also be read conveniently on the Bode plots of
:
- gain margin
: by how much the gain can be multiplied before instability,
, where
is the frequency at which the phase is −180°; - phase margin
: how much extra phase lag can be added before instability,
, where
is the crossover frequency at which
(0 dB).

In the example:
, that is 9.5 dB, and
rad/s with
.
Phase margin and damping. For a loop that behaves like a second-order system,
holds to a good approximation (with
in degrees, up to about 60°). A 25° margin means
and an overshoot around 44% (simulating the closed loop gives 49%): stable, but too oscillatory. In practice phase margins of 45 to 60° and gain margins of at least 6 dB are required. In the lesson on compensators we will increase the margin of this example.
Delays. A pure delay
(transport time on a conveyor belt, network latency) has magnitude 1 and phase
: it does not change the magnitude plot, but it takes away phase margin increasingly with frequency. The Nyquist criterion handles it with no difficulty, which is one reason frequency-domain design is so widely used in industry.
Bode plots and the Nyquist criterion in depth: rules, resonance, criterion proved and margins
This page goes deeper into the lesson on the Nyquist criterion and stability margins. It derives the rules for drawing Bode plots by hand (asymptotes, errors, second-order resonance, delays, non-minimum-phase zeros), proves the Nyquist criterion from the argument principle, explains how to deal with an integrator or an open-loop unstable process, and links gain, phase and delay margins to performance. At the end are the examples in MATLAB and Python, with verified code.
Why Bode plots are drawn by adding
A rational transfer function can be written as a product of elementary factors:
![Rendered by QuickLaTeX.com \[ L(s) = K\,\frac{\prod_i(1 + s/z_i)\cdot\prod_k\left(1 + 2\zeta_k\frac{s}{\omega_k} + \frac{s^2}{\omega_k^2}\right)}{s^h\prod_j(1 + s/p_j)\cdot\prod_l\left(1 + 2\zeta_l\frac{s}{\omega_l} + \frac{s^2}{\omega_l^2}\right)} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0db6b6611178a95abf41157e17f2e7b6_l3.png)
With
, the logarithm turns the product into a sum:
and
. So it is enough to know the plots of the elementary factors and add them.
The simple pole
: magnitude
dB.
- For
it is about 0 dB; for
it is
: a straight line with slope −20 dB per decade that crosses 0 dB at
. The two lines are the asymptotes. - The largest error is at the corner:
dB. One octave away (
or
) the error is
dB. - The phase
is
at
and goes from 0 to
; the piecewise approximation makes it fall linearly between
and
, with a maximum error of about 5.7°.
The zero gives the same plots with the opposite sign; the integrator
is a line at −20 dB per decade at all frequencies, with constant phase
.

Second-order resonance
Theorem. The system
, with
, has a resonant peak at
, of height
![Rendered by QuickLaTeX.com \[ M_r = \frac{1}{2\zeta\sqrt{1 - \zeta^2}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-cd2b37044fe7d2e41c47cba479a09005_l3.png)
For
the magnitude is decreasing and there is no peak.
Proof. With
:
. Look for the minimum of this function of
:
,
,
, acceptable only if positive. There
, and
. ∎
With
the peak is
, i.e. 14 dB; with
, 8.1 dB; with
, 2.7 dB. At
the phase is always
. The asymptote error (the asymptote has a corner at 0 dB at
and then falls by 40 dB per decade) can be large: for lightly damped systems Bode cannot be drawn with straight lines alone.

Minimum phase, delays, unstable zeros
A system with no poles or zeros in the right half-plane and no delays is called minimum phase. For these systems the phase is determined by the magnitude (Bode’s gain-phase relation): where the magnitude falls with a constant slope of
dB per decade, the phase approaches
degrees. This is why, in design, one tries to cross 0 dB with a slope of −20 dB per decade: the phase is then around
, far from
.
Two important exceptions:
- a delay
has magnitude 1 and phase
(in radians), which grows without limit: it does not change the magnitude but removes phase margin, the more so the higher the crossover frequency; - a zero in the right half-plane, like
, has the same magnitude as the stable zero but a phase that falls instead of rising. The system
has magnitude 1 at all frequencies and phase from 0 to
. In time, an unstable zero makes the step response start in the wrong direction (undershoot): this happens in boost converters, in aircraft pitch dynamics, in the drum level of a boiler.

The Nyquist criterion, proved
Argument principle. Let
be a rational function and
a closed curve, traversed clockwise, that does not pass through zeros or poles of
. If inside
there are
zeros and
poles of
(counted with multiplicity), the image curve
goes round the origin
times clockwise.
Proof. Writing
, we have
. When
goes once round
clockwise, the vector
rotates by
if
is inside the curve and returns to the same angle (zero change) if it is outside. So the total change in the argument of
is
:
clockwise turns. In integral form it is
(with the curve traversed anticlockwise), a direct consequence of the residue theorem, because
has residue
at each simple zero and
at each simple pole. ∎
The criterion. Apply the principle to
, with
the Nyquist contour: the imaginary axis from
to
and a semicircle of radius
in the right half-plane, which therefore encloses the whole right half-plane. The zeros of
are the closed-loop poles; the poles of
are those of
. Going round the origin with
is the same as going round
with
. On the large semicircle
(proper systems), and the image shrinks to a point: it is enough to draw
. This gives
![]()
with
the clockwise turns round
,
the poles of
in the right half-plane,
the closed-loop poles in the right half-plane. ∎
Poles on the imaginary axis. If
has poles on the axis (for example an integrator at 0), the contour goes round them with small semicircles of radius
to the right, leaving them outside. For a simple pole at 0,
and on
, with
from
to
, the image is
: a semicircle of infinite radius traversed clockwise, which closes the plot “from infinity”.

Margins and robustness
With
the crossover frequency (
) and
the frequency where the phase is
:
- gain margin
: the factor by which the gain can be multiplied before instability; - phase margin
: the extra phase lag that can be tolerated; - delay margin
(with
in radians): the pure delay that would cause instability. It is the most meaningful margin in systems controlled by a processor or through a network; - sensitivity peak
: the inverse of the minimum distance of the Nyquist plot from
. Typical design values:
(6 dB), which guarantees
and
.
Example. For
:
,
,
(3.5 dB);
rad/s,
, delay margin 0.17 s. The system is stable but fragile: the step response has an overshoot of 70 %.


Bode and Nyquist in MATLAB and Python
MATLAB:
L = tf(4, [1 3 2 0]); % L(s) = 4/(s(s+1)(s+2))
margin(L) % Bode with the margins written on the plot
[Gm, Pm, Wpc, Wgc] = margin(L)
nyquist(L)
step(feedback(L, 1))Python (numpy and python-control):
import numpy as np
import control as ct
L = ct.tf([4], [1, 3, 2, 0]) # L(s) = 4/(s(s+1)(s+2))
gm, pm, wpc, wgc = ct.margin(L)
print(f"Gm = {gm:.2f} ({20*np.log10(gm):.1f} dB) at {wpc:.3f} rad/s")
print(f"PM = {pm:.1f} degrees at {wgc:.3f} rad/s")
print(f"delay margin = {np.radians(pm)/wgc:.3f} s")
T = ct.feedback(L, 1)
print(f"overshoot = {ct.step_info(T)['Overshoot']:.0f} %")Running it prints
(3.5 dB) at 1.414 rad/s,
at 1.143 rad/s, delay margin 0.174 s and overshoot 70 %. The plots are obtained with ct.bode_plot(L, dB=True, margins=True) and ct.nyquist_plot(L), which use matplotlib.
Exercises with hand-drawn plots, margins, delays and open-loop unstable systems are on the exercise page linked at the top.
Exercises
Exercises on Bode plots, the Nyquist criterion and stability margins of the kind set in Control Systems courses, in three levels: basic, with drawing and reading plots by hand; intermediate, with margins, delays and gain design; exam, with open-loop unstable processes, counting encirclements, compensating networks and non-minimum-phase systems. The result is given straight away; the full solution, with the plot, opens with a click. The proofs and the MATLAB and Python code are in the in-depth study linked at the top.
Basic level
Exercise 1. Bode by hand
Draw the asymptotic Bode plots of
and estimate the crossover frequency and the phase margin.
Exercise 2. The resonant peak
A second-order system has
rad/s and
. Compute the resonant peak, the frequency at which it occurs and the phase at
.
Exercise 3. Reading the margins
For
compute the gain margin by hand and check on the Nyquist plot that the closed loop is stable.
Intermediate level
Exercise 4. The gain for a phase margin
For
find the gain that gives a phase margin of 45°. What is the gain margin then?
Exercise 5. How much delay can be tolerated
For
compute the phase margin and the maximum delay that can be inserted into the loop before instability.
Exercise 6. A lead network
The network
is a lead network with
. Find the maximum phase lead, the frequency at which it occurs and the gain at that point.
7PID controllers
The PID controller (proportional, integral, derivative) is by far the most used in industry: it regulates temperatures, pressures, flows, motor speeds, robot arm positions, drone altitude. It has only three parameters, can be tuned even without an accurate plant model and works well in most cases. In this lesson we see what the three actions mean, tuning methods and the practical details that make a real PID work.
The three actions
![Rendered by QuickLaTeX.com \[ u(t) = K_p\,e(t) + K_i\int_0^t e(\tau)\,d\tau + K_d\,\frac{de}{dt},\qquad C(s) = K_p + \frac{K_i}{s} + K_d s \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f5dec1315fddfbe9b57fbf4e183e6679_l3.png)
It is often written with time constants,
.
- Proportional: reacts to the current error. The larger
, the quicker the response and the smaller the steady-state error, but the less damped the loop. On its own it leaves a steady-state error on type 0 plants. - Integral: reacts to the error accumulated in the past. It removes the steady-state error for constant references and disturbances (lesson on errors), but adds phase lag and tends to cause oscillation.
- Derivative: reacts to how fast the error is changing, that is it “anticipates” where it is going. It adds phase lead and damping, but amplifies high-frequency noise.

The figure shows typical behaviour on a plant
. With P alone (
) the output stops at
: the steady-state error is
. With PI it reaches 1 but more slowly. With PID it reaches 1, faster and with limited oscillation.
Ziegler-Nichols tuning
The classic method, from 1942, is applied directly to the plant:
- remove integral and derivative action and increase
until the loop oscillates steadily; - note the ultimate gain
and the period of the oscillation
; - choose the parameters from the table.
| Controller | |||
|---|---|---|---|
| P | |||
| PI | |||
| PID |
Example. For
the ultimate gain is found with Routh: the characteristic equation is
, stable for
, that is
. At the limit the auxiliary equation
gives
, so
s. The Ziegler-Nichols PID is
,
s,
s.
The Ziegler-Nichols rules give a quick but rather oscillatory response (overshoot often 30 to 50%): they are a good starting point to refine. Bringing a real plant to the edge of stability can be dangerous; there are variants using the open-loop step response, and modern industrial controllers have an autotuning function that runs a controlled test and computes the parameters by itself.
The details that matter
A PID written as in the formula works poorly in reality. The standard fixes are:
- Derivative filter. A pure derivative amplifies sensor noise. One uses
, with
about a tenth of
, which limits the gain at high frequencies. - Derivative on measurement. When the reference changes as a step, the derivative of the error is an impulse that gives the actuator a violent kick (the “derivative kick”). So only the measured output is differentiated,
: for disturbances the effect is the same. - Anti-windup. Every actuator has limits: a valve does not open beyond 100%, a motor has a maximum voltage. If the actuator is saturated the error does not shrink, but the integral keeps growing (windup); when the error finally changes sign, the huge integral takes a long time to unwind and the output overshoots the reference by a lot. The solution is to stop integrating while the command is saturated.
The PID in a microcontroller
In practice the PID is a program run at regular intervals
, much shorter than the plant time constants. The integral becomes a sum and the derivative a difference:
/* discrete-time PID with filtered derivative on measurement and anti-windup */
float kp = 4.8f, ki = 4.8f / 1.81f, kd = 4.8f * 0.45f;
float Ts = 0.01f, a = 0.1f; /* sampling step and filter */
float integ = 0, d = 0, y_prev = 0;
float pid(float r, float y) {
float e = r - y;
d = (1 - a) * d - a * kd * (y - y_prev) / Ts;
y_prev = y;
float u = kp * e + integ + d;
if (u > 10.0f) u = 10.0f; /* actuator saturation */
else if (u < -10.0f) u = -10.0f;
else integ += ki * e * Ts; /* integrate only when not saturated */
return u;
}That is all: a few multiplications per cycle. This is why a PID runs on any microcontroller, even the smallest, and is found inside household appliances, drones, 3D printers and digital power supplies.
8Frequency-domain design and compensators
Frequency-domain design consists of giving the loop function
the right shape: high gain at low frequency for steady-state errors, a suitable crossover frequency for speed, enough phase margin for damping. The tools are compensators: the lead network adds phase near crossover, the lag network raises the low-frequency gain without touching the margin. In this lesson we derive them and complete the example from the lesson on the Nyquist criterion.
From specifications to the shape of L
Time-domain specifications are translated into frequency with approximate but widely used rules:
- phase margin
→ damping
, hence overshoot; - crossover frequency
→ speed: the rise time is about
and the closed-loop bandwidth is of the same order as
; - low-frequency gain → steady-state error (lesson on errors).
The Bode magnitude plot should cross 0 dB with a slope of about −20 dB/decade: steeper slopes at crossover mean a phase close to −180° and small margins.
The lead network
![]()
has a zero at
and a pole further left, at
. Between the two frequencies the magnitude rises by
dB and the phase is positive: it is a limited derivative action, which does not amplify noise without bound.

Theorem. The phase lead is largest at the frequency
, the geometric mean of zero and pole, and equals
![]()
There the magnitude is
, that is
dB.
Proof. The phase is
. Setting
and using the tangent of a difference:
![]()
The maximum is where the derivative with respect to
vanishes:
, that is
. There
, and from the right triangle with legs
and
the hypotenuse is
: so
. The magnitude at
is
. ∎
| 4 | 6 | 10 | 20 | |
|---|---|---|---|---|
| 36.9° | 45.6° | 54.9° | 64.8° |
Beyond
the phase gain grows little and the noise a lot: for larger leads two networks in cascade are used.
A complete design
Plant and gain from the lesson on the Nyquist criterion:
, with a phase margin of 25°, too little. Goal: at least 45 to 50°.
- Choosing α. About 25 to 30° of lead is needed, plus a margin for the fact that the network moves crossover to the right, where the plant phase is worse. Try
(
). - Placement. It is best to put the phase maximum right at the new crossover. There the network adds
dB, so the new
is where the plant alone is at
dB, that is
: this happens at
rad/s. - Computing T.
gives
s, and the network is
. - Check. With the network the phase margin becomes about 50° and crossover moves from 1.23 to 2.02 rad/s: a better damped response (in simulation the overshoot drops from about 49% to 17%) and a faster one too.
With
one would get about 46°, with
about 54°: the final choice is made by simulating and also checking the effect on noise.
The lag network
![]()
is the opposite: it attenuates high frequencies
times, leaving low ones unchanged. Used together with an
-fold increase in gain, it has the effect of multiplying the low-frequency gain by α (and dividing the steady-state error by α) without changing the behaviour near crossover. Its phase lag must be kept away from
: the zero
is placed at least a decade below crossover.
Lead and lag networks together form a lead-lag compensator, the frequency-domain equivalent of a PID: the lag part does the work of the integral, the lead part that of the derivative.
9State space and state feedback
Transfer functions describe the link between one input and one output. Many systems, however, have several inputs and outputs, and their internal state matters: a drone has four motors and six degrees of freedom, an inverted pendulum on a cart must be controlled by looking at position, angle and velocity together. The state-space representation describes the system with a set of first-order equations and makes it possible to design controllers that use all the internal quantities. In this lesson we cover state equations, controllability, state feedback with pole placement and observers.
State equations
The state
is the minimal set of quantities that, together with future inputs, determines the whole future evolution: positions and velocities of a mechanical system, capacitor voltages and inductor currents of a circuit. For a linear system:
![]()
Example. An
-th order differential equation is brought into this form by choosing the output and its derivatives as states. For the inverted pendulum linearised around the upright position,
(with
the normalised command acceleration), with
and
:
![]()
The link with the transfer function. Taking the Laplace transform (zero initial conditions),
, so
![]()
The poles of
are the eigenvalues of
, roots of
. For the pendulum:
, eigenvalues
, one positive: the inverted pendulum is unstable, as expected.
State feedback
If the whole state is measurable, the command
is used, with
a row of gains. The closed loop becomes
![]()
and its poles are the eigenvalues of
, which can be chosen through
.
Example. For the pendulum with
s⁻² and
:
![]()
To have poles with
rad/s and
, the desired polynomial is
: so
and
. The command
keeps the pendulum upright, with feedback on both angle and angular velocity: it is a PD controller, derived systematically.
Controllability. The poles can be placed at will if and only if the system is controllable, that is if the matrix
![]()
has rank
. It means the input can influence every component of the state. For the pendulum
, of rank 2.
The inverted pendulum on a cart

The classic case in control laboratories, and the principle of self-balancing vehicles like the Segway: a single input (the force on the cart) must control four states (cart position and velocity, rod angle and angular velocity). The linearised model is controllable, and state feedback with four gains manages to keep the rod upright and bring the cart back to the desired position. A single PID on the angle would not be enough: it would keep the rod straight, but the cart would drift away.
To choose the poles in a principled way the linear quadratic regulator (LQR) is often used, which computes the
minimising a cost of the form
: an explicit trade-off between accuracy and control effort.
Observers
Often not all of the state is measurable: the angle is measured by a sensor, but not the angular velocity. An observer is then built, a model of the system running in parallel on the computer and corrected by the difference between the measured and the predicted output:
![]()
The estimation error
satisfies
: by choosing
the estimate can be made as fast as desired, provided the system is observable (the dual condition of controllability). By the separation principle the feedback and the observer can be designed independently, and the feedback applied to the estimated state. The Kalman filter, used in the navigation of aircraft, phones and drones to fuse data from accelerometers, gyroscopes and GPS, is an observer designed taking sensor noise into account.
✎Exam exercises
5. The root locus
Exam level
Exercise 6. Stabilising an unstable process
The process
is controlled with a gain
in unity feedback. For which
is the closed loop stable? For which
are the poles real and coincident?
Exercise 7. A stabilising zero
To the system
, unstable for
, a zero at
is added:
. Show that the closed loop is now stable for every
.
Exercise 8. The locus with respect to damping
The mass-spring-damper system
has adjustable damping
. Sketch the path of the poles as
varies and find
for critical damping and for
.
Exercise 9. Design to an overshoot specification
The process
is controlled with a gain
. Find
for a 10 % overshoot and the corresponding settling time. Write the MATLAB and Python commands to check it.
6. Nyquist criterion and stability margins
Exam level
Exercise 7. Nyquist with an unstable process
The process
has an unstable pole. Draw the Nyquist plot for
and use the criterion to determine for which
the closed loop is stable.
Exercise 8. Counting encirclements
For
use the Nyquist criterion to count the unstable closed-loop poles.
Exercise 9. A non-minimum-phase zero
The system
has a zero at
. Compute the step response, its minimum value and the time at which it is reached, and compare the phase with that of
.
✓Solutions
5. The root locus · Exercise 1. The simplest locus
Result: branches on the real axis between 0 and
, breakaway at
for
, then the vertical line
;
.
Characteristic equation:
. Real axis: the stretch between 0 and
(to the right of each of its points there is one pole). Two asymptotes at
from the centroid
.
Breakaway:
,
, with
. For
the poles are
: the real part stays at
(the sum of the poles is constant, rule 7).
Damping: comparing with
,
and
. For
:
, poles
. Increasing the gain makes the response more oscillatory but not faster to settle: the settling time
s does not change.

5. The root locus · Exercise 2. A gain for an overshoot
Result:
; dominant poles
, third pole
;
.
The dominant poles lie on the line
(damping 0.5, angle 60° from the negative half-axis). By rule 7, the sum of the three poles is always
: if the dominant ones are
, the third is
.
Requiring
, the coefficient of
gives
, i.e.
,
. Then the dominant poles are
, the third
, and
.
Critical gain (Routh, or
):
,
,
. The gain margin with
is
.
The third pole is seven times further from the axis than the dominant ones: its influence is small, and the actual overshoot (15.5 %) is close to that of the second-order system (16.3 %).

5. The root locus · Exercise 3. Four poles: asymptotes, breakaway, stability
Result: centroid
, angles
and
; breakaway at
and
(both with
);
with
.
Real axis: stretches
and
. Asymptotes:
, centroid
, angles
.
Breakaway:
,
: roots
,
,
. The point
is not on the locus (between
and
there are two poles to the right, an even number). At the other two
: the same
by symmetry (the poles are symmetric about
).
Routh on
: second row
; third
and
; fourth
, positive for
. Auxiliary equation
:
.

5. The root locus · Exercise 4. The circular locus and maximum damping
Result: breakaway at
and
; maximum damping
for
, with poles
.
Breakaway (in-depth study):
,
.
The complex part of the locus is the circle centred at
with radius
. The damping of a pole is the cosine of the angle between the line to the origin and the negative half-axis: it is maximum where the line from the origin is tangent to the circle. There
,
, and the distance from the origin is
.
The pole is
. From the equation
, the real part is
, so
. Check:
has roots
.

5. The root locus · Exercise 5. Departure angle and crossing
Result:
; centroid
, angles
,
;
with
.
Departure (rule 6):
.
Asymptotes:
.
Characteristic equation
. Routh:
, i.e.
. For
:
,
.
Check with rule 7: for
the poles are
and the third must be
(sum
): indeed
. ✓

5. The root locus · Exercise 6. Stabilising an unstable process
Result: stable for
; coincident poles for
, at
(and for
, at
, unstable).
Characteristic equation:
. Stable if all coefficients are positive:
.
Coincident poles: zero discriminant,
,
,
. For
the double root is
: the breakaway on the left, on the stretch to the left of the zero. For
the root is
, between the two unstable poles: a breakaway in the right half-plane.
The locus is a circle centred at
with radius
:
are exactly
and
. ✓

5. The root locus · Exercise 7. A stabilising zero
Result: vertical asymptotes with centroid
; Routh always satisfied.
Asymptotes:
, angles
, centroid
. The branches going to infinity stay on the line
, in the left half-plane.
Routh on
: all coefficients positive, and the third-order condition
holds for every
(it becomes
).
The zero is obtained with a PD controller,
, or in practice with a lead network (zero followed by a pole much further to the left, which leaves the picture almost unchanged).

5. The root locus · Exercise 8. The locus with respect to damping
Result: the poles move on the circle
; critical damping for
;
for
.
Characteristic equation
, rewritten as
: a locus with poles
and a zero at 0 (in-depth study).
As long as the poles are complex, their product is 4, so
: they lie on the circle of radius
. With
:
. Critical damping
for
(poles coincident at
);
for
, poles
.

5. The root locus · Exercise 9. Design to an overshoot specification
Result:
,
;
s.
From the overshoot:
.
Characteristic equation
:
,
, so
and
. Poles
.
2 % settling time:
s, fixed by the real part
, which a gain alone cannot move. For a faster system a zero is needed (lead network) to bring the locus further left.
Check in MATLAB: G = tf(1,[1 5 0]); stepinfo(feedback(17.9*G,1)). In Python: ct.step_info(ct.feedback(17.9*ct.tf([1],[1,5,0]),1)), which gives an overshoot of 10.0 % and a settling time of 1.42 s: the formula
is a conservative estimate, obtained from the exponential envelope.

6. Nyquist criterion and stability margins · Exercise 1. Bode by hand
Result: Bode form
; crossover about 100 rad/s; phase margin about 95°.
Bode form (factors with constant term 1):
. Gain 10, one integrator, a zero at 1, a pole at 10.
Asymptotic magnitude. For
:
, a line at −20 dB per decade that is 20 dB at
. Between 1 and 10 the zero cancels the integrator: flat at 20 dB. After 10: again −20 dB per decade,
, which is 0 dB at
.
Phase. It starts from
(integrator), rises towards
because of the zero, returns to
after the pole. At
:
, so
.
Exact values (with the code of the in-depth study):
rad/s,
; at
the actual magnitude is 23 dB (the asymptote gives 20: the +3 dB error of the zero).

6. Nyquist criterion and stability margins · Exercise 2. The resonant peak
Result:
(8.1 dB) at
rad/s; phase
at
.
From the in-depth study:
, i.e.
dB.
rad/s. At
the denominator
equals
: phase
, magnitude
.
The peak in frequency and the step overshoot (52.7 % for
) are two faces of the same lack of damping: an instrument that measures the frequency response of a system allows
to be estimated from the peak.

6. Nyquist criterion and stability margins · Exercise 3. Reading the margins
Result:
,
(3.5 dB);
at 1.14 rad/s; stable, with small margins.
Phase
requires
, i.e.
(two complementary angles have reciprocal tangents):
.
, so
: the critical gain is
(the same that Routh gives on
:
).
On the Nyquist plot,
has no poles in the right half-plane (
) and the curve crosses the negative half-axis at
, without encircling
:
,
, stable.


6. Nyquist criterion and stability margins · Exercise 4. The gain for a phase margin
Result:
, with
rad/s;
(13 dB).
The gain does not change the phase. First find the frequency where the phase is
:
. With the tangent addition formula:
, i.e.
,
.
Then choose
so that the magnitude there is 1:
.
Gain margin: the critical gain is 6 (exercise 3), so
. The closed-loop overshoot turns out to be 24 %, consistent with the rule
.

6. Nyquist criterion and stability margins · Exercise 5. How much delay can be tolerated
Result:
,
; maximum delay 1.21 s.
for
. Phase
, margin
.
A delay
adds
to the phase without changing the magnitude: the crossover stays at
, and instability arrives when
rad, i.e.
s.
Without delay the first-order system is stable for any gain; with a delay, it is not. This is why systems controlled over a network (vehicles, teleoperated robots) must take latency into account.

6. Nyquist criterion and stability margins · Exercise 6. A lead network
Result:
at
rad/s; gain
, i.e. 10 dB.
With
(here
), the phase is
. Differentiating and setting to zero gives the maximum at the geometric mean of the two corner frequencies:
.
There
,
, and
(10 dB, half of the total 20 dB).
In design,
is placed at the new crossover frequency, to use all the lead where it is needed; the gain
must be compensated.

6. Nyquist criterion and stability margins · Exercise 7. Nyquist with an unstable process
Result: stable for
; for
the plot encircles
once anticlockwise.
. For
it is
, for
it tends to 0. Real and imaginary parts satisfy
: a circle centred at
with diameter from
to 0.
The process has
. If
the circle contains
, traversed (for
from
to
) anticlockwise:
, so
, stable. If
,
stays outside:
,
, unstable.
Direct check: the closed loop has pole
, negative for
. With an unstable process, the plot must go round
, in the right direction, for the loop to be stable.

6. Nyquist criterion and stability margins · Exercise 8. Counting encirclements
Result: two clockwise turns round
:
, closed loop unstable with a pair of poles in the right half-plane.
From the lesson, for
the plot crosses the negative half-axis at
at the frequency
. With
the crossing is at
, to the left of
.
Following the complete curve (for positive and negative
, closed at infinity clockwise because of the integrator), the point
is encircled twice clockwise:
. The process is stable,
, so
.
Check with Routh on
:
, two sign changes in the first column, two unstable poles.

6. Nyquist criterion and stability margins · Exercise 9. A non-minimum-phase zero
Result:
; minimum
at
s; the phase falls to
instead of stopping at
.
(residues: at 0 it is 1; for the double pole,
,
,
). So
.
: negative for
. The response starts downwards, reaches
and then rises towards 1.
In frequency:
, same magnitude; but
instead of
. The total phase goes from 0 to
. The extra phase lag reduces the margin and limits the achievable bandwidth: with an unstable zero at
, the crossover frequency cannot exceed about
.

∑Formula sheet
Feedback and system models
The loop transfer functions
![]()
![]()
Why feedback works
![]()
Models of physical systems
![]()
![]()
Time response
First order
![]()
![]()
Second order
![Rendered by QuickLaTeX.com \[ G(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e2f7470aef19688af8b3aa559e862864_l3.png)
![]()
![Rendered by QuickLaTeX.com \[ y(t) = 1 - \frac{e^{-\zeta\omega_n t}}{\sqrt{1 - \zeta^2}}\sin(\omega_d t + \theta) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-c1bfc2ba7cc34cc0adf9fbf023fc1e25_l3.png)
Time-domain specifications
![]()
![]()
Stability and the Routh criterion
The Routh-Hurwitz criterion
![]()
![]()
The maximum gain
![]()
Steady-state error
The error and the final value theorem
![]()
![]()
System type
![]()
The root locus
The definition
![]()
![Rendered by QuickLaTeX.com \[ \sum_i \arg(s - z_i) - \sum_i \arg(s - p_i) = 180° + k\cdot 360°,\qquad K = \frac{\prod|s - p_i|}{\prod|s - z_i|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ca1eb6c80024483e9d5bd657bbefa794_l3.png)
Sketching rules
![]()
A complete example
![]()
Nyquist criterion and stability margins
The Nyquist criterion
![]()
An example
![]()
PID controllers
The three actions
![Rendered by QuickLaTeX.com \[ u(t) = K_p\,e(t) + K_i\int_0^t e(\tau)\,d\tau + K_d\,\frac{de}{dt},\qquad C(s) = K_p + \frac{K_i}{s} + K_d s \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f5dec1315fddfbe9b57fbf4e183e6679_l3.png)
Frequency-domain design and compensators
The lead network
![]()
![]()
![]()
The lag network
![]()
State space and state feedback
State equations
![]()
![]()
![]()
State feedback
![]()
![]()
![]()
Observers
![]()