0% found this document useful (0 votes)
26 views7 pages

Note 2

The document provides solutions to an exam with 4 problems. Problem 1 involves classifying systems as linear, time-invariant, or causal. Problem 2 derives a linear difference equation for a given system. Problem 3 derives an input-output differential equation for a circuit. Problem 4 involves computing the convolution of two signals and plotting the result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views7 pages

Note 2

The document provides solutions to an exam with 4 problems. Problem 1 involves classifying systems as linear, time-invariant, or causal. Problem 2 derives a linear difference equation for a given system. Problem 3 derives an input-output differential equation for a circuit. Problem 4 involves computing the convolution of two signals and plotting the result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Exam I: Solutions

BME 171-02, Signals and Systems


Exam I: Solutions
100 points total

1. (15 pts.) Fill in the following table (for each column, give a “yes/no” answer and briefly
justify it):

System Linear Time-invariant Causal

y(t) = 3x(t) cos(t) yes no yes

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

y[n] = 2(x[n + 1]u[n] − x[n]) + 1 no no no


Exam I: Solutions

2. (15 pts.) Consider the following system:

+ z[n]
x[n] 2 _ F y[n]

Here, the system F is defined by the input-output relationship


n o
F z[n] = z[n] − z[n − 1],

and ∆ is the unit delay n o


∆ w[n] = w[n − 1].
Write down the linear difference equation describing this system.

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

y[n] = z[n] − z[n − 1]


   
= 2x[n] − y[n − 1] − 2x[n − 1] − y[n − 2]
| {z } | {z }
=z[n] =z[n−1]
= 2x[n] − y[n − 1] − 2x[n − 1] + y[n − 2].

Simplify to get

y[n] + y[n − 1] − y[n − 2] = 2x[n] − 2x[n − 1]

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

i0 (t) = current through R1


i1 (t) = current through C
i2 (t) = current through R2

Then, using Kirchhoff’s voltage law, we write


di0 (t)
−x(t) + R1 i0 (t) + L + y(t) = 0.
dt
On the other hand, using Kirchhoff’s current law, we have

i0 (t) = i1 (t) + i2 (t).

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

Simplify to get the final answer:

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:

y[−1] = x[−1]ν[0] + x[0]ν[−1] + x[1]ν[−2]


= (−1) · 1 + 0 · 0 + 1 · 0
= −1
y[0] = x[−1]ν[1] + x[0]ν[0] + x[1]ν[−1]
= (−1) · 1 + 0 · 1 + 1 · 0
= −1
y[1] = x[−1]ν[2] + x[0]ν[1] + x[1]ν[0]
= (−1) · 1 + 0 · 1 + 1 · 1
= 0
y[2] = x[−1]ν[3] + x[0]ν[2] + x[1]ν[1]
= (−1) · 0 + 0 · 1 + 1 · 1
= 1
y[3] = x[−1]ν[4] + x[0]ν[3] + x[1]ν[2]
= (−1) · 0 + 0 · 0 + 1 · 1
= 1

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

You might also like