Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Bode plot
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Graph of the frequency response of a control system}} {{refimprove|date=December 2011}} [[File:High-Pass filter Bode Magnitude and Phase plots.png|class=skin-invert-image|thumb|326x326px|Figure 1A: [[High-pass filter]] (1st-order, one-pole) Bode magnitude plot (top) and Bode phase plot (bottom). The red data curve is approximated by the straight black line.]] [[File:Low-Pass filter Bode Magnitude and Phase plots.png|class=skin-invert-image|thumb|331x331px|Figure 1B: [[Low-pass filter]] (1st-order, one-pole) Bode magnitude plot (top) and Bode phase plot (bottom). The red data curve is approximated by the straight black line.]] In [[electrical engineering]] and [[control theory]], a '''Bode plot''' is a [[plot (graphics)|graph]] of the [[frequency response]] of a system. It is usually a combination of a '''Bode magnitude plot''', expressing the magnitude (usually in [[decibel]]s) of the frequency response, and a '''Bode phase plot''', expressing the [[phase (waves)|phase shift]]. As originally conceived by [[Hendrik Wade Bode]] in the 1930s, the plot is an [[asymptotic]] [[approximation]] of the frequency response, [[piecewise linear function|using straight line segments]].<ref name="Yarlagadda2010">{{cite book|author=R. K. Rao Yarlagadda|title=Analog and Digital Signals and Systems|url=https://archive.org/details/analogdigitalsig00yarl_849|url-access=limited|year=2010|publisher=Springer Science & Business Media|isbn=978-1-4419-0034-0|page=[https://archive.org/details/analogdigitalsig00yarl_849/page/n271 243]}}</ref> == Overview == Among his several important contributions to [[Network analysis (electrical circuits)|circuit theory]] and [[control theory]], engineer [[Hendrik Wade Bode]], while working at [[Bell Labs]] in the 1930s, devised a simple but accurate method for graphing [[Gain (electronics)|gain]] and phase-shift plots. These bear his name, ''Bode gain plot'' and ''Bode phase plot''. "Bode" is often pronounced in English as {{IPAc-en|ˈ|b|oʊ|d|i}} {{respell|BOH|dee}}, whereas in Dutch it is usually {{IPA|nl|ˈboːdə|}}, closer to English {{IPAc-en|ˈ|b|oʊ|d|ə}} {{respell|BOH|də}}, which is preferred by his family, but less common among researchers.<ref name="Van Valkenburg">Van Valkenburg, M. E. University of Illinois at Urbana-Champaign, "In memoriam: Hendrik W. Bode (1905-1982)", [[IEEE]] Transactions 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."</ref><ref>{{cite web |title=Vertaling van postbode, NL>EN |url= http://www.mijnwoordenboek.nl/vertalen.php?s1=&s2=NL+%3E+EN&s3=NL+%3E+EN&woord=postbode |publisher=mijnwoordenboek.nl |access-date=2013-10-07}}</ref><!--Should this be moved to the beginning of the page? I have no preference, but pronounciation information is usually listed at the beginning of an article.--> Bode was faced with the problem of designing stable [[amplifier]]s with [[feedback]] for use in telephone networks. He developed the graphical design technique of the Bode plots to show the [[gain margin]] and [[phase margin]] required to maintain stability under variations in circuit characteristics caused during manufacture or during operation.<ref>David A. Mindell ''Between Human and Machine: Feedback, Control, and Computing Before Cybernetics'' JHU Press, 2004, {{ISBN|0801880572}}, pp. 127–131.</ref> The principles developed were applied to design problems of [[servomechanism]]s and other feedback control systems. The Bode plot is an example of analysis in the [[frequency domain]]. == Definition == The Bode plot for a [[LTI system theory|linear, time-invariant]] system with [[transfer function]] <math> H(s) </math> (<math>s</math> being the complex frequency in the [[Laplace domain]]) consists of a magnitude plot and a phase plot. The '''Bode magnitude plot''' is the graph of the function <math> |H(s=j \omega)|</math> of frequency <math> \omega</math> (with <math>j</math> being the [[imaginary unit]]). The <math> \omega</math>-axis of the magnitude plot is logarithmic and the magnitude is given in [[decibel]]s, i.e., a value for the magnitude <math>|H|</math> is plotted on the axis at <math>20 \log_{10} |H|</math>. The '''Bode phase plot''' is the graph of the [[Argument (complex analysis)|phase]], commonly expressed in degrees, of the [[Argument (complex analysis)|argument function]] <math> \arg \left( H(s =j \omega) \right)</math> as a function of <math>\omega</math>. The phase is plotted on the same logarithmic <math>\omega</math>-axis as the magnitude plot, but the value for the phase is plotted on a linear vertical axis. ==Frequency response == This section illustrates that a Bode plot is a visualization of the frequency response of a system. Consider a [[LTI system theory|linear, time-invariant]] system with transfer function <math>H(s)</math>. Assume that the system is subject to a sinusoidal input with frequency <math>\omega</math>, :<math>u(t) = \sin (\omega t),</math> that is applied persistently, i.e. from a time <math>-\infty</math> to a time <math>t</math>. The response will be of the form :<math>y(t) = y_0 \sin (\omega t + \varphi),</math> i.e., also a sinusoidal signal with amplitude <math>y_0</math> shifted by a phase <math>\varphi</math> with respect to the input. It can be shown<ref name=multivar_fb_control>{{cite book|last1=Skogestad|first1=Sigurd|last2=Postlewaite|first2=Ian|title=Multivariable Feedback Control|date=2005|publisher=John Wiley & Sons, Ltd.|location=Chichester, West Sussex, England|isbn=0-470-01167-X}}</ref> that the magnitude of the response is {{NumBlk|:|<math>y_0 = |H(\mathrm{j} \omega)|</math>|{{EquationRef|1}}}} and that the phase shift is {{NumBlk|:|<math>\varphi = \arg H(\mathrm{j} \omega).</math>|{{EquationRef|2}}}} In summary, subjected to an input with frequency <math>\omega</math>, the system responds at the same frequency with an output that is amplified by a factor <math>|H(\mathrm{j} \omega)|</math> and phase-shifted by <math>\arg H(\mathrm{j} \omega)</math>. These quantities, thus, characterize the frequency response and are shown in the Bode plot. ==Rules for handmade Bode plot== For many practical problems, the detailed Bode plots can be approximated with straight-line segments that are [[asymptote]]s of the precise response. The effect of each of the terms of a multiple element [[transfer function]] can 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 :<math>f(x) = A \prod (x - c_n)^{a_n}</math> as a sum of the logs of its [[zeros and poles]]: :<math>\log(f(x)) = \log(A) + \sum a_n \log(x - c_n).</math> 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=== Amplitude decibels is usually done using <math>\text{dB} = 20 \log_{10}(X)</math> to define decibels. Given a transfer function in the form :<math>H(s) = A \prod \frac{(s - x_n)^{a_n}}{(s - y_n)^{b_n}},</math> where <math>x_n</math> and <math>y_n</math> are constants, <math>s = \mathrm{j}\omega</math>, <math>a_n, b_n > 0</math>, and <math>H</math> is the transfer function: * At every value of ''s'' where <math>\omega = x_n</math> (a zero), '''increase''' the slope of the line by <math>20 a_n\ \text{dB}</math> per [[Decade (log scale)|decade]]. * At every value of ''s'' where <math>\omega = y_n</math> (a pole), '''decrease''' the slope of the line by <math>20 b_n\ \text{dB}</math> per decade. * The initial value of the graph depends on the boundaries. The initial point is found by putting the initial angular frequency <math>\omega</math> into the function and finding {{nowrap|<math>|H(\mathrm{j}\omega)|</math>.}} * 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, <math>ax^2 + bx + c</math> can, in many cases, be approximated as <math>(\sqrt{a}x + \sqrt{c})^2 </math>. Note that zeros and poles happen when <math>\omega</math> is ''equal to'' a certain <math>x_n</math> or <math>y_n</math>. This is because the function in question is the magnitude of <math>H(\mathrm{j}\omega)</math>, and since it is a complex function, <math>|H(\mathrm{j}\omega)| = \sqrt{H \cdot H^*}</math>. Thus at any place where there is a zero or pole involving the term <math>(s + x_n)</math>, the magnitude of that term is <math>\sqrt{(x_n + \mathrm{j}\omega)(x_n - \mathrm{j}\omega)} = \sqrt{x_n^2 + \omega^2}</math>. ===Corrected amplitude plot=== To correct a straight-line amplitude plot: * At every zero, put a point <math>3 a_n\ \text{dB}</math> '''above''' the line. * At every pole, put a point <math>3 b_n\ \text{dB}</math> '''below''' the 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 of <math>x_n</math> or <math>y_n</math>. 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 === Given a transfer function in the same form as above, :<math>H(s) = A \prod \frac{(s - x_n)^{a_n}}{(s - y_n)^{b_n}},</math> the idea is to draw separate plots for each pole and zero, then add them up. The actual phase curve is given by :<math>\varphi(s) = -\arctan \frac{\operatorname{Im}[H(s)]}{\operatorname{Re}[H(s)]}.</math> To draw the phase plot, for ''each'' pole and zero: * If <math>A</math> is positive, start line (with zero slope) at 0°. * If <math>A</math> is 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 <math>\omega = |x_n|</math> (for stable zeros <math>-\operatorname{Re}(z) < 0</math>), ''increase'' the slope by <math>45 a_n</math> degrees per decade, beginning one decade before <math>\omega = |x_n|</math> (e.g., <math>|x_n|/10</math>). * At every <math>\omega = |y_n|</math> (for stable poles <math>-\operatorname{Re}(p) < 0</math>), ''decrease'' the slope by <math>45 b_n</math> degrees per decade, beginning one decade before <math>\omega = |y_n|</math> (e.g., <math>|y_n|/10</math>). * "Unstable" (right half-plane) poles and zeros (<math>\operatorname{Re}(s) > 0</math>) have opposite behavior. * Flatten the slope again when the phase has changed by <math>90 a_n</math> degrees (for a zero) or <math>90 b_n</math> degrees (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== 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: :<math>H_{\text{lp}}(\mathrm{j} \omega) = \frac{1}{1 + \mathrm{j} \frac{\omega}{\omega_\text{c}}}.</math> The Bode plot is shown in Figure 1(b) above, and construction of the straight-line approximation is discussed next. ===Magnitude plot=== The magnitude (in [[decibel]]s) of the transfer function above (normalized and converted to angular-frequency form), given by the decibel gain expression <math>A_\text{vdB}</math>: :<math>\begin{align} A_\text{vdB} &= 20 \log|H_{\text{lp}}(\mathrm{j}\omega)| \\ &= 20 \log \frac{1}{\left| 1 + \mathrm{j} \frac{\omega}{\omega_\text{c}} \right|} \\ &= -20 \log \left| 1 + \mathrm{j} \frac{\omega}{\omega_\text{c}} \right| \\ &= -10 \log \left( 1 + \frac{\omega^2}{\omega_\text{c}^2} \right). \end{align}</math> Then plotted versus input frequency <math>\omega</math> on a logarithmic scale, can be approximated by ''two lines'', forming the asymptotic (approximate) magnitude Bode plot of the transfer function: * The first line for angular frequencies below <math>\omega_\text{c}</math> is a horizontal line at 0 dB, since at low frequencies the <math>\omega/\omega_\text{c}</math> term is small and can be neglected, making the decibel gain equation above equal to zero. * The second line for angular frequencies above <math>\omega_\text{c}</math> is a line with a slope of −20 dB per decade, since at high frequencies the <math>\omega/\omega_\text{c}</math> term dominates, and the decibel gain expression above simplifies to <math>-20 \log(\omega/\omega_\text{c})</math>, which is a straight line with a slope of −20 dB per decade. These two lines meet at the [[corner frequency]] <math>\omega_\text{c}</math>. 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{{snd}} the higher the frequency, the higher the [[attenuation]]. ===Phase plot=== The phase Bode plot is obtained by plotting the phase angle of the transfer function given by : <math>\arg H_{\text{lp}}(\mathrm{j} \omega) = -\tan^{-1}\frac{\omega}{\omega_\text{c}}</math> versus <math>\omega</math>, where <math>\omega</math> and <math>\omega_\text{c}</math> are the input and cutoff angular frequencies respectively. For input frequencies much lower than corner, the ratio <math>\omega/\omega_\text{c}</math> is 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 <math>\omega = \omega_\text{c}</math>. 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=== The horizontal frequency axis, in both the magnitude and phase plots, can be replaced by the normalized (nondimensional) frequency ratio <math>\omega/\omega_\text{c}</math>. 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 <math>\omega_\text{c}</math>. ==An example with zero and pole == 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. <gallery caption="Example with pole and zero" widths="300px" perrow="2" class="skin-invert-image"> Image:Bode Low Pass Magnitude Plot.PNG|Figure 2: Bode magnitude plot for zero and low-pass pole; curves labeled "Bode" are the straight-line Bode plots Image:Bode Low Pass Phase Plot.PNG|Figure 3: Bode phase plot for zero and low-pass pole; curves labeled "Bode" are the straight-line Bode plots Image:Bode Pole-Zero Magnitude Plot.PNG|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 Image:Bode Pole-Zero Phase Plot.PNG|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 </gallery> ==Gain margin and phase margin== {{See also|Phase margin}} Bode plots are used to assess the stability of [[negative-feedback amplifier]]s by finding the gain and [[phase margin]]s of an amplifier. The notion of gain and phase margin is based upon the gain expression for a negative feedback amplifier given by :<math>A_\text{FB} = \frac{A_\text{OL}}{1 + \beta A_\text{OL}},</math> where ''A''<sub>FB</sub> is the gain of the amplifier with feedback (the ''closed-loop gain''), ''β'' is the ''feedback factor'', and ''A''<sub>OL</sub> is the gain without feedback (the ''open-loop gain''). The gain ''A''<sub>OL</sub> is a complex function of frequency, with both magnitude and phase.<ref group="note">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 the [[Nyquist plot]] have to be used to assess stability.</ref> Examination of this relation shows the possibility of infinite gain (interpreted as instability) if the product β''A''<sub>OL</sub> = −1 (that is, the magnitude of β''A''<sub>OL</sub> is unity and its phase is −180°, the so-called [[Barkhausen 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 as ''f''<sub>180</sub>, is the frequency where the open-loop gain flips sign. The second, labeled here ''f''<sub>0 dB</sub>, is the frequency where the magnitude of the product |β''A''<sub>OL</sub>| = 1 = 0 dB. That is, frequency ''f''<sub>180</sub> is determined by the condition :<math>\beta A_\text{OL}(f_{180}) = -|\beta A_\text{OL}(f_{180})| = -|\beta A_\text{OL}|_{180},</math> where vertical bars denote the [[Absolute value#Complex numbers|magnitude of a complex number]], and frequency ''f''<sub>0 dB</sub> is determined by the condition :<math>|\beta A_\text{OL}(f_\text{0 dB})| = 1.</math> One measure of proximity to instability is the '''gain margin'''. The Bode phase plot locates the frequency where the phase of β''A''<sub>OL</sub> reaches −180°, denoted here as frequency ''f''<sub>180</sub>. Using this frequency, the Bode magnitude plot finds the magnitude of β''A''<sub>OL</sub>. If |β''A''<sub>OL</sub>|<sub>180</sub> ≥ 1, the amplifier is unstable, as mentioned. If |β''A''<sub>OL</sub>|<sub>180</sub> < 1, instability does not occur, and the separation in dB of the magnitude of |β''A''<sub>OL</sub>|<sub>180</sub> from |β''A''<sub>OL</sub>| = 1 is called the ''gain margin''. Because a magnitude of 1 is 0 dB, the gain margin is simply one of the equivalent forms: <math>20 \log_{10} |\beta A_\text{OL}|_{180} = 20 \log_{10} |A_\text{OL}| - 20 \log_{10} \beta^{-1}</math>. Another equivalent measure of proximity to instability is the ''[[phase margin]]''. The Bode magnitude plot locates the frequency where the magnitude of |β''A''<sub>OL</sub>| reaches unity, denoted here as frequency ''f''<sub>0 dB</sub>. Using this frequency, the Bode phase plot finds the phase of β''A''<sub>OL</sub>. If the phase of β''A''<sub>OL</sub>(''f''<sub>0 dB</sub>) > −180°, the instability condition cannot be met at any frequency (because its magnitude is going to be < 1 when ''f'' = ''f''<sub>180</sub>), and the distance of the phase at ''f''<sub>0 dB</sub> in degrees above −180° is called the ''phase margin''. If a simple ''yes'' or ''no'' on the stability issue is all that is needed, the amplifier is stable if ''f''<sub>0 dB</sub> < ''f''<sub>180</sub>. This criterion is sufficient to predict stability only for amplifiers satisfying some restrictions on their pole and zero positions ([[minimum phase]] systems). Although these restrictions usually are met, if they are not, then another method must be used, such as the [[Nyquist plot]].<ref name=Lee> {{cite book |author=Thomas H. Lee |title=The design of CMOS radio-frequency integrated circuits |section=§14.6. Gain and Phase Margins as Stability Measures |pages=451–453 |year=2004 |edition=2nd |publisher=Cambridge University Press |location=Cambridge UK |isbn=0-521-83539-9 |url=http://worldcat.org/isbn/0-521-83539-9}} </ref><ref name=Levine> {{cite book |author=William S. Levine |title=The control handbook: the electrical engineering handbook series |section=§10.1. Specifications of Control System |page=163 |year=1996 |edition=2nd |publisher=CRC Press/IEEE Press |location=Boca Raton FL |isbn=0-8493-8570-9 |url=https://books.google.com/books?id=2WQP5JGaJOgC&q=stability+%22minimum+phase%22&pg=RA1-PA163}} </ref> Optimal gain and phase margins may be computed using [[Nevanlinna–Pick interpolation]] theory.<ref name=Tannenbaum> {{cite book |author=Allen Tannenbaum | author-link = Allen Tannenbaum |title=Invariance and Systems Theory: Algebraic and Geometric Aspects |date = February 1981 |publisher=Springer-Verlag |location=New York, NY |isbn=9783540105657}} </ref> ===Examples using Bode plots=== 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 (the ''open-loop'' gain) ''A''<sub>OL</sub> with the gain with feedback ''A''<sub>FB</sub> (the ''closed-loop'' gain). See [[negative feedback amplifier]] for more detail. In this example, ''A''<sub>OL</sub> = 100 dB at low frequencies, and 1 / β = 58 dB. At low frequencies, ''A''<sub>FB</sub> ≈ 58 dB as well. Because the open-loop gain ''A''<sub>OL</sub> is plotted and not the product β ''A''<sub>OL</sub>, the condition ''A''<sub>OL</sub> = 1 / β decides ''f''<sub>0 dB</sub>. The feedback gain at low frequencies and for large ''A''<sub>OL</sub> is ''A''<sub>FB</sub> ≈ 1 / β (look at the formula for the feedback gain at the beginning of this section for the case of large gain ''A''<sub>OL</sub>), so an equivalent way to find ''f''<sub>0 dB</sub> is to look where the feedback gain intersects the open-loop gain. (Frequency ''f''<sub>0 dB</sub> is needed later to find the phase margin.) Near this crossover of the two gains at ''f''<sub>0 dB</sub>, the Barkhausen criteria are almost satisfied in this example, and the feedback amplifier exhibits a massive peak in gain (it would be infinity if β ''A''<sub>OL</sub> = −1). Beyond the unity gain frequency ''f''<sub>0 dB</sub>, the open-loop gain is sufficiently small that ''A''<sub>FB</sub> ≈ ''A''<sub>OL</sub> (examine the formula at the beginning of this section for the case of small ''A''<sub>OL</sub>). Figure 7 shows the corresponding phase comparison: the phase of the feedback amplifier is nearly zero out to the frequency ''f''<sub>180</sub> where 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, ''A''<sub>FB</sub> ≈ ''A''<sub>OL</sub> for small ''A''<sub>OL</sub>.) Comparing the labeled points in Figure 6 and Figure 7, it is seen that the unity gain frequency ''f''<sub>0 dB</sub> and the phase-flip frequency ''f''<sub>180</sub> are very nearly equal in this amplifier, ''f''<sub>180</sub> ≈ ''f''<sub>0 dB</sub> ≈ 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 | β ''A''<sub>OL</sub> | = 1 to lower frequency. In this example, 1 / β = 77 dB, and at low frequencies ''A''<sub>FB</sub> ≈ 77 dB as well. Figure 8 shows the gain plot. From Figure 8, the intersection of 1 / β and ''A''<sub>OL</sub> occurs at ''f''<sub>0 dB</sub> = 1 kHz. Notice that the peak in the gain ''A''<sub>FB</sub> near ''f''<sub>0 dB</sub> is almost gone.<ref group="note">The critical amount of feedback where the peak in the gain ''just'' disappears altogether is the ''maximally flat'' or [[Butterworth filter#Maximal flatness|Butterworth]] design.</ref><ref name=Sansen> {{cite book |author=Willy M C Sansen |title=Analog design essentials |pages=157–163 |year= 2006 |publisher=Springer |location=Dordrecht, The Netherlands |isbn=0-387-25746-2 |url=http://worldcat.org/isbn/0-387-25746-2}} </ref> Figure 9 is the phase plot. Using the value of ''f''<sub>0 dB</sub> = 1 kHz found above from the magnitude plot of Figure 8, the open-loop phase at ''f''<sub>0 dB</sub> is −135°, which is a phase margin of 45° above −180°. Using Figure 9, for a phase of −180° the value of ''f''<sub>180</sub> = 3.332 kHz (the same result as found earlier, of course<ref group="note">The frequency where the open-loop gain flips sign ''f''<sub>180</sub> does not change with a change in feedback factor; it is a property of the open-loop gain. The value of the gain at ''f''<sub>180</sub> also 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.</ref>). The open-loop gain from Figure 8 at ''f''<sub>180</sub> is 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 good [[Step response#Step response of feedback amplifiers|step response]]. As a [[rule 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.<ref name=Sansen/> See also the discussion of phase margin in the [[Step response#Phase margin|step response]] article. <gallery caption="Examples" widths="300px" perrow="2" class="skin-invert-image"> Image:Magnitude of feedback amplifier.PNG|Figure 6: Gain of feedback amplifier ''A''<sub>FB</sub> in dB and corresponding open-loop amplifier ''A''<sub>OL</sub>. Parameter 1/β = 58 dB, and at low frequencies ''A''<sub>FB</sub> ≈ 58 dB as well. The gain margin in this amplifier is nearly zero because | β''A''<sub>OL</sub>| = 1 occurs at almost ''f'' = ''f''<sub>180°</sub>. Image:Phase of feedback amplifier.PNG|Figure 7: Phase of feedback amplifier ''°A''<sub>FB</sub> in degrees and corresponding open-loop amplifier ''°A''<sub>OL</sub>. The phase margin in this amplifier is nearly zero because the phase-flip occurs at almost the unity gain frequency ''f'' = ''f''<sub>0 dB</sub> where | β''A''<sub>OL</sub>| = 1. Image:Gain Margin.PNG|Figure 8: Gain of feedback amplifier ''A''<sub>FB</sub> in dB and corresponding open-loop amplifier ''A''<sub>OL</sub>. In this example, 1 / β = 77 dB. The gain margin in this amplifier is 19 dB. Image:Phase Margin.PNG|Figure 9: Phase of feedback amplifier ''A''<sub>FB</sub> in degrees and corresponding open-loop amplifier ''A''<sub>OL</sub>. The phase margin in this amplifier is 45°. </gallery> ==Bode plotter== [[Image:Bodeplot.png|class=skin-invert-image|380px|thumb|right|Figure 10: Amplitude diagram of a 10th-order [[electronic filter]] plotted using a Bode plotter]] The Bode plotter is an electronic instrument resembling an [[oscilloscope]], which produces a Bode diagram, or a graph, of a circuit's voltage gain or phase shift plotted against [[frequency]] in 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 of [[feedback]] control systems, through the measurement of corner (cutoff) frequencies and gain and phase margins. This is identical to the function performed by a [[vector 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 == {{main article|Nyquist plot|Nichols plot}} Two related plots that display the same data in different [[coordinate systems]] are the [[Nyquist plot]] and the [[Nichols plot]]. These are [[parametric plots]], with frequency as the input and magnitude and phase of the frequency response as the output. The Nyquist plot displays these in [[polar coordinates]], with magnitude mapping to radius and phase to argument (angle). The Nichols plot displays these in rectangular coordinates, on the [[log scale]]. <gallery mode="packed" heights="175" class="skin-invert-image"> Image:Nyquist plot.svg|Figure 11: A [[Nyquist plot]]. Image:Nichols plot.svg|Figure 12: A [[Nichols plot]] of the same response from Figure 11. </gallery> == See also == * [[Analog signal processing]] * [[Phase margin]] * [[Bode's sensitivity integral]] *[[Kramers–Kronig relations#Magnitude (gain)–phase relation|Bode's magnitude (gain)–phase relation]] * [[Dielectric spectroscopy]] == Notes == {{reflist|group=note}} == References == {{reflist}} == External links == {{Commons category|Bode plots}} * [http://lpsa.swarthmore.edu/Bode/BodeHow.html How to draw piecewise asymptotic Bode plots] * Gnuplot code for generating Bode plot: [[:Image:Bode plot template.pdf|DIN-A4 printing template (pdf)]] [[Category:Plots (graphics)]] [[Category:Signal processing]] [[Category:Electronic feedback]] [[Category:Electronic amplifiers]] [[Category:Electronics concepts]] [[Category:Electrical parameters]] [[Category:Classical control theory]] [[Category:Filter frequency response]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite book
(
edit
)
Template:Cite web
(
edit
)
Template:Commons category
(
edit
)
Template:IPA
(
edit
)
Template:IPAc-en
(
edit
)
Template:ISBN
(
edit
)
Template:Main article
(
edit
)
Template:Nowrap
(
edit
)
Template:NumBlk
(
edit
)
Template:Refimprove
(
edit
)
Template:Reflist
(
edit
)
Template:Respell
(
edit
)
Template:See also
(
edit
)
Template:Short description
(
edit
)
Template:Snd
(
edit
)