EECS50 Midterm 1 S16
EECS50 Midterm 1 S16
Midterm Exam I
Student Name:
Student ID:
Problem No.
Problem 1
Problem 2
Problem 3
Problem 4
Problem 5
Problem 6
Total Score
Points
1. (10 pts) The signal x1 [n] is sketched below. Besides the values shown, it is zero everywhere else.
x1 [n]
2
(a) (3 pts) Given that x1 [n] = xo [1 n], sketch xo [n].
Sol:
(a) x1 [n] = xo [1 n]. Substitute n 1 n, then we have
x1 [1 n] = xo [n]
Since
x1 [n] = 2[n 1] 2[n 2] + [n 4]
we have
xo [n] = x1 [1 n]
= 2[1 n 1] 2[1 n 2] + [1 n 4]
= 2[n] 2[1 n] + [3 n]
= 2[n] 2[n + 1] + [n + 3]
(b)
Therefore, xo [0] = 2, xo [1] = 2, xo [3] = 1 and xo [n] is zero for all other n.
y[n] = x1 [n] x1 [n]
+2[n 5] 2[n 6] + [n 8]
x(t) = 2 sin 2f t +
(a) (2 pts) Is x[n] periodic? If so, then find its fundamental period.
(b) (2 pts) Find a value F that lies between 0.5 and +0.5 such that
2 sin 2F n +
3
7n
= 2 sin
+
5
3
(c) (2 pts) Find all possible values of the frequency f of the continuous time signal.
(d) (2 pts) Identify the x(t) that satisfies the Nyquist criterion.
(e) (2 pts) For the x(t) identified in part (d), what are all the sampling frequencies that satisfy the
Nyquist criterion?
Sol:
(b) Adding any integer to F does not change x[n]. Thus, subtracting 1, we have a new value F =
7/10 1 = 3/10 which lies in the range (0.5, 0.5).
(c) F = f /fs , so f = F fs . Also adding any integer multiple of fs to f does not change x[n].
Therefore, the possible values of f are F fs + kfs = (F + k)fs , i.e., f = 20(7/10 + k) = 14 + 20k
Hz, for all integer values k. Note that fs = 1/0.05 = 20 samples/sec in this problem. If we wish
to use F = 3/10 from part (b) instead, then one can equivalently write this set of values as
20(3/10 + k) = 6 + 20k, which is also the same set of values.
(d) To satisfy the Nyquist criterion, the frequency f must be within (fs /2, fs /2), i.e., between 10
and +10 Hz. f = 6 Hz is the value that satisfies this criterion. With this choice, the signal x(t)
becomes
x(t) = 2 sin(12t + /3)
(e) Since |f | = 6 in part (d), sampling frequencies that satisfy the Nyquist criterion are fs > 12
samples/sec.
y[n] =
k=
x[k]g[k n]
where g[0] = 1, g[1] = 2 and all other values of g[n] are zero.
(a) (3 pts) What is the impulse response of this system?
(b) (2 pts) Is this a stable system? Why, or why not?
(c) (2 pts) Is this a causal system? Why, or why not?
(d) (3 pts) What is the output of this system if the input x[n] = u[n]?
Sol:
(a) To find the impulse response h[n], set x[n] = [n] and replace y[n] with h[n], so that
h[n] =
X
k=
[k]g[k n]
= g[n]
= [n] + 2[n + 1]
(b) Stable. Because impulse response is absolutely summable, i.e.,
n= |h[n]|
= 1 + 2 = 3 is finite.
(c) Not causal. Because h[1] = 2, so the impulse response starts to take non-zero values before
n = 0.
(d) y[n] = x[n] h[n] = u[n] ([n] + 2[n + 1]) = u[n] + 2u[n + 1].
Sol:
(a) Not memoryless (because y[n] depends on x[n 1]).
(b) Causal (because y[n] depends only on the past input value x[n 1]).
(c) BIBO stable (because if n, |x[n]| M then |y[n]| = | cos(2n)x[n 1]| M 0 = M as well.)
(d) Invertible (because x[n] = y[n + 1]/cos(2(n + 1)). Note that cos(2(n + 1)) is always non-zero for
integer values of n).
(e) Linear. Proof shown below.
T (x1 [n]) = cos(2n)x1 [n 1]
Sol: We note that x2 [n] = x1 [n 2] + 2x1 [n 4]. Since the system is LTI, the output y2 [n] must be
y2 [n] = y1 [n 2] + 2y1 [n 4]
True/False
Statement
True
False
True
2[n1] = 1 + [n 1]
True
The discrete-time signal x[n] = sin(n/3) is the same as the signal x0 [n] = sin(7n/3).
False
True
True
False
False
False