Electrical Engineering‹›⌂ 0:00 studied

Module 13 · 12 min read · Free chapter

Frequency response: Bode plots, Nyquist criterion and stability margins

In short

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.

What are you preparing for? We show the practice and previous year questions of your exam.

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 r(t)=Asin⁡ωtr(t) = A\sin\omega t to a stable LTI system G(s). After the transient dies away, the output is:

c(t)=A ∣G(jω)∣sin⁡(ωt+ϕ),ϕ=∠G(jω)c(t) = A\,\lvert G(j\omega)\rvert\sin(\omega t + \phi), \quad \phi = \angle G(j\omega)

So you get the transfer function at any frequency simply by putting s=jωs = j\omega. 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 G(s)=11+sG(s) = \dfrac{1}{1 + s} at ω = 1 rad/s, G(j1)=11+jG(j1) = \dfrac{1}{1 + j}. Its magnitude is 12≈0.707\dfrac{1}{\sqrt{2}} \approx 0.707 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, 20log⁡10∣G∣20\log_{10}\lvert G\rvert. 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 e−sTe^{-sT}. Its magnitude is always 1, but its phase is −ωT-\omega T 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 20log⁡K20\log K dB with 0° phase.
  • Pole at the origin, 1s\dfrac{1}{s}: 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, 11+sT\dfrac{1}{1 + sT}: flat until the corner frequency ωc=1T\omega_c = \dfrac{1}{T}, 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, 1+sT1 + sT: the mirror image, +20 dB/decade and phase 0° to +90°.
  • Quadratic pole (a second-order factor): −40 dB/decade beyond ωn\omega_n, phase 0° to −180°, with a peak near ωn\omega_n when ζ is small.

Recipe.

  1. Write G(jω) in time-constant form, with each factor as (1+jωT)(1 + j\omega T).
  2. List the corner frequencies in increasing order.
  3. Start with the low-frequency line set by K and the poles at the origin.
  4. At each corner, change the slope by −20 dB/decade for a pole or +20 for a zero.
  5. Add the phase of each factor at a few frequencies.

Worked example. G(s)=10s(1+0.1s)G(s) = \dfrac{10}{s(1 + 0.1s)}. The low-frequency line has slope −20 dB/decade and passes through 20 dB at ω = 1. There is one corner at 10.1=10\dfrac{1}{0.1} = 10 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 ωpc\omega_{pc} where the phase is −180°. The gain margin is the factor by which the gain could rise before the magnitude reaches 1 there:

GM=1∣G(jωpc)H(jωpc)∣,GMdB=−20log⁡10∣GH(jωpc)∣GM = \frac{1}{\lvert G(j\omega_{pc})H(j\omega_{pc})\rvert}, \quad GM_{\text{dB}} = -20\log_{10}\lvert GH(j\omega_{pc})\rvert

Phase margin (PM). Find the gain-crossover frequency ωgc\omega_{gc} where |GH| = 1 (0 dB). The phase margin is the extra lag the loop could take before reaching −180°:

PM=180°+∠G(jωgc)H(jωgc)PM = 180° + \angle G(j\omega_{gc})H(j\omega_{gc})

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, PM≈100ζPM \approx 100\zeta degrees for ζ up to about 0.6, so a 45° margin gives ζ near 0.45. The closed-loop resonant peak Mr=12ζ1−ζ2M_r = \dfrac{1}{2\zeta\sqrt{1 - \zeta^2}} rises sharply as ζ falls.

Worked example. For 10s(1+0.1s)\dfrac{10}{s(1 + 0.1s)}, set |G| = 1: 10ω1+0.01ω2=1\dfrac{10}{\omega\sqrt{1 + 0.01\omega^2}} = 1, so ω ≈ 7.86 rad/s. The phase there is −90°−tan⁡−1(0.786)≈−128°-90° - \tan^{-1}(0.786) \approx -128°, 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:

Z=P+NZ = P + N

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 1a\dfrac{1}{a}. 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 MrM_r: the highest value of the closed-loop magnitude. A large MrM_r means a lightly damped system that overshoots. A value of 1.1 to 1.5 is usually acceptable.
  • Resonant frequency ωr=ωn1−2ζ2\omega_r = \omega_n\sqrt{1 - 2\zeta^2}: where the peak occurs. For ζ above 0.707 there is no peak.
  • Bandwidth ωb\omega_b: 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 7.86×0.05=0.397.86 \times 0.05 = 0.39 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:

  1. Draw: the asymptotic Bode plot of a given transfer function, and read off gain and phase margins.
  2. State and apply: the Nyquist criterion to find closed-loop stability or the range of K.
  3. Relate: frequency-domain specifications (Mr, ωr, bandwidth, PM) to time-domain ones (ζ, overshoot, rise time).
  4. Explain: why margins are needed, and the effect of a time delay.

Practice questions (our own, not previous-year questions).

  1. Draw the asymptotic Bode plot of G(s)H(s)=100s(1+0.1s)(1+0.01s)G(s)H(s) = \dfrac{100}{s(1 + 0.1s)(1 + 0.01s)}. Find the gain-crossover frequency, the phase margin and the gain margin. (20 marks)
  2. State the Nyquist stability criterion. Explain how gain and phase margins are read from a Nyquist plot. (10 marks)
  3. 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 e−sTe^{-sT} keeps magnitude but adds phase lag ωT, which cuts the phase margin.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 16 answered

  1. A gain of 10 expressed in decibels is:

  2. For G(s)=11+sG(s) = \dfrac{1}{1 + s} at ω = 1 rad/s, the magnitude and phase are:

  3. A pure time delay e−sTe^{-sT} in a loop:

  4. On a Bode magnitude plot, a simple pole changes the slope beyond its corner frequency by:

  5. At the corner frequency of a simple pole, the true magnitude differs from the asymptotic value by:

  6. A pole at the origin contributes a phase of:

  7. For G(s)=10s(1+0.1s)G(s) = \dfrac{10}{s(1 + 0.1s)}, the asymptotic magnitude at ω = 1 rad/s and the corner frequency are:

  8. Gain margin is measured at the frequency where:

  9. If the phase at the gain-crossover frequency is −140°, the phase margin is:

  10. If |GH| = 0.25 at the phase-crossover frequency, the gain margin is:

  11. The phase margin of G(s)=10s(1+0.1s)G(s) = \dfrac{10}{s(1 + 0.1s)} with unity feedback is about:

  12. In the Nyquist criterion, stability is judged by encirclements of the point:

  13. An open loop has one pole in the right half-plane. Its Nyquist plot encircles −1 once counter-clockwise. The closed loop has how many right-half-plane poles?

  14. A Nyquist plot crosses the negative real axis at −0.5. With no open-loop right-half-plane poles, the gain margin is:

  15. For a standard second-order system, there is no resonant peak when:

  16. A phase margin of about 45° corresponds roughly to a damping ratio of:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What is phase margin?

180° plus the phase at the gain crossover frequency, where the magnitude is 0 dB.

What slope does a simple pole add to a Bode plot?

−20 dB per decade after its corner frequency.

Why is the Nyquist criterion useful?

It finds closed-loop stability from the open-loop plot, and works even with time delays.

How is phase margin related to damping?

For a second-order system, damping ratio is roughly phase margin in degrees divided by 100.

More in this module: Control systems

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 Electrical Engineering (EE) syllabus, IIT Guwahati
  2. BPSC Assistant Engineer (Electrical) syllabus, Papers 5 and 6, Bihar Engineering Service Rules 2019
  3. NPTEL Control Engineering (IIT Madras, 108106098)