Solutions - Midterm
Solutions - Midterm
n
-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6
-1
-2
Carefully sketch the output y[n].
c) Identify and find the proper Fourier representation (DTFS, FS, FT, or DTFT) of x[n] and h[n].
d) Find the frequency response of the output y[n].
h[n]
a) Impulse response: We apply the delta function to the system:
2
n
-3 -2 -1 0 1 2 3 4
b)
x[n] 1 2 -2 -1 -1 h[n] 2 1 0 2
-2 -1 0 1 2 0 1 2 3
x[k] 1 2 -2 -1 -1 h[-k+n] 2 0 1 2
-2 -1 0 1 2 n-3 n-2 n-1 n
n = -2: n = 2:
x[k] 1 2 -2 -1 -1 x[k] 1 2 -2 -1 -1
h[-k+n] -2 -1 0 1 2 -2 -1 0 1 2
=> y[-2] = 2 => y[2] = 1
2 0 1 2 h[-k+n] 2 0 1 2
n-3 n-2 n-1 n n-3 n-2 n-1 n
n = -1: n = 3:
x[k] 1 2 -2 -1 -1 x[k] 1 2 -2 -1 -1
-2 -1 0 1 2 -2 -1 0 1 2 => y[3] = -5
=> y[-1] = 5
h[-k+n] 2 0 1 2 h[-k+n] 2 0 1 2
n-3 n-2 n-1 n n-3 n-2 n-1 n
n = 0: n = 4:
x[k] 1 2 -2 -1 -1 x[k] 1 2 -2 -1 -1
-2 -1 0 1 2 -2 -1 0 1 2
=> y[4] = -2
=> y[0] = -2
h[-k+n] 2 0 1 2 h[-k+n] 2 0 1 2
n-3 n-2 n-1 n n-3 n-2 n-1 n
n = 1: n = 5:
x[k] 1 2 -2 -1 -1 x[k] 1 2 -2 -1 -1
-2 -1 0 1 2 -2 -1 0 1 2 => y[5] = -2
=> y[1] = -2
h[-k+n] 2 0 1 2 h[-k+n] 2 0 1 2
n-3 n-2 n-1 n n-3 n-2 n-1 n
Instructor: Daniel Llamocca
DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013
y[n]
5
n
-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6
-1
-2
-5
c) are not periodic DTFT
d)
a)
, converges for a > 0
b)
Now: ,
where: , and
Finally:
a) The system is memoryless: It does not depend on future samples nor past samples.
The system is causal: It does not depend on future samples.
Linearity:
If the input to the system is axA[n] + bxB[n], where a,b, are real numbers, then the output should
be ayA[n] + byB[n], where yA[n], yB[n] are the responses to xA[n] and xB[n] respectively.
Time invariance:
We have a system y[n] = H(x[n]). The response of the system to a shifted input x[n-k] should
be the same as if the output y[n] has been shifted by k, i.e., y[n-k]:
x[n-k]
x[n] Sk H y1[n]= nx[n-k]
y[n]= nx[n]
x[n] H Sk y[n-k]= n-kx[n-k]
b) If , then
c) . While this is the impulse response of the system, the system is NOT linear an time
invariant, therefore we CANNOT apply the convolution of an input with the impulse response in order
to get the output.
i. Under what condition (if any) of the values a, b, c is the system causal?
ii. Under what condition (if any) of the values a, b, c is the system memoryless?
i. Determine whether the system is i) memoryless, ii) causal, and iii) stable.
ii. If , what is the input ? Provide the equation of .
a)
i. For the system to be causal, we need b = 0, so that:
.
ii. For the system to be memoryless, we need: b = 0, c = 0, so that:
.
b)
i. The system is NOT memoryless: .
The system is causal:
The system is stable:
ii.
x(t) h(t)
1 1
1 2 3 t 1 2 3 4 t
a) Obtain the output y(t) (or carefully sketch it).
b) Identify and obtain the proper Fourier representation (DTFS, FS, FT, or DTFT) of x(t) and h(t). Do
not forget to specify the Fourier representation values when the frequency variable is 0.
c) Obtain the frequency response of the output y(t). Do not forget to specify the Fourier representation
value when the frequency variable is 0.
a) CT convolution:
,
,
,
,
y(t)
1
1 2 3 4 5 6 t
1 2 3 t 1 2 3 4 t -t 4-t t
h(-t+t)
1
t-4 t t
x(t) x(t)
1< t <2 1 1
1 2 3 t 1 2 3 t
h(-t+t) h(-t+t)
1 1
t-4 t t t-4 t t
x(t) x(t)
2< t <5 1 1
1 2 3 t 1 2 3 t
h(-t+t) h(-t+t)
1 1
t-4 t t t-4 t t
t-4 =1 t =5
x(t) x(t)
5< t <6 1 1
1 2 3 t 1 2 3 t
h(-t+t) h(-t+t)
1 1
t-4 =2 t =6
t-4 t t t-4 t t
b) nonperiodic FT.
c)
S S
-2 1/3
S S
S S
1/4 1/2
b)
S
1/3 -2
S S
S
1/2 1/4
c) You are provided with the DTFT of a signal x[n]. Assume . Find the signal x[n]. Do not
forget to specify the value of x[n] when n=0. What is the period of ?
X(ej )
1
-W W
We notice that:
c) You are provided with the DTFT of a signal x[n]. Assume . Find the signal x[n]. Do not
forget to specify the value of x[n] when n=0. What is the period of ?
Find the frequency response of the impulse response, as well as the impulse response of this system.
Therefore:
Alternative way:
With the time shift property of the DTFT and the knowledge of the DTFT of the impulse function, we can
demonstrate that: