Module 13 · 12 min read · Free chapter
Frequency response: Bode plots, Nyquist criterion and stability margins
Frequency response describes how a system scales and shifts sine waves of different frequencies. Bode plots draw magnitude in dB and phase against log frequency, using straight-line asymptotes. Gain and phase margins show how far a system is from instability. The Nyquist criterion relates encirclements of −1 to right-half-plane closed-loop poles, Z = P + N.
Start from zero: testing a system with sine waves
A mechanic testing a car's suspension may drive over a bumpy road at slow, medium and high speed. At some speed the car shakes violently, because the bumps come at the suspension's natural frequency. That simple test, shaking a system at different frequencies and watching the result, is the basis of frequency response.
Engineers like this method for a practical reason. You can measure it on a real plant without knowing its equations. Feed in a sine wave from a signal generator, measure the size and delay of the output, and repeat at many frequencies. The result describes the system as well as a transfer function does.
The method came from telephone engineering. In the 1930s Harry Nyquist and Hendrik Bode at Bell Labs were designing feedback amplifiers for long-distance lines. Nyquist showed in 1932 how to judge closed-loop stability from the open-loop frequency response. Bode then gave the simple straight-line plots that bear his name.
Why it matters. Bode plots and margins are asked every year in GATE EE and EC, often as a quick reading of a plot or a calculation of gain margin. ESE asks for a full Bode plot with margins in the descriptive paper.
What frequency response means
Apply to a stable LTI system G(s). After the transient dies away, the output is:
So you get the transfer function at any frequency simply by putting . The magnitude |G(jω)| says how much the system amplifies that frequency, and the phase ∠G(jω) says how much it delays it.
Worked example. For at ω = 1 rad/s, . Its magnitude is and its phase is −45°. A 1 V sine at 1 rad/s comes out at 0.707 V, lagging by 45°.
Decibels. Magnitudes are plotted in decibels, . A gain of 10 is 20 dB, a gain of 1 is 0 dB and a gain of 0.707 is about −3 dB. The decibel scale turns multiplication into addition, so the plots of cascaded blocks simply add.
Bandwidth. The bandwidth is the frequency at which the closed-loop magnitude falls 3 dB below its low-frequency value. A wider bandwidth means a faster response, but also more noise passing through.
Time delay. A pure delay of T seconds, such as a long conveyor belt or a slow sensor, has transfer function . Its magnitude is always 1, but its phase is radians, which grows with frequency. This extra lag eats into the phase margin, which is why long delays make feedback loops hard to stabilise.
Bode plots
A Bode plot is a pair of graphs against frequency on a logarithmic scale: magnitude in dB, and phase in degrees. Bode's insight was that each factor of a transfer function has a simple straight-line shape, so the whole plot is built by adding straight lines.
Basic factors.
- Constant K: a flat line at dB with 0° phase.
- Pole at the origin, : a line of slope −20 dB/decade passing through 0 dB at ω = 1, with a constant phase of −90°.
- Zero at the origin, s: slope +20 dB/decade and phase +90°.
- Simple pole, : flat until the corner frequency , then −20 dB/decade. The true curve is 3 dB below the corner of the asymptotes. Phase goes from 0° to −90°, passing −45° at the corner.
- Simple zero, : the mirror image, +20 dB/decade and phase 0° to +90°.
- Quadratic pole (a second-order factor): −40 dB/decade beyond , phase 0° to −180°, with a peak near when ζ is small.
Recipe.
- Write G(jω) in time-constant form, with each factor as .
- List the corner frequencies in increasing order.
- Start with the low-frequency line set by K and the poles at the origin.
- At each corner, change the slope by −20 dB/decade for a pole or +20 for a zero.
- Add the phase of each factor at a few frequencies.
Worked example. . The low-frequency line has slope −20 dB/decade and passes through 20 dB at ω = 1. There is one corner at rad/s, after which the slope becomes −40 dB/decade. The phase starts at −90° and falls towards −180°, reaching −135° at 10 rad/s.
Gain margin and phase margin
A system can be stable yet close to the edge. Margins say how far it is from instability, the way a bridge's safety factor says how much extra load it can take.
The critical condition. A closed loop with negative feedback becomes unstable when the loop gain GH(jω) equals −1, a magnitude of 1 (0 dB) with a phase of −180°. At that point the fed-back signal exactly reinforces the input, and the system oscillates by itself.
Gain margin (GM). Find the phase-crossover frequency where the phase is −180°. The gain margin is the factor by which the gain could rise before the magnitude reaches 1 there:
Phase margin (PM). Find the gain-crossover frequency where |GH| = 1 (0 dB). The phase margin is the extra lag the loop could take before reaching −180°:
Reading them. For a minimum-phase system, it is stable if both margins are positive. Typical design targets are a gain margin of 6 dB or more and a phase margin of 30° to 60°.
Link to damping. Phase margin is closely tied to the damping ratio of the closed loop. As a rule of thumb, degrees for ζ up to about 0.6, so a 45° margin gives ζ near 0.45. The closed-loop resonant peak rises sharply as ζ falls.
Worked example. For , set |G| = 1: , so ω ≈ 7.86 rad/s. The phase there is , so PM ≈ 52°. The phase never reaches −180°, so the gain margin is infinite.
Polar plots and the Nyquist criterion
A polar plot draws G(jω)H(jω) as a single curve in the complex plane, as ω goes from 0 to ∞. Each point's distance from the origin is the magnitude and its angle is the phase. It packs the two Bode graphs into one picture.
The Nyquist plot completes the polar plot by adding its mirror image for negative frequencies, and, if there are poles on the imaginary axis, a large semicircle that goes round them. This closed curve is the image of a contour that encloses the whole right half of the s-plane.
The criterion. Nyquist used a result from complex analysis, the principle of the argument. It counts how many times the plot of 1 + GH circles the origin, which is the same as GH circling the point −1 + j0. The result is:
Here Z is the number of closed-loop poles in the right half-plane, P the number of open-loop poles in the right half-plane, and N the number of clockwise encirclements of −1 by the Nyquist plot. Counter-clockwise encirclements count as negative. For stability, Z must be zero.
The common case. If the open loop has no right-half-plane poles (P = 0), the closed loop is stable only if the Nyquist plot does not encircle −1. So you just check whether the curve passes to the right of −1 when it crosses the negative real axis.
Margins on the Nyquist plot. If the plot crosses the negative real axis at −a, the gain margin is . The phase margin is the angle between the negative real axis and the point where the curve crosses the unit circle.
Why Nyquist is powerful. It works from measured open-loop data, it handles time delays exactly, and it works even when the open loop is itself unstable, where the Bode margins can mislead.
Frequency-domain specifications and their time-domain meaning
Designers often work in the frequency domain because the plots are easy to draw and to measure. But customers care about time-domain behaviour, such as overshoot and settling time. A few links translate one into the other.
The closed-loop specifications.
- Resonant peak : the highest value of the closed-loop magnitude. A large means a lightly damped system that overshoots. A value of 1.1 to 1.5 is usually acceptable.
- Resonant frequency : where the peak occurs. For ζ above 0.707 there is no peak.
- Bandwidth : where the closed-loop magnitude falls to 0.707 of its low-frequency value. It is roughly inversely proportional to the rise time.
Rules of thumb. A phase margin of about 45° to 60° gives a well-damped step response with 10% to 25% overshoot or less. Doubling the bandwidth roughly halves the rise time. A gain margin of at least 6 dB allows the loop gain to double before instability.
Effect of time delay on margins. Suppose the loop above, with gain crossover near 7.86 rad/s and PM ≈ 52°, has a 0.05 s sensor delay added. The extra phase lag at crossover is rad, or about 22.5°. The phase margin falls to about 30°, and the step response rings much more.
Why this matters. In power systems, the excitation control of large generators and the speed control of turbines are tuned with exactly these margins. A lightly damped loop there leads to low-frequency power swings across the grid.
Descriptive lens: how this topic is asked in written papers
Written papers test this chapter in four ways:
- Draw: the asymptotic Bode plot of a given transfer function, and read off gain and phase margins.
- State and apply: the Nyquist criterion to find closed-loop stability or the range of K.
- Relate: frequency-domain specifications (Mr, ωr, bandwidth, PM) to time-domain ones (ζ, overshoot, rise time).
- Explain: why margins are needed, and the effect of a time delay.
Practice questions (our own, not previous-year questions).
- Draw the asymptotic Bode plot of . Find the gain-crossover frequency, the phase margin and the gain margin. (20 marks)
- State the Nyquist stability criterion. Explain how gain and phase margins are read from a Nyquist plot. (10 marks)
- Derive the resonant peak and resonant frequency of a standard second-order system. Why is there no peak for ζ > 0.707? (12 marks)
Answer plan for question 1.
- Corner frequencies are 10 and 100 rad/s. The initial line is −20 dB/decade through 40 dB at ω = 1.
- At 10 rad/s the line is at 20 dB, then falls at −40 dB/decade, reaching 0 dB at about 31.6 rad/s, which is the gain crossover.
- The phase at 31.6 rad/s is −90° − tan⁻¹(3.16) − tan⁻¹(0.316) ≈ −90° − 72.4° − 17.5° = −180°, so PM ≈ 0°.
- Phase crossover is where tan⁻¹(0.1ω) + tan⁻¹(0.01ω) = 90°, giving ω ≈ 31.6 rad/s too.
- So the system is on the edge (GM ≈ 0 dB, PM ≈ 0°). The exact gain margin from Routh is 1.1, about 0.8 dB, so the system is only just stable.
- Conclude that the gain must be reduced, or a lead compensator added, for a healthy margin.
Quick revision
- Frequency response is found by putting s = jω; the output sine is scaled by |G(jω)| and shifted by ∠G(jω).
- Each pole adds −20 dB/decade beyond its corner and each zero +20; a pole at the origin gives −20 dB/decade and −90° throughout.
- The true magnitude at a simple corner is 3 dB off the asymptotes, and the phase there is ±45°.
- Gain margin is read at phase crossover (−180°), and phase margin is 180° plus the phase at gain crossover (0 dB).
- Healthy targets are GM ≥ 6 dB and PM of 30° to 60°, and PM ≈ 100ζ degrees for ζ up to about 0.6.
- Nyquist: Z = P + N about −1 + j0; with P = 0, stability needs no encirclement of −1.
- A crossing of the negative real axis at −a gives a gain margin of 1/a.
- A delay keeps magnitude but adds phase lag ωT, which cuts the phase margin.