Salta al contenuto
Note per Studenti Transfer Function and Bode Plots Report

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 A(s)=Vout(s)/Vin(s)A(s)=V_{out}(s)/V_{in}(s) is a rational function of ss. For sinusoidal signals put s=jωs=j\omega: the complex function A(jω)A(j\omega) is the frequency response and says how a signal sin⁡(ωt)\sin(\omega t) is modified:

vin=Vsin⁡(ω0t+φ) ⟹ vout=V ∣A(jω0)∣ sin⁡(ω0t+φ+∠A(jω0)).v_{in}=V\sin(\omega_0t+\varphi)\ \Longrightarrow\ v_{out}=V\,|A(j\omega_0)|\,\sin\big(\omega_0t+\varphi+\angle A(j\omega_0)\big).

Example. With ∣A(jω0)∣=10|A(j\omega_0)|=10 and ∠A(jω0)=−45∘\angle A(j\omega_0)=-45^\circ, an input 0.1sin⁡(ω0t) V0.1\sin(\omega_0t)\ \mathrm V gives vout=1sin⁡(ω0t−45∘) Vv_{out}=1\sin(\omega_0t-45^\circ)\ \mathrm V.

The modulus ∣A(jω)∣|A(j\omega)| (usually in dB, 20log⁡1020\log_{10}) gives the amplification and the phase ∠A(jω)\angle A(j\omega) 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 ω\omega (in rad/s) on a logarithmic scale, or log⁡ω\log\omega. On the modulus axis put dB.

Factored form (Bode form)

Definition (factored Bode form). After deriving A(s)A(s) from the circuit it is written in the form with dimensionless factors:

A(s)=A0 (sTz1)⋯(sTzk) (1+sTz,k+1)⋯(1+sTzM)(sTp1)⋯(sTph) (1+sTp,h+1)⋯(1+sTpN).A(s)=A_0\,\frac{(sT_{z1})\cdots(sT_{zk})\,(1+sT_{z,k+1})\cdots(1+sT_{zM})}{(sT_{p1})\cdots(sT_{ph})\,(1+sT_{p,h+1})\cdots(1+sT_{pN})}.

  • Zeros and poles are the values of ss that cancel numerator and denominator. The factor (1+sT)(1+sT) has root s=−1/Ts=-1/T and is also written (1+s/ωi)(1+s/\omega_i) with ωi=1/T\omega_i=1/T the angular frequency of the pole/zero (for positive roots the factor is (1−s/ωi)(1-s/\omega_i)).
  • Factors (sT)(sT) are zeros or poles at the origin.
  • Complex conjugate roots are grouped in (1+2ξ sωn+s2ωn2)\big(1+2\xi\,\tfrac s{\omega_n}+\tfrac{s^2}{\omega_n^2}\big), with ωn\omega_n natural frequency and ξ∈[0,1]\xi\in[0,1] damping coefficient.
  • In every factor (1+⋯ )(1+\cdots) the constant term must be 1: the constant A0A_0 is then the low-frequency gain (if there are no zeros or poles at the origin).

Reduction example: A(s)=2+0.02 s(0.1+s)(1+10−3s)A(s)=\dfrac{2+0.02\,s}{(0.1+s)(1+10^{-3}s)}: take out 22 from the numerator and 0.10.1 from the first factor: A(s)=20.1⋅1+0.01s(1+10s)(1+10−3s)=20⋅1+s/100(1+s/0.1)(1+s/1000)A(s)=\dfrac{2}{0.1}\cdot\dfrac{1+0.01s}{(1+10s)(1+10^{-3}s)}=20\cdot\dfrac{1+s/100}{(1+s/0.1)(1+s/1000)}: constant 20 (26 dB)20\ (26\ \mathrm{dB}), zero at 100 rad/s100\ \mathrm{rad/s}, poles at 0.10.1 and 1000 rad/s1000\ \mathrm{rad/s}.

The modulus: asymptotic diagram

Property (asymptotic modulus of a real pole). For each factor consider two limit cases. For a real pole 11+jω/ωp\dfrac1{1+j\omega/\omega_p}:

  • ω≪ωp\omega\ll\omega_p: the imaginary part is negligible, ∣⋅∣≃1|\cdot|\simeq1 (0 dB0\ \mathrm{dB});
  • ω≫ωp\omega\gg\omega_p: the imaginary part dominates, ∣⋅∣≃ωp/ω|\cdot|\simeq\omega_p/\omega: −20 dB/decade-20\ \mathrm{dB/decade} (every time ω\omega is multiplied by 10 the modulus is divided by 10; equivalent to −6 dB/octave-6\ \mathrm{dB/octave});
  • at ω=ωp\omega=\omega_p the exact modulus is 1/21/\sqrt2, i.e. −3 dB-3\ \mathrm{dB} below the asymptote. The two half-lines join at ωp\omega_p, 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 ωp=1000 rad/s\omega_p=1000\ \mathrm{rad/s}: at ωp\omega_p the modulus is −3 dB-3\ \mathrm{dB} and at ω=104 rad/s\omega=10^4\ \mathrm{rad/s} it is about −20 dB-20\ \mathrm{dB} (exact −20.04 dB-20.04\ \mathrm{dB}).

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 (1+jω/ωz)(1+j\omega/\omega_z) does the opposite: 0 dB0\ \mathrm{dB} up to ωz\omega_z and then +20 dB/decade+20\ \mathrm{dB/decade} (+3 dB+3\ \mathrm{dB} at ωz\omega_z).

Property (asymptotic modulus and phase of the single factors).

Factor Asymptotic modulus Phase
constant A0>0A_0>0 constant 20log⁡A020\log A_0 00
constant A0<0A_0<0 same with ∣A0∣\lvert A_0\rvert ±180∘\pm180^\circ
zero at the origin s/ωzs/\omega_z +20+20 dB/dec, 0 dB0\ \mathrm{dB} at ωz\omega_z +90∘+90^\circ
pole at the origin ωp/s\omega_p/s −20-20 dB/dec, 0 dB0\ \mathrm{dB} at ωp\omega_p −90∘-90^\circ
real zero (1+s/ωz)(1+s/\omega_z) 00 up to ωz\omega_z, then +20+20 dB/dec from 00 to +90∘+90^\circ
real pole (1+s/ωp)−1(1+s/\omega_p)^{-1} 00 up to ωp\omega_p, then −20-20 dB/dec from 00 to −90∘-90^\circ
pair of complex zeros 00 up to ωn\omega_n, then +40+40 dB/dec from 00 to +180∘+180^\circ
pair of complex poles 00 up to ωn\omega_n, then −40-40 dB/dec from 00 to −180∘-180^\circ
positive real root (1−s/ω)(1-s/\omega) same modulus as the negative root sign of the phase reversed

Example. With a zero at 100 rad/s100\ \mathrm{rad/s} and a pole at 1000 rad/s1000\ \mathrm{rad/s} on unit gain: 0 dB0\ \mathrm{dB} up to 100100, then +20 dB/dec+20\ \mathrm{dB/dec} up to +20 dB+20\ \mathrm{dB} at 10001000, then flat again at +20 dB+20\ \mathrm{dB}.

For complex pairs the asymptotic diagrams do not depend on ξ\xi; ξ\xi only changes the behaviour around ωn\omega_n (for ξ<0.707\xi<0.707 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 −arctan⁡(ω/ωp)-\arctan(\omega/\omega_p): −45∘-45^\circ at ωp\omega_p and asymptotes at 0∘0^\circ and −90∘-90^\circ. In the asymptotic diagram the two asymptotes are joined by a segment that starts a decade before (ωp/10\omega_p/10) and ends a decade after (10 ωp10\,\omega_p): the phase changes by −90∘-90^\circ over two decades, i.e. with slope −45∘-45^\circ/decade, and is −45∘-45^\circ at ωp\omega_p. For a real zero the same holds with sign ++. For factors at the origin the phase is constant (±90∘\pm90^\circ). For positive poles or zeros the sign of the variation is opposite: for example (1−s/ωz)(1-s/\omega_z) has the same modulus as (1+s/ωz)(1+s/\omega_z) but its phase falls from 00 to −90∘-90^\circ (the "non-minimum-phase zero").

Example. Pole at ωp=1000 rad/s\omega_p=1000\ \mathrm{rad/s}: the phase is 0∘0^\circ up to 100 rad/s100\ \mathrm{rad/s}, −45∘-45^\circ at 1000 rad/s1000\ \mathrm{rad/s} and −90∘-90^\circ from 104 rad/s10^4\ \mathrm{rad/s} on.

Complete procedure

  1. Compute A(s)A(s) 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 →).
  2. Put it in factored form with constant and factors (1+s/ωi)(1+s/\omega_i).
  3. List the break points (the ωi\omega_i) in increasing order.
  4. Modulus: start from the low-frequency segment (constant, or a line with slope ±20 dB/dec\pm20\ \mathrm{dB/dec} for each factor at the origin) and change slope by ∓20\mp20 (pole) or ±20\pm20 (zero) dB/dec at each ωi\omega_i. To fix the level compute the value at one point (for example at ω=ωz\omega=\omega_z or ω=1\omega=1 with the formula of the factor at the origin).
  5. Phase: add the contributions of the single factors, each with its two-decade segment.
  6. Evaluate the output for a sinusoidal input with the formula of the first paragraph, reading modulus and phase at ω0\omega_0.

Complete example

A(s)=100 s(1+s/10)(1+s/104)(band-pass).A(s)=\frac{100\,s}{(1+s/10)(1+s/10^4)}\quad(\text{band-pass}).

  • Factors: constant 100100 (40 dB40\ \mathrm{dB}), a zero at the origin (+20+20 dB/dec), poles at ω=10\omega=10 and ω=104\omega=10^4.
  • Modulus: for ω≪10\omega\ll10 it is ∣A∣≃100 ω|A|\simeq100\,\omega, which is 40 dB40\ \mathrm{dB} at ω=1\omega=1 (line +20+20 dB/dec). At ω=10\omega=10 it is 60 dB60\ \mathrm{dB} and the slope becomes 00; it stays at 60 dB60\ \mathrm{dB} up to ω=104\omega=10^4 and then falls by 2020 dB/dec (40 dB40\ \mathrm{dB} at 10510^5).
  • Phase: +90∘+90^\circ (zero at the origin) from which the ramp of the first pole (from ω=1\omega=1 to ω=100\omega=100) and that of the second (from 10310^3 to 10510^5) are subtracted: +90∘+90^\circ for ω<1\omega<1, 0∘0^\circ between 100100 and 10001000 (centre of the band), −90∘-90^\circ beyond 10510^5.

Exact values: 20log⁡∣A∣20\log|A| is 39.96, 56.99, 59.96, 59.96, 56.99, 39.96 dB39.96,\ 56.99,\ 59.96,\ 59.96,\ 56.99,\ 39.96\ \mathrm{dB} for ω=1,10,102,103,104,105\omega=1,10,10^2,10^3,10^4,10^5 (maximum deviation 3 dB3\ \mathrm{dB} at the break points), phase 84.3∘, 44.9∘, 5.1∘, −5.1∘, −44.9∘, −84.3∘84.3^\circ,\ 44.9^\circ,\ 5.1^\circ,\ -5.1^\circ,\ -44.9^\circ,\ -84.3^\circ.

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 A(s)=10 1+s/100(1+s/10)(1+s/1000)A(s)=10\,\dfrac{1+s/100}{(1+s/10)(1+s/1000)} (gain 20 dB20\ \mathrm{dB}, poles 1010 and 10001000, zero 100100) with vin=sin⁡(200 t)v_{in}=\sin(200\,t): from the asymptotic diagram at ω=200\omega=200 the modulus is 20−20log⁡1020010+20log⁡10200100=20−26.02+6.02=0 dB20-20\log_{10}\frac{200}{10}+20\log_{10}\frac{200}{100}=20-26.02+6.02=0\ \mathrm{dB} (∣A∣≈1|A|\approx1) and the phase −90∘+58.5∘−13.5∘=−45∘-90^\circ+58.5^\circ-13.5^\circ=-45^\circ; the exact value is ∣A∣=1.095|A|=1.095, phase −35∘-35^\circ. The asymptotic diagram gives vout≈sin⁡(200t−45∘)v_{out}\approx\sin(200t-45^\circ) against the exact 1.095sin⁡(200t−35∘)1.095\sin(200t-35^\circ): the maximum error is of the order of 3 dB3\ \mathrm{dB} 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 ωp\omega_p to 10ωp10\omega_p instead of from ωp/10\omega_p/10 to 10ωp10\omega_p.
  • Not normalizing the factors to 1+s/ωi1+s/\omega_i (the constant A0A_0 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 ±180∘\pm180^\circ).
  • Adding modulus and phase without going through dB (moduli multiply, dB add).

Versione ripasso

Key statements and formulas

  • Frequency response: A(jω)=A(s)∣s=jωA(j\omega)=A(s)|_{s=j\omega}. Input Vsin⁡(ω0t+φ)V\sin(\omega_0t+\varphi) gives V∣A(jω0)∣sin⁡(ω0t+φ+∠A(jω0))V|A(j\omega_0)|\sin\big(\omega_0t+\varphi+\angle A(j\omega_0)\big).
  • Bode diagram: modulus in dB (20log⁡1020\log_{10}) and phase on a logarithmic ω\omega axis; products become sums. No units on the logarithmic axis.
  • Factored form: A(s)=A0zerospolesA(s)=A_0\frac{\text{zeros}}{\text{poles}} with factors (1+s/ωi)(1+s/\omega_i), (sT)(sT) at the origin, complex pairs 1+2ξsωn+s2ωn21+2\xi\frac{s}{\omega_n}+\frac{s^2}{\omega_n^2}; A0A_0 is the low-frequency gain.
  • Real pole: 0 dB0\ \mathrm{dB} up to ωp\omega_p, then −20 dB/dec-20\ \mathrm{dB/dec}; exact modulus −3 dB-3\ \mathrm{dB} at ωp\omega_p. Real zero: +20 dB/dec+20\ \mathrm{dB/dec} after ωz\omega_z. At the origin: constant slope ±20 dB/dec\pm20\ \mathrm{dB/dec}, 0 dB0\ \mathrm{dB} at ωp\omega_p (or ωz\omega_z).
  • Complex pair: ±40 dB/dec\pm40\ \mathrm{dB/dec} after ωn\omega_n, phase ±180∘\pm180^\circ; resonance peak for ξ<0.707\xi<0.707.
  • Phase: a real pole (zero) gives −90∘-90^\circ (+90∘+90^\circ) with a segment from ω/10\omega/10 to 10ω10\omega (∓45∘\mp45^\circ/decade), ∓45∘\mp45^\circ at the break point. A positive root has the same modulus and reversed phase sign. Negative constant: ±180∘\pm180^\circ.
  • Procedure: compute A(s)A(s), factor, list break points, draw the modulus changing slope at each one, add the phases, read modulus and phase at ω0\omega_0.

