Bode plot
This articleneeds additional citations forverification.(December 2011) |
![](https://upload.wikimedia.org/wikipedia/commons/thumb/b/be/High-Pass_filter_Bode_Magnitude_and_Phase_plots.png/300px-High-Pass_filter_Bode_Magnitude_and_Phase_plots.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Low-Pass_filter_Bode_Magnitude_and_Phase_plots.png/300px-Low-Pass_filter_Bode_Magnitude_and_Phase_plots.png)
Inelectrical engineeringandcontrol theory,aBode plot/ˈboʊdi/is agraphof thefrequency responseof a system. It is usually a combination of aBode magnitude plot,expressing the magnitude (usually indecibels) of the frequency response, and aBode phase plot,expressing thephase shift.
As originally conceived byHendrik Wade Bodein the 1930s, the plot is anasymptoticapproximationof the frequency response,using straight line segments.[1]
Overview
[edit]Among his several important contributions tocircuit theoryandcontrol theory,engineerHendrik Wade Bode,while working atBell Labsin the 1930s, devised a simple but accurate method for graphinggainand phase-shift plots. These bear his name,Bode gain plotandBode phase plot."Bode" is often pronounced/ˈboʊdi/BOH-dee,although the Dutch pronunciation isDutch:[ˈboːdə]BOH-duh.[2][3]
Bode was faced with the problem of designing stableamplifierswithfeedbackfor use in telephone networks. He developed the graphical design technique of the Bode plots to show thegain marginandphase marginrequired to maintain stability under variations in circuit characteristics caused during manufacture or during operation.[4]The principles developed were applied to design problems ofservomechanismsand other feedback control systems. The Bode plot is an example of analysis in thefrequency domain.
Definition
[edit]The Bode plot for alinear, time-invariantsystem withtransfer function(being the complex frequency in theLaplace domain) consists of a magnitude plot and a phase plot.
TheBode magnitude plotis the graph of the functionof frequency(withbeing theimaginary unit). The-axis of the magnitude plot is logarithmic and the magnitude is given indecibels,i.e., a value for the magnitudeis plotted on the axis at.
TheBode phase plotis the graph of thephase,commonly expressed in degrees, of the transfer functionas a function of.The phase is plotted on the same logarithmic-axis as the magnitude plot, but the value for the phase is plotted on a linear vertical axis.
Frequency response
[edit]This section illustrates that a Bode plot is a visualization of the frequency response of a system.
Consider alinear, time-invariantsystem with transfer function.Assume that the system is subject to a sinusoidal input with frequency,
that is applied persistently, i.e. from a timeto a time.The response will be of the form
i.e., also a sinusoidal signal with amplitudeshifted by a phasewith respect to the input.
It can be shown[5]that the magnitude of the response is
(1) |
and that the phase shift is
(2) |
In summary, subjected to an input with frequency,the system responds at the same frequency with an output that is amplified by a factorand phase-shifted by.These quantities, thus, characterize the frequency response and are shown in the Bode plot.
Rules for handmade Bode plot
[edit]For many practical problems, the detailed Bode plots can be approximated with straight-line segments that areasymptotesof the precise response. The effect of each of the terms of a multiple elementtransfer functioncan be approximated by a set of straight lines on a Bode plot. This allows a graphical solution of the overall frequency response function. Before widespread availability of digital computers, graphical methods were extensively used to reduce the need for tedious calculation; a graphical solution could be used to identify feasible ranges of parameters for a new design.
The premise of a Bode plot is that one can consider the log of a function in the form
as a sum of the logs of itszeros and poles:
This idea is used explicitly in the method for drawing phase diagrams. The method for drawing amplitude plots implicitly uses this idea, but since the log of the amplitude of each pole or zero always starts at zero and only has one asymptote change (the straight lines), the method can be simplified.
Straight-line amplitude plot
[edit]Amplitude decibels is usually done usingto define decibels. Given a transfer function in the form
whereandare constants,,,andis the transfer function:
- At every value ofswhere(a zero),increasethe slope of the line byperdecade.
- At every value ofswhere(a pole),decreasethe slope of the line byper decade.
- The initial value of the graph depends on the boundaries. The initial point is found by putting the initial angular frequencyinto the function and finding.
- The initial slope of the function at the initial value depends on the number and order of zeros and poles that are at values below the initial value, and is found using the first two rules.
To handle irreducible 2nd-order polynomials,can, in many cases, be approximated as.
Note that zeros and poles happen whenisequal toa certainor.This is because the function in question is the magnitude of,and since it is a complex function,.Thus at any place where there is a zero or pole involving the term,the magnitude of that term is.
Corrected amplitude plot
[edit]To correct a straight-line amplitude plot:
- At every zero, put a pointabovethe line.
- At every pole, put a pointbelowthe line.
- Draw a smooth curve through those points using the straight lines as asymptotes (lines which the curve approaches).
Note that this correction method does not incorporate how to handle complex values ofor.In the case of an irreducible polynomial, the best way to correct the plot is to actually calculate the magnitude of the transfer function at the pole or zero corresponding to the irreducible polynomial, and put that dot over or under the line at that pole or zero.
Straight-line phase plot
[edit]Given a transfer function in the same form as above,
the idea is to draw separate plots for each pole and zero, then add them up. The actual phase curve is given by
To draw the phase plot, foreachpole and zero:
- Ifis positive, start line (with zero slope) at 0°.
- Ifis negative, start line (with zero slope) at −180°.
- If the sum of the number of unstable zeros and poles is odd, add 180° to that basis.
- At every(for stable zeros),increasethe slope bydegrees per decade, beginning one decade before(e.g.,).
- At every(for stable poles),decreasethe slope bydegrees per decade, beginning one decade before(e.g.,).
- "Unstable" (right half-plane) poles and zeros () have opposite behavior.
- Flatten the slope again when the phase has changed bydegrees (for a zero) ordegrees (for a pole).
- After plotting one line for each pole or zero, add the lines together to obtain the final phase plot; that is, the final phase plot is the superposition of each earlier phase plot.
Example
[edit]To create a straight-line plot for a first-order (one-pole) low-pass filter, one considers the normalized form of the transfer function in terms of the angular frequency:
The Bode plot is shown in Figure 1(b) above, and construction of the straight-line approximation is discussed next.
Magnitude plot
[edit]The magnitude (indecibels) of the transfer function above (normalized and converted to angular-frequency form), given by the decibel gain expression:
Then plotted versus input frequencyon a logarithmic scale, can be approximated bytwo lines,forming the asymptotic (approximate) magnitude Bode plot of the transfer function:
- The first line for angular frequencies belowis a horizontal line at 0 dB, since at low frequencies theterm is small and can be neglected, making the decibel gain equation above equal to zero.
- The second line for angular frequencies aboveis a line with a slope of −20 dB per decade, since at high frequencies theterm dominates, and the decibel gain expression above simplifies to,which is a straight line with a slope of −20 dB per decade.
These two lines meet at thecorner frequency.From the plot, it can be seen that for frequencies well below the corner frequency, the circuit has an attenuation of 0 dB, corresponding to a unity pass-band gain, i.e. the amplitude of the filter output equals the amplitude of the input. Frequencies above the corner frequency are attenuated – the higher the frequency, the higher theattenuation.
Phase plot
[edit]The phase Bode plot is obtained by plotting the phase angle of the transfer function given by
versus,whereandare the input and cutoff angular frequencies respectively. For input frequencies much lower than corner, the ratiois small, and therefore the phase angle is close to zero. As the ratio increases, the absolute value of the phase increases and becomes −45° when.As the ratio increases for input frequencies much greater than the corner frequency, the phase angle asymptotically approaches −90°. The frequency scale for the phase plot is logarithmic.
Normalized plot
[edit]The horizontal frequency axis, in both the magnitude and phase plots, can be replaced by the normalized (nondimensional) frequency ratio.In such a case the plot is said to be normalized, and units of the frequencies are no longer used, since all input frequencies are now expressed as multiples of the cutoff frequency.
An example with zero and pole
[edit]Figures 2-5 further illustrate construction of Bode plots. This example with both a pole and a zero shows how to use superposition. To begin, the components are presented separately.
Figure 2 shows the Bode magnitude plot for a zero and a low-pass pole, and compares the two with the Bode straight line plots. The straight-line plots are horizontal up to the pole (zero) location and then drop (rise) at 20 dB/decade. The second Figure 3 does the same for the phase. The phase plots are horizontal up to a frequency factor of ten below the pole (zero) location and then drop (rise) at 45°/decade until the frequency is ten times higher than the pole (zero) location. The plots then are again horizontal at higher frequencies at a final, total phase change of 90°.
Figure 4 and Figure 5 show how superposition (simple addition) of a pole and zero plot is done. The Bode straight line plots again are compared with the exact plots. The zero has been moved to higher frequency than the pole to make a more interesting example. Notice in Figure 4 that the 20 dB/decade drop of the pole is arrested by the 20 dB/decade rise of the zero resulting in a horizontal magnitude plot for frequencies above the zero location. Notice in Figure 5 in the phase plot that the straight-line approximation is pretty approximate in the region where both pole and zero affect the phase. Notice also in Figure 5 that the range of frequencies where the phase changes in the straight line plot is limited to frequencies a factor of ten above and below the pole (zero) location. Where the phase of the pole and the zero both are present, the straight-line phase plot is horizontal because the 45°/decade drop of the pole is arrested by the overlapping 45°/decade rise of the zero in the limited range of frequencies where both are active contributors to the phase.
- Example with pole and zero
-
Figure 2: Bode magnitude plot for zero and low-pass pole; curves labeled "Bode" are the straight-line Bode plots
-
Figure 3: Bode phase plot for zero and low-pass pole; curves labeled "Bode" are the straight-line Bode plots
-
Figure 4: Bode magnitude plot for pole-zero combination; the location of the zero is ten times higher than in Figures 2 and 3; curves labeled "Bode" are the straight-line Bode plots
-
Figure 5: Bode phase plot for pole-zero combination; the location of the zero is ten times higher than in Figures 2 and 3; curves labeled "Bode" are the straight-line Bode plots
Gain margin and phase margin
[edit]Bode plots are used to assess the stability ofnegative-feedback amplifiersby finding the gain andphase marginsof an amplifier. The notion of gain and phase margin is based upon the gain expression for a negative feedback amplifier given by
whereAFBis the gain of the amplifier with feedback (theclosed-loop gain),βis thefeedback factor,andAOLis the gain without feedback (theopen-loop gain). The gainAOLis a complex function of frequency, with both magnitude and phase.[note 1]Examination of this relation shows the possibility of infinite gain (interpreted as instability) if the product βAOL= −1 (that is, the magnitude of βAOLis unity and its phase is −180°, the so-calledBarkhausen stability criterion). Bode plots are used to determine just how close an amplifier comes to satisfying this condition.
Key to this determination are two frequencies. The first, labeled here asf180,is the frequency where the open-loop gain flips sign. The second, labeled heref0 dB,is the frequency where the magnitude of the product |βAOL| = 1 = 0 dB. That is, frequencyf180is determined by the condition
where vertical bars denote themagnitude of a complex number,and frequencyf0 dBis determined by the condition
One measure of proximity to instability is thegain margin.The Bode phase plot locates the frequency where the phase of βAOLreaches −180°, denoted here as frequencyf180.Using this frequency, the Bode magnitude plot finds the magnitude of βAOL.If |βAOL|180≥ 1, the amplifier is unstable, as mentioned. If |βAOL|180< 1, instability does not occur, and the separation in dB of the magnitude of |βAOL|180from |βAOL| = 1 is called thegain margin.Because a magnitude of 1 is 0 dB, the gain margin is simply one of the equivalent forms:.
Another equivalent measure of proximity to instability is thephase margin.The Bode magnitude plot locates the frequency where the magnitude of |βAOL| reaches unity, denoted here as frequencyf0 dB.Using this frequency, the Bode phase plot finds the phase of βAOL.If the phase of βAOL(f0 dB) > −180°, the instability condition cannot be met at any frequency (because its magnitude is going to be < 1 whenf=f180), and the distance of the phase atf0 dBin degrees above −180° is called thephase margin.
If a simpleyesornoon the stability issue is all that is needed, the amplifier is stable iff0 dB<f180.This criterion is sufficient to predict stability only for amplifiers satisfying some restrictions on their pole and zero positions (minimum phasesystems). Although these restrictions usually are met, if they are not, then another method must be used, such as theNyquist plot.[6][7] Optimal gain and phase margins may be computed usingNevanlinna–Pick interpolationtheory.[8]
Examples using Bode plots
[edit]Figures 6 and 7 illustrate the gain behavior and terminology. For a three-pole amplifier, Figure 6 compares the Bode plot for the gain without feedback (theopen-loopgain)AOLwith the gain with feedbackAFB(theclosed-loopgain). Seenegative feedback amplifierfor more detail.
In this example,AOL= 100 dB at low frequencies, and 1 / β = 58 dB. At low frequencies,AFB≈ 58 dB as well.
Because the open-loop gainAOLis plotted and not the product βAOL,the conditionAOL= 1 / β decidesf0 dB.The feedback gain at low frequencies and for largeAOLisAFB≈ 1 / β (look at the formula for the feedback gain at the beginning of this section for the case of large gainAOL), so an equivalent way to findf0 dBis to look where the feedback gain intersects the open-loop gain. (Frequencyf0 dBis needed later to find the phase margin.)
Near this crossover of the two gains atf0 dB,the Barkhausen criteria are almost satisfied in this example, and the feedback amplifier exhibits a massive peak in gain (it would be infinity if βAOL= −1). Beyond the unity gain frequencyf0 dB,the open-loop gain is sufficiently small thatAFB≈AOL(examine the formula at the beginning of this section for the case of smallAOL).
Figure 7 shows the corresponding phase comparison: the phase of the feedback amplifier is nearly zero out to the frequencyf180where the open-loop gain has a phase of −180°. In this vicinity, the phase of the feedback amplifier plunges abruptly downward to become almost the same as the phase of the open-loop amplifier. (Recall,AFB≈AOLfor smallAOL.)
Comparing the labeled points in Figure 6 and Figure 7, it is seen that the unity gain frequencyf0 dBand the phase-flip frequencyf180are very nearly equal in this amplifier,f180≈f0 dB≈ 3.332 kHz, which means the gain margin and phase margin are nearly zero. The amplifier is borderline stable.
Figures 8 and 9 illustrate the gain margin and phase margin for a different amount of feedback β. The feedback factor is chosen smaller than in Figure 6 or 7, moving the condition | βAOL| = 1 to lower frequency. In this example, 1 / β = 77 dB, and at low frequenciesAFB≈ 77 dB as well.
Figure 8 shows the gain plot. From Figure 8, the intersection of 1 / β andAOLoccurs atf0 dB= 1 kHz. Notice that the peak in the gainAFBnearf0 dBis almost gone.[note 2][9]
Figure 9 is the phase plot. Using the value off0 dB= 1 kHz found above from the magnitude plot of Figure 8, the open-loop phase atf0 dBis −135°, which is a phase margin of 45° above −180°.
Using Figure 9, for a phase of −180° the value off180= 3.332 kHz (the same result as found earlier, of course[note 3]). The open-loop gain from Figure 8 atf180is 58 dB, and 1 / β = 77 dB, so the gain margin is 19 dB.
Stability is not the sole criterion for amplifier response, and in many applications a more stringent demand than stability is goodstep response.As arule of thumb,good step response requires a phase margin of at least 45°, and often a margin of over 70° is advocated, particularly where component variation due to manufacturing tolerances is an issue.[9]See also the discussion of phase margin in thestep responsearticle.
- Examples
-
Figure 6: Gain of feedback amplifierAFBin dB and corresponding open-loop amplifierAOL.Parameter 1/β = 58 dB, and at low frequenciesAFB≈ 58 dB as well. The gain margin in this amplifier is nearly zero because | βAOL| = 1 occurs at almostf=f180°.
-
Figure 7: Phase of feedback amplifier°AFBin degrees and corresponding open-loop amplifier°AOL.The phase margin in this amplifier is nearly zero because the phase-flip occurs at almost the unity gain frequencyf=f0 dBwhere | βAOL| = 1.
-
Figure 8: Gain of feedback amplifierAFBin dB and corresponding open-loop amplifierAOL.In this example, 1 / β = 77 dB. The gain margin in this amplifier is 19 dB.
-
Figure 9: Phase of feedback amplifierAFBin degrees and corresponding open-loop amplifierAOL.The phase margin in this amplifier is 45°.
Bode plotter
[edit]![](https://upload.wikimedia.org/wikipedia/commons/6/61/Bodeplot.png)
The Bode plotter is an electronic instrument resembling anoscilloscope,which produces a Bode diagram, or a graph, of a circuit's voltage gain or phase shift plotted againstfrequencyin a feedback control system or a filter. An example of this is shown in Figure 10. It is extremely useful for analyzing and testing filters and the stability offeedbackcontrol systems, through the measurement of corner (cutoff) frequencies and gain and phase margins.
This is identical to the function performed by avector network analyzer,but the network analyzer is typically used at much higher frequencies.
For education and research purposes, plotting Bode diagrams for given transfer functions facilitates better understanding and getting faster results (see external links).
Related plots
[edit]Two related plots that display the same data in differentcoordinate systemsare theNyquist plotand theNichols plot.These areparametric plots,with frequency as the input and magnitude and phase of the frequency response as the output. The Nyquist plot displays these inpolar coordinates,with magnitude mapping to radius and phase to argument (angle). The Nichols plot displays these in rectangular coordinates, on thelog scale.
-
Figure 11: ANyquist plot.
-
Figure 12: ANichols plotof the same response from Figure 11.
See also
[edit]- Analog signal processing
- Phase margin
- Bode's sensitivity integral
- Bode's magnitude (gain)–phase relation
- Electrochemical impedance spectroscopy
Notes
[edit]- ^Ordinarily, as frequency increases, the magnitude of the gain drops, and the phase becomes more negative, although these are only trends and may be reversed in particular frequency ranges. Unusual gain behavior can render the concepts of gain and phase margin inapplicable. Then other methods such as theNyquist plothave to be used to assess stability.
- ^The critical amount of feedback where the peak in the gainjustdisappears altogether is themaximally flatorButterworthdesign.
- ^The frequency where the open-loop gain flips signf180does not change with a change in feedback factor; it is a property of the open-loop gain. The value of the gain atf180also does not change with a change in β. Therefore, we could use the previous values from Figures 6 and 7. However, for clarity the procedure is described using only Figures 8 and 9.
References
[edit]- ^R. K. Rao Yarlagadda (2010).Analog and Digital Signals and Systems.Springer Science & Business Media. p.243.ISBN978-1-4419-0034-0.
- ^Van Valkenburg, M. E. University of Illinois at Urbana-Champaign, "In memoriam: Hendrik W. Bode (1905-1982)",IEEETransactions on Automatic Control, Vol. AC-29, No 3., March 1984, pp. 193–194. Quote: "Something should be said about his name. To his colleagues at Bell Laboratories and the generations of engineers that have followed, the pronunciation is boh-dee. The Bode family preferred that the original Dutch be used as boh-dah."
- ^"Vertaling van postbode, NL>EN".mijnwoordenboek.nl.Retrieved2013-10-07.
- ^David A. MindellBetween Human and Machine: Feedback, Control, and Computing Before CyberneticsJHU Press, 2004,ISBN0801880572,pp. 127–131.
- ^Skogestad, Sigurd; Postlewaite, Ian (2005).Multivariable Feedback Control.Chichester, West Sussex, England: John Wiley & Sons, Ltd.ISBN0-470-01167-X.
- ^ Thomas H. Lee (2004). "§14.6. Gain and Phase Margins as Stability Measures".The design of CMOS radio-frequency integrated circuits(2nd ed.). Cambridge UK: Cambridge University Press. pp. 451–453.ISBN0-521-83539-9.
- ^ William S. Levine (1996). "§10.1. Specifications of Control System".The control handbook: the electrical engineering handbook series(2nd ed.). Boca Raton FL: CRC Press/IEEE Press. p. 163.ISBN0-8493-8570-9.
- ^ Allen Tannenbaum(February 1981).Invariance and Systems Theory: Algebraic and Geometric Aspects.New York, NY: Springer-Verlag.ISBN9783540105657.
- ^ab Willy M C Sansen (2006).Analog design essentials.Dordrecht, The Netherlands: Springer. pp. 157–163.ISBN0-387-25746-2.
External links
[edit]![](https://upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png)
- How to draw piecewise asymptotic Bode plots
- Gnuplot code for generating Bode plot:DIN-A4 printing template (pdf)