Transfer Function and Bode Plots
In questa pagina 7
From the transfer function to the frequency response
Formula (frequency response and output to a sinusoidal input). A linear amplifier with capacitors has a gain that depends on frequency. In the Laplace domain the gain is a rational function of . For sinusoidal signals put : the complex function is the frequency response and says how a signal is modified:
Example. With and , an input gives .
The modulus (usually in dB, ) gives the amplification and the phase the phase shift. The Bode diagram is the pair of plots modulus-in-dB and phase, both on a logarithmic frequency axis.
The reason for dB and the logarithmic scale: the modulus of a product is the product of the moduli and the phase of a product is the sum of the phases. With dB (logarithm) products become sums and the overall diagram is obtained by adding, point by point, the diagrams of the factors.
Error to avoid: do not write units on the logarithmic axis (the logarithm is dimensionless): report the angular frequencies (in rad/s) on a logarithmic scale, or . On the modulus axis put dB.
Factored form (Bode form)
Definition (factored Bode form). After deriving from the circuit it is written in the form with dimensionless factors:
- Zeros and poles are the values of that cancel numerator and denominator. The factor has root and is also written with the angular frequency of the pole/zero (for positive roots the factor is ).
- Factors are zeros or poles at the origin.
- Complex conjugate roots are grouped in , with natural frequency and damping coefficient.
- In every factor the constant term must be 1: the constant is then the low-frequency gain (if there are no zeros or poles at the origin).
Reduction example: : take out from the numerator and from the first factor: : constant , zero at , poles at and .
The modulus: asymptotic diagram
Property (asymptotic modulus of a real pole). For each factor consider two limit cases. For a real pole :
- : the imaginary part is negligible, ();
- : the imaginary part dominates, : (every time is multiplied by 10 the modulus is divided by 10; equivalent to );
- at the exact modulus is , i.e. below the asymptote. The two half-lines join at , the break pointthe angular frequency where the asymptotic diagram changes slope: it coincides with the value of a pole or of a zero.
Example. Pole at : at the modulus is and at it is about (exact ).
Grafico interattivo: Real pole at omega_p = 1000 rad/s, DC gain 0 dB (x: omega in rad/s, log scale; y: dB): exact modulus -10 log10(1 + (omega/omega_p)^2) and asymptotic diagram (dashed); the maximum error is at the break point, where the exact modulus is -3 dB
A real zero does the opposite: up to and then ( at ).
Property (asymptotic modulus and phase of the single factors).
Factor Asymptotic modulus Phase constant constant constant same with zero at the origin dB/dec, at pole at the origin dB/dec, at real zero up to , then dB/dec from to real pole up to , then dB/dec from to pair of complex zeros up to , then dB/dec from to pair of complex poles up to , then dB/dec from to positive real root same modulus as the negative root sign of the phase reversed
Example. With a zero at and a pole at on unit gain: up to , then up to at , then flat again at .
For complex pairs the asymptotic diagrams do not depend on ; only changes the behaviour around (for a resonance peak).
The phase: the two-decade linear segment
Property (asymptotic phase of a real pole). For a real pole the exact phase is : at and asymptotes at and . In the asymptotic diagram the two asymptotes are joined by a segment that starts a decade before () and ends a decade after (): the phase changes by over two decades, i.e. with slope /decade, and is at . For a real zero the same holds with sign . For factors at the origin the phase is constant (). For positive poles or zeros the sign of the variation is opposite: for example has the same modulus as but its phase falls from to (the "non-minimum-phase zero").
Example. Pole at : the phase is up to , at and from on.
Complete procedure
- Compute from the circuit (impedances, see Frequency Response of Op-Amp Circuits and Bode PlotsIn circuits with an ideal op-amp the transfer function A(s) comes from the inverting (-Z2/Z1) and non-inverting (1 + Z2/Z1) formulas with capacitors replaced by 1/(sC) and RC networks on the + terminal treated as dividers (no current in the input); A(s) is put in Bode form, the asymptotic diagram is drawn with the break points, and modulus and phase at the signal frequency give vout(t); the DC component of the input comes out multiplied by A(0).Frequency Response of Op-Amp Circuits and Bode Plots →).
- Put it in factored form with constant and factors .
- List the break points (the ) in increasing order.
- Modulus: start from the low-frequency segment (constant, or a line with slope for each factor at the origin) and change slope by (pole) or (zero) dB/dec at each . To fix the level compute the value at one point (for example at or with the formula of the factor at the origin).
- Phase: add the contributions of the single factors, each with its two-decade segment.
- Evaluate the output for a sinusoidal input with the formula of the first paragraph, reading modulus and phase at .
Complete example
- Factors: constant (), a zero at the origin ( dB/dec), poles at and .
- Modulus: for it is , which is at (line dB/dec). At it is and the slope becomes ; it stays at up to and then falls by dB/dec ( at ).
- Phase: (zero at the origin) from which the ramp of the first pole (from to ) and that of the second (from to ) are subtracted: for , between and (centre of the band), beyond .
Exact values: is for (maximum deviation at the break points), phase .
Grafico interattivo: Asymptotic Bode modulus (dB) of A(s) = 100 s / ((1+s/10)(1+s/10^4)) versus log10(omega): +20 dB/dec up to omega = 10, flat at 60 dB up to omega = 10^4, then -20 dB/dec
Output to a sinusoid from the asymptotic diagram. For (gain , poles and , zero ) with : from the asymptotic diagram at the modulus is () and the phase ; the exact value is , phase . The asymptotic diagram gives against the exact : the maximum error is of the order of in modulus and about ten degrees in phase, and in an exam it is accepted if one declares that the asymptotic diagram is used.
Common mistakes
- Forgetting that a factor at the origin gives a line (constant slope) and not a flat segment.
- Placing the phase of the pole from to instead of from to .
- Not normalizing the factors to (the constant must then be computed from the product of all the constant terms).
- Writing units on the logarithmic axis.
- Neglecting the minus sign of the gain (negative constant: phase of ).
- Adding modulus and phase without going through dB (moduli multiply, dB add).
Versione ripasso
Key statements and formulas
- Frequency response: . Input gives .
- Bode diagram: modulus in dB () and phase on a logarithmic axis; products become sums. No units on the logarithmic axis.
- Factored form: with factors , at the origin, complex pairs ; is the low-frequency gain.
- Real pole: up to , then ; exact modulus at . Real zero: after . At the origin: constant slope , at (or ).
- Complex pair: after , phase ; resonance peak for .
- Phase: a real pole (zero) gives () with a segment from to (/decade), at the break point. A positive root has the same modulus and reversed phase sign. Negative constant: .
- Procedure: compute , factor, list break points, draw the modulus changing slope at each one, add the phases, read modulus and phase at .
Main steps of the examples
- : , zero , poles and .
- Pole at : at , at ; phase up to , at , from .
- : at , between and , at ; phase , between and , beyond . Exact values , , dB.
- , input : asymptotic , exact .
Typical mistakes
- Factor at the origin drawn flat.
- Pole phase from to instead of to .
- Factors not normalized to .
- Units on the logarithmic axis.
- Forgetting the sign of a negative gain.
- Adding moduli instead of dB.
More points to remember
- Why dB: the modulus of a product is the product of the moduli and phases add, so with dB the overall diagram is the point-by-point sum of the diagrams of the factors. equals .
- Table of factors (modulus, phase): constant gives ; zero at the origin , ; pole at the origin , ; real zero then , phase to ; real pole then , phase to ; complex zeros , to ; complex poles , to .
- Zero at and pole at on unit gain: to , to at , then flat at . Break points have a exact-asymptotic gap and the phase error is at most about at the ends of the ramp.
- To fix the level of the asymptotic modulus compute one point, for instance or with the factor at the origin.
- Band-pass example phases: for , ramp of the first pole from to , ramp of the second from to ; exact phases , , , , , at .