You are on page 1of 9

DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO

ECE-314: Signals and Systems Summer 2013

Solutions - Midterm Exam


PROBLEM 1 (15 PTS)
Given the following LTI system:

a) Sketch the impulse response h[n].


b) Given the following input signal x[n]: x[n]
2

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)

PROBLEM 2 (15 PTS)


a) Obtain the FT for the following signal:
b) Use the properties of Fourier representation (e.g., time-differentiation, convolution, time-shift,
frequency-shift) to find the FT of:

, '' denotes convolution.

a)
, converges for a > 0

b)

Differentiation Property of FT: If , then:


Then:
Convolution Property of FT:
Then:

Instructor: Daniel Llamocca


DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013

Knowledge of a common FT pair:


Then, if , then:

Now: ,
where: , and

Time Shift Property of FT: If , then:


Then:

Finally:

PROBLEM 3 (10 PTS)


Given the following system:
a) Determine whether the system is i) memoryless, ii) causal, iii) linear, and iv) time-invariant. Justify
your answers.
b) If , then evaluate .
c) Let's call your response in (b): .
Is ? In other words, can we evaluate the output of the system in response to any input
using convolution: ? Yes or no? Why?

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.

If the input to the system is axA[n] + bxB[n], then:


y[n] = n(axA[n] + bxB[n]) = n(axA[n]) + n(bxB[n])

Now: ayA[n] + byB[n] = anxA[n]u[n] + bnxB[n]


We see that y[n] = a(yA[n]) + b(yB[n]). Thus, the system is linear.

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]

Response of system to a shifted input x[n-k]: y1[n] = n x[n-k]


Output y[n] shifted by k: y[n-k] = n-k x[n-k]
We see that y[n-k] y1[n]. Thus, the system is NOT time invariant.

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.

Instructor: Daniel Llamocca


DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013

PROBLEM 4 (10 PTS)


a) The output of a discrete-time system is related to its input x[n] as follows:

where a, b, c, are real values

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?

b) An LTI system is described by the following impulse response:

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.

PROBLEM 5 (20 PTS)


The impulse response of an LTI system and an input signal x(t) are depicted below:

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

Instructor: Daniel Llamocca


DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013

x(t) h(t) h(t+t)


1 1 1

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)

Instructor: Daniel Llamocca


DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013

PROBLEM 6 (10 PTS)


The following representation of an LTI system (called H) is called Direct Form I. We can think of the
system as the cascade of two systems Ha and Hb, each with ha[n] and hb[n] as impulse responses.
Ha Hb
3 w[n]
x[n] S S y[n]

S S
-2 1/3
S S
S S
1/4 1/2

a) Get y[n] in terms of x[n] and past samples of y[n].


b) The entire system H relates y[n] to x[n], and its impulse response is h[n]. How would you
express h[n] in terms of ha[n] and hb[n]?
c) Draw the Direct Form II representation of the system H. Write down the procedure.

a) H1: w[n] = 3x[n] - 2x[n-1] + 0.25x[n-2]


H2: y[n] = (1/3)y[n-1] + 0.5y[n-2] + w[n]
y[n] = (1/3)y[n-1] + 0.5y[n-2] + 3x[n] - 2x[n-1] + 0.25x[n-2]

b)

c) H2: f[n] = x[n] + (1/3)f[n-1] + 0.5y[n-2]


H1: y[n] = 3f[n] - 2f[n-1] + 0.25f[n-2]
f[n] 3
x[n] S S y[n]

S
1/3 -2
S S
S
1/2 1/4

Instructor: Daniel Llamocca


DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013

PROBLEM 7 (20 PTS)


a) For the following periodic signal x(t), identify and get the proper Fourier representation (it should
only depend on the frequency variable). Is the Fourier representation periodic? If so, what is the
period?
x(t)
1 e-3t
... ...
t
-4 4 8 12
b) For the following signal x[n], identify and get the proper Fourier representation (it should only
depend on the frequency variable). Is the Fourier representation periodic? If so, what is the period?

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

a) x(t), is periodic (T=4) FS.

b) . x[n] is periodic DTFS

We rewrite the signal:

If we remember the equation:

We notice that:

The Fourier representation is periodic (N=6 samples), and it is given by:

Alternative method (applying the DTFS formula):

Instructor: Daniel Llamocca


DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013

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 ?

The DTFT is periodic with period .

Instructor: Daniel Llamocca


DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING, THE UNIVERSITY OF NEW MEXICO
ECE-314: Signals and Systems Summer 2013

BONUS PROBLEM (+ 15 PTS)


The output of an LTI system in response to an input is .
Note that is an integer number, and

Find the frequency response of the impulse response, as well as the impulse response of this system.

Time Shift Property of DTFT:

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:

Then, given that:


We can use convolution property to express the impulse response as:

By performing this convolution, we find that:


. This is the same as

Verifying that our result is correct:

With the formula: , we then demonstrate that:

Instructor: Daniel Llamocca

You might also like