Professional Documents
Culture Documents
EE301 Fall2017 hw5 Solutions
EE301 Fall2017 hw5 Solutions
The magnitude and phase of X(Ω) are shown below for |Ω| < π.
|X(Ω)| ∠X(Ω)
1
π
4 π
−π 0 π −π −π
4
= X(−Ω)
−π 0 π −π π
4
(b) Let Xb (Ω) be the DTFT of x[n − 1].
∞
X
Xb (Ω) = x[n − 1]e−jΩn
n=−∞
∞
X
= x[m]e−jΩ(m+1) (for n = m + 1)
m=−∞
∞
X
−jΩ
=e x[m]e−jΩm
m=−∞
= e−jΩ X(Ω)
π
−π 0 π −π
−5π
4
The impulse response values of the new filter, g[n], are related to h[n] as follows:
(
−h[n], 6 0
if n =
g[n] =
1 − h[0], if n = 0
−π −Ωc 0 Ωc π
Then, the new impulse response g[n] is a high-pass filter with the frequency response shown
below.
|G(Ω)| = 1 − H(Ω)
1
−π −Ωc 0 Ωc π
(b)
1 n
F Ω
z[n] = sinc ←→ Z(Ω) = rect
2 2 π
π ∞ n
F
X π π o
w[n] = cos n ←→ W (Ω) = π δ Ω − − 2π` + δ Ω + − 2π`
2 2 2
`=−∞
1
Z
F
x[n] = z[n]w[n] ←→ X(Ω) = Z(Ω − θ)W (θ) dθ
2π
h2πi
Zπ ∞ h
Ω−θ
X
1 π π i
X(Ω) = rect δ θ − − 2π` + δ θ + − 2π` dθ
2 π 2 2
−π `=−∞
| {z }
δ (θ− π2 )+δ (θ+ π2 ) for θ∈[−π,π]
Ω − π2 Ω + π2
1 1
= rect + rect
2 π 2 π
The spectrum X(Ω) is shown below.
X(Ω)
0.5
−π 0 π
The output signal y[n] is
y[n] = h[n] ∗ x[n]
= F −1 {H(Ω)X(Ω)}
1
= F −1 {H(Ω)} (remember that X(Ω) = 0.5 for |Ω| < π)
2
1
= h[n]
2
1 n
= sinc
4 2
3. If x[n] is periodic, there exists a positive integer N such that x[n + N ] = x[n] and its fundamental
period is the smallest nonzero period N satisfying this relation.
(a) The discrete-time signals are given as follows:
= 2.5
2
π π
= 1.25ej2.5 ej 3 n + 1.25e−j2.5 e−j 3 n
Then, we replace LHS of expression above with the DTFS representation of x1 [n] for k0 = −2
3
X π π π
ak ejk 3 n = 1.25ej2.5 ej 3 n + 1.25e−j2.5 e−j 3 n
k=−2
−8 −7 −6 −5 −4 −3 −2 −1 0 1 2 3 4 5 6 7 8 k
6 ak
2.5
−7 −1 5
−8 −6 −5 −4 −3 −2 0 1 2 3 4 6 7 8 k
−2.5
For x2 [n],
Ω0 4/5 2
= =
2π 2π 5π
is irrational. Hence, x2 [n] is not periodic.
(b) The signal x[n] is given as a periodic signal with fundamental period N and DTFS coefficients
ak .
i. After performing some algebraic manipulations on given expression, we obtain
ej 2 ( N )n + e−j 2 ( N )n
N 2π N 2π
!
+ e−jπn
jπn
e
x[n] cos (πn) = x[n] = x[n]
2 2
To express the DTFS coefficients of the given signal in terms of ak , we can use the DTFS
properties as follows:
DTFS
x[n] ←→ ak
ej 2 ( N )n x[n]
N 2π DTFS
←→ ak− N (Frequency shifting)
2
1 j N ( 2π )n DTFS 1
e 2 N x[n] ←→ a N (Linearity)
2 2 k− 2
1 j N ( 2π )n 1 1 1
e 2 N x[n] + e−j 2 ( N )n x[n]
N 2π DTFS
←→ a N + ak+ N (Linearity)
2 2 2 k− 2 2 2
DTFS 1 1
x[n] cos (πn) ←→ bk = ak− N + ak+ N
2 2 2 2
x[n]
1
−1
0.15
jak j
0.1
0.05
0
-7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7
k
:
: /2
ak
0
6
- : /2
-:
-7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7
k
i. The DC component
1
0.5
x0 [n]
-0.5
-1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
n
ii. Upto and including the fundamental components
1
0.5
x1 [n]
-0.5
-1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
n
iii. Upto and including the 2nd harmonic components
1
0.5
x2 [n]
0
-0.5
-1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
n
iv. Upto and including the 4th harmonic components
1
0.5
x4 [n]
-0.5
-1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
n
v. Upto and including the 6th harmonic components
1
0.5
x6 [n]
-0.5
-1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
n
vi. Including all harmonic components
1
0.5
x7 [n]
-0.5
-1
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
n
The more harmonic components are added, the more accurate the approximation becomes.
(e) The Parseval’s relation for DT periodic signals is given as
1 X X
|x[n]|2 = |ak |2
N
n=hN i k=hN i
100
90
Percentage of the average power
80
70
60
50
40
30
20
10
0
0 1 2 3 4 5 6 7
i
5. (a)
xc (t) H(ω) yc (t)
H(ω)
1
−2π×103 0 2π×103 ω
Xc (ω)
1
−2π×5×103 0 2π×5×103 ω
(
Xc (ω), |ω| ≤ 2π×103
Yc (ω) = Xc (ω)H(ω) =
0, otherwise
Yc (ω)
1
0.8
−2π×103 0 2π×103 ω
(b) We should find the Nyquist rate to determine the range of sampling frequencies ωs and
sampling periods T that will allow perfect recovery of xc (t) from its samples x[n].
We know that Xc (ω) = 0 for |ω| > ωM = 2π×5×103 . Then, the Nyquist rate is
2ωM = 2π×10×103
(c) For the sampling period T , the DT signal at the input of G(Ω) is
x[n] = xc (nT )
X(Ω)
1
T
y[n] = yc (nT )
Y (Ω)
1
T
4
5T
Y (Ω)
1
T
4
5T
To obtain the desired yc (t) using DT processing, the required DT filter is shown below.
G(Ω)
1
When ωs < ωM + ωc , i.e. fs < 6 kHz, G(Ω) cannot be expressed in terms of H(ω) to obtain
yc (t), in other words DT processing of CT signals is not possible for this case.
(
6. (a) n, −3 ≤ n ≤ 2
x[n] =
0, otherwise
The given signal can be expressed as follows:
x[n] = −3δ[n + 3] − 2δ[n + 2] − δ[n + 1] + δ[n − 1] + 2δ[n − 2]
1 1
Z
F
h[n] = h1 [n]h2 [n] ←→ H(Ω) = H1 (Ω) ~ H2 (Ω) = H1 (Ω − θ)H2 (θ) dθ
2π 2π
h2πi
Zπ
1
H(Ω)= H1 (Ω − θ)H2 (θ) dθ
2π
−π
Zπ ∞ h
1 1 X π π i
= δ θ − − 2π` − δ θ + − 2π` dθ
j2 1 − 13 e−j(Ω−θ) `=−∞ 6 6
−π | {z }
δ (θ− π6 )−δ (θ+ π6 ) for θ∈[−π,π]
!
1 1 1
= −
j2 1 − 1 e−j (Ω− π6 ) 1 − 1 e−j (Ω+ π6 )
3 3
1 j π6 −jΩ π
!
1 3e e − 31 e−j 6 e−jΩ
= π π
j2 1 − 13 ej 6 e−jΩ − 31 e−j 6 e−jΩ + 91 e−j2Ω
1 π −jΩ
3 sin 6 e
= 2 π −jΩ + 1 e−j2Ω
1− 3 cos 6 e 9
Im {H(Ω)}
∠H(Ω) = tan−1
Re {H(Ω)}
We can also obtain the magnitude and phase of H(Ω) by separating it into functions of Ω.
1
sin π6 e−jΩ
3 A(Ω)
H(Ω) = =
1 − 13 e−j (Ω− 6 ) 1 − 13 e−j (Ω+ 6 )
π π
B(Ω)C(Ω)
where
1 π 1
A(Ω) =
sin e−jΩ = ∠(−Ω)
3 6 6
r 1 π
!
1 −j (Ω− π ) 10 2 π sin Ω −
B(Ω) = 1 − e 6 = − cos Ω − ∠tan−1 3 6
3 9 3 6 1 − 13 cos Ω − π6
r 1 π
!
1 −j (Ω+ π ) 10 2 π sin Ω +
C(Ω) = 1 − e 6 = − cos Ω + ∠tan−1 3 6
3 9 3 6 1 − 31 cos Ω + π6
The magnitude of H(Ω):
− 1
|A(Ω)|
1 10 2 π 10 2 π 2
|H(Ω)| = = − cos Ω − − cos Ω +
|B(Ω)| · |C(Ω)| 6 9 3 6 9 3 6
0.4
0.3
jH(+)j
0.2
0.1
0
-2: -3: /2 -: - : /2 0 : /2 : 3 : /2 2:
+
: /2
H(+)
0
6
- : /2
-:
-2: -3: /2 -: - : /2 0 : /2 : 3 : /2 2:
+
π
(b) x[n] = (−1)n cos
n
3
Three possible ways to compute the system output y[n] are
1. Convolution in time-domain:
y[n] = h[n] ∗ x[n]
(c)
F
h[n] ←→ H(Ω)
F
h[−n] ←→ H(−Ω) (Time reversal)
F
h∗ [−n] ←→ H ∗ (Ω) (Conjugation)
F
g[n] = h[n] ∗ h∗ [−n] ←→ G(Ω) = |H(Ω)|2 = H(Ω)H ∗ (Ω) (Convolution)
(d)
F
g[n] = ejΩ0 n h[n] ←→ G(Ω) = H(Ω − Ω0 ) (Frequency Shifting)
does not converge due to the first summation term (3n → ∞ as n → ∞).
(c) The system (transfer) function
∞ ∞ ∞
X
−n
X
n −n
X 1
H(z) = h[n]z = 3 z + δ[n + 4]z −n = + z4, 3 < |z| < ∞
n=−∞ n=−∞
1 − 3z −1
n=0
Im
z-plane
×
1 3 Re
H(Ω) = H(z)|z=ejΩ
=F{x[n]}
Then, the desired sequence is
−n
x[n] = h[n] 5ejπ = (−5)−n h[n] = (−0.6)n u[n] + 54 δ[n + 4].
n
(h) (2j)n h[−n] = 2ejπ/2 h[−n] = z0n h[−n]
Z
h[n] ←→ H(z), ROC : 3 < |z| < ∞
Z 1
h[−n] ←→ H(z −1 ), ROC : 0 < |z| < (Time reversal)
3
Z 1
z0 n h[−n] ←→ H((z/z0 )−1 ) ROC : 0 < |z| < |z0 | (Scaling in the z-domain)
3
Z 1 2
g[n] = (2j)n h[−n] ←→ G(z) = H(2j/z) = 3 + 16z −4 , 0 < |z| <
1 − 2j z 3