Vous êtes sur la page 1sur 55

DSP-5 (IIR) 1 of 55 Dr.

Ravi Billa
Digital Signal Processing 5 March 15, 2010

V. IIR Digital Filters

(Deleted in 2007 Syllabus). (Added in 2007 Syllabus).

2007 Syllabus: Analog filter approximations Butterworth and Chebyshev, Design of IIR digital
filters from analog filters, Bilinear transformation method, Step and Impulse invariance
techniques, Spectral transformations, Design examples: Analog-Digital transformations

Contents:
5.1 Introduction
5.2 The normalized analog, low pass, Butterworth filter
5.3 Time domain invariance
5.4 Bilinear transformation
5.5 Nonlinear relationship of frequencies in bilinear transformation
5.6 Digital filter design The Butterworth filter
5.7 Analog design using digital filters
5.8 Frequency transformation
5.9 The Chebyshev filter
5.10 The Elliptic filter

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 2 of 55 Dr. Ravi Billa
5.1 Introduction

Nomenclature With a
0
= 1 in the linear constant coefficient difference equation,
a
0
y(n) + a
1
y(n1) + + a
N
y(nN)
= b
0
x(n) + b
1
x(n1) + + b
M
x(nM), a
0
= 0
we have,
H(z) =

+
N
i
i
i
M
i
i
i
z a
z b
1
0
1

This represents an IIR filter if at least one of a
1
through a
N
is nonzero, and all the roots of the
denominator are not canceled exactly by the roots of the numerator. In general, there are M finite
zeros and N finite poles. There is no restriction that M should be less than or greater than or equal
to N. In most cases, especially digital filters derived from analog designs, M N. Systems of this
type are called N
th
order systems. This is the case with IIR filter design in this Unit.
When M > N, the order of the system is no longer unambiguous. In this case, H(z) may be
taken to be an N
th
order system in cascade with an FIR filter of order (M N).
When N = 0, as in the case of an FIR filter, according to our convention the order is 0.
However, it is more meaningful in such a case to focus on M and call the filter an FIR filter of M
stages or (M+1) coefficients.

