Content deleted Content added
Slight clarification |
Link suggestions feature: 3 links added. Tags: Visual edit Mobile edit Mobile web edit Newcomer task Suggested: add links |
||
(39 intermediate revisions by 21 users not shown) | |||
Line 1:
{{Short description|Graph of the frequency response of a control system}}
{{refimprove|date=December 2011}}
[[
[[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'''
▲In [[electrical engineering]] and [[control theory]], a '''Bode plot''' {{IPAc-en|ˈ|b|oʊ|d|i|}} 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>
Line 10 ⟶ 9:
== 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 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.
== Definition ==
Line 19 ⟶ 18:
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
==Frequency response ==
This section illustrates that a Bode
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)
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)
i.e., also a sinusoidal signal with amplitude <math>y_0</math> shifted
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)|
and that the phase shift is
{{NumBlk|:|<math>\varphi = \arg H(\mathrm{j} \omega)
In summary, subjected to an input with frequency <math>\omega</math>, the system responds
==Rules for handmade Bode plot==
Line 46 ⟶ 44:
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)
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.
Line 57 ⟶ 55:
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 =
* At every value of ''s'' where <math>\omega =
▲* 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 \, \mathrm{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
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^*
===Corrected amplitude plot===
To correct a straight-line amplitude plot:
* At every
* At every
▲* At every pole, put a point <math>3 \cdot b_n\ \mathrm{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 \
To draw the phase plot, for '''each''' pole and zero:▼
* If <math>A</math> is positive, start line (with zero slope) at <math>0^\circ</math>▼
* If <math>A</math> is
▲* If <math>A</math> is
* 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 \cdot a_n</math> degrees per decade, beginning one decade before <math> \omega = |x_n| </math> (E.g.: <math display="inline"> \frac{|x_n|}{10} </math>)▼
* At every <math>
▲* At every <math>
* "Unstable" (right half
* Flatten the slope again when the phase has changed by <math>90
* 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)
:<math>H_{\
===Magnitude plot===
The magnitude (in [[decibel]]s) of the transfer function above
:<math>\begin{align}
A_\
&= 20
&= -20
&= -10
\end{align}</math>
Then plotted versus input frequency <math>\omega</math> on a logarithmic scale, can be approximated by
* The first line for angular frequencies below <math>\omega_\
* The second line for angular frequencies above <math>\omega_\
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
===Phase plot===
The phase Bode plot is obtained by plotting the phase angle of the transfer function given by
: <math>\arg H_{\
versus <math>\omega</math>, where <math>\omega</math> and <math>\omega_\
===Normalized plot===
The horizontal frequency axis, in both the magnitude and phase plots, can be replaced by the normalized (nondimensional) frequency ratio <math>
==An example with zero and pole ==
Figures
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°.
Line 136 ⟶ 131:
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
Line 145 ⟶ 140:
==Gain margin and phase margin==
{{See also|Phase margin}}
Bode plots are used to assess the stability of [[negative
:<math>A_\
where ''A''<sub>FB</sub> is the gain of the amplifier with feedback (the
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 |
:<math>\beta A_\
where vertical bars denote the [[Absolute value#Complex numbers|magnitude of a complex number
:<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
Another equivalent measure of proximity to instability is the
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
|
|year=
|edition=
|publisher=Cambridge University Press
|___location=Cambridge UK
Line 176 ⟶ 172:
</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=
|year=
|edition=
|publisher=CRC Press/IEEE Press
|___location=Boca Raton FL
Line 190 ⟶ 187:
|author=Allen Tannenbaum | author-link = Allen Tannenbaum
|title=Invariance and Systems Theory: Algebraic and Geometric Aspects
|
|publisher=Springer-Verlag
|___location=New York, NY
Line 229 ⟶ 226:
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.
Line 237 ⟶ 234:
==Bode plotter==
[[Image:Bodeplot.png|class=skin-invert-image|380px|thumb|right|Figure 10: Amplitude diagram of a 10th
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
This is identical to the function performed by a
For education
== 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.
Line 257 ⟶ 254:
* [[Bode's sensitivity integral]]
*[[Kramers–Kronig relations#Magnitude (gain)–phase relation|Bode's magnitude (gain)–phase relation]]
* [[
== Notes ==
Line 275 ⟶ 272:
[[Category:Electronic feedback]]
[[Category:Electronic amplifiers]]
[[Category:Electronics concepts]]
[[Category:Electrical parameters]]
[[Category:Classical control theory]]
|