# Exploring bode plots for higher-order systems

From the series: Understanding Bode Plots

Learn how to build Bode plots for first-order systems in this MATLAB^{®} Tech Talk by Carlos Osorio. A Bode plot describes the frequency response of a dynamic system and displays the magnitude and phase of the system response as a function of frequency in a logarithmic scale. You will learn how to interactively construct transfer functions of second and higher-order systems and study the frequency response of these systems using Bode plots.

**Published:
27 Mar 2013**

So far, we have looked at the asymptotic behavior of first order constructs, like pure integrators or single poles and zeros. Once you start working with typical dynamic systems, it is very likely that you will have to deal with higher order polynomial expressions. The trick to dealing with those is remembering that any polynomial, no matter the order, can always be factored into a bunch of first order constructs which will correspond to the real roots, and a number of second order constructs which will correspond to complex conjugate pairs of roots.

Typical examples of second order systems are mass spring dampers and RLC circuits. Both of this, depending on the ratio of either the damping to the mass or the resistance to the inductance, will have a pair of complex conjugate roots. In general, any complex conjugate pole pair can be written in a standard second order transfer function form like this, where w_n is called the natural frequency and zeta is called the damping ratio.

Notice that for our couple of examples, the natural frequency is equal to the square root of k/m for our basic mechanical system and square root of 1/LC for our basic electrical system. Anyways, if we calculate the roots of that quadratic polynomial using the standard formula-- minus b plus minus square root of whatever-- we find that the complex conjugate pair of roots will have this form. Note that these roots will only be a complex conjugate pair as long as the damping ratio zeta is less than 1. Anything greater than 1, and both roots will become real numbers, which means that the system will behave as the product of two first order poles.

As we did before to calculate the frequency response, we replace s by jw in the transfer function. And to do our asymptotic approximations, we will look at the tendencies before and after w_n. When the frequency w is much less than the natural frequency, the +1 will dominate the denominator. So both the magnitude and the phase will be approximately 0. When the frequency w matches the natural frequency, that second order term becomes -1 and cancels with the +1, and the middle term becomes a pure imaginary constant with a magnitude of 1/(2*zeta) and a phase of -90 degrees because the j is in the denominator, so G falls on the negative imaginary axis.

Finally, when the frequency w is much larger than the natural frequency the quadratic term will dominate. When taking the log, the square will come out and multiply the 20, so the magnitude will asymptotically approach a straight line with a slope of -40 dBs per decade. The phase will go to -180 degrees because G will now fall on the negative real axis.

Notice that the actual resonant peak falls a little to the left of w_n because, if you look at the imaginary part of the poles, the frequency component is w_n multiplied by square root of (1-zeta)^2. This adjusted value is what is called a damped natural frequency. Only when the damping ratio zeta approaches 0, the damped natural frequency will approach w_n. And note that, in that case, the magnitude of the resonant peak will go towards infinity.

A small value of the damping ratio means a higher and sharper resonant peak as well as a sharper shift in the phase. You can see that as we increase zeta, the magnitude of the resonant peak comes down and the phase transition becomes smoother. Here I want to highlight the damping ratio of 0.707, ((2)^1/2)/2, which is normally known as the critical damping. This damping makes the magnitude -3 dBs at the natural frequency. Also note that for zeta equal to 1 the imaginary part of the poles goes to 0, and our second order system becomes a product of two single real poles located at w_n.

At this point let me go back to our interactive design tool because there are a couple of additional things I want to highlight. First, let me bring in a pair of complex conjugate poles, and I am going to place them close to 10 radians per second. Let me just make sure that I set the natural frequency to exactly 10.

I notice that, because I am starting with a damping ratio of 1, my polynomial is the product of two real roots. As soon as I change the damping to any value lower than 1, let's say 0.5, my roots become a pair of complex conjugate values. Notice that for this particular case, the magnitude value of the natural frequency equal to 1/(2*zeta) becomes 1/1, which is 0 in dBs, so the crossover will occur at the natural frequency.

If I choose a smaller damping ratio, what you're going to see is a sharper and higher magnitude peak. In this particular case, I picked 0.05, which means 1/(2*zeta) will be 10. Log of 10 is 1, times 20 is 20 dBs. If I change the natural frequency, all I am doing is shifting the location of that peak.

Now, if I want to increase or decrease the gain because of the properties of logarithms, we're just superimposing the effects of these two constructs on one graph. In this case, low of a gain of 10 is 1, times 20 is 20 dBs. So all that has happened is the entire magnitude trace has been shifted up by 20. Notice that the phase does not get affected at all.

Let me add a zero now, at around 10 radians per second. Let me just make sure that my 0 is exactly at 10 radians. And what has happened now is that -40 dB slope that I had originally has been shifted up by the +20 dBs per decade of the 0. And the phase that was -180 climbs up to -90. Similarly, if I add a pole, let's say at 100 radians per second-- again, let me make sure it is actually at 100 -- now the -40 dBs per decade became -20 at that 0, and then goes back to -40 again after the new pole. So, using this concept of superposition I can easily construct any transfer function that I am interested in studying. All I need to do is break down or factor the transfer function into smaller constructs, and then graphically add all of those traces together.

Understanding this simple concept can be quite powerful because it allows us to get a good idea of the primary dynamics of our system just by observing the magnitude and phase traces in a Bode diagram.

Featured Product

#### Control System Toolbox

Sélectionner un site web

Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .

Vous pouvez également sélectionner un site web dans la liste suivante :

Comment optimiser les performances du site

Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.

Amériques

- América Latina (Español)
- Canada (English)
- United States (English)

Europe

- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)

- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)

Asie-Pacifique

- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)