Filters are devices which are commonly found in electronic gadgets. When you adjust the bass (low frequency) or treble (high frequency) settings on your MP3 player, you are adjusting the characteristics of a filter. A more technical name for a filter is a linear system . A filter is represented by a box having a single input (usually x(t)x(t)) and a single output (say, y(t)y(t)) as seen in Figure 1.
We can denote the operation the filter has on the input using the following notation:
y
(
t
)
=
L
x
(
t
)
y
(
t
)
=
L
x
(
t
)
(1)
The types of filters we will consider in this book are linear and time-invariant.
A filter is time-invariant if given that y(t)=Lx(t)y(t)=Lx(t), then y(t-τ)=Lx(t-τ)y(t-τ)=Lx(t-τ). In other words, if the input to the filter is delayed by ττ, then the output is also delayed by ττ.
A filter is linear if given that y1(t)=Lx1(t)y1(t)=Lx1(t) and y2(t)=Lx2(t)y2(t)=Lx2(t) then
α
y
1
(
t
)
+
β
y
2
(
t
)
=
L
α
x
1
(
t
)
+
β
x
2
(
t
)
α
y
1
(
t
)
+
β
y
2
(
t
)
=
L
α
x
1
(
t
)
+
β
x
2
(
t
)
(2)
Equation Equation 2 is often referred to as the superposition principle. We can use linearity and time invariance to derive the mathematical operation which the filter performs on the input, x(t)x(t). To do this we begin with the assumption that
h
(
t
)
=
L
δ
(
t
)
h
(
t
)
=
L
δ
(
t
)
(3)
The signal h(t)h(t) is called the impulse response of the filter. From time invariance, we have
h
(
t
-
τ
)
=
L
δ
(
t
-
τ
)
h
(
t
-
τ
)
=
L
δ
(
t
-
τ
)
(4)
Now we can use linearity to find the filter output when the input is x(τ)δ(t-τ)x(τ)δ(t-τ), where x(τ)x(τ) is a constant
x
(
τ
)
h
(
t
-
τ
)
=
L
[
x
(
τ
)
δ
(
t
-
τ
)
]
x
(
τ
)
h
(
t
-
τ
)
=
L
[
x
(
τ
)
δ
(
t
-
τ
)
]
(5)
We can extend the linearity property further by noting that
∑
n
x
(
τ
n
)
Δ
n
h
(
t
-
τ
n
)
=
L
[
∑
n
x
(
τ
n
)
Δ
n
δ
(
t
-
τ
n
)
]
∑
n
x
(
τ
n
)
Δ
n
h
(
t
-
τ
n
)
=
L
[
∑
n
x
(
τ
n
)
Δ
n
δ
(
t
-
τ
n
)
]
(6)
where we can assume that the constants τnτn are ordered so that τi<τk,i<kτi<τk,i<k and Δn≡τn-τn-1Δn≡τn-τn-1. In Equation 6, we are simply multiplying each δ(t-τn)δ(t-τn) by the constant x(τn)Δnx(τn)Δn, so once again linearity should prevail. Now if we take the limit Δn→0Δn→0, we obtain
∫
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
=
L
∫
∞
∞
x
(
τ
)
δ
(
t
-
τ
)
d
τ
∫
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
=
L
∫
∞
∞
x
(
τ
)
δ
(
t
-
τ
)
d
τ
(7)
Using the sifting property of the unit impulse in the right side of Equation 7 gives
∫
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
=
L
x
(
t
)
∫
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
=
L
x
(
t
)
(8)
So it follows that the filter performs the following operation on the input, x(t)x(t):
y
(
t
)
=
L
x
(
t
)
=
∫
-
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
y
(
t
)
=
L
x
(
t
)
=
∫
-
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
(9)
The integral in Equation 9 is called the convolution integral. A change of variables can be used to show that
∫
-
∞
∞
h
(
τ
)
x
(
t
-
τ
)
d
τ
=
∫
-
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
∫
-
∞
∞
h
(
τ
)
x
(
t
-
τ
)
d
τ
=
∫
-
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
(10)
which means that the order in which two signals are convolved is unimportant. A short-hand notation for convolution is
∫
-
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
≡
x
(
t
)
*
h
(
t
)
∫
-
∞
∞
x
(
τ
)
h
(
t
-
τ
)
d
τ
≡
x
(
t
)
*
h
(
t
)
(11)