Example The system H(z) = ) 1 ( ) 1 (
1 8
z z is not an IIR filter. Why (verify)?

IIR filter design An analog filter specified by the Laplace transfer function, H
a
(s), may be
designed to either frequency domain or time domain specifications. Similarly, a digital filter,
H(z), may be required to have either (1) a given frequency response, or (2) a specific time
domain response to an impulse, step, or ramp, etc.

Analog design using digital filters,
i
=
i
T Another possibility is that a digital filter may be
required to simulate a continuous-time (analog) system. To simulate an analog filter the discrete-
time filter is used in the A/D H(z) D/A structure shown below. The A/D converter can be
thought of roughly as a sampler and coder, while the D/A converter, in many cases, represents a
decoder and holder followed by a low pass filter (smoothing filter). The A/D converter may be
preceded by a low pass filter, also called an anti-aliasing filter or pre-filter.


We will usually be given a set of analog requirements with critical frequencies
1
,
2
,,

N
in radians/sec., and the corresponding frequency response magnitudes K
1
, K
2
, , K
N
in dB.
The sampling rate 1/T of the A/D converter will be specified or can be determined from the input
signals under consideration.
Equivalent Analog Filter

x(n) y(n)

x
a
(nT) y
a
(nT)

(1/T) samples/sec (1/T) samples/sec
A/D H(z) D/A
y
a
(t) x
a
(t)
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 3 of 55 Dr. Ravi Billa
The general approach for the design is to first convert the analog requirements to digital
requirements and then design the digital filter using the bilinear transformation. The conversion
of the analog specifications to digital specifications is through the formula
i
=
i
T. To show
that this is true, suppose that the input to the equivalent analog filter is x
a
(t) = t
i
O sin . The output
of the A/D converter with sampling rate 1/T becomes

x(n) = x
a
(nT) = nT
i
O sin = n T
i
) ( sin O = n
i
e sin

Thus, the magnitude of the discrete-time sinusoidal signal is the same as the continuous time
sinusoid, while the digital frequency
i
is given in terms of the analog frequency
i
by
i
=
i
T.
Thus, the specifications for the digital filter become
1
,
2
, ,
N
with the
corresponding frequency response magnitudes K
1
, K
2
, , K
N
. The digital frequency, , is in
units of radians. The procedure is conceptually shown in figure below.



There are various techniques for designing H(z):

1. Numerical approximation (numerical solution) to the derivative operation or the
integration operation (this latter results in the bilinear transformation aka
bilinear z-transformation BZT).
2. Time domain invariance, e.g., impulse invariance and step-invariance methods.

The focus is on the low pass analog filter because once designed it can be transformed
into an equivalent quality high pass, band pass or band stop filter by frequency transformation.
The Butterworth, Chebyshev and elliptic filters are used as a starting point in designing digital
filters. We approximate the magnitude part of the frequency response, not the phase. Butterworth
and Chebyshev filters are actually special cases of the more difficult elliptic filter.
Because a constant divided by an N
th
order polynomial in falls off as
N
it will be an
approximate low pass function as varies from 0 to . Therefore, an all-pole analog filter H(s)
= 1/D(s) is a good and simple choice for a low pass filter form and is used in both the
Butterworth and the type I Chebyshev filters. Moreover, for a given denominator order, having
the numerator constant (order zero) gives (for a given number of filter coefficients) the
maximum attenuation as .


Equivalent
Analog Specs

1
,
2
, ,
N

K
1
, K
2
, , K
N

Digital Filter
Specs
e
1
, e
2
, , e
N

K
1
, K
2
, , K
N

H(z)
T
i i
O = e
K
i
= K
i

Digital
Design
(Perhaps
Bilinear)
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 4 of 55 Dr. Ravi Billa
5.2 The normalized analog, low pass, Butterworth filter

As a lead-in to digital filter design we look at a simple analog low pass filter an RC filter, and
its frequency response.

Example 5.2.1 Find the transfer function, H
a
(s), impulse response, h
a
(t), and frequency response,
H
a
(j), of the following system.










Solution This is a voltage divider. The transfer function is given by
H
a
(s) =
) (
) (
s X
s Y
=
( )
( ) sC R
sC
1
1
+
=
( )
( ) RC s
RC
1
1
+
=
5
5
+ s

Taking the inverse Laplace transform gives the impulse response,
h
a
(t) = 5 ) (
5
t u e
t

The frequency response is
H
a
(j) =
O = j s
a
s H ) ( =
5
5
+ O j
=
) 5 / ( tan
2
1
) 5 / ( 1
1
O

O +
j
e

The cut-off frequency is
c
= 5 rad/sec. The gain at = 0 is 1.













The MATLAB plots of frequency response of H
a
(j) = ) 5 ( 5 + O j are shown below. We
use the function fplot. The analog frequency, Omega (), extends from 0 to ; however, the
plots cover the range 0 to 6 rad/sec.

subplot(2, 1, 1), fplot('abs(5/(5+j*Omega))', [-6*pi, 6*pi], 'k');
xlabel ('Omega, rad/sec'), ylabel('|H(Omega)|'); grid; title ('Magnitude')
%
subplot(2, 1, 2), fplot('angle(5/(5+j*Omega))', [-6*pi, 6*pi], 'k');
xlabel ('Omega, rad/sec'), ylabel('Phase of H(Omega)'); grid; title ('Phase')
, rad./sec.
|H
a
(j)|
0.707

c
= 5
1
Output = y(t) Input = x(t)
C = 20F
R = 10k
+ +

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 5 of 55 Dr. Ravi Billa

-15 -10 -5 0 5 10 15
0.2
0.4
0.6
0.8
1
Omega, rad/sec
|
H
(
O
m
e
g
a
)
|
Magnitude
-15 -10 -5 0 5 10 15
-2
-1
0
1
2
Omega, rad/sec
P
h
a
s
e

o
f

H
(
O
m
e
g
a
)
Phase


If we adjust the values of the components R and C so that RC 1 = 1, we would have H
a
(s)
=
1
1
+ s
which is a normalized filter with cut-off frequency
c
= 1 rad/sec and gain of 1 at = 0.
Such a normalized LP filter could be transformed to another LP filter with a different cut-off
frequency of, say,
c
= 10 rad/sec by the low pass to low pass transformation s ( ) 10 / s . The
transfer function then becomes
H
a
(s) =
) 10 / (
1
1
s s
s

+
=
10
10
+ s

which still has a dc gain of 1. The gain of this filter could be scaled by a multiplier, say, K, so
that
H
a
(s) =
10
10
+ s
K
which has a dc gain of K and a cut-off frequency of
c
= 10 rad/sec.
The frequency response of the normalized filter H
a
(s) = ) 1 /( 1 + s is H
a
(j) = ) 1 ( 1 + O j . The
corresponding MATLAB plots are shown below using the function plot. Omega is a vector,
consequently we use ./ instead of / etc.

Omega = -6*pi: pi/256: 6*pi; H = 1./(1.+ j .*Omega);
subplot(2, 1, 1), plot(Omega, abs(H), 'k');
xlabel ('Omega, rad/sec'), ylabel('|H(Omega)|'); grid; title ('Magnitude')
subplot(2, 1, 2), plot(Omega, angle(H), 'k');
xlabel ('Omega, rad/sec'), ylabel('Phase of H(Omega)'); grid; title ('Phase')

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 6 of 55 Dr. Ravi Billa
-20 -15 -10 -5 0 5 10 15 20
0
0.5
1
Omega, rad/sec
|
H
(
O
m
e
g
a
)
|
Magnitude
-20 -15 -10 -5 0 5 10 15 20
-2
-1
0
1
2
Omega, rad/sec
P
h
a
s
e

o
f

H
(
O
m
e
g
a
)
Phase



Butterworth filter The filter H
a
(s) = ) 5 /( 5 + s is a first order Butterworth filter with cut-off
frequency
c
= 5 rad/sec. Its magnitude response is given by
|H(j)| =
( )
2
5 / 1
1
O +


Omega = 0: pi/256: 15; H1 = 1./sqrt(1.+ (Omega/5) .^2);
plot(Omega, H1, 'k'); legend ('1
st
Order, Cut-off = 5 rad/sec');
xlabel ('Omega, rad/sec'), ylabel('|H(Omega)|'); grid; title ('Magnitude')


www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 7 of 55 Dr. Ravi Billa
0 5 10 15
0.4
0.5
0.6
0.7
0.8
0.9
1
Omega, rad/sec
|
H
(
O
m
e
g
a
)
|
Magnitude
1st Order, Cut-off = 5 rad/sec



www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 8 of 55 Dr. Ravi Billa
Frequency response analysis The frequency response analysis in the analog frequency ()
domain is given by the following equations which may be used to illustrate, qualitatively, the
effect of LP, HP or BP analog filters on a signal.

Y(s) = H(s) X(s)
Y(j) = H(j) X(j) =
) (
) (
O Z
O
j H j
e j H
) (
) (
O Z
O
j X j
e j X =
( ) O Z + O Z
O O
j X j H j
e j X j H
( ) (
) ( ) (
) (O Y = ) (O H ) (O X and ) (O ZY = ) (O ZH + ) (O ZX







Similarly, if we have a digital filter H(z) the frequency response analysis in the digital
frequency () domain is given by the following equations which may be used to illustrate,
qualitatively, the effect of LP, HP or BP digital filters on a signal.

Y(z) = H(z) X(z)
Y(j) = H(j) X(j) =
) (
) (
e
e
j H j
e j H
Z ) (
) (
e
e
j X j
e j X
Z
=
( ) e e
e e
j X j H j
e j X j H
( ) (
) ( ) (
Z + Z

) (e Y = ) (e H ) (e X and ) (e Y Z = ) (e H Z + ) (e X Z







Y(s) X(s)

H(s)

Y(z) X(z)

H(z)

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 9 of 55 Dr. Ravi Billa
The N
th
order Butterworth filter In general the magnitude response of the N
th
order
Butterworth filter with cut-off frequency
c
is given by
|H(j)| =
( )
N
c
2
/ 1
1
O O +

With the normalized frequency variable defined as r =
c
O O/ , the MATLAB segment below
plots the magnitude response for 1
st
, 3
rd
, and 10
th
order filters, that is, N = 1, 3, and 10,
respectively. Note that as the filter order increases the response becomes flatter on either side of
the cut-off; and the transition (cut-off) becomes sharper.

r = 0: 0.1: 3;
H1 = 1./sqrt(1.+ r .^2);
H3 = 1./sqrt(1.+ r .^6);
H10 = 1./sqrt(1.+ r .^20);
plot (r, H1, r, H3, 'r', r, H10, 'k');
legend ('1
st
Order', '3
rd
Order', '10
th
Order');
xlabel ('Normalized frequency, r'), ylabel('|H(r)|'); grid; title ('Magnitude')

0 0.5 1 1.5 2 2.5 3
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Normalized frequency, r
|
H
(
r
)
|
Magnitude
1st Order
3rd Order
10th Order


www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 10 of 55 Dr. Ravi Billa

Writing down the N
th
order filter transfer function H(s) from the pole locations Let us look
at some analog Butterworth filter theory.
(1) |H(j)| =
( )
N
c
2
/ 1
1
O O +
decreases monotonically with . No ripples.
(2) Poles lie on the unit circle in the s-plane (for the Chebyshev filter, in contrast,
they lie on an ellipse).
(3) The transition band is wider (than in the case of the Chebyshev filter).
(4) For the same specifications the Butterworth filter has more poles (or, is of higher
order) than the Chebyshev filter. This means that the Butterworth filter needs
more components to build.














The normalized analog Butterworth filter has a gain of |H(j)| = 1 at = 0, and a cut-off
frequency of
c
= 1 rad/sec. Given the order, N, of the filter we want to be able to write down its
transfer function from the pole locations on the Butterworth circle.

Example 5.2.2 Given the order N of the filter, divide the unit circle into 2N equal parts and place
poles on the unit circle at (360
0
/2N) apart. The H(s) will be made up of the N poles in the left half
plane only. Remember complex valued poles must occur as complex conjugate pairs. There will
be no poles on the imaginary axis. Since the N poles must lie on the left half semicircle, when N
is odd the odd pole must be at s = 1. Thus, for N = 1, there is one pole, s
1
= 1, and H(s) is
given by
1
Radius =
c
= 1
1

j
s-plane
, rad./sec.
|H(j)|
1
0.707

c
= 1
Direction of
increasing
order of filter
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 11 of 55 Dr. Ravi Billa
H(s) =
1
1
s s
=
) 1 (
1
s
=
1
1
+ s


Example 5.2.3 Filter order N = 2 so that 2N = 4 and 360
0
/4 = 90
0
. The pole plot is shown above.
The poles are at
s
1
= |
.
|

\
|
+
2
1
2
1
j and s
2
= |
.
|

\
|

2
1
2
1
j ,
so that
H(s) =
) ( ) (
1
2 1
s s s s
=
(

|
.
|

\
|
+ |
.
|

\
|
+
(

|
.
|

\
|
|
.
|

\
|
+
2
1
2
1
2
1
2
1
1
j s j s

Denominator is
Dr. =
2
2
1
|
.
|

\
|
+ s
2
2
1
|
.
|

\
|
j =
2
1
2
1
2
2
1
2 2
j s s + + = 1 2
2
+ + s s
So
H(s) =
1 2
1
2
+ + s s


Example 5.2.4 Filter order N = 3, so that 2N = 6 and 360
0
/6 = 60
0
. Poles are at
s
1, 2, 3
= 1,
|
|
.
|

\
|
+
2
3
2
1
j , and
|
|
.
|

\
|

2
3
2
1
j
1 + s 2 + s
1
2















1
Radius =
c
= 1
1

j
s-plane
s
3

=
*
2
s
s
2

s
1

s
3
1
Radius =
c
= 1

j
s-plane
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 12 of 55 Dr. Ravi Billa
H(s) =
|
|
.
|

\
|
+ +
|
|
.
|

\
|
+ +
2
3
2
1
2
3
2
1
) 1 (
1
j s j s s

Denominator is
Dr. = ( ) 1 + s
(
(

|
.
|

\
|
+
4
3
2
1
2
2
j s = ( ) 1 + s ( ) 1
2
+ + s s
So
H(s) =
( )( ) 1 1
1
2
+ + + s s s


Example 5.2.5 Filter order N = 4, so that 2N = 8 and 360
0
/8 = 45
0
. Poles are at

s = (cos 22.5
0
j sin 22.5
0
) = (cos o j sin o)
(cos 67.5
0
j sin 67.5
0
) = (cos | j sin |)














H(s) =
| || | | | o o
2 2 2 2 2 2
sin ) cos ( sin ) cos (
1
j s j s + +

H(s) =
( )( ) 1 765 . 0 1 848 . 1
1
2 2
+ + + + s s s s



j
s-plane
Wrong
placement
j

Correct
s-plane
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 13 of 55 Dr. Ravi Billa

Determining the order and transfer function from the specifications A typical magnitude
response specification is sketched below. The magnitudes at the critical frequencies
1
and
2

are A and B, respectively. Typically
1
is in the pass band or is the edge of the pass band and
2

is in the stop band or is the edge of the stop band. For illustrative purposes we have arbitrarily
taken A = 0.707 (thus
1
is the cut-off frequency, but this need not be the case) and B = 0.25.
The log-magnitude specification is diagrammed below. Note that (20 log A) = K
1
dB and
(20 log B) = K
2
dB. Thus the analog filter specifications are

0 > ) ( log 20
10
O j H > K
1
for all s
1

) ( log 20
10
O j H s K
2
for all >
2



















With the magnitude |H(j)| given by the Butterworth function,
|H(j)| =
( )
N
c
2
/ 1
1
O O +

and using the equality condition at the critical frequencies in the above specifications the order,
N, of the filter is given by
, rad./sec.
|H(j)|
A = 0.707

1

Pass
band
Transition
band
Stop
band
B = 0.25

2

0
dB (= 20 log
10
|H(j)|)

2

1

K
1

K
2

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 14 of 55 Dr. Ravi Billa
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
(3.16, Ludeman)
The result is rounded to the next larger integer. For example, if N = 3.2 by the above calculation
then it is rounded up to 4, and the order of the required filter is N = 4. In such a case the resulting
filter would exceed the specification at both
1
and
2
. The cut-off frequency
c
is determined
from one of the two equations below.

c
=
N K 2 10 /
1
1 10
1

or
c
=
N K 2 10 /
2
1 10
2

(3.17 Ludeman)
The equation on the left will result in the specification being met exactly at
1
while the
specification is exceeded at
2
. The equation on the right results in the specification being met
exactly at
2
and exceeded at
1
.
Note that the design equation for N may be written in the alternative form
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

1
2
10
10 /
10 /
10
log 2
1 10
1 10
log
1
2
K
K


Example 5.2.6 What is the order and transfer function of the analog Butterworth filter that
satisfies the following specification?

O
1
= 200 rad/sec K
1
= 1 dB
O
2
= 600 rad/sec K
2
= 30 dB

Solution The order N is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|



600
200
log 2
1 10
1 10
log
10
10 / ) 30 (
10 / ) 1 (
10
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

600
200
log 2
1 10
1 10
log
10
3
1 . 0
10

=
(
(
(
(
(
(

|
.
|

\
|
|
.
|

\
|

600
200
log 2
1 1000
1 2589 . 1
log
10
10
=
(
(
(
(
(
(

|
.
|

\
|
|
.
|

\
|
600
200
log 2
999
2589 . 0
log
10
10
=
(
(
(
(
(
(

|
.
|

\
|
|
.
|

\
|
600
200
log 2
999
2589 . 0
log
10
10

=
( )
( )
(
(
(

3333333 . 0 log 2
00025918 . 0 log
10
10
=
(
(
(

) 47712 . 0 ( 2
586 . 3
=
(
76 . 3 = 4

Now, as in an earlier example, locate 8 poles uniformly on the unit circle, making sure to satisfy
all the requirements and write down the transfer function, ) (s H , of the normalized
Butterworth filter (with a cut-off frequency of 1 rad/sec),
) (s H =
( )( ) 1 765 . 0 1 848 . 1
1
2 2
+ + + + s s s s

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 15 of 55 Dr. Ravi Billa
Next, determine the cutoff frequency
c
O that corresponds to the given specifications and
the order N = 4 determined above

c
O =
N K 2 10 /
1
1 10
1

=
) 4 ( 2
10 / ) 1 (
1 10
200


=
8
1 26 . 1
200

=
8446 . 0
200
= 236.8 rad/sec
Finally, we make the substitution ) 8 . 236 / (s s in ) (s H and thereby move the cutoff frequency
from 1 rad/sec to 236.8 rad/sec resulting in the transfer function ) (s H
a

) (s H
a
=
) 8 . 236 / (
) (
s s
s H

=
( )( )
) 8 . 236 / (
2 2
1 765 . 0 1 848 . 1
1
s s
s s s s

+ + + +

=
( )( ) 1 ) 8 . 236 / ( 765 . 0 ) 8 . 236 / ( 1 ) 8 . 236 / ( 848 . 1 ) 8 . 236 / (
1
2 2
+ + + + s s s s

=
( )( )
2 2 2 2
4
8 . 236 ) 8 . 2326 ( 765 . 0 8 . 236 ) 8 . 236 ( 848 . 1
) 8 . 236 (
+ + + + s s s s

=

(Aside) The more general N
th
order Butterworth filter has the magnitude response given by
) ( O j H =
( )
N 2
1
2
/ 1
1
O O +c

The parameter has to do with pass band attenuation and O
1
is the pass band edge frequency
(not necessarily the same as the 3 dB cut-off frequency O
c
). MATLAB takes = 1 in which case
O
1
= O
c
. See DSP-HW. [See Cavicchi, Ramesh Babu].
(End of Aside)


5.3 Time domain invariance

Given an analog filters response to a specific input we require that the response of the digital
filter (to be designed) to the digital version of the analog input should be the same as the analog
response at sampling instants. If the input is an impulse function the corresponding design is
called an impulse invariant design, if the input is a step function the corresponding design is
called a step invariant design.

Impulse-invariant design If h
a
(t) represents the response of an analog filter H
a
(s) to a unit
impulse (t), then the unit sample response of a discrete-time filter used in an A/D H(z) D/A
structure is selected to be the sampled version of h
a
(t). That is, we are preserving the response to
an impulse. Therefore the discrete-time filter is characterized by the system function, H(z), given
by
H(z) = {h(n)} = { } | |
nT t
a
t h
=
) (

If we are given an analog filter with system function H
a
(s) the corresponding impulse-invariant
digital filter, H(z), is seen from above to be

H(z) = { } ( ) | |
nT t
a
s H L
=

) (
1
, where L
1
means Laplace inverse
Note that at this point we have not specified how H
a
(s) was obtained, but rather we have
shown how to obtain the digital filter H(z) from any given H
a
(s) using impulse invariance.

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 16 of 55 Dr. Ravi Billa
Example 5.3.1 [Low pass filter] For the analog filter H
a
(s) =
o + s
A
find the H(z) corresponding
to the impulse invariant design using a sample rate of 1/T samples/sec.
Solution The analog systems impulse response is ) (t h
a
=
1
|
.
|

\
|
+o s
A
= ) (t u Ae
t o
. The
corresponding h(n) is then given by
h(n) =
nT t
a
t h
=
) ( = ) (nT u Ae
nT o
= ( ) ) (n u e A
n
T o
= ) (n u Aa
n

where, as previously, we have set
T
e
o
= a. The discrete-time filter, then, is given by the z-
transform of h(n)
H(z) = {h(n)} = ( ) { } ) (n u e A
n
T o
=
T
e z
Az
o

=
a z
Az


=
1
1

z e
A
T o
=
1
1

az
A

which has a pole at z =
T
e
o
= a. In effect, the pole at s = in the s-plane is mapped to a pole at
z =
T
e
o
= a in the z-plane. (HW What is the difference equation?)

) (
) (
z X
z Y
=
1
1

az
A
) 1 ( ) (
1
az z Y = ) (z X A
) 1 ( ) ( n y a n y = ) (n x A ) (n y = ) 1 ( ) ( + n y a n Ax

Relationship between the s-plane and the z-plane (
T s
e z = ) We can extend the above procedure
to the case where H
a
(s) is given as a sum of N terms with distinct poles as
H
a
(s) =

=
+
N
k k
k
s
A
1
o

For this case the impulse invariant design, H(z), is given by
H(z) =
(
(

|
|
.
|

\
|
)
`

+
=
=

nT t
N
k k
k
s
A
L
1
1
o
=

N
k
T
k
k
e z
z A
1
o
=

N
k
T
k
z e
A
k
1
1
1
o

where L
1
means Laplace inverse. We observe that a pole at s =
k
o in the s-plane gives rise to a
pole at z =
T
k
e
o
in the z-plane and the coefficients in the partial fraction expansion of H
a
(s) and
H(z) are equal. If the analog filter is stable, corresponding to
k
o being in the left half plane,
then the magnitude of
T
k
e
o
will be less than unity, so that the corresponding pole of the digital
filter is inside the unit circle, and as a result the digital filter also is stable.
While the poles in the s-plane map to poles in the z-plane according to the relationship
z =
T s
e , it is important to recognize that the impulse invariance design procedure does not
correspond to a mapping (transformation) of the s-plane to the z-plane by that relationship or in
fact by any relationship. (An example of a transformation is where we actually make a
substitution, say, s =
|
|
.
|

\
|
+

1
1
1
1 2
z
z
T
which, of course, is the bilinear transformation). For example,
the zeros of H
a
(s) do not map to zeros of H(z) according to this relation. See also matched z-
transform later.
We can explore the relationship
T s
e z = keeping in mind that it only applies to poles and
that it is not a transformation. Set s = + j and z =
e j
e r in z =
T s
e to get
e j
e r =
T j
e
) ( O + o
=
T j T
e e
O o
so that r =
T
e
o
and = T.
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 17 of 55 Dr. Ravi Billa
The above relations can be used to show that poles in the left half of the primary strip in
the s-plane map into poles within the unit circle in the z-plane as shown in the figure for s = s
1
.

Mapping of poles, z =
T s
e
s-plane pole
s = + j
z-plane pole
z =
T s
e =
e j
e r
r
0 1 1 0
j
s
/2 1 1
+ j
s
/2 0 0
j
s
/2 0 0
j
s
/2 1 1

For s
1
=
1
+ j
1
we have r =
T
e
1
o
and =
1
T. However, poles at s
2
and s
3
(which are a
distance
s
from s
1
) also will be mapped to the same pole that s
1
is mapped to. In fact, an infinite
number of s-plane poles will be mapped to the same z-plane pole in a many-to-one relationship.
These frequencies differ by
s
= 2F
s
= 2/T (F
s
is the sampling frequency in Hertz). This is
called aliasing (of the poles) and is a drawback of the impulse-invariant design. The analog
system poles will not be aliased in this manner if, in the first place, they are confined to the
primary strip of width
s
= 2F
s
= 2/T in the s-plane.
In a similar fashion poles located in the right half of the primary strip in the s-plane will
be mapped to the outside of the unit circle in the z-plane. Here again the mapping of the s-plane
poles to the z-plane poles is many-to-one.



















Owing to the aliasing, the impulse invariant design is suitable for the design of low pass
and band pass filters but not for high pass filters.

(Omit) Matched z-transform In this method we apply the mapping z =
T s
e not only to the poles
but also to the zeros of H
a
(s). As a result the observations made above are valid for the matched
z-transform method of filter design.


Primary strip,
width =
s
= 2/T
s-plane
j
j/T
j
s
/2 = j/T
j3/T
j3/T
s
2

s
1

=
1
+j
1

s
3

s

0
z-plane
Im
Re
1


1
T
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 18 of 55 Dr. Ravi Billa
Frequency response of the equivalent analog filter Going back to the impulse invariant design
of the first order filter, how does the frequency response of the A/D H(z) D/A structure using
this H(z) compare to the frequency response of the original system specified by H
a
(s)?







Note H
a
(s) =
o + s
A
and H(z) =
T
e z
Az
o

=
a z
Az

with a =
T
e
o
. For the analog filter we have
H
a
(j) =
O =
(

(
+
j s
s
A
o
=
o + O j
A
=
2 2
A
O + o
) / ( tan
1
o O

j
e
|H
a
(j)| =
2 2
A
O + o
, < <
For future reference note that |H
a
(j0)| = o / A .
To obtain the equivalent frequency response of the A/D H(z) D/A structure one must
first find the frequency response of the discrete-time filter specified by H(z). This is given by
H(e
je
) = | e j
e z
z H
=
) ( =
T j
j
e e
Ae
o e
e

, < < (because periodic)


The analog frequency response of the equivalent analog filter is then determined by replacing
by T. Note, however, that since the digital frequency, , is restricted to (, ), the analog
frequency, , is correspondingly is restricted to (/T, /T). We get
H
eq
(j) = |
T
j
e H
O = e
e
) ( =
T T j
T j
e e
Ae
o O
O

=
T j T
e e
A
O

o
1
, T < or < /T

Denominator =
T j T
e e
O

o
1 = ) sin (cos 1 T j T e
T
O O
o
= T je T e
T T
O + O

sin ) cos 1 (
o o

So

H
eq
(j) =
T je T e
A
T T
O + O

sin ) cos 1 (
o o
, < /T
|H
eq
(j)| =
T e e
A
T T
O +

cos 2 1
2 o o
, < /T
Note that |H
eq
(j0)| =
T
e
A
o
1
=
a
A
1
.
We can plot |H
eq
(j)| and |H
a
(j)| for, say, o = 1 and different values of T say T = 0.1
and T = 1, remembering that |H
eq
(j)| is periodic, the basic period going from /T < < /T.
Ideally the two plots should be very close (in shape, over the range of frequencies of interest) but
it will be found that the smaller the value of T, the closer the two plots are. Thus T = 0.1 will
result in a closer match than T = 1. Therefore, using the impulse invariant design, good results
are obtained provided the time between samples (T) is selected small enough. What is small
enough may be difficult to assess when the H
a
(s) has several poles; and when it is found, it may
be so small that implementation may be costly. In general, other transformational methods such
as the bilinear allow designs with sample rates that are less than those required by the impulse
invariant method and also allow flexibility with respect to selection of sample rate size.


H
a
(s)

X(s)

x(t)

H
a
(jO)


Y(s)

y(t)
H
eq
(jO)
x(t)
Y(s)
y(t)
X(s)
A/D H(z) D/A
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 19 of 55 Dr. Ravi Billa

















Example 5.3.2 [Impulse invariant design of 2
nd
order Butterworth filter] Obtain the impulse
invariant digital filter corresponding to the 2
nd
order Butterworth filter H
a
(s) =
4 2 2
4
2
+ + s s

with sampling time T = 1 sec.
Solution Note that we are using T = 1 sec. simply for the purpose of comparing with the bilinear
design done later with T = 1 sec. It is important to remember that in bilinear design calculations
the value of T is immaterial since it gets cancelled in the design process; but in impulse invariant
design there is no such cancellation, so the value of T is critical (the smaller, the better).
H
a
(s) =
4 2 2
4
2
+ + s s
=
( ) ( )
2 2
2
2 2 2 2
4
+ + + s s

=
( ) ( )
2 2
2 2
4
+ + s
= 2 2
( ) ( )
)

+ +
2 2
2 2
2
s

The expression in braces is in familiar form and can be converted to its impulse invariant digital
filter equivalent. See 3(c) in HW.


Step invariant design Here the response of the digital filter to the unit step sequence, u(n), is
chosen to be samples of the analog step response. In this way, if the analog filter has good step
response characteristics, such as small rise-time and low peak over-shoot, these characteristics
would be preserved in the digital filter. Clearly this idea of waveform invariance can be extended
to the preservation of the output wave shape for a variety of inputs.









(Omit) Problem Given the analog system H
a
(s), let h
a
(t) be its impulse response and let p
a
(t) be
its step response. The system H
a
(s) is given to be continuous-time linear time-invariant. Let also
For T = 0.1, valid for < 10
For T = 1, valid for < /1
|H
a
(j)
|
|H
eq
(j)|




10
10
p
a
(t)
t
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 20 of 55 Dr. Ravi Billa

h(n) be the unit sample response,
p(n) be the step response, and,
H(z) be the system function,

of a discrete-time linear shift-invariant filter. Then,
(a) If h(n) = h
a
(nT), does p(n) =

=
n
k
a
kT h ) ( ?
(b) If p(n) = p
a
(nT), does h(n) = h
a
(nT)?
Solution (a) If h(n) = h
a
(nT), does p(n) =

=
n
k
a
kT h ) ( ? We know that
u(n) =

=
n
k
k) ( o
This is seen to be true by writing it out in full as

u(n) = ( ) + (+1) + + (1) + (0) + (1) ++ (n)

where n is implicitly some positive integer. Take, for instance, n = 3; then, from the above
equation u(3) = (0) = 1, all the other terms being zero. In other words u(n) is a linear
combination of unit sample functions. And, since the response to (k) is h(k), therefore, the
response to u(n) is a linear combination of the unit sample responses h(k). That is,
p(n) =

=
n
k
k h ) ( =

=
n
k
a
kT h ) (
Therefore, the answer to the above question is, Yes.

(b) If p(n) = p
a
(nT), does h(n) = h
a
(nT)? Since (n) = u(n) u(n1), the response of the
digital system, H(z), to the input (n) is

h(n) = p(n) p(n1) = p
a
(nT) p
a
(nTT) = h
a
(nT)

Therefore, the answer to the above question is, No.

Example 5.3.3 [LP filter] [Step Invariance] [Problem 5.4b, O & S] Consider the continuous-
time system H
a
(s) =
o + s
A
with unit step response p
a
(t). Determine the system function, H(z), i.e.,
the z-transform of the unit sample response h(n) of a discrete-time system designed from this
system on the basis of step-invariance, such that p(n) = p
a
(nT), where
p(n) =

=
n
k
k h ) ( and p
a
(t) =
}

t
a
d h t t ) (
Solution Since p
a
(t) =
}

t
a
d h t t ) ( we have
[p
a
(t)] = P
a
(s) =
s
s H
a
) (
=
) ( o + s s
A
=
s
K
1
+
o + s
K
2

where K
1
and K
2
are the coefficients of the partial fraction expansion, given by
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 21 of 55 Dr. Ravi Billa
K
1
=
0 =
+
s
s
A
o
=
o
A
and K
2
=
o = s
s
A
=
o
A

Therefore,
P
a
(s) =
s
A o /

o
o
+ s
A/
) (t p
a
= ) (
0
t u e
A
t
o
) (t u e
A
t o
o


from which we write ) (n p = ) (nT p
a
and hence ) (z P etc. Equivalently, we may reason as follows.
The correspondence between s-plane poles and z-plane poles is
o + s
1

1
1
1

z e
T o

Thus we get P(z) as below
P(z) =
1 0
1
) / (

z e
A
T
o

1
1
) / (

z e
A
T o
o
= |
.
|

\
|

T
e z
z
z
z A
o
o 1
= =
( )
( )
|
|
.
|

\
|

T
T
e z z
z z e z z A
o
o
o ) 1 (
) 1 (

=
o
A
( )
T
e
o
1
) )( 1 (
T
e z z
z
o


However, what we need is H(z). Since (n) = u(n) u(n1), and we know the response to u(n),
therefore, the response to u(n) u(n1) is given by h(n) = p(n) p(n1), and taking the z-
transform of this last equation,
H(z) = ) (z P ) (
1
z P z

= ) ( ) 1 (
1
z P z

= ) (
1
z P
z
z
|
.
|

\
|

= |
.
|

\
|
z
z 1

o
A
( )
T
e
o
1
) )( 1 (
T
e z z
z
o


=
o
A
( )
T
e
o
1
) (
1
T
e z
o


Alternatively, we may also obtain the transfer function as the ratio of output and input
transforms, H(z) = P(z)/U(z).

Frequency-response analysis As we did in the case of the impulse-invariant design, here also
we can compare |H
a
(jO)| with |H
eq
(jO)|. For the system H
a
(s) =
o + s
A
the frequency response is
already evaluated as |H
a
(j)| =
2 2
O + o
A
. We need the frequency response, |H
eq
(jO)|, of the
equivalent analog filter when the above H(z) is used in a A/D H(z) D/A structure. Start with
the above H(z) and set z =
e j
e to get
) (
e j
e H = | e j
e z
z H
=
) ( =
o
A
( )
T
e
o
1
e
o
j
e z
T
e z
=
(

(
) (
1
=
o
A
( )
T
e
o
1
) (
1
T j
e e
o e


For the equivalent analog filter we get H
eq
(j) by setting = T in ) (
e j
e H .


5.4 Bilinear transformation

One approach to the numerical solution of an ordinary linear constant-coefficient differential
equation is based on the application of the trapezoidal rule to the first order approximation of an
integral (or integration). Consider the following equivalent pair of equations
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 22 of 55 Dr. Ravi Billa

dt
dy
= x(t)
}
dy =
}
dt t x ) (
Here
}
dy = area shown shaded and is given by
y(n) y(n1) =
|
.
|

\
| +
2
) 1 ( ) ( n x n x
T
where we have used the trapezoidal rule to compute the area under a curve.
Taking the z transform of the above we get
Y(z)
1
z Y(z) = ) 1 )( (
2
1
+ z z X
T

Rearranging terms gives
) (
) (
z X
z Y
=
2
T
|
|
.
|

\
|

1
1
1
1
z
z
=
|
|
.
|

\
|
+

1
1
1
1 2
1
z
z
T

Thus the continuous time system y(t) =
}
dt t x ) ( represented by the following block diagrams
is replaced in the discrete-time domain by the following block.







In other words, given the Laplace transfer function H
a
(s), the corresponding digital filter is given
by replacing s with
) 1 (
) 1 ( 2
1
1

z T
z
, or
H(z) = |
) 1 (
) 1 ( 2
1
1
) (

=
z T
z
s a
s H
This is called bilinear transformation (both numerator and denominator are first order
polynomials), also known as bilinear z-transformation (BZT).
y(t)
x(t)
}

Y(s)
X(s)
s
1

Y(z)
y(n)
X(z)
x(n)
H(z)
|
|
.
|

\
|
+

1
1
1
1 2
1
z
z
T

t
x(t)
(n1)T nT
x((n1)T)
x(nT)
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 23 of 55 Dr. Ravi Billa
Here again, note that at this point we have not specified how H
a
(s) was obtained, but
rather we are showing how to obtain the digital filter H(z) from any given H
a
(s) using bilinear
transformation.

Example 5.4.1 [LP filter] [Bilinear] Design a digital filter based on the analog system H
a
(s)
=
o + s
A
, using the bilinear transformation. Give the difference equation. Use T = 2 sec.
Solution
H(z) = |
) 1 (
) 1 ( 2
1
1
) (

=
z T
z
s a
s H =
( )
( )
o +
+

1
1
1
1 2
z T
z
A
=
1
) 1 ( ) 1 (

+ + z
A
o o


Example 2 [Ludeman, p. 178] Apply bilinear transformation to the 2
nd
order Butterworth filter
H
a
(s) =
4 2 2
4
2
+ + s s
with T = 1 sec. Obtain (1) H(z), (2) the difference equation and
(3) ) (
e j
e H .
Solution
(1) With T = 1 second, s =
T
2
|
|
.
|

\
|
+

1
1
1
1
z
z
becomes s =
1
1
z 1
) z 1 ( 2

, and
H(z) = |
) 1 ( 1
) 1 ( 2
1
1
) (

=
z
z
s a
s H =
4
) 1 (
) 1 ( 2
2 2
) 1 (
) 1 ( 2
4
1
1
2
1
1
+
(

+
(

z
z
z
z

=
2
2 1
5857865 . 0 4142135 . 3
2 1


+
+ +
z
z z


(2) The difference equation is obtained from
H(z) =
) (
) (
z X
z Y
=
2
2 1
5857865 . 0 4142135 . 3
2 1


+
+ +
z
z z

Cross-multiply and take inverse z-transform to get

3.4142135 y(n) + 0.5857865 y(n2) = x(n) + 2x(n1) + x(n2)

By rearranging and scaling y(n) can be realized as

y(n) = 0.2928932 [x(n) + 2 x(n1) + (n2)] 0.1715729 y(n2)

(3) Frequency response
| e j
e z
z H
=
) ( =
e
e e
2
2
5857865 . 0 4142135 . 3
2 1
j
j j
e
e e


+
+ +
=
) (
) (
e
e
D
N

Numerator = ) (e N =
e e 2
2 1
j j
e e

+ + = ) 2 (
e e e j j j
e e e

+ + = ) cos 2 2 ( e
e
+
j
e
= ) cos 1 ( 2 e +
e j
e


Denominator = ) (e D = 3.4142135 + 0.5857865
e 2 j
e

= A + B
e 2 j
e


= (A + B cos 2e) j B sin 2
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 24 of 55 Dr. Ravi Billa
=
2 2
) 2 sin ( ) 2 cos ( e e B B A + +
|
.
|

\
|
+

e
e
2 cos
2 sin
tan
1
B A
B
j
e
) (
e j
e H =
2 2
) 2 sin ( ) 2 cos (
) cos 1 ( 2
e e
e
B B A + +
+

(

|
.
|

\
|
+



e
e
e
2 cos
2 sin
tan
1
B A
B
j
e
The magnitude of the frequency response is
| ) (
e j
e H | =
2 2
) 2 sin ( ) 2 cos (
) cos 1 ( 2
e e
e
B B A + +
+

Plot 20 log
10
| ) (
e j
e H | vs for = 0 to .

Relationship between the s- and z-planes The bilinear transformation is
s =
) 1 (
) 1 ( 2
1
1

z T
z
or z =
) 2 / ( 1
) 2 / ( 1
sT
sT

+

We can map a couple of points on the j axis by setting s = j, so that
z =
) 2 / ( 1
) 2 / ( 1
T j
T j
O
O +

Thus = 0 maps to z = 1 and = 2/T maps to z = j1 = 1
2 / t j
e as shown in figure below. The
transformation has the following properties:
1. The entire jO axis of the s-plane goes on to the unit circle of the z-plane.
2. The entire left half of the s-plane is mapped into the inside of the unit circle of the
z-plane. (In contrast, in impulse invariant design the poles in the left halves of
infinitely many strips of width O
s
in the s-plane are mapped into the inside of the
unit circle in the z-plane.)

So a stable analog filter, with all of its poles in the left half plane, would be transformed
into a stable digital filter with all of its poles in the unit circle. The frequency response is
evaluated on the jO axis in the s-plane and on the unit circle in the z-plane. While the frequency
responses of the analog filter and digital filter have the same amplitudes there is a nonlinear
relationship between corresponding digital and analog frequencies.



















j0
+

j

j2/T
j2/T
s-plane,
s = +j
j0


Left half plane
Im
Re
Unit circle
z-plane
j1 (for = 2/T)
j1 (for = 2/T)
( = 0
+
)
( = +)
( = )
( = 0

)
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 25 of 55 Dr. Ravi Billa






5.5 Nonlinear relationship of frequencies in bilinear transformation

In the bilinear transformation the analog and digital frequencies are non-linearly related. Setting
s = j and z =
e j
e in s =
T
2
|
|
.
|

\
|
+

1
1
1
1
z
z
, we get
j =
T
2
|
|
.
|

\
|
+

e
e
j
j
e
e
1
1
=
T
2
) (
) (
2 / 2 / 2 /
2 / 2 / 2 /
e e e
e e e
j j j
j j j
e e e
e e e


+

=
T
2 ( )
( ) 2 / ) ( 2
2 / ) ( 2
2 / 2 /
2 / 2 /
e e
e e
j j
j j
e e
j e e j


or
=
T
2
2 / cos
2 / sin
e
e
=
T
2
|
.
|

\
|
2
tan
e
or = 2
|
.
|

\
| O

2
tan
1
T

First we sketch (the analog frequency) as a function of (the digital frequency) as
given by =
T
2
|
.
|

\
|
2
tan
e
to show qualitatively the distortion of the frequency scale that occurs
due to the nonlinear nature of the relationship.


Equally spaced pass bands A are pushed together or warped on the higher frequency end
of the digital frequency scale. This effect is normally compensated for by pre-warping the analog
filter before applying bilinear transformation.
A
A


= ) 2 / tan(
2
e
T

Unequal
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 26 of 55 Dr. Ravi Billa
Because of warping the relationship between
1
and
2
on the one hand and
1
and
2
on
the other is not linear. The digital frequencies
1
and
2
are pushed in towards the origin ( = 0).
In this process = is transformed to =t.
































If the bilinear transformation is applied to the system H
a
(s) with critical frequency O
c
, the
digital filter will have a critical frequency
c
= 2 ( ) 2 / tan
1
T
c
O

. If the resulting H(z) is used in an


A/DH(z)D/A structure, the equivalent critical frequency (of the equivalent analog filter) is
obtained by replacing
c
with O
ceq
T:

ceq
T = 2 |
.
|

\
| O

2
tan
1
T
c
or
ceq
=
T
2
|
.
|

\
| O

2
tan
1
T
c

If (O
c
T/2) is so small that ( ) 2 / tan
1
T
c
O

~O
c
T/2, then we have
O
ceq
=
T
2
|
.
|

\
| O
2
T
c
= O
c
If this condition is not satisfied, then the warping of the critical frequency (in the bilinear
design) is compensated for by pre-warping.


5.6 Digital filter design The Butterworth filter
|H()|

2

1

K
1

K
2

(Nonperiodic)


2


0
= ( ) 2 / tan 2
1
T O

1

|H()|
K
1
K
2

(Periodic)
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 27 of 55 Dr. Ravi Billa

Before taking up design we reproduce below some of the material relating filter specifications to
the filter order and the cut-off frequency.
A typical magnitude response specification is sketched below. The magnitudes at the
critical frequencies
1
and
2
are A and B, respectively. For illustrative purposes we have
arbitrarily taken A = 0.707 (thus
1
is the cut-off frequency, but this need not be the case) and B
= 0.25.
The log-magnitude specification is diagrammed below. Note that (20 log A) = K
1
and (20
log B) = K
2
. Thus the analog filter specifications are

0 > ) ( log 20
10
O j H > K
1
for all s
1

) ( log 20
10
O j H s K
2
for all >
2




















With the magnitude |H(j)| given by the Butterworth function,
|H(j)| =
( )
N
c
2
/ 1
1
O O +

and using the equality condition at the critical frequencies in the above specifications the order,
N, of the filter is given by
, rad./sec.
|H(j)|
A = 0.707

1

Pass
band
Transition
band
Stop
band
B = 0.25

2

0
dB (= 20 log
10
|H(j)|)

2

1

K
1

K
2

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 28 of 55 Dr. Ravi Billa
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
(3.16, Ludeman)
The result is rounded to the next larger integer. For example, if N = 3.2 by the above calculation
then it is rounded up to 4, and the order of the required filter is N = 4. In such a case the resulting
filter would exceed the specification at both
1
and
2
. The cut-off frequency
c
is determined
from one of the two equations below.

c
=
N K 2 10 /
1
1 10
1

or
c
=
N K 2 10 /
2
1 10
2

(3.17 Ludeman)
The equation on the left will result in the specification being met exactly at
1
while the
specification is exceeded at
2
. The equation on the right results in the specification being met
exactly at
2
and exceeded at
1
.

Example 5.6.1 [4.1, Ludeman] Design and realize a digital low pass filter using the bilinear
transformation method to satisfy the following characteristics:

(a) A monotonic pass band and stop band
(b) 3.01 dB cut off frequency of 0.5t rad.
(c) Magnitude down at least 15 dB at 0.75t rad.

Note that the given frequencies are digital frequencies. The required frequency response
is shown. We use bilinear transformation on an analog prototype.

Step 1 Pre-warp the critical digital frequencies e
1
= 0.5t and e
2
= 0.75t using T = 1 sec. That
is, we find the analog frequencies
1
O' and
2
O' that correspond to e
1
and e
2
:
1
O' =
T
2
|
.
|

\
|
2
tan
1
e
= 2
2
5 . 0
tan
t
= 2.0 rad / sec
2
O' =
T
2
|
.
|

\
|
2
tan
2
e
= 2
2
75 . 0
tan
t
= 4.8284 rad / sec
0
3.01
dB (= 20 log
10
|H(j)|)

3/4 /2

15
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 29 of 55 Dr. Ravi Billa
Step 2 Design LP analog filter with critical frequencies
1
O' and
2
O' that satisfy

0 > 20 log |H
a
(j
1
O' )| > 3.01 dB = K
1
, and
20 log |H
a
(j
2
O' )| s 15 dB = K
2


The Butterworth filter satisfies the monotonic property and has an order N and critical
frequency
c
determined by Eq. 3.16 and 3.17 of Ludeman
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
and
c
=
N K 2 10 /
1
1 10
1


Plugging in numerical values,
N =
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

+
+
828 . 4
2
log 2
1 10
1 10
log
10
10 / 15
10 / 01 . 3
10
=
( )
(
(
(
(
(
(

|
.
|

\
|

3827 . 0 2
1 62 . 31
1 2
log
10
=
(
(
(

) 3827 . 0 ( 2
486 . 1
=
(
941 . 1 = 2

c
=
4 10 / 01 . 3
1 10
0 . 2

+
=
4
1 2
2

= 2 rad / sec
Note in this case that
c
=
1
.
Therefore, the required pre-warped, normalized, unit bandwidth, analog filter of order 2
using the Butterworth Table 3.1b (or the Butterworth circle) is
H
a
(s) =
1 2
1
2
+ + s s
(with a cut off frequency = 1 rad / sec)
Since we need a cut-off frequency of
c
= 2 rad/sec, we next use the low pass to low pass
transformation s s/2 in order to move the cut-off frequency from 1 to 2 rad/sec.
H
a
(s) =
2 /
2
1 2
1
s s
s s

(

(
+ +
=
1 ) 2 / s ( 2 ) 2 / s (
1
2
+ +

=
4 2 2
4
2
+ + s s
(with a cut-off frequency = 2 rad/sec.)
Step 3 Applying the bilinear transformation to H
a
(s) with T = 1 will transform the pre-warped
analog filter into a digital filter with system function H(z) that will satisfy the given digital
requirements:
H(z) = |
1
1
1
) 1 ( 2 ) (

z
z
s a
s H =
4
1
) 1 ( 2
2 2
1
) 1 ( 2
4
1
1
2
1
1
+
(

+
(

z
z
z
z

=
2
2 1
585 . 0 414 . 3
2 1


+
+ +
z
z z

HW: Obtain the difference equation. Plot | ) (
e j
e H | and ) (
e j
e H Z vs e.

Bilinear transformation: Cancellation of sampling time in warping and pre-warping The
digital specifications are the set of critical frequencies {
1
,
2
, ,
N
} and the corresponding set
of magnitude requirements {K
1
, K
2
, , K
N
}. When an analog filter is used as the prototype for
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 30 of 55 Dr. Ravi Billa
the bilinear transformation method the relationship between digital and analog frequencies is
nonlinear and governed by
=
T
2
|
.
|

\
|
2
tan
e
and = 2
|
.
|

\
| O

2
tan
1
T

Therefore, to get the proper digital frequency, we must design an analog filter with analog
critical frequencies
i
: i = 1, 2, , N given by

i
=
T
2
|
.
|

\
|
2
tan
i
e
, i = 1, 2, , N
This operation will be referred to as pre-warping. The corresponding analog magnitude
requirements are not changed and remain the same as the corresponding digital requirements. An
analog filter H
a
(s) is then designed to satisfy the pre-warped specifications given by
1
,
2
, ,

N
and K
1
, K
2
, , K
N
. The bilinear transformation is then applied to H
a
(s), i.e.,
H(z) = |
) 1 (
) 1 ( 2
1
1
) (

z T
z
s a
s H
As the T in the
i
equation and the T in the bilinear transform cancel in the procedure described
above for low pass filter design, it is convenient to just use T = 1 in both places. This is easily
seen since if the
i
comes from an analog-to-analog transformation of an H
a
(s) with a unit radian
cut-off frequency, we have s(s/
i
), and when the bilinear transformation s
) 1 (
) 1 ( 2
1
1

z T
z
is
used the cascade of transformations is given by
s
i
z T
z
O +

) 1 (
) 1 ( 2
1
1
=
(

2
tan
2
) 1 (
) 1 ( 2
1
1
i
T
z T
z
e
=
2
tan ) 1 (
) 1 (
1
1
i
z
z
e

+


This does not contain a T. Thus it is immaterial what value of T is used as long as it is the same
in both steps (which it is).
The procedure for the design of a digital filter using the bilinear transformation consists
of:
Step 1: Pre-warping the digital specifications
Step 2: Designing an analog filter to meet the pre-warped specs
Step 3: Applying the bilinear transformation

In the process T is arbitrarily set to 1, but it can be set equal to any value (e.g., T = 2), since it
cancels in the design. The design process is shown by the figure below.
















Pre-warped
Analog specs

1
,
2
, ,
N
K
1
, K
2
, , K
N

H
a
(s)
Desired
H(z)
Digital specs

1
,
2
, ,
N
K
1
, K
2
, , K
N

Pre-warp
T = 1

i
= (2/T) tan (
i
/2)
Design
Analog
Filter
Bilinear
transformation T = 1
s
( )
( )
1
1
1
1 2

z T
z

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 31 of 55 Dr. Ravi Billa


Example 5.6.2 [After Prob. 5.6, O & S] Design a digital low pass filter with pass band
magnitude characteristic that is constant to within 0.75 dB for frequencies below e = 0.2613t
and stop band attenuation of at least 20 dB for frequencies between e = 0.41t and t.




















Use bilinear transformation. Determine the transfer function H(z) for the lowest order
Butterworth design which meets these specifications. Draw the cascade form realization.

Step 1: Pre-warp e
1
= 0.2613t, e
2
= 0.41t with T = 1 sec.
O
1
=
T
2

2
tan
1
e
= 2
2
2613 . 0
tan
t
= 0.8703 rad / sec
O
2
=
T
2

2
tan
2
e
= 2
2
41 . 0
tan
t
= 1.501 rad / sec
Step 2: Design H
a
(s)
N =
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

+
+
501 . 1
8703 . 0
log 2
1 10
1 10
log
10
10 / 20
10 / 75 . 0
10
=
( )
(
(
(
(
(
(

|
.
|

\
|

2367 . 0 2
1 100
1 19 . 1
log
10
=
(
(
(

) 2367 . 0 ( 2
7203 . 2
=
(
75 . 5 = 6

c
=
N K 2 10 /
1
1 10
1

=
12 10 / 75 . 0
1 10
8703 . 0

+
=
8701 . 0
8703 . 0
= 1 rad/sec
Let the left-half plane poles be denoted
1
s ,
*
1
s ,
2
s ,
*
2
s ,
3
s , and
*
3
s .
H
a
(s) =
( )( )
*
1 1
1
s s s s

( )( )
*
2 2
1
s s s s

( )( )
*
3 3
1
s s s s

Since
c
= 1 the LP to LP transformation s (s/1) results in the same H
a
(s) as given above.
Step 3: H(z) = |
1
1
1
) 1 ( 2 ) (

z
z
s a
s H
0
dB (= 20 log
10
|H(j)|)

0.41 0.2613
0.75
20

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 32 of 55 Dr. Ravi Billa
=
( )( )
1
1
1
) 1 ( 2
*
1 1
1
z
z
s
s s s s
+




( )( )
1
1
1
) 1 ( 2
*
2 2
1
z
z
s
s s s s
+




( )( )
1
1
1
) 1 ( 2
*
3 3
1
z
z
s
s s s s
+




Example 5.6.3 [2002] Determine H(z) for a Butterworth filter satisfying the following
constraints. Use the impulse invariance technique.
5 . 0 s | ) (
e j
e H | s 1, for 0 s s /2
| ) (
e j
e H | s 0.2, for 3 /4 s s


Solution The critical frequencies are
1
= /2,
2
= 3 /4. Use = T to determine the analog
frequencies O
1
and O
2
. Note T is not given. Take T = 1, so that = .1 = . (This corresponds
to the pre-warping step of the bilinear transformation with = ) / 2 ( T ) 2 / tan(e ).
We have = .1, so that the critical frequencies are

K
1
= 3.01 dB
O
1
=
1
= /2 rad/sec. (=
c
)

K
2
= 13.98 dB
O
2
=
2
= 3/4 rad/sec.

The order of the filter is given by
0
dB (= 20 log
10
|H()|)

3
13.98

/2 3/4
1
0

/2 3/4
|H()
|
0.707
0.2
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 33 of 55 Dr. Ravi Billa
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

+
+
4 / 3
2 /
log 2
1 10
1 10
log
10
10 / 98 . 13
10 / 01 . 3
10
t
t
=
(
(
(
(
(
(

|
.
|

\
|
|
.
|

\
|

3
2
log 2
1 003 . 25
1 2
log
10
10

=
(
(
(

) 176 . 0 ( 2
8 . 13
=
(
919 . 3 = 4
O
c
is already known to be t /2 rad/sec.
The 4
th
order normalized Butterworth filter (with unit bandwidth) is
H
a
(s) (normalized) =
1 613 . 2 414 . 3 613 . 2
1
2 3 4
+ + + + s s s s

Using the low pass to low pass analog transformation s ) / (
c
s O or s ) 57 . 1 / (s we get the
Butterworth filter satisfying the required specs:
H
a
(s) =
1
57 . 1
613 . 2
57 . 1
414 . 3
57 . 1
613 . 2
57 . 1
1
2 3 4
+
|
.
|

\
|
+
|
.
|

\
|
+
|
.
|

\
|
+
|
.
|

\
| s s s s

For the impulse invariant design we need the poles of H
a
(s), so the above form is not much help.
We need to use the factored form:
H
a
(s) (normalized) =
) 1 84776 . 1 ( ) 1 76536 . 0 (
1
2 2
+ + + + s s s s

And with s ) 57 . 1 / (s , we have
H
a
(s) =
(
(

+
|
.
|

\
|
+
|
.
|

\
|
(
(

+
|
.
|

\
|
+
|
.
|

\
|
1
57 . 1
84776 . 1
57 . 1
1
57 . 1
76536 . 0
57 . 1
1
2 2
s s s s

Put this into partial fraction form. We need the poles individually since we need to use the
relation

(s = s
1
) (z =
T s
e
1
), with T = 1 of course

to get H(z) from the H
a
(s). Once we get the H
a
(s) we can then combine complex conjugate pole
pairs to biquadratic form and then implement as a parallel form with two biquadratics in it.
Alternatively, memorize relations 3(c) and 3(d). This latter gives the biquadratics directly.

This same problem will next be solved using the bilinear transformation to show the
difference.
Step 1: Pre-warping according to =
T
2
2
tan
e
with T = 1 gives

1
= 2
2
tan
1
e
= 2
2
) 2 / (
tan
t
= 2 rad / sec

2
= 2
2
tan
2
e
= 2
2
) 4 / 3 (
tan
t
= 4.828 rad / sec
Step 2: Design H
a
(s)
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 34 of 55 Dr. Ravi Billa
N =
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

+
+
828 . 4
2
log 2
1 10
1 10
log
10
10 / 98 . 13
10 / 01 . 3
10
=?

c
=
N K 2 10 /
1
1 10
1

=?
Step 3: H(z) = |
1
1
1
) 1 ( 2 ) (

z
z
s a
s H

Example 5.6.4 Design a low pass digital filter by applying impulse invariance to an appropriate
Butterworth continuous-time filter. The digital filter specs are:

1 dB s 20 Log |H(e)| s 0, 0 s |e| s 0.2t
20 Log |H(e)| s 15 dB, 0.3t s |e| s t

Solution First convert the digital frequencies e to analog frequencies O. The mapping between
e and O is linear in the absence of aliasing. We shall use e = OT with T = 1. Thus the specs
become

1 dB s 20 Log |H
a
(O)| s 0, 0 s |O| s 0.2t
20 Log |H
a
(O)| s 15 dB, 0.3t s |O| s t



















N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|



t
t
3 . 0
2 . 0
log 2
1 10
1 10
log
10
10 / ) 15 (
10 / ) 1 (
10
=
( )
(
(
(
(
(
(

|
.
|

\
|

6666 . 0 log 2
1 6228 . 31
1 259 . 1
log
10
10

0
dB (= 20 log
10
|H|)

K
1
= 1 dB
0.3 0.2
K
2
= 15 dB

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 35 of 55 Dr. Ravi Billa
=
( )
(
(
(
(
(
(

|
.
|

\
|
1761 . 0 2
6228 . 30
2589 . 0
log
10
=
( )
( )
(
(
(

1761 . 0 2
0085 . 0 log
10
=
(
(
(

) 3827 . 0 ( 2
0729 . 2
=
(
885 . 5 = 6

c
=
N K 2 10 /
1
1 10
1

=
12
1 2589 . 1
2 . 0

t
=
12
2589 . 0
2 . 0 t
=
8935 . 0
2 . 0 t
= 0.703 rad/sec
Let the left-half plane poles be denoted
1
s ,
*
1
s ,
2
s ,
*
2
s ,
3
s , and
*
3
s .
H
a
(s) =
( )( )
*
1 1
1
s s s s

( )( )
*
2 2
1
s s s s

( )( )
*
3 3
1
s s s s

Since
c
= 0.703 the LP to LP transformation s (s/0.703) results in
H
a
(s) =
( )( ) ( )( ) ( )( )
703 . 0
*
3 3
*
2 2
*
1 1
1
s
s
s s s s s s s s s s s s



To be completed

Example 5.6.5 [2003] [The Butterworth circle and the bilinear transformation] Refer to
Oppenheim & Schafer, Sec. 5.1.3 and Sec. 5.2.1. The bilinear transformation is given by
s =
T
2
) 1 (
) 1 (
1
1

z
z
or z =
) 2 / ( 1
) 2 / ( 1
sT
sT

+

This last equation is used to map the poles on the Butterworth circle in the s-plane into poles on
the Butterworth circle in the z-plane. For the normalized Butterworth filter with a cut-off
frequency of 1 rad/sec., the Butterworth circle in the s-plane has unit radius. If the cut-off
frequency is
c
instead of 1, then the circle has a radius of
c
. This is the case in the example on
pp. 212-214 of Oppenheim & Schafer where the order N of the filter is 3, the radius of the
Butterworth circle in the s-plane is
c
, and
c
T = which corresponds to a sampling frequency
of twice the cut-off frequency (Figure 5.14).
For the two poles at s =
c
and s =
c
and
c
T = we get
s =
c
: z =
) 2 / ( 1
) 2 / ( 1
T
T
c
c
O +
O
=
) 4 / 1 ( 1
) 4 / 1 ( 1
+

= 3/5
s =
c
: z =
) 2 / ( 1
) 2 / ( 1
T
T
c
c
O
O +
=
) 4 / 1 ( 1
) 4 / 1 ( 1

+
= 5/3
Both of these z-plane poles are on the real axis as shown in figure below.















j1
1
Unit circle
Re
Im
z-plane
5/3
3/5
Butterworth circle
in the z-plane
j
c

c

Radius =
c


j
s-plane
Butterworth circle
in the s-plane
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 36 of 55 Dr. Ravi Billa


The other s-plane poles are similarly mapped to z-plane poles, though the algebra involved is a
little more. Note that the three poles in the left-half of the s-plane are mapped into the inside of
the unit circle in the z-plane.


5.7 Analog design using digital filters

When we are required to simulate an analog filter using the A/D H(z) D/A structure, the
specifications consist of the analog frequencies{
1
,
2
, ,
N
}, the corresponding magnitudes
{K
1
,

K
2
,
,
K
N
} and the sampling time T. We convert to digital specs using the relation
i
=
i
T.

Example 5.7.1 [Bilinear] [4.2, p. 180, Ludeman] Design a digital filter H(z) that when used in
an A/D-H(z)-D/A structure gives an equivalent low-pass analog filter with (a) 3.01 dB cut-off
frequency of 500Hz, (b) monotonic stop and pass bands, (c) magnitude of frequency response
down at least 15 dB at 750 Hz, and (d) sample rate of 2000 samples/sec.
Solution
Step 0 First we convert the analog s to digital s using e
i
= O
i
T.

1
= 2tF
1
=

2t 500 = 1000 t rad/sec., K
1
= 3.01 dB

2
= 2tF
2
=

2t 750 = 1500 t rad/sec., K
2
= 15 dB

Thus

1
=
1
T = 1000 t
2000
1
= 0.5 t rad, K
1
= 3.01 dB

2
=
2
T = 1500 t
2000
1
= 0.75 t rad, K
2
= 15 dB

Step 1 Pre-warping. Use T = 1. (In Steps 1 and 3 we could have used T = 1/2000 but the two
occurrences of T would cancel out).
1
O' =
T
2
|
|
.
|

\
|
2
tan
1
e
= 2.0 rad/sec. and
2
O' =
T
2
|
.
|

\
|
2
tan
2
e
= 4.828 rad/sec.
Step 2 Design H
a
(s), i.e., determine the low pass Butterworth filter (see earlier example).
N =
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

+
+
828 . 4
2
log 2
1 10
1 10
log
10
10 / 15
10 / 01 . 3
10
=
( )
(
(
(
(
(
(

|
.
|

\
|

3827 . 0 2
1 62 . 31
1 2
log
10
=
(
(
(

) 3827 . 0 ( 2
486 . 1
=
(
941 . 1 = 2

c
=
4 10 / 01 . 3
1 10
0 . 2

+
=
4
1 2
2

= 2 rad / sec
Do analog low pass to low pass transformation s(s/
c
), i.e., s(s/2) in order to move the cut-
off frequency from 1 to 2 rad/sec. This gives the H
a
(s) with pre-warped specs and
c
= 2 rad/sec.
H
a
(s) =
2 /
2
1 2
1
s s
s s

(

(
+ +
=
1 ) 2 / ( 2 ) 2 / (
1
2
+ + s s

=
4 2 2
4
2
+ + s s
(with a cut-off frequency = 2 rad/sec.)
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 37 of 55 Dr. Ravi Billa
Step 3 Applying the bilinear transformation s
T
2
) 1 (
) 1 (
1
1

z
z
to H
a
(s) with T = 1 will transform
the pre-warped analog filter into a digital filter with system function H(z) that will satisfy the
given requirements:
H(z) =
) 1 (
) 1 ( 2
1
1
) (

z
z
s
a
s H =
4
1
) 1 ( 2
2 2
1
) 1 ( 2
4
1
1
2
1
1
+
(

+
(

z
z
z
z
=
2
2 1
585 . 0 414 . 3
2 1


+
+ +
z
z z


Example 5.7.2 [2002] Derive the Butterworth digital filter having the following specs:

Pass band: 0 to 4411 rad/sec.
Maximum ripple in pass band: 1 dB
Stop band: beyond 25975 rad/sec.
Minimum attenuation in stop band: 60 dB
Sampling frequency: 20 kHz


Solution Even though pass band ripple may suggest a Chebyshev filter we shall comply with the
request for a Butterworth filter. We use bilinear transformation.
Analog frequency specs are given. Convert them to digital by using the relation

= T
and T = (1/20000) sec.

1
= 4411 rad/sec. becomes
1
=
1
T = 4411/20000 = 0.221 rad

2
= 25975 rad/sec. becomes
2
=
2
T = 25975/20000 = 1.299 rad

Now, starting from these digital specs the design proceeds in 3 steps as usual.

Step 1 Pre-warp the critical digital frequencies e
1
and e
2
using T = 1 sec., to get
1
O' =
T
2
|
|
.
|

\
|
2
tan
1
e
= 2
2
221 . 0
tan = 2 11 . 0 tan = 0.221 rad/sec.
2
O' =
T
2
|
.
|

\
|
2
tan
2
e
= 2
2
299 . 1
tan = 2 650 . 0 tan = 1.519 rad/sec.
0
dB (= 20 log
10
|H|)

1 dB
1.299 0.221
60 dB

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 38 of 55 Dr. Ravi Billa
Step 2 Design an analog low pass filter with critical frequencies
1
O' and
2
O' to satisfy

0 > 20 log |H
a
(j
1
O' )| > 1 dB = K
1
, and
20 log |H
a
(j
2
O' )| s 60 dB = K
2

The Butterworth filter of order N and cut-off frequency
c
is given by equations (3.16) and
(3.17) of Ludeman:
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

+
+
519 . 1
221 . 0
log 2
1 10
1 10
log
10
10 / 60
10 / 1
10
=
( )
(
(
(
(
(
(

|
.
|

\
|

145 . 0 log 2
1 10
1 259 . 1
log
10
6 10

=
( )
( )
(
(
(


837 . 0 2
10 . 59 . 2 log
7
10
=
(
(
(

674 . 1
587 . 6
=
(
934 . 3 = 4

c
=
N K 2 10 /
1
1 10
1

=
8 10 / 1
1 10
221 . 0

+
=
8
1 259 . 1
221 . 0

=
845 . 0
221 . 0
= 0.262 rad/sec.
Therefore the required pre-warped Butterworth (analog) filter using Table 3.1b (Ludeman) and
the analog low-pass to low pass transformation from Table 3.2, s(s/
c
), that is, s(s/0.262), is
H
a
(s) =
) 262 . 0 / (
2 3 4
1 613 . 2 414 . 3 613 . 2
1
s s
s s s s

(

(
+ + + +


Example 5.7.3 [2002] Design a digital LPF using bilinear transformation with the following
specifications, and a Butterworth approximation:

2 dB at 5 rad/sec.,
23 dB at 10 rad/sec.,
Sampling frequency = 1000 per sec.


0
dB (= 20 log
10
|H|)


K
1
= 2
0.01 0.005
K
2
= 23
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 39 of 55 Dr. Ravi Billa
Solution Convert the analog specs to digital using e = T, with T = 1/1000 sec. The critical
frequencies are

1
=
1
T = 5/1000 = 0.005 rad; K
1
= 2 dB

2
=
2
T = 10/1000 = 0.01rad; K
2
= 23 dB

Now apply Steps 1, 2 and 3 of the bilinear transformation design process.

Example 5.7.4 [2003] Design a digital filter that will pass a 1 Hz signal with attenuation less
than 2 dB and suppress 4 Hz signal down to at least 42 dB from the magnitude of the 1 Hz
signal.




















Solution All the specs are given in the analog domain. The sampling period T is not specified.
Since 1 Hz is in the pass band and 4 Hz in the stop band we shall use some multiple of 4 Hz, say,
20 Hz as the sampling frequency. Thus T = 1/20. We shall employ the impulse invariance
method.

Step 0 Convert the analog specs to digital by using = T = 2tFT. Thus

1
= 2t .1 =2t rad/sec., and

2
= 2t . 4 = 8t rad/sec.

so that
1
= 2tT = 2t (1/20) = 0.1 t rad., and
2
= 8tT = 8t (1/20) = 0.4 rad.

Step 1 Convert the digital frequencies e
1
and e
2
back to analog frequencies. Since we are using
impulse invariance this involves using the same formula = T and we get the same analog
frequencies as before, viz.,
1
= 2t rad/sec., and
2
= 8t rad/sec. (Note that the value of T is
irrelevant up to this point. We could have used a value of T = 1 in Steps 0 and 1, resulting in
awkward values for the s, like 2t and 8t when we expect values between 0 and t; but this is
not a problem for the design).

Step 2 Determine the order of the analog Butterworth filter.
0
dB (= 20 log
10
|H|)

K
1
= 2
8 2
K
2
= 44
42 dB
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 40 of 55 Dr. Ravi Billa
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

+
+
t
t
8
2
log 2
1 10
1 10
log
10
10 / 44
10 / 2
10
=
( )
(
(
(
(
(
(

|
.
|

\
|

602 . 0 2
1 8 . 25118
1 585 . 1
log
10

=
(
(
(

204 . 1
633 . 4
=
(
848 . 3 = 4
Cutoff frequency
c
is determined next:

c
=
N K 2 10 /
1
1 10
1

=
8 10 / 2
1 10
2

+
t
=
8
1 585 . 1
2

t
=
93515 . 0
2t
= 6.719
Step 3 The normalized filter H
a
(s) of order 4 is
H
a
(s) =
) 1 765 . 0 ( ) 1 848 . 1 (
1
2 2
+ + + + s s s s

We may break it down into partial fractions now (before making the transformation s(s/
c
).
H
a
(s) =
1 848 . 1
2
+ +
+
s s
B As
+
1 765 . 0
2
+ +
+
s s
D Cs

Determine A, B, C, and D and then substitute s(s/
c
).

Alternatively, we can get the individual pole locations from the Butterworth circle.
H
a
(s) =
) 924 . 0 383 . 0 ( ) 924 . 0 383 . 0 ( ) 383 . 0 924 . 0 ( ) 383 . 0 924 . 0 (
1
j s j s j s j s + + + + + +

=
1
s s
A

+
*
1
*
s s
A

+
2
s s
C

+
*
2
*
s s
C


Determine A, A
*
, C and C
*
. Next find
) / (
) (
c
s s
a
s H
O
which is the analog prototype. From this we
can find the H(z) by mapping the s-plane poles to zplane poles by the relation: (s = s
1
)

(z =
T s
e
1
). Here at last we must specify T; we could use T = 1/20. In general, the smaller the value of T
the better.
H
a
(z) = A
T s
e z
z
1

+ A
*
T s
e z
z
*
1

+ C
T s
e z
z
2

+ C
*
T s
e z
z
*
2



If we were to use the bilinear transformation use some value of T like 1/20 (justifying it
on the basis of the sampling theorem) in = T in Step 0.

Example 5.7.5 [Low pass filter] Design a digital low pass filter to approximate the following
transfer function:
H
a
(s) =
1 2
1
2
+ + s s

Using the BZT (Bilinear z-transform) method obtain the transfer function, H(z), of the digital
filter, assuming a 3 dB cut-off frequency of 150 Hz and a sampling frequency of 1.28 kHz.
Solution This problem is a slight variation from the pattern we have followed so far in that it
specifies one critical frequency (cut-off frequency) and the filter order instead of two critical
frequencies with the filter order unknown.
Step 0 Convert the analog specs to digital

c
= 2tF
c
= 2t 150 = 300 t rad/sec.

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 41 of 55 Dr. Ravi Billa
The corresponding digital frequency is

c
=
c
T = 300 t
1280
1
= 0.2343 t rad.
Step 1 Pre-warp (with T = 1)

c
O' =
T
2
|
.
|

\
|
2
tan
c
e
= 0.7715
Step 2 H
a
(s) is given to be of order 2. We only need to do the analog low pass to low pass
transformation.

7715 . 0
) ( s
s
a
s H

=
1
7715 . 0
2
7715 . 0
1
2
+
|
.
|

\
|
+
|
.
|

\
| s s

Step 3 Applying the BZT (with T = 1)
H(z) =
) 1 (
) 1 ( 2
1
1
) (

z T
z
s
a
s H =
1
7715 . 0 ) 1 (
) 1 ( 2
2
7715 . 0 ) 1 (
) 1 ( 2
1
1
1
2
1
1
+
(

+

+
(

z
z
z
z

=
2 1
2 1
3561 . 0 0048 . 1 1
) 2 1 ( 0878 . 0


+
+ +
z z
z z


Example 5.7.6 [Low pass filter] Design a low pass digital filter derived from a second order
Butterworth analog filter with a 3 dB cut-off frequency of 50 Hz. The sampling rate of the
system is 500 Hz.
Solution (This is similar to Example 10). The second order Butterworth analog filter is
H
a
(s) =
1 2
1
2
+ + s s

Step 0 Convert the analog specs to digital

c
= 2tF
c
= 2t 50 = 100 t rad/sec.

The corresponding digital frequency is

c
=
c
T = 100 t
500
1
= 0.2t rad.
Step 1 Pre-warp (with T = 1)

c
O' =
T
2
|
.
|

\
|
2
tan
c
e
= 2
|
.
|

\
|
2
2 . 0
tan
t
= 0.6498
Step 2 H
a
(s) is given to be of order 2. We only need to do the analog low pass to low pass
transformation.
=
1
6498 . 0
2
6498 . 0
1
2
+
|
.
|

\
|
+
|
.
|

\
| s s
=
42229 . 0 91901 . 0
42229 . 0
2
+ + s s

Step 3 Applying the BZT (with T = 1)
H(z) =
) 1 (
) 1 ( 2
1
1
) (

z T
z
s
a
s H =
42229 . 0
) 1 (
) 1 ( 2
91901 . 0
) 1 (
) 1 ( 2
42229 . 0
1
1
2
1
1
+
(

+
(

z
z
z
z

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 42 of 55 Dr. Ravi Billa
=
( )
( ) ( )( ) ( )
2
1 1 1
2
1
2
1
1 42229 . 0 1 1 ) 2 )( 91901 . 0 ( 1 4
1 42229 . 0

+ + + +
+
z z z z
z

The denominator is
Dr = ( ) ( ) ( )
2 1 2 2 1
2 1 42229 . 0 1 83802 . 1 2 1 4

+ + + + + z z z z z
Dr = ) 42229 . 0 83802 . 1 4 ( ) 84458 . 0 8 ( ) 42229 . 0 83802 . 1 4 (
2 1
+ + + + + +

z z
Dr =
2 1
58427 . 2 15542 . 7 26031 . 6

+ z z

H(z) =
2 1
2 1
58427 . 2 15542 . 7 26031 . 6
) 2 1 ( 42229 . 0


+
+ +
z z
z z

=
2 1
2 1
4128 . 0 14298 . 1 26031 . 6
) 2 1 ( 06746 . 0


+
+ +
z z
z z


Summary of IIR filter design
Bilinear
Digital specs given:

1
,
2
(rad.)
K
1
, K
2
(dB)
(1) Pre-warp O' =
T
2
|
|
.
|

\
|
2
tan
e
, T = 1 sec.
Calculate
1
O' ,
2
O' and K
1
, K
2

(2) Find filter order N, cut-off frequency
c

Find normalized filter H
a
(s)
Find
) / (
) (
c
s s
a
s H
O

(3) H(z) =
|
|
.
|

\
|
+

) 1 (
) 1 ( 2
1
1
) (
z T
z
s
a
s H with T = 1 sec.
Bilinear
Analog specs given:

1
,
2
(rad./sec.),
K
1
, K
2
(dB), and
T
Step 0. (Preparation)
Use = T to convert to
Get
1
,
2
, and K
1
, K
2


Then
(1)
(2) As in the left side column
(3)
Impulse invariance
Digital specs given:

1
,
2
,
K
1
, K
2
, and
T (or T = 1)
(1) Determine
1
,
2
using = T
(2) Find filter order N, cut-off frequency
c

Find normalized filter H
a
(s)
Find
) / (
) (
c
s s
a
s H
O

(3) Find individual pole locations.
Then (s = s
1
) (z =
T s
e
1
) for given T



5.8 Frequency Transformation

Frequency transformation is useful for converting a frequency-selective filter from one type to
another.

Analog-to-analog transformations Suppose we are given a continuous-time normalized low
pass filter G(s) with a cut-off frequency of 1 rad/sec. Then what is the effect of the
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 43 of 55 Dr. Ravi Billa
transformation s = sO
c
where s represents the transformed frequency variable? In other words,
we make the substitution s s/O
c
in the transfer function. Since s = sO
c
implies O = O O
c
, it
follows that the frequency range 0 O 1 is mapped into the range 0 O O
c
. Thus G(s)
represents a low pass filter with a cut-off frequency of O
c
. In the rest of what follows, rather than
use an explicitly different symbol s we shall instead indicate such transformation by s s/O
c

and the resulting transfer function by H(s) = |
c
s s
s G
O /
) ( .

1. Low-pass to low-pass transformation Given the prototype low pass filter G(s) with unit
band width (i.e., cut-off frequency = 1 rad/sec.) and unity gain at O = 0 (i.e., |G(j0)| = 1), the
transformation s s/O
c
gives us a new filter, H(s), with cut-off frequency of O
c
. The filter H(s)
is given by
H(s) = |
c
s s
s G
O /
) (
The critical frequency
r
of the filter G(s) is transformed to
r
O' of the filter H(s), given by
r
O' =
r

c
. Both G(s) and H(s) are low pass filters.

























More generally, the transformation
s
c
c
s
O'
O

transforms a low pass filter with a cut-off (or critical) frequency O
c
to a low pass filter with a
cut-off (or critical) frequency
c
O' .

2. Low-pass to high-pass transformation Given G(s) as above the transformation s O
c
/s
will transform the low-pass G(s) into a high-pass filter H(s) with cut-off frequency of
c
:
H(s) = |
s s
c
s G
/
) (
O

0 dB
0

1
r

20 log
10
|G(j)|
K
1

K
2

r
O'
0 dB
0

c

20 log
10
|H(j)|
K
1

K
2

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 44 of 55 Dr. Ravi Billa
The critical frequency O
r
of the filter G(s) is changed to
r
O' of H(s), given by
r
O' =
c
/
r
.














There are similar transformations from low-pass to band-pass and low-pass to band-stop.
Refer to table 3.2, page 128, Ludeman.
The Low-pass prototype analog unit bandwidth filter could be any analog filter such as
Butterworth, Chebyshev etc. of any order, any ripple etc.

Digital-to-digital transformations Similarly, a set of transformations can be found that take a
low-pass digital filter and turn it into another low-pass or high-pass or band-pass or band stop
digital filter. Refer to Sec 4.3, p. 181, Ludeman.


5.9 The Chebyshev filter

The Butterworth filter provides a good approximation to the ideal low pass characteristics for
values of near zero, but has a low fall-off rate in the transition band. The Chebyshev filter has
ripples in either the pass band or the stop band but has a sharper cut-off in the transition band.
Thus, for filters of the same order, the Chebyshev filter has a smaller transition band than the
Butterworth filter. We now look at the analog low pass Chebyshev filter. There are two types of
the Chebyshev filter.

Type I (Chebyshev I) is an all-pole filter. It has equiripple behavior in the pass band and
monotonically decreases in the stop band. For N = order of the filter, the magnitude response
looks as below (N = 5 and N = 6 illustrated). The magnitude, |H(j)|, is an even symmetric
function of .












r
O'
0 dB
0

c

K
1

K
2

20 log
10
|H(j)|
A
B

2 0
|H(j)|

1
N is odd
N = 5
A
B

2 0
|H(j)|

1
N is even
N = 6
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 45 of 55 Dr. Ravi Billa



Type II (Chebyshev II or Inverse Chebyshev) filter has both poles and zeros. It has a
monotonically decreasing shape in the pass band and an equiripple behavior in the stop band.















Design of the Chebyshev I filter A typical magnitude response specification is sketched below
(shown for N = 5 and N = 6). The magnitudes at the critical frequencies
1
and
2
are A and B,
respectively. Typically
1
is in the pass band or is the edge of the pass band and
2
is in the stop
band or is the edge of the stop band. In terms of the log-magnitude the analog filter specifications
are as below. Note that (20 log A) = K
1
dB and (20 log B) = K
2
dB. If A and B are less than 1, K
1

and K
2
are negative.

0 > ) ( log 20
10
O j H > K
1
for all s
1

) ( log 20
10
O j H s K
2
for all >
2

















The magnitude characteristic of the N
th
order Chebyshev I filter is given by
|H(j)| =
( )
1
2 2
/ 1
1
O O +
N
C c
, N = 1, 2,
|H(j)|

1
0
A
B

2 0
|H(j)|

1
N is odd
N = 5
A
B

2 0
|H(j)|

1
N is even
N = 6
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 46 of 55 Dr. Ravi Billa
where has to do with pass band ripple and C
N
(x) is the N
th
order Chebyshev cosine polynomial
defined as
C
N
(x) = ( ) x N
1
cos cos

, x 1 (pass band)
( ) x N
1
cosh cosh

, x > 1 (outside the pass band)
Chebyshev polynomials are also defined by the recursion formula
) (x C
N
= ) ( ) ( 2
2 1
x C x xC
N N

with ) (
0
x C =1 and ) (
1
x C = x. Using this recursion formula we get, for N = 2, ) (
2
x C =
) ( ) ( 2
0 1
x C x xC = 1 2
2
x .

Chebyshev Polynomials, C
N
(x)
N C
N
(x)
0 1
1 x
2
1 2
2
x
3
x x 3 4
3




[Aside If the frequencies are normalized, that is, for a normalized filter,
1
= 1 rad/sec and the
magnitude characteristic of the N
th
order Chebyshev I filter is given by
|H(j)| =
( ) O +
2 2
1
1
N
C c
, N = 1, 2,
End of Aside]

At = 0 we have
C
N
(0) = ( ) 0 cos cos
1
N = ( ) 2 / cos t N
= 0, N odd
1, N even
As a consequence, on the vertical axis ( = 0) the magnitude curve starts at |H(j0)| = 1 for odd N
and at |H(j0)| = A =
2
1
1
c +
for even N.
At =
1
we have C
N
(1) = ( ) 1 cos cos
1
N = ( ) 0 cos = 1 for all N. The corresponding
magnitude is
|H(j
1
)| = A =
2
1
1
c +
, for all N
This equation is used to compute from the given |H(j)|.
The order, N, of the filter is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O

1
2 1
10 /
10 /
1
cosh
1 10
1 10
cosh
1
2
K
K

The symbol
(
means that the computed result is rounded to the next larger integer. For
example, if N = 3.2 by the above calculation then it is rounded up to 4, and the order of the
required filter is N = 4. In such a case the resulting filter would exceed the specification at both

1
and
2
.
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 47 of 55 Dr. Ravi Billa

Example 5.9.1 [Filter order] Determine the order of a Chebyshev I filter to have an attenuation
of no more than 1 dB for || 1000 rad/sec and at least 10 dB for || 5000 rad/sec.

Solution The specifications as given are

0 > ) ( log 20
10
O j H > 1 dB for all s 1000 rad/sec
) ( log 20
10
O j H s 10 dB all > 5000 rad/sec

The design parameters are identified as

K
1
= 1 dB,
1
= 1000 rad/sec
K
2
= 10 dB,
2
= 5000 rad/sec

The filter order is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O

1
2 1
10 /
10 /
1
cosh
1 10
1 10
cosh
1
2
K
K
=
(
(
(
(
(
(

|
.
|

\
|

1000
5000
cosh
1 10
1 10
cosh
1
10 / 1
10 / 10
1
=
( )
(
(
(
(
(
(

5 cosh
1 2589 . 1
1 10
cosh
1
1

=
(
(
(

5 cosh
8956 . 5 cosh
1
1
=
(
(
(

2924 . 2
4601 . 2
=
(
073 . 1 = 2
[On the HP 15C, 8956 . 5 cosh
1
is obtained by: (1) Enter Radian mode, (2) Enter 5.8956, (3) g,
(4)
1
HYP , and (5) COS]

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 48 of 55 Dr. Ravi Billa
Pole locations and transfer function The poles of the Chebyshev I filter are related to those of
the Butterworth filter of the same order and are located on an ellipse in the s-plane. If N is odd
there will be a pole on the negative real axis. In order to find the pole locations and hence the
transfer function we introduce the parameter
= ( ) c / 1 sinh
1
1
N

The poles of H(s), s
k
=
k
+ j
k
, k = 0, 1, , (N1), are given by

k
=
|
.
|

\
|
2
1 2
sin
t
N
k
| sinh and
k
=
|
.
|

\
|
2
1 2
cos
t
N
k
| cosh


























Note that if the | sinh and | cosh terms were not present we would have the pole locations of
the normalized Butterworth filter (on the unit circle), that is,

k
=
|
.
|

\
|
2
1 2
sin
t
N
k
and
k
=
|
.
|

\
|
2
1 2
cos
t
N
k

with
2 2
k k
O + o = 1 which is the unit circle. Thus, the hyperbolic sine and cosine terms are scale
factors which, when applied to the Butterworth pole coordinates, give the pole coordinates of a
Chebyshev I filter of the same order. The Chebyshev poles are located on an ellipse in the s-
plane described by
|
o
2
2
sinh
k
+
|
2
2
cosh
k
O
= 1
The major axis of the ellipse is on the imaginary (j) axis and the minor axis is on the real axis
and the foci are at = 1. The 3 dB cut-off frequency occurs at the point where the ellipse
intersects the j axis, that is, at = | cosh .

j
cosh
sinh
j1
j1
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 49 of 55 Dr. Ravi Billa
In putting together the transfer function, H(s), we rely on the symmetry of pole positions
and make use of the left half plane poles only. Finally, the pole positions are scaled by the actual
cut-off frequency
1
. This last step amounts to s s/
1
(in the case of the Butterworth design
this was s s/
c
).

Example 5.9.2 [Pole locations and transfer function] Find the pole locations and the transfer
function of the Chebyshev I filter designed in above example, that is, with an attenuation of no
more than 1 dB for || 1000 rad/sec and at least 10 dB for || 5000 rad/sec.

Solution The filter order has been determined above as N = 2. Further, we know that |H(j
1
)| =
2
1 1 c + and 20 ) ( log
1
O j H = 1 dB. Thus
20 ( )
2
1 1 log c + = 1

Solving for we get = 0.5088. Since N is even |H(j0)| =
2
1 1 c + = 0.8913 is the starting point
on the vertical axis.
With regard to the pole locations, if it were a Butterworth filter of order 2 the poles are
located at

k
=
|
.
|

\
|
2
1 2
sin
t
N
k
and
k
=
|
.
|

\
|
2
1 2
cos
t
N
k
, k = 0, 1
1 , 0
s =
|
.
|

\
|
4
sin
t
j
|
.
|

\
|
4
cos
t
= ( ) 2 1 j ( ) 2 1
The Chebyshev I poles are then obtained from the Butterworth poles by scaling the real and
imaginary parts, respectively, by | sinh and | cosh and then scaling both parts by
1
:
1 , 0
s = ( ) ( ) { } | | cosh 2 1 sinh 2 1
1
j O
where
1
= 1000 rad/sec., and
= ( ) c / 1 sinh
1
1
N
= ( ) 5088 . 0 / 1 sinh
2
1
1
= 0.7140
Thus the Chebyshev I pole locations are
1 , 0
s = 714 . 0 sinh
2
1000
j 714 . 0 cosh
2
1000

= 714 . 0 sinh
2
1000
j 714 . 0 cosh
2
1000

= (707.11) (0.7762) j (707.11) (1.2659) = 548.86 j 895.15
Hence
H(s) =
) )( (
1 0
s s s s
K

=
)) 15 . 895 86 . 548 ( ))( 15 . 895 86 . 548 ( ( j s j s
K
+

=
2 2
) 15 . 895 ( ) 86 . 548 ( + + s
K

Since N is even the constant K will be adjusted to achieve |H(j0)| =
2
1 1 c + = 0.8913. (If N
were odd, K would be adjusted to achieve |H(j0)| = 1.)
|H(j0)| =
2 2
) 15 . 895 ( ) 86 . 548 ( +
K
= 0.8913
which yields K = 982694.6. The filter then is
H(s) =
2 2
) 15 . 895 ( ) 86 . 548 (
6 . 982694
+ + s

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 50 of 55 Dr. Ravi Billa

Example 5.9.3 [Ramesh Babu] Determine the order of a Chebyshev I filter to have a gain of 3
dB or better for |F| 1000 Hz and a gain of 16 dB or less for |F| 2000 Hz. Find the pole
locations and the transfer function.
Solution The specifications as given are

0 > ) ( log 20
10
O j H > 3 dB for all s 2 (1000) rad/sec
) ( log 20
10
O j H s 16 dB all > 2 (2000) rad/sec

The design parameters are identified as

K
1
= 3 dB,
1
= 2000 rad/sec
K
2
= 16 dB,
2
= 4000 rad/sec

The filter order is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O

1
2 1
10 /
10 /
1
cosh
1 10
1 10
cosh
1
2
K
K
=
(
(
(
(
(
(

|
.
|

\
|

t
t
2000
4000
cosh
1 10
1 10
cosh
1
10 / 3
10 / 16
1
=
( )
(
(
(
(
(
(

2 cosh
1 995 . 1
1 81 . 39
cosh
1
1

=
(
(
(

2 cosh
2445 . 6 cosh
1
1
=
(
(
(

3169 . 1
5184 . 2
=
(
9122 . 1 = 2
Further |H(j
1
)| =
2
1 1 c + and 20 ) ( log
1
O j H = 3 dB implies that |H(j
1
)| = 2 1 .
From these two conditions it follows that = 1. Since N is even |H(j0)| =
2
1 1 c + = 2 1 .
The poles of H(s) are given by s
k
=
k
+ j
k
, k = 0, 1

k
=
|
.
|

\
|
2
1 2
sin
t
N
k
| sinh and
k
=
|
.
|

\
|
2
1 2
cos
t
N
k
| cosh
= ( ) c / 1 sinh
1
1
N
= ( ) 1 / 1 sinh
2
1
1
=
2
88137 . 0
= 0.44069
Thus, one of the left half plane poles is
1
s =
1 1
O + j o =
|
.
|

\
|
4
sin
t
44069 . 0 sinh + j
|
.
|

\
|
4
cos
t
44069 . 0 cosh
=
2
1
0.45509 + j
2
1
1.09868 = 0.3218 + j0.77689
Scaling this by
1
= 2000 rad/sec results in
1
s = 2000 (0.3218 + j0.77689) = 2021.9 + j4881.3 = a + jb
where a = 2021.9 and b = 4881.3. The other left half plane pole is the conjugate of the above, at
2
s = 2021.9 j4881.3 = a jb
The transfer function is H(s) = 1/D(s), where the denominator, D(s), is put together from
the poles as follows
D(s) = ) )( (
2 1
s s s s = ( )( ) ) 3 . 4881 9 . 2021 ( ) 3 . 4881 9 . 2021 ( j s j s +
=
2 2
) 3 . 4881 ( ) 9 . 2021 ( + + s
For convenience we shall write this as D(s) =
2 2
) ( b a s + + =
2 2 2
2 b a sa s + + + , so that
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 51 of 55 Dr. Ravi Billa
H(s) =
) (s D
K
=
2 2 2
2 b a sa s
K
+ + +

where the constant K is adjusted so as to make |H(j0)| = 2 1 :
|H(j0)| =
2 2
b a
K
+
= 2 1 K =
2
2 2
b a +

Thus
H(s) =
2
2 2
b a +
2 2 2
2
1
b a sa s + + +

= 19739005.5
3 . 27915169 8 . 4043
1
2
+ + s s


Design of the Chebyshev II filter A typical magnitude response specification is sketched below.
The magnitudes at the critical frequencies
1
and
2
are A and B, respectively. Typically
1
is in
the pass band or is the edge of the pass band and
2
is in the stop band or is the edge of the stop
band. In terms of the log-magnitude the analog filter specifications are as below. Note that (20
log A) = K
1
dB and (20 log B) = K
2
dB. If A and B are less than 1, K
1
and K
2
are negative.

0 > ) ( log 20
10
O j H > K
1
for all s
1

) ( log 20
10
O j H s K
2
for all >
2
















The magnitude characteristic of the N
th
order Chebyshev II filter is given by
|H(j)| =
) / (
) / (
1
1
2
2
1 2
2
2
O O
O O
+
N
N
C
C
c
, N = 1, 2,
where has to do with pass band attenuation and C
N
(x) is the N
th
order Chebyshev polynomial.
At =
1
we have
|H(j
1
)| =
) / (
) / (
1
1
1 2
2
1 2
2
2
O O
O O
+
N
N
C
C
c
=
2
1
1
c +
= A, for all N
At = 0, ) / (
2
O O
N
C = ) (
N
C , and the magnitude becomes
|H(j)|

1
0

2
A
B

1

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 52 of 55 Dr. Ravi Billa
|H(j0)| =
) 0 / (
) / (
1
1
2
2
1 2
2
2
O
O O
+
N
N
C
C
c
= 1 for all N
The magnitude curve starts at |H(j0)| = 1 on the vertical axis for all N.
At =
2
we have ) / (
2 2
O O
N
C = ) 1 (
N
C = ( ) 1 cos cos
1
N = ( ) 0 cos = 1
|H(j
2
)| =
) / (
) / (
1
1
2 2
2
1 2
2
2
O O
O O
+
N
N
C
C
c
=
1
) / (
1
1
1 2
2
2
O O
+
N
C
c

=
) / ( 1
1
1 2
2 2
O O +
N
C c
= B, for all N
The order, N, of the filter is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O

1
2 1
10 /
10 /
1
cosh
1 10
1 10
cosh
1
2
K
K

The symbol
(
means that the computed result is rounded to the next larger integer. For
example, if N = 3.2 by the above calculation then it is rounded up to 4, and the order of the
required filter is N = 4. In such a case the resulting filter would exceed the specification at both

1
and
2
.

Example 5.9.4 [2009] If an analog low pass filter is to have an attenuation of 1 dB at cut-off
frequency of 1 kHz, and a maximum stop band ripple of 0.01 for |F| > 5 kHz, determine the
required the filter order for (a) a Butterworth filter, (b) a Chebyshev I filter, and (c) a Chebyshev
II filter.
Solution The specifications are the same for all three cases but the magnitude characteristic
differs from one case to the next.
(a) The Butterworth magnitude (absolute value) characteristic is sketched below.

1
= 2tF
1
=

2t 1000 rad/sec., K
1
= 1 dB A = 0.8912

2
= 2tF
2
=

2t 5000 rad/sec., B = 0.01 K
2
= 40 dB
















A =0.8912
B = 0.01

2
= 25000
, rad./sec.
|H
a
(j)|

1
= 21000
1
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 53 of 55 Dr. Ravi Billa
The relation between the absolute values and the dB figures (K
1
= 20 log A and K
2
= 20 log B) is
used to compute A =
20 /
1
10
K
=
20 / 1
10

= 0.8912 and K
2
= 20 log B = 20 log 0.01 = 40 dB.
The Butterworth filter order is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O
|
|
.
|

\
|

2
1
10
10 /
10 /
10
log 2
1 10
1 10
log
2
1
K
K
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|



5
1
log 2
1 10
1 10
log
10
10 / ) 40 (
10 / ) 1 (
10
=
(
(
(
(
(
(
(

|
.
|

\
|
|
|
.
|

\
|

5
1
log 2
1 10
1 10
log
10
4
1 . 0
10

=
( )
(
(
(
(
(
(

|
.
|

\
|

2 . 0 log 2
1 10000
1 25892 . 1
log
10
10
=
(
(
(

3979 . 1
5868 . 4
=
(
28 . 3 = 4

(b) The Chebyshev I specs and magnitude (absolute value) characteristic are diagrammed below.
As earlier we compute A =
20 /
1
10
K
=
20 / 1
10

= 0.8912 and K
2
= 20 log B = 20 log 0.01 = 40 dB.

1
= 2tF
1
=

2t 1000 rad/sec., K
1
= 1 dB A = 0.8912

2
= 2tF
2
=

2t 5000 rad/sec., B = 0.01 K
2
= 40 dB
















The Chebyshev I filter order is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O

1
2 1
10 /
10 /
1
cosh
1 10
1 10
cosh
1
2
K
K
=
(
(
(
(
(
(

|
.
|

\
|

1
5
cosh
1 10
1 10
cosh
1
10 / ) 1 (
10 / ) 40 (
1
=
( )
(
(
(
(
(
(

5 cosh
1 10
1 10000
cosh
1
1 . 0
1

=
( )
(
(
(

5 cosh
3 . 38617 cosh
1
1
=
( )
(
(
(

5 cosh
) 5 . 196 ( cosh
1
1
=
(
(
(

2924 . 2
9738 . 5
=
(
6059 . 2 = 3

(c) The Chebyshev II specs and magnitude (absolute value) characteristic are shown below. As
earlier we compute A =
20 /
1
10
K
=
20 / 1
10

= 0.8912 and K
2
= 20 log B = 20 log 0.01 = 40 dB.

1
= 2tF
1
=

2t 1000 rad/sec., K
1
= 1 dB A = 0.8912
A
B

2 0
|H(j)|

1
N is odd
N =?
A
B

2 0
|H(j)|

1
N is even
N =?
www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 54 of 55 Dr. Ravi Billa

2
= 2tF
2
=

2t 5000 rad/sec., B = 0.01 K
2
= 40 dB















The Chebyshev II filter order is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O

1
2 1
10 /
10 /
1
cosh
1 10
1 10
cosh
1
2
K
K
=
(
(
(
(
(
(

|
.
|

\
|

1
5
cosh
1 10
1 10
cosh
1
10 / ) 1 (
10 / ) 40 (
1
=
( )
(
(
(
(
(
(

5 cosh
1 10
1 10000
cosh
1
1 . 0
1

=
( )
(
(
(

5 cosh
3 . 38617 cosh
1
1
=
( )
(
(
(

5 cosh
) 5 . 196 ( cosh
1
1
=
(
(
(

2924 . 2
9738 . 5
=
(
6059 . 2 = 3

Example 5.9.5 [2009] Determine the system function H(z) of the lowest order Chebyshev filter
that meets the following specs. Use the impulse invariance method.
(a) 0.5 dB ripple in the pass band, 0 || 0.24
(b) At least 50 db attenuation in the stop band, 0.35 ||

Solution We assume the Chebyshev I filter. The procedure is similar for the Chebyshev II. The
specs are:

1
= 0.24t rad., K
1
= 0.5 dB A =
20 /
1
10
K
= 0.94406

2
= 0.35t rad., K
2
= 50 dB B =
20 /
2
10
K
= 0.0031622

The sampling time, T, is not specified. Since this is impulse invariant design, T should be very
small the smaller the better. Strictly for convenience we shall use T = 1 sec., and convert the
digital specs to analog using the relation = T.

1
=
1
/T =

0.24t rad/sec, K
1
= 0.5 dB A =
20 /
1
10
K
= 0.94406

2
=
2
/T =

0.35t rad/sec, K
2
= 50 dB B =
20 /
2
10
K
= 0.0031622

|H(j)|

1
0

2
A
B

1

www.jntuworld.com
www.jntuworld.com
DSP-5 (IIR) 55 of 55 Dr. Ravi Billa
The magnitude (absolute value) characteristic is diagrammed below.


















The Chebyshev I filter order is given by
N =
(
(
(
(
(
(
(

|
|
.
|

\
|
O
O

1
2 1
10 /
10 /
1
cosh
1 10
1 10
cosh
1
2
K
K
=
(
(
(
(
(
(

|
.
|

\
|

24 . 0
35 . 0
cosh
1 10
1 10
cosh
1
10 / ) 5 . 0 (
10 / ) 50 (
1
=
( )
(
(
(
(
(
(

4583 . 1 cosh
1 10
1 100000
cosh
1
05 . 0
1

=
( )
(
(
(

4583 . 1 cosh
96 . 819539 cosh
1
1
=
( )
(
(
(

4583 . 1 cosh
) 28 . 905 ( cosh
1
1
=
(
(
(

9242 . 0
5014 . 7
=
(
117 . 8 = 9
Determine the poles and transfer function H(s), h(t), h(n), and H(z).


5.10 The Elliptic (or Cauer) filter

An approximation to the ideal low-pass characteristic, which, for a given order of filter, has an
even smaller transition band than the Chebyshev filter, can be obtained in terms of Jacobi elliptic
sine functions. The resulting filter is called an elliptic filter. The magnitude characteristic of the
elliptic filter has ripples in both the pass band and the stop band.











c

1/(1+
2
)
|H(j)|
2


1
0
N is odd
N = 5

c

1/(1+
2
)
|H(j)|
2


1
0
N is even
N = 6
A =
20 /
1
10
K

1
=
0.24t

2
=
0.35t
N = unknown
(Shown for N = 5)
0
|H(j)|

1
B =
20 /
2
10
K

www.jntuworld.com
www.jntuworld.com

Vous aimerez peut-être aussi