Note 2
Note 2
Note 2
1. (15 pts.) Fill in the following table (for each column, give a “yes/no” answer and briefly
justify it):
p
y(t) = x2 (t) no yes yes
(
+1, x[n] ≥ 0
y[n] = no yes yes
−1, x[n] < 0
Z t+1
y(t) = x(λ)dλ yes yes no
t
+ z[n]
x[n] 2 _ F y[n]
Solution. Let z[n] be the output of the summer, as shown above. Then
n o
y[n] = F z[n] = z[n] − z[n − 1].
Now, n o
z[n] = 2x[n] − ∆ y[n] = 2x[n] − y[n − 1].
Therefore, substituting the expression for z[n] into the first equation, we can write
Simplify to get
2
Exam I: Solutions
3. (20 pts.) Consider the following circuit:
R1 L
i2(t)
i1(t)
+
i0(t)
+
x(t) C R2 y(t)
_
_
Write down the input-output differential equation for this circuit in terms of the input voltage
x(t) and the output voltage y(t).
Solution. Let
Moreover,
dy(t) y(t)
i1 (t) = C and i2 (t) = .
dt R2
Therefore,
dy(t) y(t)
i0 (t) = C +
dt R2
and
di0 (t) d2 y(t) 1 dy(t)
=C 2
+ .
dt dt R2 dt
Substituting this into the KVL equation, we get
!
dy(t) y(t) d2 y(t) 1 dy(t)
−x(t) + R1 C + +L C 2
+ + y(t) = 0.
dt R2 dt R2 dt
2
LC d dt
y(t)
+ R1 C + L
R2
dy(t)
dt + R1
R2 + 1 y(t) = x(t).
3
Exam I: Solutions
4. (25 pts.) Compute the convolution of the following two signals and plot the result on the set
of axes provided. Show all your work!
x[n] ν[n]
1 1
0 n 0 n
-1
x[n] * ν[n]
0 n
Solution. First, rename the time variable n into k. Next, flip and shift one of the signals.
We will flip ν[k] to get ν[−k]:
x[k] ν[-k]
1 1
0 k 0 k
-1
Now, shift by n to get ν[n − k]. Note that there is no overlap between x[k] and ν[n − k] as
long as n ≤ −2 or n ≥ 4:
x[k] ν[-2-k]
1 1
0 k 0 k
-1
x[k] ν[4-k]
1 1
0 k 0 k
-1
4
Name: ..................................................
So, y[n] = x[n] ⋆ ν[n] = 0 for n ≤ −2 and for n ≥ 4
Now, shift and compute the overlap:
Overall,
0, n ≤ −2
−1,
n = −1, 0
y[n] = x[n] ⋆ ν[n] = 0, n=1
1, n = 2, 3
0, n≥4
5
Exam I: Solutions
5. (25 pts.) Compute the convolution of the following two signals. Write down its analytical
form and sketch its plot in the set of axes provided. Show all your work!
x(t) ν(t)
2
1
0 1 t 0 1 t
-2
x(t)* ν(t)
-1 0 1 2 t
-1
Solution. First, rename the time variable t into λ, say. Next, flip and shift one of the
signals. We will flip x(λ) to get x(−λ):
x(-λ) ν(λ)
2
1
0 1 λ 0 1 λ
-2
Now, shift by t to get x(t − λ). Note that there is no overlap between x(t − λ) and ν(λ) as
long as t ≤ −1 or t ≥ 2:
x(-1-λ) ν(λ)
2
1
0 1 λ 0 1 λ
-2
x(2-λ) ν(λ)
2
1
0 1 λ 0 1 λ
-2
6
Exam I: Solutions
So, y(t) = x(t) ⋆ ν(t) = 0 when t ≤ −1 or when t ≥ 2.
Now, we consider the remaining cases:
−1 ≤ t ≤ 0:
1
t-1 t 0 t+1 λ
Z t+1 h it+1
y(t) = (−2) · λdλ = − λ2 = −(t + 1)2
0 0
0 ≤ t ≤ 1:
t-1 0 t 1 t+1 λ
Z t Z 1 h it h i1
y(t) = 2 · λdλ + (−2) · λdλ = λ2 − λ2 = t2 − 1 + t2 = 2t2 − 1
0 t 0 t
1 ≤ t ≤ 2:
1
0 t-1 t t+1 λ
Z 1 h i1
y(t) = 2 · λdλ = λ2 = 1 − (t − 1)2 = −t2 + 2t
t−1 t−1
Overall,
0, t ≤ −1
2
−(t + 1) , −1 ≤ t ≤ 0
y(t) = x(t) ⋆ ν(t) = 2t2 − 1, 0≤t≤1
−t2 + 2t, 1≤t≤2
0, t≥2