Sol Final
Sol Final
Sol Final
Problem 1
(a) Consider the convolution formula
X
v[n] = (x ∗ y)[n] = x[k]y[n − k].
k
To determine the support set of v[n], we can find the values of n for which the convolution
is zero. In general, the right hand side is zero if and only if n is such that for every k ∈ Z,
x[k] = 0 or y[n − k] = 0.
If k ∈
/ {0, 1, . . . , N −1}, x[k] = 0 since x[n] has support of length N . If k ∈ {0, 1, . . . , N −1},
then in general x[k] 6= 0, so we need y[n − k] = 0 in that case for the convolution to be
zero. But since the support of y[n] has length M , y[n − k] = 0 if n < k or n > M − 1 + k,
and since we want to know when this is true for all 0 ≤ k ≤ N − 1, we find that we need
either n < 0 or n > M + N − 2. Therefore, the support set of v[n] has length M + N − 1.
(b) From the properties of the DTFT, we know that convolution in time equals multiplication
in frequency, so
! !
X X
V (ejω ) = X(ejω )Y (ejω ) = x[n]e−jωn y[m]e−jωm .
n m
(c) In Homework 3 and, in similar form, in the midterm exam, you have already learned that
if the DTFT of a sequence of length M + N − 1 is sampled at only M points (assuming
M < M + N − 1), then the resulting sequence can be zero, even if the original sequence
was non-zero. This should already make you suspect that the same is the case here: from
(a) we know that v[n] has length M + N − 1, and we are sampling its DTFT at only M
points. This argumentation, while pointing in the right direction, is not sufficient to show
that the claim can be true, however; we need to specifically show that it can be true when
the sequence under consideration resulted from the convolution of two sequences of length
M and N , respectively.
Let us solve this problem for general values of N and M . Using the multiplication property
from (b) with ω = 2πk/M , we have
! !
X 2πkn X 2πkm
Ṽ [k] = x[n]e−j M y[m]e−j M .
n m
This expression is zero for all k ∈ {0, 1, . . . , M − 1} if for each such k at least one of the
two terms on the right hand side is zero. We proceed now to construct x[n] and y[n] such
that the first term is zero for k = 0, and the second term is zero for k ∈ {1, . . . , M − 1}.
1
P
For k = 0, the first term becomes n x[n]. Let us thus choose x[n] such that this sum is
zero, for instance
P by setting x[n] = δ[n] − δ[n − 1]. (Note that a non-zero sequence x[n]
for which n x[n] = 0 exists only if N > 1.)
As for the second term, we can recognize it as the DFT of the (length-M ) sequence y[n].
Since we want it to be zero for k ∈ {1, . . . , M − 1}, we can construct the DFT Y [k] with
this property, e.g., Y [k] = δ[k]. Then we take y[n] to be the inverse DFT of Y [k], i.e.,
y[n] = 1/M for 0 ≤ n ≤ M − 1.
In conclusion, provided that 1 < N ≤ M , we can always find two sequences x[n] and y[n]
for which the property is true; in particular, this holds for the case where N = 7 and
M = 10.
Problem 2
(a) The important point you need to have in mind to solve this problem is the fact that for
any sequence t[n], we have t[n] ∗ δ[n − m] = t[n − m].
Now, note that the sequence v[n] shown in Fig. 1 is
11δ[n − 1]
v[n]
x[n] u[n] + + δ[n − 1] y[n]
−
Therefore,
v[n] = x[n] ∗ (δ[n] + δ[n − 1]) = x[n] + x[n − 1].
In the second part of the system with feedback, we have
2
(b) You can simply find the system transfer function by taking the z-transform of the difference
equation.
Y (z) = 8z −2 Y (z) + 2z −1 Y (z) + z −1 X(z) + z −2 X(z)
Therefore,
Y (z)(1 − 2z −1 − 8z −2 ) = X(z)(z −1 + z −2 )
and
Y (z) z −1 + z −2
H(z) = = .
X(z) 1 − 2z −1 − 8z −2
(c) The zeros and poles of a transfer function are the roots of its nominator and denominator,
respectively.
(d) Having the assumption y[n] = 0 for n < 0, we conclude that the system is causal. Among
all possible regions of convergence (characterized by the poles of H(z)), |z| > 4 is the only
one corresponding to a right-sided sequence. By doing partial fraction of H(z), we have
z −1 (1 + z −1 ) −1 A B
H(z) = =z + ,
(1 + 2z −1 )(1 − 4z −1 ) 1 + 2z −1 1 − 4z −1
where A and B have to computed such that the equality holds. By solving a system of
linear equations, we can find them as
A = 16
A+B =1
⇒
−4A + 2B = 1 B = 56
Hence,
−1 1 1 5 1
H(z) = z + ,
6 1 + 2z −1 6 1 − 4z −1
and
1 n 5 n
h[n] = δ[n − 1] ∗ (−2) u[n] + 4 u[n]
6 6
1 5
= (−2)n−1 u[n − 1] + 4n−1 u[n − 1]
6 6
1 5
= (−2)n−1 u[n − 1] + 4n−1 u[n − 1]
6
6
1 5 1
= − (−2)n + 4n u[n] − δ[n].
12 24 8
(e) It is clear from the transfer function that the system is linear.
(f) Since all the filters used in the system are time-invariant, the whole system is also time-
invariant.
(g) Since the region of convergence is |z| > 4, and it does not contain the unit circle, the
DTFT is not defined and system is not stable.
3
Problem 3
(a) From the sampling theorem, we know that Ωs = 2ΩN is such that any sampling frequency
larger than Ωs allows perfect reconstruction of xc (t).
U (ejω )
1
Ts′
ω
−3π −2π −π π 2π 3π
(d) Upsampling by a factor of 2 has the effect of “contracting” the DTFT horizontally by a
factor of 2. Hence, we obtain the DTFT in Figure 3.
V (ejω )
1
Ts′
ω
−3π −2π −π π 2π 3π
This is just a sequence of delta-pulses, whose amplitudes are v[0], v[1], v[2], . . . (we call
this a pulse-train). The CTFT of ys (t) is given in Figure 4. The sinc interpolation of v[n]
is
∞
X t − nTs′
yc (t) = v[n] sinc .
n=−∞
Ts′
Hence, it can be shown that yc (t) = ys (t) ∗ sinc( Tt′ ). In the frequency domain, this
s
convolution corresponds to the multiplication
4
Ys (jΩ)
1
Ts′
Ω
−Ω′s Ω′s
where the box function Ts′ 1 Ω′s Ω′s is simply the CTFT of sinc( Tt′ ). The resulting CTFT
[− 2
, 2 ] s
Yc (jΩ)
1
Ts′
Ω
′ ′ Ω′s Ω′s
− Ω2s − Ω6s 6 2
′ ′
(f) Here, the spectrum Yc (jΩ) has support [− Ω2s , Ω2s ]. According to the sampling theorem,
′
the limit sampling frequency is equal to the width of this support, namely Ω̃s = 2 Ω2s = Ω′s .
(g) To find out how to sketch the DTFT of w[n], we observe that the support of Yc (jΩ) is
′ ′
[− Ω2s , Ω2s ] = [− 23 ΩN , 23 ΩN ]. Now, we sample yc (t) at Ω̂s = 2ΩN , which will correspond to
2π in the DTFT sketch. Hence, the support of one “copy” of the spectrum in the DTFT
is [− 32 π, 32 π]. The result is shown in Figure 6.
(h) Yes, perfect reconstruction is possible. We can see this because there is no aliasing in
the DTFT in Figure 6. First, we sketch the CTFT of ŷs (t), which is the pulse-train that
corresponds to w[n]. This sketch is shown in Figure 7.
To recover yc (t), we can use a filter that combines a low-pass and a band-pass filter. Such
a filter Hr (jΩ) is shown in Figure 8.
Mathematically, the frequency response of the filter is
5
W (ejω )
1
T̂s
ω
−3π −2π −π π 2π 3π
Ŷs (jΩ)
1
T̂s
Ω
−Ω̂s − Ω̂2s Ω̂s
2
Ω̂s
Hr (jΩ)
T̂s
1
T̂s
Ω
−Ω̂s − Ω̂2s Ω̂s
2
Ω̂s
6
Problem 4
(a) Since the system from x[n] and y[n] to u[n] is LTI, we can simply write
u[n] = U2 (x[n]) + U2 (y[n]) ∗ δ[n − 1].
So, is it clear that
x[ n2 ]
if n is even
u[n] =
y[ n−1
2 ] if n is odd.
Therefore, after the time-variant operator, S, we get
x[k] if n = 2k
v[n] = S u[n] = 1 1 (1)
2 x[k] + 2 y[k] if n = 2k + 1.
(b) The system shown in Fig. 9 is equivalent to the system considered in the problem. Note
that all the filters used in the equivalent system are linear and time-invariant.
x[n] ↑2 δ[n]
+ v[n]
1
2 δ[n − 1]
↑2
1
y[n] ↑2
2 δ[n − 1]
7
↓2 x[n]
v[n]
−
2δ[n + 1] ↓2 + y[n]
Problem 5
(a) Using the Noble identities, we can transform the given filter bank as shown in Figure 11.
The resulting filters are
Figure 11: Transformation of the filter bank of Problem 5(a) using the Noble identities.
1
h̃(1) [n] = (δ[n] − δ[n + 1] − δ[n + 2] + δ[n + 3])
2
1
h̃(2) [n] = (δ[n] − δ[n + 1] + δ[n + 2] − δ[n + 3])
2
(3) 1
h̃ [n] = (δ[n] + δ[n + 1] − δ[n + 2] − δ[n + 3])
2
1
h̃(4) [n] = (δ[n] + δ[n + 1] + δ[n + 2] + δ[n + 3]).
2
This can be seen either visually, computing directly the convolution of the respective
filters, or by going through the Z-transform, which, for instance, gives for the first branch
1 1
H (1) (z) = (1 − z)(1 − z 2 ) = (1 − z − z 2 + z 3 ).
2 2
h(1) [n] then follows easily from the correspondence z i ↔ δ[n + i].
8
from which we find M(i,k) = h(i) [−k]. The resulting matrix is then
1 −1 −1 1
1 1 −1 1 −1
M= .
2 1 1 −1 −1
1 1 1 1
(c) Let us study the matrix M′ . Our first observation is that the first two rows of M′ are
the same as rows 4 and 3 of the matrix M of Question (b). We can therefore simply take
the corresponding branches of the original filter tree and install them into our new filter
tree. Next, consider the last two rows of M′ . The corresponding filter bank outputs are
v3′ = x[0] − x[1] and v4′ = x[2] − x[3]. This is as if first x[0], x[1] and then x[2], x[3] were
passed through the filter h1 [n]. Thus, the last two rows of M′ can be implemented by a
single branch consisting of the single filter h1 [n] followed by downsampling by a factor 2.
Figure 12 shows the final filter bank tree.
h0 [n] ↓2
h0 [n] ↓2 h1 [n] ↓2
x[n] h1 [n] ↓2
Figure 12: Filter tree corresponding to the matrix M′ of Problem 5(c). Every time the first two
branches produce one output each, the third branch produces two outputs.