Signals and Systems: Lecture 9: Infinite Impulse Response Filters
Signals and Systems: Lecture 9: Infinite Impulse Response Filters
Fall 2018
G. Ducard 1 / 41
Outline
Outline
Characteristics :
M input coefficients bk ∈ R,
N − 1 output coefficients ak ∈ R.
filter order: is given by max(M − 1, N − 1) and corresponds
to the number of delay elements an implementation of the
filter would require;
it is also the size of the state in a state-space description
of the system. G. Ducard 4 / 41
Infinite Impulse Response Filters
IIR filter : difference equation
First-Order Low-Pass Filter
Transfer function
IIR Filter Design
Key differences :
1 the output of a causal IIR filter is dependent on both the filter’s input
and on previous outputs (if one or more coefficients ak are non-zero).
2 Dependence on previous output(s) generally implies that the impulse
response has infinite length (hence the name: IIR filter).
3 IIR filters are not necessarily stable: the stability depends on the
coefficients ak .
G. Ducard 5 / 41
Infinite Impulse Response Filters
IIR filter : difference equation
First-Order Low-Pass Filter
Transfer function
IIR Filter Design
Outline
The goal of IIR filter design : find coefficients ak and bk such that the filter
meets given specifications and is stable.
IIR filter design :
often employs established continuous-time (CT) filter design methods, for
example Butterworth filter design,
and then transforms the resulting CT filter into DT.
Outline
Consider the causal, first-order, low-pass IIR filter, which has the
difference equation
Intuition :
For α 6= 0, this is an infinite impulse response filter.
If α = 0 the output is equal to the input and no filtering
occurs.
As α → 1, the output becomes increasingly constant.
G. Ducard 9 / 41
Definition
Infinite Impulse Response Filters
Properties
First-Order Low-Pass Filter
Design considerations
IIR Filter Design
Connection to CT systems
Transfer function
1−α
H(z) = .
1 − α z −1
Stability discussion:
The filter has a single pole at z = α.
It immediately follows that the filter is stable if 0 ≤ α < 1.
Frequency response
1−α
H (Ω) = .
1 − α e−jΩ
G. Ducard 10 / 41
Definition
Infinite Impulse Response Filters
Properties
First-Order Low-Pass Filter
Design considerations
IIR Filter Design
Connection to CT systems
Outline
Therefore
π
− < ∠H(Ω) ≤ 0.
2 G. Ducard 12 / 41
Definition
Infinite Impulse Response Filters
Properties
First-Order Low-Pass Filter
Design considerations
IIR Filter Design
Connection to CT systems
α = 0.9
0.5
Ω
0
0 π/2 π
0
∠H(Ω)
Ω
−π/2
0 π/2 π
G. Ducard 13 / 41
Definition
Infinite Impulse Response Filters
Properties
First-Order Low-Pass Filter
Design considerations
IIR Filter Design
Connection to CT systems
Outline
Choice of parameter α
To choose n , let :
Ts be the sampling time,
and T0 be the desired time for the continuous process to decay to e−1 ,
i.e., T0 = n Ts .
T
T0 1 − s
n= ⇒ α = e− n = e T0 ,
Ts
we assume that T0 is an integer multiple of Ts (if this is not the case, n may be rounded).
Example :
α = exp(−0.01) ≈ 0.99.
Outline
e−1
t
τ
As discussed in Lecture 1, this solution is valid on any time interval because the
system is time invariant. Substituting the decay time T0 for the time constant
τ , the resulting difference equation becomes
T T
− Ts − Ts
y[n] = e 0 y[n − 1] + (1 − e 0 )u[n − 1] = αy[n − 1] + (1 − α)u[n − 1]
which closely resembles the first-order, low-pass IIR filter, except that the input
is delayed by one sample. G. Ducard 18 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
Outline
G. Ducard 20 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
Outline
−40
|R(ω)| (dB)
−80
−120 K=2
K=3
K=8
−160
10−2 10−1 100 101 102
ω
G. Ducard 22 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
1 1
R(ω) = √ = (1 + ω 2K )− 2 ,
1+ω 2K
Conclusion
This means that the Butterworth filter has no ripples.
In other words, all derivatives of R up to 2K − 1 are 0 at 0 and the filter is said
to be maximally flat.
G. Ducard 23 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
Transfer function
Let H(s) be the transfer function of a filter with frequency response R(ω).
We then have that
1
H(s) = K
,
Q
(s − sk )
k=1
j(2k+K−1)π
where sk = e 2K , k = 1, . . . , K.
G. Ducard 24 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
−1 + j
s1 = ej3π/4 = √ , (135◦ )
2
−1 − j
s2 = ej5π/4 = √ , (225◦ )
2
which results in the transfer function
1 1
H(s) = 1−j 1+j
= √ .
(s + √ )(s + √ ) s2 + 2s + 1
2 2
G. Ducard 25 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
Im(s)
K =2
135◦
Re(s)
−135◦
G. Ducard 26 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
Im(s)
K=3
120◦
Re(s)
−120◦
G. Ducard 27 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
ωc 2
H(s) = √ ,
s2 + 2ωc s + ωc 2
which has the same response
√ as a mass-spring-damper system with
sub-critical damping 1/ 2 and natural frequency ωc .
G. Ducard 28 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
Outline
G. Ducard 30 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
Y (z) = zU (z),
then
y[n] = u[n + 1].
sTs
Similarly, in CT, e can be given the interpretation of a time shift operator. If
where Y (s) and U (s) are the Laplace transform of y(t) and u(t), respectively,
then
y(t) = u(t + Ts ).
Therefore, the two operators are equivalent:
z = esTs .
G. Ducard 31 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
G. Ducard 32 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
DC- CT mapping
We now evaluate the bilinear transform along the imaginary axis of the s-plane;
that is, let s = jω. Using the bilinear transform, this point maps to
1 + jω T2s
z= .
1 − jω T2s
Note that
1 + jω Ts
2
|z| = = 1.
1 − jω T2s
Conclusion
The bilinear transform therefore maps the imaginary axis of the s-plane to the
unit circle in the z-plane.
G. Ducard 33 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
DC- CT mapping
We therefore write
1 + jω T2s
z = ejΩ = ,
1 − jω T2s
and calculate the mapping of a CT frequency ω to a DT frequency Ω as:
∠ejΩ = ∠(1 + jω T2s ) − ∠(1 − jω T2s )
Ω = arctan(ω T2s ) − arctan(−ω T2s )
= 2 arctan(ω T2s ).
Conclusion
The frequency response of the CT system at ω (the CT transfer function
evaluated on the imaginary axis at s = jω)
directly corresponds to
the frequency response of the resulting DT system at Ω = 2 arctan(ω T2s ) (the
DT transfer function evaluated on the unit circle at z = ejΩ ).
DC- CT mapping
For small ωTs , the DT frequency is approximately Ω ≈ 2(ω T2s ) = ωTs . This is
also evident when we plot the mapping of CT frequencies to DT frequencies for
z = esTs and the bilinear transform:
Ω Ω = ωTs
π Ω = 2 arctan(ωTs /2)
2
π/2
ω
0
0 2/Ts π/Ts
Frequency warping
The underlying nonlinear relation between ω and Ω is called frequency warping.
A few common values are:
ω=0 ⇒ Ω=0
ω=∞ ⇒ Ω=π
2 π
ω= ⇒ Ω=
Ts 2
jΩ
s = jω ⇒ z = e .
Summary
The bilinear transform preserves stability and maps the imaginary axis in the
s-plane to the unit circle in the z-plane by compressing the CT frequencies
−∞ < ω < ∞ to DT frequencies −π < Ω < π.
G. Ducard 37 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
1 1 − α 1 + z −1
H(z) = =
1 + τ T2s z−1 1 − αz −1 2
z+1
with
Ts
1− 2τ
α= Ts
.
1+ 2τ
G. Ducard 38 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
G. Ducard 39 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
H(z = −1) = 0
This corresponds to
z = −1 = e−jπ
which is the highest possible DT frequency .
Conclusion :
the frequency responses at the highest possible frequencies are the same for the
CT and the DT system when using the bilinear transform.
⇒ It follows that their high-frequency behavior is similar, which is one of the
advantages of the bilinear transform. G. Ducard 40 / 41
Infinite Impulse Response Filters Methodology
First-Order Low-Pass Filter CT Butterworth filter design
IIR Filter Design Bilinear transform
1 Continuous-time
Bilinear transform
|H(Ω)|
ZOH
0.5 Direct
90
∠H(Ω)
0
−90
0 π/2 π
G. Ducard 41 / 41