Frequency Response & Bode Plots

Interactive Lecture

Bode Plots, Gain and Phase Margins, and Stability

by Dr Arnaldo Delli Carri

Thanks to the contribution of Dr Andrew Pike

From Transfer Functions to Frequency Response

In the Laplace Transforms and Control Systems lectures, we modelled linear systems using transfer functions \(G(s)\). A fundamental engineering question is: how does a system respond to sinusoidal inputs at different frequencies? This is the frequency response.

To find the steady-state sinusoidal response of a system, simply substitute \(s = j\omega\) into the transfer function. The complex number \(G(j\omega)\) gives the amplitude ratio and phase shift at every frequency \(\omega\).

This substitution is equivalent to evaluating the Laplace Transform on the imaginary axis, which is precisely the Fourier Transform.

If the input is \(u(t) = A\sin(\omega t)\), the steady-state output of a stable linear system is:

\[y(t) = A\,|G(j\omega)|\,\sin\!\bigl(\omega t + \angle G(j\omega)\bigr)\]

Computing \(G(j\omega)\)

Replace every \(s\) with \(j\omega\), then separate the result into real and imaginary parts. For the first-order system \(G(s) = K/(1 + \tau s)\):

\[G(j\omega) = \frac{K}{1 + j\omega\tau} = \frac{K(1 - j\omega\tau)}{1 + (\omega\tau)^2}\]

Therefore:

\[|G(j\omega)| = \frac{K}{\sqrt{1+(\omega\tau)^2}}, \qquad \angle G(j\omega) = -\arctan(\omega\tau)\]

Bode Plots

A Bode plot consists of two graphs plotted against a logarithmic frequency axis:

  1. Magnitude in decibels: \(|G|_{\text{dB}} = 20\log_{10}|G(j\omega)|\)
  2. Phase in degrees: \(\angle G(j\omega)\)

The log scale is essential — it turns the multiplication of magnitudes into addition of dB values, and allows asymptotic (straight-line) approximations that make hand analysis practical.

First-Order System: \(G(s) = K\,/\,(1 + \tau s)\)

Corner (break) frequency: \(\omega_c = 1/\tau\)

Region Magnitude Phase
\(\omega \ll \omega_c\) \(20\log_{10}K\) dB (flat) \(\approx 0°\)
\(\omega = \omega_c\) \(20\log_{10}K - 3\) dB (−3 dB point) \(-45°\) exactly
\(\omega \gg \omega_c\) Slope of −20 dB/decade \(\to -90°\)

Second-Order System: \(G(s) = \omega_n^2\,/\,(s^2 + 2\zeta\omega_n s + \omega_n^2)\)

The standard second-order form has unity DC gain (\(G(0) = 1\), i.e. 0 dB). Evaluating at \(s = j\omega\) with the normalised frequency ratio \(r = \omega/\omega_n\):

\[G(j\omega) = \frac{1}{(1-r^2) + j2\zeta r}\]

\[\begin{aligned}|G(j\omega)|_{\text{dB}} &= 20\log_{10}\!\left[\frac{1}{\sqrt{(1-r^2)^2 + (2\zeta r)^2}}\right] \\[6pt] &= -10\log_{10}\!\left[(1-r^2)^2 + (2\zeta r)^2\right]\end{aligned}\]

\[\angle G(j\omega) = -\arctan\!\left(\frac{2\zeta r}{1-r^2}\right)\]

Region Magnitude Phase
\(\omega \ll \omega_n\) \(\approx 0\) dB (unity gain) \(\approx 0°\)
\(\omega = \omega_n\) \(-20\log_{10}(2\zeta)\) dB \(-90°\) exactly (for all \(\zeta\))
\(\omega \gg \omega_n\) Slope of −40 dB/decade \(\to -180°\)

Resonance peak (only when \(\zeta < 1/\sqrt{2} \approx 0.707\)):

\[\omega_r = \omega_n\sqrt{1-2\zeta^2}, \qquad |G(\omega_r)|_{\text{dB}} = -20\log_{10}\!\left(2\zeta\sqrt{1-\zeta^2}\right)\]

Damped natural frequency \(\omega_d\) is a related but distinct quantity: it is the frequency of free oscillation observed in the step response:

\[\omega_d = \omega_n\sqrt{1-\zeta^2}\]

Note that \(\omega_r < \omega_d < \omega_n\) for \(0 < \zeta < 1/\sqrt{2}\). The resonance peak in the frequency response (\(\omega_r\)) is shifted below the damped natural frequency (\(\omega_d\)) because resonance is driven by the forced response, which is slightly de-tuned from free oscillation by damping.

Nyquist Diagram

The Nyquist diagram is a polar plot of \(G(j\omega)\) in the complex plane as \(\omega\) sweeps from 0 to \(\infty\) (the conjugate mirror image for \(\omega < 0\) is implied). It is used to assess closed-loop stability of feedback systems.

Nyquist Stability Criterion: A unity-feedback closed-loop system is stable if the Nyquist plot of the open-loop \(G(j\omega)\) does not encircle the critical point \(-1 + j0\).

Two key frequency-domain stability margins, both readable from the Bode or Nyquist plots:

Well-designed systems typically have \(GM > 6\) dB and \(PM > 30°\). A 2nd-order system without zeros always has infinite gain margin — gain can never make it unstable — but finite phase margin is still meaningful.

Root Locus

The root locus shows how the closed-loop poles move in the \(s\)-plane as the loop gain \(K\) increases from 0 to \(\infty\). It directly links the time-domain behaviour (pole positions) to the designer's choice of gain.

For unity feedback with open-loop \(G(s) = K\,G_0(s)\), the closed-loop characteristic equation is:

\[1 + K\,G_0(s) = 0\]

Roots start (\(K=0\)) at open-loop poles and end (\(K\to\infty\)) at open-loop zeros (or diverge along asymptotes).

Key rules for sketching the root locus:

Interactive Simulation

Explore Bode plots, Nyquist diagrams, and root locus for 1st and 2nd order systems. Adjust the sliders to see how system parameters shape the frequency response.

System:
1.0
1.0 s

Engineering Applications

Summary of Key Equations

Concept Equation Notes
Frequency response substitution \(G(j\omega) = G(s)\big|_{s=j\omega}\) Replaces \(s\) with \(j\omega\)
Magnitude in dB \(|G|_{\text{dB}} = 20\log_{10}|G(j\omega)|\) Logarithmic amplitude ratio
1st-order magnitude \(|G| = K\,/\,\sqrt{1+(\omega\tau)^2}\) Corner at \(\omega_c = 1/\tau\)
1st-order phase \(\angle G = -\arctan(\omega\tau)\) \(-45°\) at \(\omega = \omega_c\)
2nd-order magnitude \(|G| = 1\,/\,\sqrt{(1-r^2)^2+(2\zeta r)^2}\) \(r = \omega/\omega_n\)
2nd-order phase \(\angle G = -\arctan\!\left(\frac{2\zeta r}{1-r^2}\right)\) \(-90°\) at \(\omega = \omega_n\)
Resonance frequency \(\omega_r = \omega_n\sqrt{1-2\zeta^2}\) Exists only if \(\zeta < 1/\sqrt{2}\)
Resonance peak \(|G|_{\text{peak}} = 1\,/\,(2\zeta\sqrt{1-\zeta^2})\) Magnitude ratio at \(\omega_r\)
Phase margin \(PM = 180° + \angle G(j\omega_{gc})\) \(\omega_{gc}\): gain crossover (\(|G|=1\))
Gain margin \(GM_{\text{dB}} = -|G(j\omega_{pc})|_{\text{dB}}\) \(\omega_{pc}\): phase crossover (\(\angle G = -180°\))
RL closed-loop char. eq. \(1 + KG_0(s) = 0\) Roots are closed-loop poles
RL asymptote centroid \(\sigma_a = (\sum p_i - \sum z_i)\,/\,(n-m)\) \(n\) poles, \(m\) zeros

Practice Problems

Problem 1: First-Order Bode Plot

A hydraulic valve actuator has the transfer function \(G(s) = 4\,/\,(0.5s + 1)\).

  1. Find the corner (break) frequency \(\omega_c\) in rad/s.
  2. Find the DC gain in dB.
  3. Sketch (or describe) the asymptotic Bode magnitude plot, labelling the slope and key values.
  4. Calculate the exact magnitude in dB at \(\omega = \omega_c\) and at \(\omega = 4\,\omega_c\).
  5. What is the phase angle at \(\omega = 2\,\omega_c\)?

Show Solution

Problem 2: Second-Order Frequency Response

A second-order system has the transfer function:

\[G(s) = \frac{25}{s^2 + 3s + 25}\]

  1. Identify \(\omega_n\) and \(\zeta\).
  2. Determine whether a resonance peak exists, and if so calculate \(\omega_r\) and the peak magnitude in dB.
  3. What is the exact magnitude in dB and phase at \(\omega = \omega_n\)?
  4. Describe the asymptotic Bode magnitude, giving the high-frequency slope.

Show Solution

Problem 3: Stability Margins from Bode Plot

An open-loop transfer function (with unity feedback) is:

\[G(s) = \frac{5}{s(s+1)(0.1s+1)}\]

  1. At \(\omega = 2\) rad/s, evaluate \(|G(j2)|\) and \(\angle G(j2)\) numerically.
  2. Given that the gain crossover frequency is approximately \(\omega_{gc} \approx 2.1\) rad/s where \(|G|=1\), and \(\angle G(j2.1) \approx -147°\), estimate the phase margin.
  3. Given that the phase crossover frequency is approximately \(\omega_{pc} \approx 3.1\) rad/s where \(\angle G = -180°\), and \(|G(j3.1)| \approx 0.4\), estimate the gain margin in dB.
  4. Is this closed-loop system likely to be stable? Is it well-damped?

Show Solution

Knowledge Check Quiz

Question 1

To obtain the frequency response from a transfer function \(G(s)\), you substitute:

Question 2

For a first-order system \(G(s) = K/(1+\tau s)\), the phase at the corner frequency \(\omega_c = 1/\tau\) is:

Question 3

A second-order system has \(\zeta = 0.3\). At the natural frequency \(\omega_n\), the phase is:

Question 4

A resonance peak appears in the Bode magnitude plot of a 2nd-order system when:

Question 5

The high-frequency asymptotic slope of the Bode magnitude plot for \(G(s) = \omega_n^2/(s^2 + 2\zeta\omega_n s + \omega_n^2)\) is:

Question 6

In a root locus diagram, the branches begin (at \(K = 0\)) at the: