Salta al contenuto
Note per Studenti Introduction to Filters Report

Introduction to Filters

In questa pagina 4

Setting: a system with input u(t)u(t) and output y(t)y(t) that is LTI, convolutional (y=h∗uy=h*u) and BIBO stable (h∈L1h\in L^1).

u(t) ----> [ h(t) ] ----> y(t)

Definition

Definition (filter). Filters are systems that process or remove some unwanted components or features (e.g., in terms of harmonics) from a signal.

 input spectrum u          |H(jw)|  (low-pass shape)        output spectrum y
 a0 a1 a2 a3 at            1 ___                            b0 b1 b2 b3
 0, w0, 2w0, 3w0           w0 2w0 3w0   decreasing   -->     (higher harmonics attenuated)

(The scan draws the amplitudes a0,a1,a2,a3a_0,a_1,a_2,a_3 of the harmonics at 0,ω0,2ω0,3ω00,\omega_0,2\omega_0,3\omega_0 entering a block with a decaying ∣H(jω)∣|H(j\omega)|, and the output amplitudes b0,…,b3b_0,\dots,b_3; by Fourier Series Applied to LTI SystemsA BIBO-stable convolutional LTI system maps a T-periodic finite-energy input to a T-periodic finite-energy output whose Fourier coefficients are the input coefficients multiplied by the frequency response sampled at n omega_0, which is why such systems act as filters.Fourier Series Applied to LTI Systems →, bn=H(jnω0) anb_n=H(jn\omega_0)\,a_n.)

  • If a filter processes signal components it is called a frequency-shaping filter, e.g. an audio equalizer.
  • If a filter removes signal components it is called a frequency-selective filter, e.g. the human hearing system.

Example of a shaping filter: the differentiator

y(t)=dudt(t)y(t)=\dfrac{du}{dt}(t). Actually this system is not BIBO stable, but let us move on. Feeding ejωte^{j\omega t}: ejωt⟼H(jω)ejωt=jω ejωt  ⇒  H(jω)=jω,∣H(jω)∣=∣ω∣ (a V shape).e^{j\omega t}\longmapsto H(j\omega)e^{j\omega t}=j\omega\,e^{j\omega t}\;\Rightarrow\;\boxed{H(j\omega)=j\omega},\qquad|H(j\omega)|=|\omega|\ (\text{a V shape}). What is its impulse response? Start from the sifting property of δ\delta, then change variable s=t−τs=t-\tau, ds=−dτds=-d\tau: u˙(t)=∫−∞+∞δ(t−τ) u˙(τ) dτ=∫−∞+∞δ(s) u˙(t−s) ds=−δ(s)u(t−s)∣−∞+∞+∫−∞+∞δ(1)(s) u(t−s) ds=δ(1)∗u(t)\dot u(t)=\int_{-\infty}^{+\infty}\delta(t-\tau)\,\dot u(\tau)\,d\tau=\int_{-\infty}^{+\infty}\delta(s)\,\dot u(t-s)\,ds =-\delta(s)u(t-s)\Big|_{-\infty}^{+\infty}+\int_{-\infty}^{+\infty}\delta^{(1)}(s)\,u(t-s)\,ds=\delta^{(1)}*u(t) (integration by parts plus the chain rule; the boundary term is 00). Hence h(t)=δ(1)(t)the unit doublet.\boxed{h(t)=\delta^{(1)}(t)}\qquad\text{the unit doublet.}

Example of a selective filter: the RC low-pass filter

Circuit: a source vS(t)=u(t)v_S(t)=u(t) in series with a resistor RR and a capacitor CC; the output is the capacitor voltage vC(t)=y(t)v_C(t)=y(t). dvC(t)dt+1RCvC(t)=1RCvS(t).\frac{dv_C(t)}{dt}+\frac1{RC}v_C(t)=\frac1{RC}v_S(t). The filter's behavior is described by a differential equation: dydt(t)+ωc y(t)=ωc u(t),ωc:=1RC>0.\frac{dy}{dt}(t)+\omega_c\,y(t)=\omega_c\,u(t),\qquad\omega_c:=\frac1{RC}>0 . Observation: the system is LTI, so (if it is also convolutional) y(t)=H(jω)ejωty(t)=H(j\omega)e^{j\omega t} for u=ejωtu=e^{j\omega t}. Substituting, jωH(jω)ejωt+ωcH(jω)ejωt=ωcejωt  ⇒  (jω+ωc)H(jω)=ωc  ⇒  H(jω)=ωcωc+jωj\omega H(j\omega)e^{j\omega t}+\omega_cH(j\omega)e^{j\omega t}=\omega_ce^{j\omega t}\;\Rightarrow\;(j\omega+\omega_c)H(j\omega)=\omega_c \;\Rightarrow\;\boxed{H(j\omega)=\frac{\omega_c}{\omega_c+j\omega}} (ejωte^{j\omega t} cancels: "what a fabulous strike!"). HH exists and is finite for all ω\omega, so the system is convolutional with no doubt.

(i) Why does this filter select frequencies?

∣H(jω)∣=ωcωc2+ω2,∠H(jω)=−arctan⁡ ⁣(ωωc).|H(j\omega)|=\frac{\omega_c}{\sqrt{\omega_c^2+\omega^2}},\qquad\angle H(j\omega)=-\arctan\!\left(\frac\omega{\omega_c}\right).

 |H(jw)|
  1 |         ______  ideal low-pass (magenta): 1 on [-wc, wc], 0 outside
    |       /       \
1/sqrt2 |- - /- - - - -\ - -      real RC response (blue): bell shape,
    |    /             \          equal to 1/sqrt(2) at w = +-wc
  0 +---+-------+-------+----> w
       -wc      0       wc

 angle H(jw): 0 at w = 0, -pi/4 at w = wc, tends to -pi/2 as w grows
              (odd function: +pi/4 at w = -wc, tends to +pi/2 for w -> -inf)

Harmonics with higher frequencies are attenuated, while those with low frequencies are almost preserved. However, real devices must be causal, and this prevents the realization of ideal filters (that are acausal). The meaning of ωc\omega_c: cutoff frequency.

(ii) How do we prove BIBO stability from the impulse response?

Since this system exists in the real world it must be causal, hence h(t)=0h(t)=0 for all t<0t<0. (Theoretically h(t)h(t) for t<0t<0 could take any value, but we impose causality.) What about t≥0t\ge0? For ωcωc+jω=H(jω)=∫−∞+∞h(t)e−jωtdt\frac{\omega_c}{\omega_c+j\omega}=H(j\omega)=\int_{-\infty}^{+\infty}h(t)e^{-j\omega t}dt to hold, one of the possibilities is h(t)=ωc e−ωct 1(t)\boxed{h(t)=\omega_c\,e^{-\omega_ct}\,\mathbb{1}(t)} and it is the unique possibility if the constraint h(t)=0h(t)=0 for all t<0t<0 is imposed. Check: H(jω)=∫0+∞ωce−ωcte−jωtdt=ωce−(ωc+jω)t−(ωc+jω)∣0+∞=ωc>0ωcωc+jω.H(j\omega)=\int_0^{+\infty}\omega_ce^{-\omega_ct}e^{-j\omega t}dt=\omega_c\left.\frac{e^{-(\omega_c+j\omega)t}}{-(\omega_c+j\omega)}\right|_0^{+\infty}\overset{\omega_c>0}{=}\frac{\omega_c}{\omega_c+j\omega}. Moreover ∫−∞+∞∣ωce−ωcτ∣1(τ)dτ=ωce−ωcτ−ωc∣0+∞=1\displaystyle\int_{-\infty}^{+\infty}|\omega_ce^{-\omega_c\tau}|\mathbb{1}(\tau)d\tau=\omega_c\left.\frac{e^{-\omega_c\tau}}{-\omega_c}\right|_0^{+\infty}=1, so h∈L1h\in L^1 and the system is BIBO stable.

Note. Physical systems are characterized by h(t)∈Rh(t)\in\mathbb{R}; thus H(jω)H(j\omega) for all ω<0\omega<0 conveys no information about the system, because h(t)∈R  ⟺  H(jω)h(t)\in\mathbb{R}\iff H(j\omega) is Hermitian.

Remarks

  1. Inspecting differential equations tells us a lot about the system properties. For instance, the fact that ωc>0\omega_c>0 determines the BIBO stability of the low-pass filter.
  2. To design filters we need parametric systems with at least a free parameter, such as ωc=1RC\omega_c=\frac1{RC} in the low-pass filter. So higher-order derivatives in these mathematical models may be involved (see Linear Constant-Coefficient Differential EquationsContinuous-time LTI convolutional systems are described by linear constant-coefficient ODEs whose general solution is a homogeneous part, a combination of modes t^m e^{pt} built from the roots of the characteristic polynomial, plus a particular part; boundary conditions pick one solution of the family.Linear Constant-Coefficient Differential Equations →).

All four are drawn with an ideal rectangular ∣H(jω)∣|H(j\omega)| (height 11 in the pass region, 00 elsewhere), symmetric in ω\omega:

LOW-PASS:   |H| = 1 for |w| < wc            (pass: -wc .. wc)
HIGH-PASS:  |H| = 1 for |w| > wc            (pass: |w| beyond wc)
BAND-PASS:  |H| = 1 for wc- < |w| < wc+     (two bands, one at positive and one at negative w;
                                             edges named wc^- and wc^+)
BAND-STOP:  |H| = 0 for wc- < |w| < wc+     (everything else passes)
  • Low-pass and high-pass: the implementation requires a first-order differential equation.
  • Band-pass and band-stop: the implementation requires a second-order differential equation.

In a few lectures filters will be studied in detail.

Versione ripasso

  • Filter: system (LTI, convolutional, BIBO stable) that processes or removes unwanted components, e.g. harmonics. Output coefficients Y=H(jnω0)UY=H(jn\omega_0)U.
  • Frequency-shaping (processes components, e.g. audio equalizer) vs frequency-selective (removes components, e.g. human hearing system).
  • Differentiator y=u˙y=\dot u: H(jω)=jωH(j\omega)=j\omega, ∣H∣=∣ω∣|H|=|\omega|, h(t)=δ(1)(t)h(t)=\delta^{(1)}(t) (unit doublet; via sifting and integration by parts, u˙=δ(1)∗u\dot u=\delta^{(1)}*u). Not BIBO stable.
  • RC low-pass y˙+ωcy=ωcu\dot y+\omega_cy=\omega_cu, ωc=1/RC>0\omega_c=1/RC>0: plug ejωte^{j\omega t}, get H(jω)=ωcωc+jωH(j\omega)=\dfrac{\omega_c}{\omega_c+j\omega}, ∣H∣=ωcωc2+ω2|H|=\dfrac{\omega_c}{\sqrt{\omega_c^2+\omega^2}}, ∠H=−arctan⁡(ω/ωc)\angle H=-\arctan(\omega/\omega_c); at ω=ωc\omega=\omega_c: ∣H∣=1/2|H|=1/\sqrt2, phase −π/4-\pi/4. ωc\omega_c = cutoff frequency.
  • Impulse response (causal, unique): h(t)=ωce−ωct1(t)h(t)=\omega_ce^{-\omega_ct}\mathbb{1}(t), ∥h∥1=1\|h\|_1=1, hence BIBO stable because ωc>0\omega_c>0.
  • Ideal filters (rectangular ∣H∣|H|) are acausal, so real devices only approximate them. hh real   ⟺  \iff HH Hermitian, so ω<0\omega<0 carries no extra information.
  • Four selective filters: low-pass, high-pass (first-order ODE), band-pass, band-stop (second-order ODE). Design needs at least one free parameter.
  • Typical mistakes: assuming a differentiator is BIBO stable; forgetting causality when inverting HH to get hh; ωc<0\omega_c<0 (unstable system).

Teoria collegata