Main steps of the examples

  • 2+0.02s(0.1+s)(1+10−3s)=201+s/100(1+s/0.1)(1+s/1000)\frac{2+0.02s}{(0.1+s)(1+10^{-3}s)}=20\frac{1+s/100}{(1+s/0.1)(1+s/1000)}: 26 dB26\ \mathrm{dB}, zero 100100, poles 0.10.1 and 10001000.
  • Pole at 1000 rad/s1000\ \mathrm{rad/s}: −3 dB-3\ \mathrm{dB} at 10001000, −20.04 dB-20.04\ \mathrm{dB} at 10410^4; phase 0∘0^\circ up to 100100, −45∘-45^\circ at 10001000, −90∘-90^\circ from 10410^4.
  • A=100s(1+s/10)(1+s/104)A=\frac{100s}{(1+s/10)(1+s/10^4)}: 40 dB40\ \mathrm{dB} at ω=1\omega=1, 60 dB60\ \mathrm{dB} between 1010 and 10410^4, 40 dB40\ \mathrm{dB} at 10510^5; phase +90∘+90^\circ, 0∘0^\circ between 100100 and 10001000, −90∘-90^\circ beyond 10510^5. Exact values 39.9639.96, 56.9956.99, 59.9659.96 dB.
  • A=101+s/100(1+s/10)(1+s/1000)A=10\frac{1+s/100}{(1+s/10)(1+s/1000)}, input sin⁡(200t)\sin(200t): asymptotic sin⁡(200t−45∘)\sin(200t-45^\circ), exact 1.095sin⁡(200t−35∘)1.095\sin(200t-35^\circ).

Typical mistakes

  • Factor at the origin drawn flat.
  • Pole phase from ωp\omega_p to 10ωp10\omega_p instead of ωp/10\omega_p/10 to 10ωp10\omega_p.
  • Factors not normalized to 1+s/ωi1+s/\omega_i.
  • 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. −20 dB/decade-20\ \mathrm{dB/decade} equals −6 dB/octave-6\ \mathrm{dB/octave}.
  • Table of factors (modulus, phase): constant A0<0A_0<0 gives ±180∘\pm180^\circ; zero at the origin +20 dB/dec+20\ \mathrm{dB/dec}, +90∘+90^\circ; pole at the origin −20 dB/dec-20\ \mathrm{dB/dec}, −90∘-90^\circ; real zero 00 then +20+20, phase 00 to +90∘+90^\circ; real pole 00 then −20-20, phase 00 to −90∘-90^\circ; complex zeros +40+40, 00 to +180∘+180^\circ; complex poles −40-40, 00 to −180∘-180^\circ.
  • Zero at 100100 and pole at 1000 rad/s1000\ \mathrm{rad/s} on unit gain: 0 dB0\ \mathrm{dB} to 100100, +20 dB/dec+20\ \mathrm{dB/dec} to +20 dB+20\ \mathrm{dB} at 10001000, then flat at +20 dB+20\ \mathrm{dB}. Break points have a 3 dB3\ \mathrm{dB} exact-asymptotic gap and the phase error is at most about 5.7∘5.7^\circ at the ends of the ramp.
  • To fix the level of the asymptotic modulus compute one point, for instance ω=ωz\omega=\omega_z or ω=1\omega=1 with the factor at the origin.
  • Band-pass example phases: +90∘+90^\circ for ω<1\omega<1, ramp of the first pole from ω=1\omega=1 to 100100, ramp of the second from 10310^3 to 10510^5; exact phases 84.3∘84.3^\circ, 44.9∘44.9^\circ, 5.1∘5.1^\circ, −5.1∘-5.1^\circ, −44.9∘-44.9^\circ, −84.3∘-84.3^\circ at ω=1,10,102,103,104,105\omega=1,10,10^2,10^3,10^4,10^5.

Teoria collegata