Antoniou Samp-Sols
Antoniou Samp-Sols
Antoniou Samp-Sols
where the frequencies ωk , amplitudes Ak , and phase angles φk are given in Table SA.1.
The signal is to be processed first by an ideal bandpass filter and the by a differentiator, as
shown in Fig. SA.1. The bandpass filter will pass frequencies in the range 4 ≤ ω ≤ 6 rad/s
and reject all other frequencies and the differentiator will differentiate the signal with respect
to time.
(a) Obtain a time-domain representation for the signal at the outputs of the bandpass filter
and differentiator, i.e., at nodes B and C, respectively, in Fig. SA.1.
(b) Obtain a frequency-domain representation for the signal at the output of the bandpass
filter.
(c) Obtain a frequency-domain representation for the signal at the output of the differentiator.
A B C
Bandpass Filter Differentiator
Figure SA.1
1 1 0.3819 −0.3478
2 2 0.3614 0.8222
3 3 0.8575 2.3502
4 4 0.0629 −0.3292
5 5 0.1342 −0.1693
6 6 0.8648 0.6648
7 7 0.5155 −2.4473
8 8 0.6797 1.7780
9 9 0.7001 −1.5824
10 10 0.3 1.1
Copyright
c by Andreas Antoniou 2005-
2 DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters
Solution
(a) Node B:
6
xB (t) = Ak sin(ωk t + φk )
k=4
Node C:
6 6
d d
xC (t) = Ak sin(ωk t + φk ) = [Ak sin(ωk t + φk )]
dt dt
k=4 k=4
6
6
= ωk Ak cos(ωk t + φk ) = ωk Ak sin(ωk t + φk + π/2)
k=4 k=4
(b) The amplitude and phase spectrums at Node B are given in Table SA.2 and are plotted
in Fig. SA.2.
Table SA.2 Frequency Spectrum at Node B
k ωk , rad/s Ak φk
4 4 0.0629 −0.3292
5 5 0.1342 −0.1693
6 6 0.8648 0.6648
0.8
−0.1
0.7
−0.2
Phase Angle, rads
0.6
Magnitude
0.5 −0.3
0.4 −0.4
0.3
−0.5
0.2
−0.6
0.1
0 −0.7
0 5 10 0 5 10
Frequency, rad/s Frequency, rad/s
Figure SA.2
(c) Similarly, the amplitude and phase spectrums for Node C are given in Table SA.3 and
are plotted in Fig. SA.3.
Table SA.3 Frequency Spectrum at Node B
k ωk , rad/s Ak φk
4 4 0.2516 1.2416
5 5 0.6710 1.4015
6 6 5.1888 2.2356
SAMPLE SOLUTIONS 3
5
2
0.5
1
0 0
0 5 10 0 5 10
Frequency, rad/s Frequency, rad/s
Figure SA.3
where x(t) is zero outside the range −τ0 /2 ≤ t ≤ τ0 /2 has a Fourier series of the form
∞
x̃(t) = Xk ejkω0 t for −τ0 /2 ≤ t ≤ τ0 /2
k=−∞
where τ0 /2
1
Xk = x(t)e−jkω0 t dt
τ0 −τ0 /2
where ω0 = 2π/τ0 . Using the formula in part (a), obtain an expression for the Fourier
series coefficients Xk .
(c) Give expressions for the amplitude and phase spectrums of x̃(t).
4 DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters
~
x(t)
cos(ω0t/2)
τ0 t
τ τ0
− 0
2 2
τ0 τ0
−
4 4
Figure SA.4
Solution
(a) From the definition of the Fourier series
τ0 /2
1
Xk = x(t)e−jkω0 t dt
τ0 −τ0 /2
τ0 /2
1
= x(t)(cos kω0 t − j sin kω0 t) dt
τ0 −τ0 /2
τ0 /2
1 1 τ0 /2
= x(t) cos kω0 t dt − j x(t) sin kω0 t dt
τ0 −τ0 /2 τ0 −τ0 /2
τ0 /2
0
1
= x(t) cos kω0 t dt + x(t) cos kω0 t dt
τ0 −τ0 /2 0
τ0 /2
0
1
− x(t) sin kω0 t dt + x(t) sin kω0 t dt
τ0 −τ0 /2 0
If x(t) is even, then x(t) cos kω0 t is an even function and x(t) sin kω0 t is an odd function.
Hence 0 τ0 /2
x(t) cos kω0 t dt = x(t) cos kω0 t dt
−τ0 /2 0
and
0 τ0 /2
x(t) sin kω0 t dt = − x(t) sin kω0 t dt
−τ0 /2 0
Therefore τ0 /2
2
Xk = x(t) cos kω0 t dt
τ0 0
(b) The given signal is symmetrical about the y axis and, therefore,it is an even function.
Hence we have
2 τ0 /2
Xk = x(t) cos kω0 t dt
τ0 0
2 τ0 /4 2 τ0 /4
= cos(ω0 t/2) cos(kω0 t) dt = cos(kω0 t) cos(ω0 t/2) dt
τ0 0 τ0 0
and, therefore,
τ0 /4
2 1
Xk = 2 [cos(kω0 t + ω0 t/2) + cos(kω0 t − ω0 t/2)] dt
τ0 0
τ0 /4
1
= cos k + 12 ω0 t + cos k − 12 ω0 t dt
τ0 0
τ0 /4
1 k + 12 ω0 t
sin sin k − 12 ω0 t
= +
τ0 k + 12 ω0 k − 12 ω0
0
⎡
⎤
1 2π τ0 1 2π τ0
1 ⎣ sin k + 2 τ0 · 4 sin k − 2 τ0 · 4
= + ⎦
τ0 k + 12 2πτ0 k − 1 2π
2 τ0
1 sin k + 12 π2 sin k − 12 π2
= +
2π k + 12 k − 12
The amplitude and phase spectrums of x̃(t) are the magnitude and angle of Xk , i.e., |Xk |
and arg Xk . Since Xk is real, the angle of Xk is 0 or π depending on whether Xk is
positive or negative.
SA.3 A z transform is given by
(z 2 + 1)(z + 1)
X(z) =
(z 2 + z − 2)(z − 3)
(a) Construct the zero-pole plot of X(z).
(b) Function X(z) is known to have as many Laurent series as there are annuli of convergence
but only one of these series is a z transform that satisfies the absolute convergence theorem
(Theorem 3.1). Identify the annulus of convergence of that series on the zero-pole plot
obtained in part (a).
(c) Through the use of partial fractions obtain a closed-form expression for x(nT ) = Z −1 X(z).
Solution
(a) X(z) can be expressed as
(z 2 + 1)(z + 1)
X(z) =
(z 2 + z − 2)(z − 3)
(z + j)(z − j)(z + 1)
=
(z − 1)(z + 2)(z − 3)
Hence X(z) has zeros at z = ±j, − 1 and poles at z = 1, − 2, 3. The zero-pole plot is
depicted in Fig. SA.5.
(b) The correct annulus is the outer annulus which can be represented by
X(z) (z 2 + 1)(z + 1)
=
z z(z − 1)(z + 2)(z − 3)
R0 R1 R2 R3
= + + + (SA.1)
z z−1 z+2 z−3
Since the poles are simple, we have
(z 2 + 1)(z + 1) 1 1
R0 = lim = =
z→0 (z − 1)(z + 2)(z − 3) (−1) × 2 × (−3) 6
6 DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters
z plane
R
j
¡2 ¡1 1 3
¡j
Figure SA.5
(z 2 + 1)(z + 1) 2×2 2
R1 = lim = =−
z→1 z(z + 2)(z − 3) 1 × 3 × (−2) 3
(z 2 + 1)(z + 1) 5 × (−1) 1
R2 = lim = =
z→−2 z(z − 1)(z − 3) (−2) × (−3) × (−5) 6
(z 2 + 1)(z + 1) 10 × 4 4
R3 = lim = =
z→3 z(z − 1)(z + 2) 3×2×5 3
R1 z R2 z R3 z
X(z) = R0 + + +
z−1 z+2 z−3
2 1 4
1 z z z
= − 3 + 6 + 3
6 z−1 z+2 z−3
Therefore, for n ≥ 0, the use of Table 3.2 gives
x(nT ) = 1
6 δ(nT ) − 23 u(nT ) + 16 u(nT )(−2)n + 43 u(nT )(3)n
= 1
6 δ(nT ) + u(nT )[− 32 + 16 (−2)n + 43 (3)n ]
Since the numerator degree of X(z) is equal to the denominator degree, it follows from
the corollary of the initial-value theorem (Theorem 3.8) that x(nT ) = 0 for n < 0, i.e.,
the above solution applies for all values of n.
An alternative but equivalent solution can be readily obtained by using Technique II (see
p. 115) whereby we expand X(z) instead of X(z)/z into partial fractions. We can write
(z 2 + 1)(z + 1)
X(z) =
(z − 1)(z + 2)(z − 3)
R1 R2 R3
= R0 + + +
z−1 z+2 z−3
SAMPLE SOLUTIONS 7
where
(z 2 + 1)(z + 1) z3
R0 = lim = lim 3 = 1
z→∞ (z − 1)(z + 2)(z − 3) z→∞ z
(z 2 + 1)(z + 1) 2×2 2
R1 = lim = =−
z→1 (z + 2)(z − 3) 3 × (−2) 3
Thus
(z 2 + 1)(z + 1) 5 × (−1) 1
R2 = lim = =−
z→−2 (z − 1)(z − 3) (−3) × (−5) 3
(z 2 + 1)(z + 1) 10 × 4
R3 = lim = =4
z→3 (z − 1)(z + 2) 2×5
Thus
2 1
3 3 4
X(z) = 1 − − +
z−1 z+2 z−3
and for n ≥ 0, we have
Solution
(a) The signal can be expressed as
Hence
(a) The first nonzero value of x(nT ) occurs at KT = (N − M )T where N is the denominator
degree and M in the numerator degree in X(z). Since N = M = 3, we have K = 0, i.e.,
the signal starts at KT = 0. Hence for n < 0, we have
x(nT ) = 0
8 DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters
Solution
(a) Linearity
R[αx1 (nT ) + βx2 (nT )] = 2.5[αx1 (nT ) + βx2 (nT )] + |e0.1(nT +2T |[αx1 (nT − T )
+βx2 (nT − T )] + [αx1 (nT − 2T ) + βx2 (nT − 2T )]
= α[2.5x1 (nT ) + |e0.1(nT +2T ) |x1 (nT − T ) + x1 (nT − 2T )]
+β[2.5x2 (nT ) + |e0.1(nT +2T ) |x2 (nT − T ) + x2 (nT − 2T )]
= αRx1 (nT ) + βRx2 (nT )
We have
Rx1 (nT ) = 2.5x1 (nT ) + |e0.1(nT +2T ) |x1 (nT − T ) + x1 (nT − 2T ) (SA.3)
and
Rx2 (nT ) = 2.5x2 (nT ) + |e0.1(nT +2T ) |x2 (nT − T ) + x2 (nT − 2T ) (SA.4)
Since
x1 (nT ) = x2 (nT ) for n ≤ k
then
x1 (nT − T ) = x2 (nT − T ) for n ≤ k
and
x1 (nT − 2T ) = x2 (nT − 2T ) for n ≤ k
Hence the right-hand side in Eq. (SA.3) is equal to the right-hand side in Eq. (SA.4) for
n ≤ k and thus
Rx1 (nT ) = Rx2 nT ) for n ≤ k
Therefore, the filter is causal.
SA.6 (a) Derive a state-space representation for the filter shown in Fig. SA.6.
(b) Using the state-space representation obtained in part (a), compute the impulse response
of the filter at nT = 5T .
2 4
x(nT) y(nT)
−0.4 3 −0.6 5
Figure SA.6
10 DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters
2 4
q1(nT+T) q2(nT+T)
x(nT) y(nT)
q (nT) q (nT)
1 2
−0.4 3 −0.6 5
Figure SA.7
Solution
(a) State variables can be assigned as shown in Fig. SA.7. Henc
e we can write
where
−0.4 0 1
A = b=
2.2 −0.6 2
cT = [8.8 2.6] d=8
For n = 5 4
T 4 −0.4 0 1
h(5T ) = c A b = [8.8 2.6]
2.2 −0.6 2
Since
2
−0.4 0 −0.4 0 −0.4 0 0.16 0.0
= =
2.2 −0.6 2.2 −0.6 2.2 −0.6 −2.20 0.36
4
−0.4 0 0.16 0.0 0.16 0.0 0.0256 0.0
= =
2.2 −0.6 −2.20 0.36 −2.20 0.36 −1.144 0.1296
we get
0.0256 0.0 1 0.0256
h(5T ) = [8.8 2.6] = [8.8 2.6] = −2.0752
−1.144 0.1296 2 −0.8848
x(nT) y(nT)
1 1 1 1
− − − −
2 3 4 5
Figure SA.8
Solution
or
Y (z) + 12 z −1 Y (z) + 13 z −2 Y (z) + 14 z −3 Y (z) + 15 z −4 Y (z) = X(z)
and so
Y (z) 1
=
X(z) 1 + 12 z −1 + 13 z −2 + 14 z −3 + 15 z −4
In effect,
N (z) z4
H(z) = = 4 1 3 1 2 1 1
D(z) z + 2z + 3z + 4z + 5
where
D(z) = z 4 + 12 z 3 + 13 z 2 + 14 z + 1
5
We note that
1 1 1 1
D(1) = 1 + 2 + 3 + 4 + 5 = 2.283 > 0 (SA.11a)
4 1 1 1 1
(−1) D(−1) = 1 − 2 + 3 − 4 + 5 = 0.783 > 0 (SA.11b)
12 DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters
b0 b1 b2 b3 b4
1 1 1 1
1 1 2 3 4 5
1 1 1 1
2 5 4 3 2 1
24 9 4 3
3 25 20 15 20
3 4 9 24
4 20 15 20 25
Therefore, conditions (i) to (iii) of the Jury-Marden stability criterion (see p. 220) are
satisfied and the filter is stable.
Find the time-domain response in closed form if m1 = − 34 and m2 = − 18 . The filter is linear
and time-invariant.
x(nT)
y(nT)
m1 m2
Figure SA.9
Solution
From Fig. SA.9
Hence
Y (z)(1 − m1 z −1 − m2 z −2 ) = (1 + 2z −1 + z −2 )X(z)
SAMPLE SOLUTIONS 13
or
(1 + 2z −1 + z −2 )
Y (z) = X(z)
(1 − m1 z −1 − m2 z −2 )
Therefore,
Y (z) z 2 + 2z + 1 z 2 + 2z + 1 z 2 + 2z + 1
= H(z) = 2 = 2 3 =
X(z) z − m1 z − m2 z + 4 z + 18 z + 12 z + 14
Hence
Rx(nT ) = R[δ(nT ) + δ(nT − T )]
Since the filter is linear, we have
h(nT ) = Rδ(nT )
In effect, all we have to do is find the impulse response. Expanding H(z)/z into partial fractions
gives
H(z) z 2 + 2z + 1 R R2 R2
= = 1+ 1 +
z 1
z z+2 z+4 1 z z+2 z + 14
where
z 2 + 2z + 1 1
R1 = = 1 1 =8
z + 12 z + 14 z=0 2 × 4
z 2 + 2z + 1 1
− 2
4 2 + 1
1
4
R2 = = = =2
z z + 14 z=− 12 − 12 − 12 + 14 − 12 − 14
z 2 + 2z + 1 1
16 −
2
4 +1
1
16 + 16
8
R3 = = = = −9
z z + 12 z=− 14 − 14 − 14 + 12 1
− 16
i.e.,
R2 z R3 z
H(z) = R1 + 1 +
z+2 z + 14
and
n n
= 8δ(nT ) + 2 − 2 − 9 − 4 u(nT )
Now
y(nT ) = h(nT ) + h(nT − T )
Hence
n n
Method 2
Since
x(nT ) = δ(nT ) + δ(nT − T )
the z transform gives
z+1
X(z) = 1 + z −1 =
z
Hence
(z 2 + 2z + 1) (z + 1)
Y (z) = H(z)X(z) = 1
1 ×
z+2 z+4 z
Expanding H(z)X(z) into partial fractions, gives
R2 R3 R4
H(z)X(z) = R1 + + 1 +
z z+2 z + 14
where
R1 = lim H(z)X(z) = 1
z→∞
(z + 2z + 1)(z + 1)
2
1
R2 = 1
1
= 1 1 =8
z+2 z+4 z=0 2 × 4
1 1 1
2
(z + 2z + 1)(z + 1) − 1 + 1 − 12 + 1
4 4 2
R3 = = = =1
z + 14 z z=− 12 − 12 + 14 − 12 − 14 − 12
1 1 1 3
(z 2 + 2z + 1)(z + 1) 2
16 − 4 + 1 − 4 +1 16 + 16 8
R4 = = = 4
z+1 z 2
1
z=− 4 −1 + 1 −14 2 4
1
4−1 4
9 3
16× 4 27
= 1 =−
− 16 4
Therefore,
n−1 n−1
y(nT ) = R1 δ(nT ) + R2 δ(nT − T ) + R3 u(nT − T ) − 12 + R4 u(nT − T ) − 14
n−1 27 n−1
= δ(nT ) + 8δ(nT − T ) + u(nT − T ) − 12 − 4 u(nT − T ) − 14
Method 3
The inverse of Y (z) is obtained from first principles as
y(nT ) = Y0 (z)
res
where
(z 2 + 2z + 1)(z + 1) n−1
Y0 (z) = Y (z)z n−1 = H(z)X(z)z n−1 = z
z z + 12 z + 14
However, watch out for pitfalls at the origin. In this case, we have a second-order pole at the
origin if n = 0, a first-order pole at the origin if n = 1, and no poles at the origin if n ≥ 2.
Hence, we have to find y(0) and y(T ) individually and then proceed to y(nT ) for n ≥ 2. This
would make this method quite long.
Method 4
We can express Y (z) into partial fractions as
(z 2 + 2z + 1)(z + 1) R R z R z
Y (z) = = R1 + 2 + 3 1 + 4 1
z z + 12 z + 14 z z+2 z+4
SAMPLE SOLUTIONS 15
where
z(z 2 + 2z + 1)(z + 1) 1×1
R2 = lim zY (z) = = 1 1 =8
z=0 z z + 12 z + 14 z=0 2 × 4
z+2 1
(z 2 + 2z + 1)(z + 1)
R3 = lim1 × Y (z) =
z=− 2 z z 2 z + 14 z=− 12
2 1
− 12 + 2 − 12 + 1 − 12 + 1 1 + 1 12 1
4 −
= 1 2 1 1 = 1 1 = 81 = −2
−2 −2 + 4 4 −4 − 16
z+4 1
(z + 2z + 1)(z + 1)
2
R4 = lim1 × Y (z) =
z=− 4 z z 2 z + 12 z=− 14
2 1 3
− 14 + 2 − 14 + 1 − 14 + 1 2 9
×3
16 − 4 + 1 4
= 1 2 1 1 = 1 1 = 16 1 4 = 27
−4 − + 4 2 16 × 4 64
z3
lim Y (z) = R1 + R3 + R4 = =1
z=∞ z3
Thus
R1 = 1 − R3 − R4 = 1 − (−2) − 27 = 3 − 27 = −24
Hence
8 2z 27z
Y (z) = −24 + − +
z z + 12 z + 14
Therefore,
n n
Method 5
One could expand Y (z)/z into partial fractions as
Y (z) R1 R2 R3 R4
= + 2 + +
z z z z + 12 z + 14
z2 + 2
H(z) =
z2 − (2r cos θ)z + r 2
Solution
(a) The z transform of the output of the system is given by
where H(z) is the transfer function and X(z) is the z transform of the input. Since the
input is a unit step, we have
z
X(z) = Zu(nT ) = (SA.13)
z−1
Thus Eqs. (SA.12) and (SA.13) give
z2 + 2 z z 3 + 2z
Y (z) = · =
z 2 − (2r cos θ)z + r 2 z − 1 (z − 1)[z 2 − (2r cos θ)z + r 2 ]
The general inversion formula gives
M
1
y(nT ) = Y (z)z n−1 dz = Res Y0 (z) (SA.14)
2πj Γ z=pi
i=1
where
(z 3 + 2z)z n−1
Y0 (z) = Y (z)z n−1 =
(z − 1)[z 2 − (2r cos θ)z + r 2 ]
(z 3 + 2z)z n−1
=
(z − 1)[z − r(ejθ + e−jθ )z + r 2 ]
2
(z 2 + 2)z n
=
(z − 1)(z − rejθ )(z − re−jθ )
3
=
1 − (2r cos θ) + r 2
(z 2 + 2)z n
jθ
R2 = lim (z − re )Y0 (z) =
z=re jθ (z − 1)(z − re −jθ )
z=rejθ
(r 2 ej2θ + 2)r n ejnθ (r 2 ej2θ + 2)r n−1 ejnθ
= =
(rejθ − 1)(rejθ − re−jθ ) (rejθ − 1)2j sin θ
(r 2 cos 2θ + 2 + jr 2 sin 2θ)r n−1 ejnθ
=
(r cos θ − 1 + jr sin θ)2j sin θ
(r cos 2θ + 2 + jr 2 sin 2θ)r n−1 ejnθ
2
=
[(r cos θ − 1) + jr sin θ]2ejπ/2 sin θ
= M ejφ r n−1 ejnθ = M r n−1 ej(nθ+φ) (SA.16)
where
r 2 cos 2θ + 2 + jr 2 sin 2θ
M =
[j(r cos θ − 1) − r sin θ]2 sin θ
(r 2 cos 2θ + 2)2 + (r 2 sin 2θ)2
=
4[(r cos θ − 1)2 + (r sin θ)2 ] sin2 θ
and
r 2 sin 2θ (r cos θ − 1)
φ = tan−1 − tan−1
r 2 cos 2θ + 2 −r sin θ
2
r sin 2θ r sin θ π
= tan−1 − tan−1 −
r 2 cos 2θ + 2 (r cos θ − 1) 2
Similarly,
R3 = R2∗ (SA.17)
SAMPLE SOLUTIONS 17
since complex conjugate poles give complex conjugate residues. We note that there is no
additional pole at the origin when n = 0 and hence for n ≥ 0 Eq. (SA.14) gives
y(nT ) = R1 + R2 + R2∗ (SA.18)
Since the numerator degree in Y (z) does not exceed the denominator degree, we have
y(nT ) = 0 for n < 0
Therefore, for any n, Eqs. (SA.15)–(SA.18) give
y(nT ) = u(nT ) R1 + M r n−1 ej(nθ+φ) + M r n−1 e−j(nθ+φ)
Solution
(a) Since we have the zeros, poles, and multiplier constant of the filter, the transfer function
can be readily constructed as
2(z − ejπ/3 )(z − e−jπ/3 ) 2[z 2 − (ejπ/3 + e−jπ/3 )z + 1]
H(z) = 1 jπ/4 1 −jπ/4 =
(z − 2 e )(z − 2 e ) z 2 − 12 (ejπ/4 + e−jπ/4 ) + 14
2[z 2 − 2(cos π/3)z + 1] 2[z 2 − z + 1]
= = √
z 2 − (cos π/4)z + 14 z 2 − 22 z + 14
(b) The gain is given by
2[e2jωT − ejωT + 1]
jωT
M (ω) = |H(e )| = √
ej2ωT − 2 ejωT + 1
2 4
cos 2ωT + j sin 2ωT − cos ωT − j sin ωT + 1
= 2 √
cos 2ωT + j sin 2ωT − 2 (cos ωT + j sin ωT ) + 1
2 4
(cos 2ωT − cos ωT + 1)2 + (sin 2ωT − sin ωT )2
=2 √ √
(cos 2ωT − 22 cos ωT + 14 )2 + (sin 2ωT − 22 sin ωT )2
(c) Since ωs = 2π, we have 2πfs = 2π/T = 2π. Hence T = 1 s. For the frequencies given,
the numerical values in Table SA.5 can be readily calculated.
Table SA.5
ω cos ωT sin ωT cos 2ωT sin 2ωT
0 1 0 1 0
√ √
π 2 2
4 2 2 0 1
√ √
π 1 3 3
3 2 2 − 12 2
π −1 0 1 0
18 DIGITAL SIGNAL PROCESSING: Signals, Systems, and Filters
Step Response
10
6
y(nT)
0
0 5 10 15 20 25
nT
(a)
Step Response
10
6
y(nT)
0
0 5 10 15 20 25
nT
(b)
Step Response
10
6
y(nT)
0
0 5 10 15 20 25
nT
(c)
Figure SA.10
SAMPLE SOLUTIONS 19
Thus
(1 − 1 + 1)2 + (0 − 0)2 2
M (0) = 2 √ = √ = 3.6840
2 1 2 5−2 2
(1 − 2 + 4) + (0 − 0)2 4
π √ √
(0 − 2
+ 1)2 + (1 − 2 2
2 ) √
M = 2 √ √2 √
2 2 2 2 2
4 (0 − 2 × + 14 )2 + (1 −
2 2 × 2 )
√ √ √
(2 − 2)2 + (2 − 2)2 2(2 − 2)2
= 2 =2 = 1.489
( 12 − 1)2 + 1 (− 12 )2 + 1
π √ √
(− 21 − 1
+ 1) 2 + ( 3 − 3 )2
M = 2 √ 2 2
√ 2
√ √
3 (− 12 − 2
2
× 1
2 + 1 2
4 ) + ( 2
3
− 2 3
2 × 2 )
0+0
= 2
√ 2 =0
1−2− 2
4 + ···
(1 + 1 + 1)2 + (0 − 0) 32 × 16
M (π) = 2 √ =2 √
(1 + + 2
2
+ (0 − 0) 1 2
4)
(4 + 2 2 + 1)2
2×3×4
= √ = 3.0658
4+2 2+1
SA.11 A digital filter characterized by the transfer function
2(z 2 − z + 1)
H(z) = √
2 1
z2 − 2 z + 4
and a practical D/A converter are connected in cascade as shown in Fig. SA.11a. The output
waveform of the D/A converter is of the form illustrated in Fig. S11b where τ = 0.01T s and
T is the sampling period. The sampling frequency is 2π rad/s.
(a) Obtain an expression for the gain of just the digital filter.
(b) Obtain an expression for the overall gain of the digital filter in cascade with the D/A
converter.
(c) Calculate the gain of just the digital filter at ω = 0, π/4, π/3, and π.
(d) Calculate the overall gain of the digital filter in cascade with the D/A converter at ω =
0, π/4, π/3, and π.
(e) Sketch (i) the gain of just the digital filter and (ii) the overall gain of the digital filter
in cascade with the D/A converter, and explain the effect of the D/A converter on the
amplitude response.
Solution
y(nT) Practical
Digital
x(nT)
Filter
D/A ˜y(t)
converter
(a)
˜y(t)
y(kT)
¿ t
kT
(b)
Figure SA.11
where τ = 0.01T and T = 2π/ωs = 2π/2π = 1 s (see Eq. (6.60) in textbook). Hence the
overall gain of the digital filter in cascade with the D/A converter is given by
(cos 2ωT − cos ωT + 1)2 + (sin 2ωT − sin ωT )2 sin ωτ /2
MT (ω) = 2 √ √
·τ
(cos 2ωT − 22 cos ωT + 14 )2 + (sin 2ωT − 22 sin ωT )2 ωτ /2
(c) Since ωs = 2π, we have 2πfs = 2π/T = 2π. Hence T = 1 s. For the frequencies given,
the numerical values in Table SA.6 can be readily calculated.
Table SA 6
0 1
√ √
0 1 0
π 2 2
4 2 √2
0 1
√
π 1 3 3
3 2 2 − 12 2
π −1 0 1 0
SAMPLE SOLUTIONS 21
Thus
(1 − 1 + 1)2 + (0 − 0)2 2
M (0) = 2 √ = √ = 3.6840
2 1 2 5−2 2
(1 − 2 + 4) + (0 − 0)2 4
π √ √
(0 − 2
+ 1)2 + (1 − 2 2
2 ) √
M = 2 √ √2 √
2 2 2 2 2
4 (0 − 2 × + 14 )2 + (1 −
2 2 × 2 )
√ √ √
(2 − 2)2 + (2 − 2)2 2(2 − 2)2
= 2 =2 = 1.4890
( 21 − 1)2 + 1 (− 12 )2 + 1
π √ √
(− 21 − 12 + 1)2 + ( 23 − 23 )2
M = 2 √ √ √ √
3 (− 12 − 22 × 12 + 14 )2 + ( 23 − 22 × 23 )
0+0
= 2
√ 2 =0
1−2− 2
4 + · · ·
(1 + 1 + 1)2 + (0 − 0) 32 × 16
M (π) = 2 √ =2 √
(1 + 22 + 14 )2 + (0 − 0) (4 + 2 2 + 1)2
2×3×4
= √ = 3.0657
4+2 2+1
Hence the overall gain of the digital filter in cascade with the D/A converter is obtained
from the above numerical values as follows:
Solution
The transfer function can be expressed as
where
2 − z −1 8 + 3.5z −1
H1 (z) = and H2 (z) =
1− z −1+ 0.34z −2 1 + 0.9z −1 + 0.2z −2
Now if we realize H1 (z) and H2 (z) in terms of direct canonic sections, the cascade realization
shown in Fig. SA.12 can be readily obtained.
−1
H1(z)
−0.34
−0.9 3.5
H2(z)
−0.2
Figure SA.12
SA.13 An analog elliptic lowpass filter with a cutoff frequency of 1 rad/s has a transfer function of
the form
0.075(s2 + 2.6)
H(s) =
(s + 0.38)(s2 + 0.31s + 0.51)
(a) By applying the lowpass-to-highpass transformation
1
s=
s̄
get a continuous-time highpass transfer function.
(b) Construct the zero-pole plot of the continuous-time highpass transfer function.
(c) Using the zeros and poles obtained in part (b), get a corresponding discrete-time highpass
transfer function using the matched-z-transformation method. The sampling frequency
is ωs = 20 rad/s.
SAMPLE SOLUTIONS 23
(d) How does the matched-z-transformation method compare with the invariant-impulse-
response method?
Solution
The transfer function has zeros at
z = z1 , z1∗
where
z1 = 0 + j1.6125
and poles at
z = p0 , p1 , p∗1
where
p0 = −0.3800 + j0.0000
p1 = −0.1550 + j0.6971
(a) The highpass transfer function is obtained as
0.075(s̄2 + 2.6)
HHP (s̄) = H(s) =
1 (s + 0.38)(s 2 + 0.31s + 0.51)
s̄→ s s=1/s̄
s̄(s̄2 + 0.3846)
= 1.0063 ×
(s̄ + 2.6316)(s̄2 + 0.6079s̄ + 1.9609)
Therefore, the highpass filter has zeros at
s̄ = s̄0 , s̄1 , s̄2
where
s̄0 = 0, s̄1 , s̄2 = 0 ± j0.6202
and poles at
s̄ = p̄0 , p̄1 , p̄2
where
p̄0 = −2.6316, p̄1 , p̄2 = −0.3040 ± j1.3669
(b) The transfer function of the digital filter is given by
M
!
H0 (z − es̄i T )
i=1
HD (z) = (z + 1)L N
!
(z − ep̄i T )
i=1
where
with
2π 2π π
T = = =
ωs 20 10
(c) The method works with all types of filters, i.e., LP, HP, BP, and BS, and is easy to apply.
However, it tends to increase the passband ripple.
SA.14 A lowpass analog filter has a transfer function
1
HA (s) = √
s2 + 2s + 1
(a) Assuming a sampling frequency of 10π, design a digital filter using the bilinear transfor-
mation method.
(b) Find the 1-dB and 30-dB frequencies of the analog filter.
(c) Find the 1-dB and 30-dB frequencies of the digital filter.
(d) What should be the 3-dB frequency of the analog filter to get a 3-dB frequency in the
digital filter at 1 rad/s?
Solution
1
=
2 √
10(z−1) 10(z−1)
z+1 + 2 z+1 +1
z 2 + 2z + 1
= √
100(z 2− 2z + 1) + 10 2(z 2 − 1) + (z 2 + 2z + 1)
z 2 + 2z + 1
=
b2 z 2 + b1 z + b0
where
√
b0 = 100 − 10 2 + 1 = 86.86
b1 = −200 + 2 = −198.00
√
b2 = 100 + 10 2 + 1 = 115.14
Thus
1 + ω 4 = 100.1×A(ω)
By letting A(ω) = 1 dB, the 1-dB frequency is obtained as
2 ωi T
Ωi = tan−1 (SA.20)
T 2
Hence the 1- and 30-dB frequencies in the digital filter are obtained as
0.7133
Ω1 = 10 × tan−1 = 0.7121 rad/s
10
and
5.622
Ω2 = 10 × tan−1 = 5.122 rad/s
10
respectively.
(d) Now if the 3-dB frequency in the digital filter is required to be 1 rad/s, then according
to Eq. (SA.20) the 3-dB frequency in the analog filter should be
2 Ω3 T 1
ω3 = tan = 10 × tan = 1.003 rad/s
T 2 10