Homework2 Solutions
Homework2 Solutions
Geetha Chandrasekaran
(Due: Sep 21, 10:00 pm)
1. For each of the following LTI systems indicate whether or not the system is causal.
n
(a) h[n] = 12 u[n] , where u[n] is the unit step function.
Solution: Since h[n] = 0 for all n < 0, the impulse response is zero for all negative
values of n, this system is causal.
1 n
(b) h[n] = 2 u[n − 1]
Solution: Since h[n] = 0 for all n ≤ 0, the impulse response is zero for all negative
values of n, this system is causal.
1 |n|
(c) h[n] = 2
Solution: Since h[n] > 0 for all n < 0, the impulse response is non-zero for all
negative values of n. This system is not causal.
Solution: Since h[−2] = 1 > 0, the impulse response is non-zero for all negative
values of n = −2. This system is not causal.
1 n
+ 3n u[−n − 1]
(e) h[n] = 3 u[n]
Solution: Note that h[−1] = 13 . Since h[n] > 0 for all n < 0, the impulse response
is non-zero for all negative values of n. This system is not causal.
Solution: Since ∞ 2 3
P
n=0 |h[n]| = 1 + 4 + 4 + 4 + · · · → ∞, the impulse response
is not absolutely integrable over time. This system is not stable.
3 |n|
(d) h[n] = 4 cos(πn/4)
1
Homework 2 ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 21, 10:00 pm)
4 < ∞ and ∞ n = −1 + 1 + 3 + 3 2 + 3 3 + · · · =
P P−1
n=−∞ |h[n]| = n=−∞ (3/4) 4 4 4
−1 + 1−1 3 = 4 < ∞, the impulse response is absolutely integrable over time, hence
4
stable.
2 h[n]
1.5
0.5
−6 −4 −2 2 4 6
Solution: For this Pproblem the plot above is very helpful to visualize the impulse
response. We have ∞ n=−∞ |h[n]| = 2 × 5 + 1 × 5 = 15 < ∞, the impulse response
is absolutely integrable over time, hence stable.
1
y[n] + y[n − 1] = x[n − 1]
a
(a) Find the impulse response h[n], as a function of the constant a.
Solution: To find the impulse response set x[n] = δ[n] , then h[n] = y[n].
1 n−1
• Since y[n] = 0, ∀n < 1, we have the impulse response h[n] =
a u[n − 1]
2
Homework 2 ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 21, 10:00 pm)
Sketch the output of the system, if the input is x[n] = 2δ[n + 1] + 3δ[n] + 4δ[n − 1] + 5δ[n − 2].
(Hint: Plot the impulse response and input, then work on the convolution. You can always
cross validate your answer using MATLAB).
Solution : Convolution is commutative, y[n] = h[n] ∗ x[n] = x[n] ∗ h[n]
8 4
6 3
4 2
2 1
−2 −1 1 2 3 4 −2 −1 1 2 3 4
Solution: The impulse response is the output of the system when x[n] = δ[n]
(b) Determine the frequency response of this system. Express your answer in the form
3
Homework 2 ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 21, 10:00 pm)
where A(ejω ) is a real function of ω. Explicitly specify A(ejω ) and the delay nd of this
system.
Solution: To find the DTFT we use the formula below:
∞
X
H(ejω ) = h[n]e−jωn
n=−∞
(c) Sketch a plot of the magnitude |H(ejω )| and the phase ∠H(ejω ).
Impulse response
4
2
0
-2
0 10 20 30 40 50 60
Time
|H(ej )|
0
-pi -3pi/4 -pi/2 -pi/4 0 pi/4 pi/2 3pi/4 pi
(rad/sample)
2
H(ej )
0
-2
-pi -3pi/4 -pi/2 -pi/4 0 pi/4 pi/2 3pi/4 pi
(rad/sample)
determine the corresponding output y1 [n]. (Hint: Use the frequency response function)
Solution: DTFT of a constant 1 is a δ function at ω = 0, i.e., X ′ (ejω ) = 2πδ(ω).
• DTFT of ej0.5πn is a δ at ω = 0.5π , i.e., X ′′ (ejω ) = 2πδ(ω − 0.5π).
• Therefore, DTFT of x1 [n] is: X1 (ejω ) = 2πδ(ω) + 2πδ(ω − 0.5π)
4
Homework 2 ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 21, 10:00 pm)
Y (ejω ) = (−2 + 4e−jω − 2e−j2ω ) · 2πδ(ω) + (−2 + 4e−jω − 2e−j2ω ) · 2πδ(ω − 0.5π)
DTFT
• Method 2: Recall the DTFT pair ejw0 n ←→ 2πδ(w − w0 ).
DTFT
Therefore, 8πe−j0.5π δ(ω − 0.5π) ←→ 4e−j0.5π ej0.5πn .
(e) Now, suppose that the input to this system is
determine the corresponding output y2 [n]. (Hint: Use the frequency response function)
Solution: The effect of u[n] is zero input for n < 0, which results in the output
being zero for n < 0. Therefore, the output y[n] for the input x[n] = (1 +
ej0.5πn )u[n] is: (
4ej0.5π(n−1) , for n ≥ 0
y[n] =
0, for n < 0