Homework1 Solutions
Homework1 Solutions
Geetha Chandrasekaran
(Due: Sep 14, 10:00 pm)
1. Determine whether each of the following signals is periodic. If the signal is periodic, state it’s
period.
Solution: We know that the “sin” function is periodic over the interval [0, 2π] if
the argument has a multiplicative factor of π. Note that for N = 16, x[n + N ] =
x[n], therefore this is periodic with N = 16.
Note that cos(A+B) = cos A cos B−sin A sin B, so cos(3n+N ) = cos(3n) cos(N )−
sin(3n) sin(N ). To satisfy equation (1), we need to find N such that
(c) x[n] = 0.2n u[n], where u[n] is the unit step function.
Solution: This is an exponential function which is aperiodic.
(d) x[n] = u[n] + u[−n], where u[n] is the unit step function.
1
Homework 1 solutions ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 14, 10:00 pm)
1
1
2
−4 −2 2 4 6
−1
−2
Sketch and label carefully each of the following. (a) x[n−2] (b) x[4−n] (c) x[2n] (d) x[n]u[2−n]
(e) x[n − 1]δ[n − 3]
Solution:
1
2
−4 −2 2 4 6 −2 2 4 6
−1 −1
−2 −2
(e) x[n − 1]δ[n − (3], note that δ[n − 3] is non-zero only for n = 3, so x[n − 1]δ[n − 3] =
1, n = 3
x[3 − 1]δ[3 − 3] =
0, otherwise
2
Homework 1 solutions ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 14, 10:00 pm)
−4 −2 2 4 6 −4 −2 2 4 6
−1 −1
−2 −2
3. For each of the following systems comment on the following: is the system Linear Time
Invariant? Causal? Stable?
(a) y[n] = nk=0 x[k] Solution: Linear, Time-variant, causal and not BIBO stable
P
• Linearity:
A system is linear if it satisfies the principles of superposition and scaling.
– Let x1 [n] and x2 [n] be two inputs with corresponding outputs y1 [n] and y2 [n]
– For input ax1 [n] + bx2 [n], the output should be ay1 [n] + by2 [n].
– Given y[n] = nk=0 x[k]:
P
- For x1 [n], y1 [n] = Pnk=0 x1 [k]
P
- For x2 [n], y2 [n] = nk=0 x2 [k]
– For inputPax1 [n] + bx2 [n]:
n
- y[n] = P k=0 (ax1 [k] + bx 2 [k])
- y[n] = a nk=0 x1 [k] + b nk=0 x2 [k] - y[n] = ay1 [n] + by2 [n]
P
• Time invariance:
A system is time-invariant if a time shift in the input results in an identical time
shift in the output.
– Let x[n] be the input with output y[n]
– For a shifted input x[n − n0 ], the output should be y[n − n0 ]
– Given y[n] = nk=0 x[k]:
P
3
Homework 1 solutions ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 14, 10:00 pm)
– Let x[n] be a bounded input such that |x[n]| ≤ M for all n, where M is a finite
constant.
– The output y[n] is given by y[n] = nk=0 x[k]
P
– Since |x[k]| ≤ M for all k, the sum of these terms up to n will be bounded by
the sum of n + 1 terms, each of which is at most M .
– Therefore, |y[n]| ≤ nk=0 |x[k]| ≤ nk=0 M = M (n + 1).
P P
As n increases, the term M (n+1) can grow without bound, meaning that the output
y[n] can become arbitrarily large
P even if the input x[n] is bounded.
Therefore, the system y[n] = nk=0 x[k] is not BIBO stable because a bounded
input does not necessarily produce a bounded output.
Hence, the system is linear, time-variant, causal and not stable.
(b) y[n] = 0.3x[n − 1] Solution: LTI, causal and stable
• Linearity:
y3 [n] = 0.3x3 [n − 1]
= 0.3(ax1 [n] + bx2 [n])
= a(0.3x1 [n]) + b(0.3x2 [n])
= ay1 [n] + by2 [n]
• Time invariance:
– Superposition:
– Let y1 [n] = 0.2y1 [n + 1] + x1 [n] and y2 [n] = 0.2y2 [n + 1] + x2 [n]
– The output for x3 [n] = x1 [n] + x2 [n] is
4
Homework 1 solutions ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 14, 10:00 pm)
– For input x[n − n0 ] into the original system equation: y ′ [n] = x[3(n − n0 )] =
x[3n − 3n0 ]
• A time shifted version of the output y[n−n0 ] = x[3(n−n0 )] = x[3n−3n0 ]. Therefore
this system is time invariant.
• Causality:
Note that y[0] = x[0] but y[1] = x[3]. This system is not causal as the output
depends on future values of the output
• Stability:
If |x[n]| is always less than B, then |y[n]| < B, therefore the system is BIBO stable.
(e) y[n] = x[n] + cos( πn4 )x[n − 1] Solution: LTI, causal and stable.
• Linearity:
– Let y1[n] = x1 [n] + cos(πn/4)x1 [n − 1] y2[n] = x2 [n] + cos(πn/4)x2 [n − 1], then
x3 [n] = ax1 [n] + bx2 [n], the output is
y3 [n] = x3 [n]+cos(πn/4)x3 [n−1] = (ax1 [n]+bx2 [n])+cos(πn/4)(ax1 [n−1]+bx2 [n−1]) = ay1 [n]+
. Therefore the system is linear.
5
Homework 1 solutions ESET 3302 Dr. Geetha Chandrasekaran
(Due: Sep 14, 10:00 pm)
• Time invariance: