Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

1st/2nd order Bode plots

In this section, we will derive the Bode plots for first and second-order systems. Just like understanding the time-domain response of first and second order systems allows you to predict the behavior of more complex systems (via partial fraction decomposition), understanding the frequency response of first and second order systems allows you to predict the frequency response of more complex systems. However, it’s even easier with frequency response because no partial fraction decomposition is needed!

We will start with the simplest systems (constant gains and integrators) and then move on to first and second-order systems.

Constant gains

Let’s start with the simplest of transfer functions, a constant gain G(s)=KG(s) = K. The frequency response is given by G(jω)=KG(j\omega) = K, which is a complex number with magnitude M(ω)=KM(\omega) = |K| and phase ϕ(ω)=K\phi(\omega) = \angle K. The frequency response is constant for all frequencies, which means that the Bode plot will be a horizontal line in both the magnitude and phase plots. However, the value of the magnitude and phase will depend on whether KK is positive or negative. Here are the plots:

Bode plot for a constant gain G(s) = K. The phase plot changes depending on whether K is positive or negative, while the magnitude plot is the same for both cases.

Figure 1:Bode plot for a constant gain G(s)=KG(s) = K. The phase plot changes depending on whether KK is positive or negative, while the magnitude plot is the same for both cases.

Shifting property

Multiplying a system by a constant gain simply adds a constant offset to its Bode magnitude plot. This is because:

20log10KG(jω)=20log10K+20log10G(jω)20\log_{10} |KG(j\omega)| = 20\log_{10} |K| + 20\log_{10} |G(j\omega)|

So we can just shift the Bode magnitude plot of GG up or down by 20log10K20\log_{10} |K| dB, depending on whether KK is greater than or less than 1. For the phase plot, we have:

KG(jω)=K+G(jω)={G(jω)if K>0180°+G(jω)if K<0\angle KG(j\omega) = \angle K + \angle G(j\omega) = \begin{cases} \angle G(j\omega) & \text{if } K > 0 \\ -180\degree + \angle G(j\omega) & \text{if } K < 0 \end{cases}

So if KK is positive, the phase plot is unchanged, while if KK is negative, the phase plot is shifted by 180°.

Integrator

An integrator has the transfer function G(s)=1sG(s) = \frac{1}{s}, which means that its frequency response is given by G(jω)=1jωG(j\omega) = \frac{1}{j\omega}. The magnitude of the frequency response is M(ω)=1ωM(\omega) = \frac{1}{\omega}, which means that:

20log10M(ω)=20log10(1ω)=20log10(ω)20\log_{10} M(\omega) = 20\log_{10} \left(\frac{1}{\omega}\right) = -20\log_{10}(\omega)

So on a log scale, the magnitude plot will be a straight line with a slope of -20 dB/decade. The phase of the frequency response is

ϕ(ω)=1jω=jω=90°\phi(\omega) = \angle \frac{1}{j\omega} = -\angle \frac{j}{\omega} = -90\degree

As with the constant gain, the phase is constant at all frequencies. This time it’s a 90° phase lag. Here is the corresponding Bode plot:

Bode plot for an integrator G(s) = \frac{1}{s}. The phase plot is constant at -90°, while the magnitude plot has a slope of -20 dB/decade.

Figure 2:Bode plot for an integrator G(s)=1sG(s) = \frac{1}{s}. The phase plot is constant at -90°, while the magnitude plot has a slope of -20 dB/decade.

Notice that the DC gain of the integrator is infinite. This is because G(s)=1sG(s)=\frac{1}{s} so G(0)G(0) \to \infty. We can see why this is the case by looking at the time-domain response. Integration of a sinusoid produces:

u(t)=cos(ωt)    y(t)=0tu(τ)dτ=1ωsin(ωt)u(t) = \cos(\omega t) \implies y(t) = \int_0^t u(\tau) \,\dd \tau = \frac{1}{\omega} \sin(\omega t)

The output amplitude is 1ω\frac{1}{\omega}, which gets larger the smaller we make ω\omega. In the limit ω0\omega\to 0, the input becomes u(t)=1u(t)=1 and the output becomes y(t)=ty(t)=t, which grows without bound as tt\to\infty. This is why the DC gain is infinite. That being said, integrators still possess high-frequency roll-off, so high-frequency inputs are attenuated/smoothed.

Differentiator

A differentiator has the transfer function G(s)=sG(s) = s, which means that its frequency response is given by G(jω)=jωG(j\omega) = j\omega. This is the inverse of what we had for the integrator. This time, MdB(ω)=20log10(ω)M_\text{dB}(\omega) = 20\log_{10}(\omega) and ϕ(ω)=90°\phi(\omega) = 90\degree. So our magnitude plot is a constant slope of +20 dB/decade and the phase plot is a constant 90° of phase lead. Here is the Bode plot:

Bode plot for a differentiator G(s) = s. The phase plot is constant at 90°, while the magnitude plot has a slope of +20 dB/decade.

Figure 3:Bode plot for a differentiator G(s)=sG(s) = s. The phase plot is constant at 90°, while the magnitude plot has a slope of +20 dB/decade.

This time, the DC gain is zero (the derivative of a constant is zero), while the high-frequency gain is infinite. We can see this again with the time-domain response:

u(t)=cos(ωt)    y(t)=dudt=ωsin(ωt)u(t) = \cos(\omega t) \implies y(t) = \frac{\dd u}{\dd t} = -\omega \sin(\omega t)

The output amplitude is ω\omega, which gets larger the larger we make ω\omega. In the limit ω\omega\to \infty, the output has infinite amplitude.

First-order systems

Let’s consider a first-order system with transfer function G(s)=1τs+1G(s) = \frac{1}{\tau s + 1}. The frequency response is given by G(jω)=1jωτ+1G(j\omega) = \frac{1}{j\omega\tau + 1}. Let’s treat the magnitude and phase separately.

Magnitude (first-order)

The magnitude of the frequency response is

M(ω)=1jωτ+1=1(ωτ)2+1M(\omega) = \left|\frac{1}{j\omega\tau + 1}\right| = \frac{1}{\sqrt{(\omega\tau)^2 + 1}}

Let’s look at what happens at low, medium, and high frequencies:

MdB(ω)=20log10M(ω)20log10(ωτ)M_\text{dB}(\omega) = 20\log_{10} M(\omega) \approx -20\log_{10}(\omega\tau)

This is a -20 dB/decade slope, since every time we multiply ω\omega by 10, MM decreases by 20 dB. This is the same as what happened with the integrator.

Phase (first-order)

The phase of the frequency response is

ϕ(ω)=1jωτ+1=(jωτ+1)=atan(ωτ)\phi(\omega) = \angle \frac{1}{j\omega\tau + 1} = -\angle (j\omega\tau + 1) = -\atan(\omega\tau)

Again, we can look at low, medium, and high frequencies:

The phase plot also has “point symmetry” about the corner frequency. This means that the phase plot makes an S-shaped curve that looks the same if you rotate it by 180° around the corner frequency. To see why, expand the explanation below.

Bode sketch (first-order)

We can sketch the Bode magnitude by plotting the two asymptotes (low frequency constant and high-frequency slope) and then connecting them smoothly around the corner frequency.

For the Bode phase plot, the S-curve starts and ends roughly one decade before and one decade after the corner frequency. We can approximate the shape by connecting these points with straight lines and drawing a smooth curve on top.

Here is the bode plot for our first-order system, showing the approximation and the true plot overlaid:

Bode plot of a first-order system G(s) = \frac{1}{\tau s + 1}. The asymptotes are shown in dashed lines, while the true plot is shown in solid lines.

Figure 5:Bode plot of a first-order system G(s)=1τs+1G(s) = \frac{1}{\tau s + 1}. The asymptotes are shown in dashed lines, while the true plot is shown in solid lines.

First-order demo

The interactive demonstration below shows the frequency response of a first-order system: a water heating device where the input is the flame intensity and the output is the water temperature. You can adjust the frequency of oscillation ω=1τ\omega = \frac{1}{\tau} and observe how the response changes. You can also click the boxes to animate the plot and reveal the Bode plot. Notice that as you increase the frequency, the magnitude decays (high-frequency roll-off) and the phase lag increases up to 90°.

 

Summary

Second-order systems

The derivation of the Bode plot for second-order systems is similar to the first-order case, but more involved. Let’s start with a standard second-order system with DC gain 1:

G(s)=ωn2s2+2ζωns+ωn2G(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2}

Again, we shall treat the magnitude and phase separately.

Magnitude (second-order)

The magnitude of the frequency response is

M(ω)=G(jω)=ωn2(jω)2+2ζωn(jω)+ωn2=ωn2(ωn2ω2)2+(2ζωnω)2=14ζ2(ωωn)2+(1(ωωn)2)2\begin{aligned} M(\omega) = |G(j\omega)| &= \left|\frac{\omega_n^2}{(j\omega)^2 + 2\zeta\omega_n (j\omega) + \omega_n^2}\right|\\ &= \frac{\omega_n^2}{\sqrt{(\omega_n^2 - \omega^2)^2 + (2\zeta\omega_n \omega)^2}} \\ &= \frac{1}{\sqrt{4\zeta^2 \bigl(\frac{\omega}{\omega_n}\bigr)^2 + \Bigl(1 - \bigl(\frac{\omega}{\omega_n}\bigr)^2\Bigr)^2}} \end{aligned}

At the corner frequency, we don’t have a constant drop of -3 dB like in the first-order case. Instead, the magnitude at ω=ωn\omega = \omega_n depends on the damping ratio ζ\zeta. This leads to the possibility of resonance.

Resonance phenomenon

To see whether there is a resonance peak, we can see if M(ω)M(\omega) reaches a local maximum for some ω>0\omega > 0. This happens when the denominator is minimized, which occurs when

ddω(4ζ2(ωωn)2+(1(ωωn)2)2)=0\frac{\dd }{\dd \omega} \Bigl(4\zeta^2 \bigl(\tfrac{\omega}{\omega_n}\bigr)^2 + \Bigl(1 - \bigl(\tfrac{\omega}{\omega_n}\bigr)^2\Bigr)^2\Bigr) = 0

Using the chain rule and simplifying, we obtain:

8ζ2(ωωn)1ωn+2(1(ωωn)2)(2(ωωn))1ωn=0    4ωn(ωωn)(2ζ21+(ωωn)2)=0\begin{aligned} 8\zeta^2\bigl(\tfrac{\omega}{\omega_n}\bigr) \tfrac{1}{\omega_n} + 2\Bigl(1-\bigl(\tfrac{\omega}{\omega_n}\bigr)^2\Bigr) \Bigl(-2\bigl(\tfrac{\omega}{\omega_n}\bigr)\Bigr) \tfrac{1}{\omega_n} = 0 \\ \implies \quad \tfrac{4}{\omega_n}\bigl(\tfrac{\omega}{\omega_n}\bigr) \Bigl(2\zeta^2 - 1 + \bigl(\tfrac{\omega}{\omega_n}\bigr)^2\Bigr) = 0 \end{aligned}

The solution ω=0\omega = 0 corresponds to the low-frequency extremum, which is not what we are interested in. The other solution satisfies

(ωωn)2=12ζ2\bigl(\tfrac{\omega}{\omega_n}\bigr)^2 = 1 - 2\zeta^2

This solution is only valid if 12ζ2>01-2\zeta^2 > 0 because the left-hand side must be positive, which means that ζ<120.707\zeta < \frac{1}{\sqrt{2}} \approx 0.707. In this case, the maximizing frequency (called the resonance frequency) is the solution of Eq. (15), which is ωr=ωn12ζ2\omega_r = \omega_n \sqrt{1 - 2\zeta^2}.

We can plug this back into the expression for M(ω)M(\omega) in Eq. (12) to find the peak height:

M(ωr)=14ζ2(12ζ2)+(1(12ζ2))2=14ζ2(12ζ2)+(2ζ2)2=14ζ2(1ζ2)=12ζ1ζ2\begin{aligned} M(\omega_r) &= \frac{1}{\sqrt{4\zeta^2 (1 - 2\zeta^2) + (1 - (1 - 2\zeta^2))^2}} \\ &= \frac{1}{\sqrt{4\zeta^2 (1 - 2\zeta^2) + (2\zeta^2)^2}} \\ &= \frac{1}{\sqrt{4\zeta^2 (1 - \zeta^2)}} \\ &= \frac{1}{2\zeta\sqrt{1-\zeta^2}} \end{aligned}

For very small ζ\zeta, the peak gain becomes very large, which is why we say that the system is “resonant”. In such cases, a useful approximation is to set ζ20\zeta^2 \approx 0 in the denominator, which gives M(ωr)12ζM(\omega_r) \approx \frac{1}{2\zeta}. Remember that to read this on a Bode plot, you need to convert this value of M(ωr)M(\omega_r) to decibels! Here is a plot showing the peak size and its approximation as a function of ζ\zeta:

Resonance peak magnitude as a function of damping ratio \zeta. We observe that the approximation is quite good for \zeta < 0.3.

Figure 6:Resonance peak magnitude as a function of damping ratio ζ\zeta. We observe that the approximation is quite good for ζ<0.3\zeta < 0.3.

Phase (second-order)

The phase of the frequency response is

ϕ(ω)=G(jω)=ωn2(jω)2+2ζωn(jω)+ωn2=((jω)2+2ζωn(jω)+ωn2)=[1(ωωn)2+2ζ(ωωn)j]\begin{aligned} \phi(\omega) = \angle G(j\omega) &= \angle \frac{\omega_n^2}{(j\omega)^2 + 2\zeta\omega_n (j\omega) + \omega_n^2} \\ &= -\angle \bigl((j\omega)^2 + 2\zeta\omega_n (j\omega) + \omega_n^2\bigr) \\ &= -\angle \left[ 1 - \bigl(\tfrac{\omega}{\omega_n}\bigr)^2 + 2\zeta\bigl(\tfrac{\omega}{\omega_n}\bigr)j \right] \end{aligned}

Again, we can look at low, medium, and high frequencies:

Just like the first-order case, the second-order case also exhibits point symmetry about the corner frequency. The main difference is that the transition between the low and high-frequency behavior gets steeper as ζ\zeta gets smaller. We wil see this in the Bode sketch below.

Bode sketch (second-order)

We can sketch the Bode magnitude by plotting the two asymptotes (low frequency constant and high-frequency slope) similarly to how we did for the first-order system, remembering that the roll-off is now -40 dB/decade instead of -20 dB/decade. For the resonance peak, as covered above:

For the phase plot, the shape is a similar point-symmetric S-curve to the first-order case, but the curve goes from 0° to -180° instead of -90°. The transition region gets steeper as ζ\zeta gets smaller. You can approximate it as three straight lines like in the first-order case, but this time the middle segment should range ±ζ\pm \zeta decades around the corner frequency ωn\omega_n instead of ±1\pm 1 decade. Here is an example for ζ=0.4\zeta=0.4:

Bode plot of a second-order system with \zeta=0.4. The asymptotes are shown in dashed lines, while the true plot is shown in solid lines.

Figure 7:Bode plot of a second-order system with ζ=0.4\zeta=0.4. The asymptotes are shown in dashed lines, while the true plot is shown in solid lines.

The dashed guidelines break at ±ζ\pm \zeta decades around the corner frequency ωn\omega_n, which means that the bend occurs ±0.4\pm 0.4 fraction of the distance to the next decade. For the magnitude plot, the two asymptotes always meet at ωn\omega_n regardless of ζ\zeta, but the resonance peak (if it exists) occurs at ωr\omega_r, which is slightly before ωn\omega_n.

Here is what happens for different values of ζ\zeta (dashed lines removed for clarity).

Bode plot of a second-order system G(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2} for different values of \zeta.

Figure 8:Bode plot of a second-order system G(s)=ωn2s2+2ζωns+ωn2G(s) = \frac{\omega_n^2}{s^2 + 2\zeta\omega_n s + \omega_n^2} for different values of ζ\zeta.

Second-order demo

The interactive demonstration below shows the frequency response of a second-order mass-spring-damper system. You can adjust mm, kk, and bb and the derived quantities ωn\omega_n and ζ\zeta are displayed. As with the first-order demo, you can change the input frequency and observe the output. Notice that as you increase the input frequency, the magnitude first increases as we approach resonance, and then decreases as we move past it. Phase lag also increases with frequency, up to 180°. Try decreasing the damping bb to see how the resonance peak becomes more pronounced and the phase transition gets steeper.

 

Summary


Test your knowledge

Solution to Exercise 1 #

The transfer function of the system is G(s)=1s2+s+4G(s) = \frac{1}{s^2 + s + 4}. This is a second-order system with gain K=0.25K=0.25, ωn=2\omega_n = 2, and ζ=0.25\zeta = 0.25. The frequency response is G(jω)=1(jω)2+jω+4=14ω2+jωG(j\omega) = \frac{1}{(j\omega)^2 + j\omega + 4} = \frac{1}{4-\omega^2 + j\omega }.

  1. For ω=1\omega = 1 rad/s, we have

    G(j)=11+j+4=13+j=3j10=0.30.1j\begin{aligned} G(j) &= \frac{1}{-1 + j + 4} = \frac{1}{3 + j} = \frac{3 - j}{10} = 0.3 - 0.1j \end{aligned}

    The magnitude is M=0.32+(0.1)2=0.10.316M = \sqrt{0.3^2 + (-0.1)^2} = \sqrt{0.1} \approx 0.316, and the phase is ϕ=atan(0.10.3)18.4°\phi = \atan\left(\frac{-0.1}{0.3}\right) \approx -18.4\degree. Therefore, M0.316 and ϕ18.4°\boxed{M \approx 0.316 \text{ and } \phi \approx -18.4\degree}

  2. The frequency that produces the largest value of MM is the resonance frequency ωr=ωn12ζ2=212(0.25)2=20.8751.871\omega_r = \omega_n \sqrt{1 - 2\zeta^2} = 2\sqrt{1 - 2(0.25)^2} = 2\sqrt{0.875} \approx 1.871 rad/s. The corresponding peak gain is

M(ωr)=12ζ1ζ2=10.50.93752.065M(\omega_r)=\frac{1}{2\zeta\sqrt{1-\zeta^2}}=\frac{1}{0.5\sqrt{0.9375}} \approx 2.065

Since the system has a DC gain of 0.25, the actual peak magnitude is 0.25×2.0650.5160.25 \times 2.065 \approx 0.516. Therefore, ωr=1.871 rad/s and M(ωr)0.516\boxed{\omega_r = 1.871 \text{ rad/s and } M(\omega_r) \approx 0.516}

Solution to Exercise 2 #

From the Bode plot, we can observe:

  • a -40 dB/decade high-frequency roll-off

  • a phase that goes from 0° to -180°

  • the characteristic shape of a second-order system with a resonance peak.

So the plot fits the shape of a second-order system.

The DC gain is -20 dB, which corresponds to a magnitude of 0.1. The corner frequency is roughly at ω=3\omega = 3 rad/s, and the peak height is approximately 6 dB above the DC gain, which corresponds to a peak magnitude 2. Using the approximation M(ωr)12ζ2M(\omega_r) \approx \frac{1}{2\zeta} \approx 2, we conclude that ζ0.25\zeta \approx 0.25. Combining these facts, we can estimate the transfer function as

G(s)=Kωn2s2+2ζωns+ωn2G(s) = \frac{K \omega_n^2}{s^2 + 2\zeta \omega_n s + \omega_n^2}

Substituting K=0.1K=0.1, ωn=3\omega_n = 3, and ζ=0.25\zeta = 0.25, we have

G(s)=0.9s2+1.5s+9\boxed{\begin{aligned} G(s) = \frac{0.9}{s^2 + 1.5 s + 9} \end{aligned}}