Bode plot
155562
225531335
2008-07-14T04:36:26Z
Spradlig
6763738
/* External links */
[[Image:Bode High-Pass.PNG|350px|thumb|right|Figure 1(a): The Bode plot for a first-order (one-pole) [[highpass filter]]; the straight-line approximations are labeled "Bode pole"; phase varies from 90° at low frequencies (due to the contribution of the numerator, which is 90° at all
frequencies) to 0° at high frequencies (where the phase contribution of the denominator is −90° and cancels the contribution of the numerator).]]
[[Image:Bode Low-Pass.PNG|350px|thumb|right|Figure 1(b): The Bode plot for a first-order (one-pole) [[lowpass filter]]; the straight-line approximations are labeled "Bode pole"; phase is 90° lower than for Figure 1(a) because the phase contribution of the numerator is 0° at all frequencies.]]
A '''Bode plot''', named after [[Hendrik Wade Bode]], is usually a combination of a Bode magnitude plot and Bode phase plot:
A '''Bode magnitude plot''' is a graph of [[logarithm|log]] magnitude versus [[frequency]], plotted with a log-frequency axis, to show the [[transfer function]] or [[frequency response]] of a [[LTI system theory|linear, time-invariant]] system.
The magnitude axis of the Bode plot is usually expressed as [[decibel]]s, that is, 20 times the common logarithm of the amplitude gain. With the magnitude gain being logarithmic, Bode plots make multiplication of magnitudes a simple matter of adding distances on the graph (in decibels), since
: <math>\log(a \cdot b) = \log(a) + \log(b).\ </math>
A '''Bode phase plot''' is a graph of phase versus frequency, also plotted on a log-frequency axis, usually used in conjunction with the magnitude plot, to evaluate how much a frequency will be [[Phase (waves)|phase-shifted]]. For example a signal described by: ''A''sin(ω''t'') may be attenuated but also phase-shifted. If the system attenuates it by a factor ''x'' and phase shifts it by −Φ the signal out of the system will be (''A''/''x'') sin(ω''t'' − Φ). The phase shift Φ is generally a function of frequency.
Phase can also be added directly from the graphical values, a fact that is mathematically clear when phase is seen as the imaginary part of the complex logarithm of a complex gain.
In Figure 1(a), the Bode plots are shown for the one-pole [[highpass filter]] function:
::<math> \mathrm{T_{High}}(f) = \frac {j f/ f_1} {1 + j f/f_1} \ , </math>
where ''f'' is the frequency in Hz, and ''f''<sub>1</sub> is the pole position in Hz, ''f''<sub>1</sub> = 100 Hz in the figure. Using the rules for [[complex number]]s, the magnitude of this function is
::<math> \mid \mathrm{T_{High}}(f) \mid = \frac { f/f_1 } { \sqrt{ 1 + (f/f_1)^2 }}, \ </math>
while the phase is:
::<math> \varphi_{T_{High}} = 90^\circ - \tan^{-1} (f/f_1). \ </math>
Care must be taken that the inverse tangent is set up to return ''degrees'', not radians. On the Bode magnitude plot, decibels are used, and the plotted magnitude is:
:<math>20\log_{10} \mid \mathrm{T_{High}}(f) \mid \ =20\log_{10} \left( f/f_1 \right)</math>
:::::::  <math>\ -20 \log_{10} \left( \sqrt{ 1 + (f/f_1)^2 }\right). \ </math>
In Figure 1(b), the Bode plots are shown for the one-pole [[lowpass filter]] function:
::<math> \mathrm{ T_{Low}} (f) = \frac {1} {1 + j f/f_1}. \ </math>
Also shown in Figure 1(a) and 1(b) are the straight-line approximations to the Bode plots that are used in hand analysis, and described later.
The magnitude and phase Bode plots can seldom be changed independently of each other — changing the amplitude response of the system will most likely change the phase characteristics and vice versa. For minimum-phase systems the phase and amplitude characteristics can be obtained from each other with the use of the [[Hilbert transform]].
If the transfer function is a [[rational function]] with real poles and zeros, then the Bode plot can be approximated with straight lines. These asymptotic approximations are called '''straight line Bode plots''' or '''uncorrected Bode plots''' and are useful because they can be drawn by hand following a few simple rules. Simple plots can even be predicted without drawing them.
The approximation can be taken further by ''correcting'' the value at each cutoff frequency. The plot is then called a '''corrected Bode plot'''.
==Rules for hand-made Bode plot==
The main idea about Bode plots is that one can think of 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 [[Pole (complex analysis)|poles]] and [[Zero (complex analysis)|zeros]]:
:<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 the <math> 20 \log_{10}(X)</math> version. 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 = j\omega</math>, <math>a_n, b_n > 0</math>, and ''H'' 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 \cdot a_n\ 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 \cdot b_n\ 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 ''ω'' into the function and finding |''H''(''j''ω)|.
* 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 are 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 ω 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 H(jω), and since it is a complex function, <math>|H(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 + j\omega) \cdot (x_n - 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 \cdot a_n\ \mathrm{dB}</math> '''above''' the line,
* at every pole, put a point <math>3 \cdot b_n\ \mathrm{dB}</math> '''below''' the line,
* draw a smooth line 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>-\mathrm{arctan}(\mathrm{Im}[H(s)] / \mathrm{Re}[H(s)])</math>.
To draw the phase plot, for '''each''' pole and zero:
* if A is positive, start line (with zero slope) at 0 degrees
* if A is negative, start line (with zero slope) at 180 degrees
* at every <math> \omega = x_n </math> (for stable zeros – <math>Re(z) < 0</math>), '''increase''' the slope by <math>45 \cdot a_n</math> degrees per decade, beginning one decade before <math> \omega = x_n </math> (i.e. <math> \frac{x_n}{10} </math>)
* at every <math> \omega = y_n </math> (for stable poles – <math>Re(p) < 0</math>), '''decrease''' the slope by <math>45 \cdot b_n</math> degrees per decade, beginning one decade before <math> \omega = y_n </math> (i.e. <math> \frac{y_n}{10} </math>)
* "unstable" (right half plane) poles and zeros (<math>Re(s) > 0</math>) have opposite behavior
* flatten the slope again when the phase has changed by <math>90 \cdot a_n</math> degrees (for a zero) or <math>90 \cdot 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==
A passive (unity pass band gain) [[lowpass]] [[RC circuit|RC filter]], for instance has the following [[transfer function]] expressed in the [[frequency domain]]:
:<math>
H(jf) = \frac{1}{1+j2\pi f R C}
</math>
From the transfer function it can be determined that the [[cutoff frequency]] point ''f''<sub>c</sub> (in [[hertz]]) is at the frequency
:<math>
f_\mathrm{c} = {1 \over {2\pi RC}}
</math>
:or (equivalently) at
:<math>
\omega_\mathrm{c} = {1 \over {RC}}
</math> where <math>\omega_\mathrm{c}=2\pi f_\mathrm{c}</math> is the angular cutoff frequency in radians per second.
The transfer function in terms of the angular frequencies becomes:
:<math>
H(j\omega) = {1 \over 1+j{\omega \over {{\omega_\mathrm{c}}}}}
</math>
The above equation is the normalized form of the transfer function. 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_\mathrm{vdB}</math>:
:<math>
A_\mathrm{vdB} = 20 \log|H(j\omega)| = 20 \log {1 \over \left|1+j{\omega \over {{\omega_\mathrm{c}}}}\right|} </math>
:::<math>{} = - 20\log \left|1+j{\omega \over {{\omega_\mathrm{c}}}}\right| = -10\log{\left[1 + \frac{\omega^2}{\omega_\mathrm{c}^2}\right]}
</math>
when plotted versus input frequency <math>\omega</math> on a logarithmic scale, can be approximated by two lines and it forms the asymptotic (approximate) magnitude Bode plot of the transfer function:
* for angular frequencies below <math>\omega_\mathrm{c}</math> it is a horizontal line at 0 dB since at low frequencies the <math>{\omega \over {\omega_\mathrm{c}}}</math> term is small and can be neglected, making the decibel gain equation above equal to zero,
* for angular frequencies above <math>\omega_\mathrm{c}</math> it is a line with a slope of −20 dB per decade since at high frequencies the <math>{\omega \over {\omega_\mathrm{c}}}</math> term dominates and the decibel gain expression above simplifies to <math>-20 \log {\omega \over {\omega_\mathrm{c}}}</math> which is a straight line with a slope of −20 dB per decade.
These two lines meet at the [[corner 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 the [[attenuation]].
[[Image:Bode Low Pass Magnitude Plot.PNG|thumbnail|400px|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|thumbnail|400px|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|thumbnail|400px|Figure 4: Bode magnitude plot for pole-zero combination; the location of the zero is ten times higher than in Figures 2&3; curves labeled "Bode" are the straight-line Bode plots]]
[[Image:Bode Pole-Zero Phase Plot.PNG|thumbnail|400px|Figure 5: Bode phase plot for pole-zero combination; the location of the zero is ten times higher than in Figures 2&3; curves labeled "Bode" are the straight-line Bode plots]]
===Phase plot===
The phase Bode plot is obtained by plotting the phase angle of the transfer function given by
: <math>
\varphi = -\tan^{-1}{\omega \over {\omega_\mathrm{c}}}
</math>
versus <math>\omega</math>, where <math>\omega</math> and <math>\omega_\mathrm{c}</math> are the input and cutoff angular frequencies respectively. For input frequencies much lower than corner, the ratio <math> {\omega \over {\omega_\mathrm{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 degrees when <math>\omega =\omega_\mathrm{c}</math>. As the ratio increases for input frequencies much greater than the corner frequency, the phase angle asymptotically approaches −90 degrees. 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 \over {\omega_\mathrm{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_\mathrm{c}</math>.
==An example with pole and zero==
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 a 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.
==Gain margin and phase margin==
Bode plots are used to assess the stability of negative feedback amplifiers 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_{FB} = \frac {A_{OL}} {1 + \beta A_{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> 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 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>0dB</sub>, is the frequency where the magnitude of the product | β ''A''<sub>OL</sub> | = 1 (in dB, magnitude 1 is 0 dB). That is, frequency ''f''<sub>180</sub> is determined by the condition:
:<math> \beta A_{OL} \left( f_{180} \right) = - | \beta A_{OL} \left( f_{180} \right)| = - | \beta A_{OL}|_{180},\ </math>
where vertical bars denote the magnitude of a complex number (for example, | ''a'' + ''j'' ''b'' | = [ ''a''<sup>2</sup> + ''b''<sup>2</sup>]<sup>1/2</sup> ), and frequency ''f''<sub>0dB</sub> is determined by the condition:
:<math>| \beta A_{OL} \left( f_{0dB} \right) | = 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 one is 0 dB, the gain margin is simply one of the equivalent forms: 20 log<sub>10</sub>( |β''A''<sub>OL</sub>|<sub>180</sub>) = 20 log<sub>10</sub>( |''A''<sub>OL</sub>|<sub>180</sub>) − 20 log<sub>10</sub>( 1 / β ).
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>0dB</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><sub>0dB</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>0dB</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>0dB</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 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
|page=§14.6 pp. 451-453
|year= 2004
|edition=Second Edition
|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
|page=§10.1 p. 163
|year= 1996
|edition=Second Edition
|publisher=CRC Press/IEEE Press
|location=Boca Raton FL
|isbn=0849385709
|url=http://books.google.com/books?id=2WQP5JGaJOgC&pg=RA1-PA163&lpg=RA1-PA163&dq=stability+%22minimum+phase%22&source=web&ots=P3fFTcyfzM&sig=ad5DJ7EvVm6In_zhI0MlF_6vHDA}}
</ref>
[[Image:Magnitude of feedback amplifier.PNG|thumbnail|380px|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|thumbnail|380px|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>0dB</sub> where | β''A''<sub>OL</sub>| = 1.]]
===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>0dB</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>0dB</sub> is to look where the feedback gain intersects the open-loop gain. (Frequency ''f''<sub>0dB</sub> is needed later to find the phase margin.)
Near this crossover of the two gains at ''f''<sub>0dB</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>0dB</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>0dB</sub> and the phase-flip frequency ''f''<sub>180</sub> are very nearly equal in this amplifier, ''f''<sub>180</sub> ≈ ''f''<sub>0dB</sub> ≈ 3.332 kHz, which means the gain margin and phase margin are nearly zero. The amplifier is borderline stable.
[[Image:Gain Margin.PNG|thumbnail|380px|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|thumbnail|380px|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°.]]
[[Image:Bodeplot.JPG|thumbnail|380px|Figure 10: Amplitude diagram of [[Chebyshev filter]] of 10th order plotted using Bode Plotter application. Chebyshev transfer function is defined by poles and zeros added by clicking on graphical complex diagram]]
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>0dB</sub> = 1 kHz. Notice that the peak in the gain ''A''<sub>FB</sub> near ''f''<sub>0dB</sub> is almost gone.<ref>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
|page=§0517-§0527 pp. 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>0dB</sub> = 1 kHz found above from the magnitude plot of Figure 8, the open-loop phase at ''f''<sub>0dB</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>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.
As an aside, it should be noted that 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=Sansen2>
{{cite book
|author=Willy M C Sansen
|title=§0526 p. 162
|isbn=0-387-25746-2
|url=http://worldcat.org/isbn/0-387-25746-2}}
</ref> See also the discussion of phase margin in the [[Step_response#Phase_margin|step response]] article.
==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. 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 (electrical)|network analyzer]], but the network analyzer is typically used at much higher frequencies.
For education/research purposes usage of applications for plotting Bode diagrams for given transfer functions helps better understanding and faster getting of results (see external links).
==References and notes==
<references/>
== See also ==
* [[Nyquist plot]]
* [[Nichols plot]]
* [[Analog signal processing]]
* [[Phase margin]]
== External links ==
* [http://jegyzet.sth.sze.hu/ftp/!BSc/Szabalyozastechnika/BodePl.pdf Detailed explanation of Bode Plots]
* [http://www.facstaff.bucknell.edu/mastascu/eControlHTML/Freq/Freq5.html Explanation of Bode plots with movies and examples]
* [http://www.swarthmore.edu/NatSci/echeeve1/Ref/LPSA/Bode/BodeHow.html How to draw piecewise asymptotic Bode plots]
* [http://lims.mech.northwestern.edu/~lynch/courses/ME391/2003/bodesketching.pdf Summarized drawing rules] ([[PDF]])
* [http://www.uwm.edu/People/msw/BodePlot/ Bode plot applet] - Accepts transfer function coefficients as input, and calculates magnitude and phase response
* [http://mickpc.pbwiki.com/index.php?wiki=BodePlot Bode Plotting on the HP49]
*[http://www.abc.chemistry.bsu.by/vi/fit.htm Circuit analysis in electrochemistry]
*[http://www.en-genius.net/includes/files/acqt_013105.pdf Tim Green: ''Operational amplifier stability''] Includes some Bode plot introduction
*[http://www.bode.cg.yu Bode Plotter] Drag and Drop Bode diagram plotting tool by grafical definition of poles and zeros on polar diagram.
* Gnuplot code for generating Bode plot: [[:Image:Bode plot template.pdf|DIN-A4 printing template (pdf)]]
*[http://wikis.controltheorypro.com/index.php?title=Bode_Plot Bode Plots on ControlTheoryPro.com]
[[Category:Signal processing]]
[[Category:Electronic feedback]]
[[Category:Electronic amplifiers]]
[[Category:Electronics terms]]
[[Category:Electrical parameters]]
[[Category:Classical control]]
[[ar:مخطط بود]]
[[de:Bode-Diagramm]]
[[es:Bode]]
[[fa:نمودار بدی]]
[[fr:Diagramme de Bode]]
[[it:Diagramma di Bode]]
[[nl:Bodediagram]]
[[pl:Charakterystyka Bodego]]
[[ru:ЛАФЧХ]]
[[sv:Bodediagram]]