HW1 Solutions
HW1 Solutions
Homework 1 Solution
Problem 1. Determine whether each of the following signals is periodic and, if it is, determine
its fundamental period.
(a) x(t) = ejπ/3 + sin (20t)
Answer. x(t) is periodic with period π/10 as shown below.
π π
x t+ = ejπ/3 + sin 20 t +
10 √ 10
1 3 π
= + j + sin 20 t +
2 √2 10
1 3
= + j + sin (20t + 2π)
2 2
= x(t)
1
Problem 2.
(a) Consider the signal x(t) in the following figure.
1
Then, we scale time by a factor of 2 (remember, division results in a time expansion), this
yields x(3 − 2t ):
2
Finally we multiply this signal by two and add 1 to find our solution, 2x(3 − 2t ) + 1:
3
Answer. x[−n] is x[n] flipped across the y-axis:
x[−2n] is x[−n] with the x-axis scaled by half; since we are in discrete time, this results in the
saving of the even values:
x[6 − 2n] should be thought of as x[2(3 − n)], and is a shifting of x[−2n] by three units to the
right:
Problem 3. For each system, determine which of the following four properties hold: time-
invariance, linearity, causality, and stability. Justify your answers with a proof or counterexample.
4
t − 1 be the input delayed by 1. The output to this new input is y2 (t) = (sin t) − 1. However,
this y2 (t) is not y1 (t) delayed by 1: y1 (t − 1) = sin (t − 1) ̸= (sin t) − 1 = y2 (t), so the system
is not time-invariant.
We have:
y(t) = x(sin t)
= ax1 (sin t) + bx2 (sin t)
= ay1 (t) + by2 (t)
y(−π) = x(sin (−π)) = x(0). Thus, the value of y(t) when t = −π (a negative number)
requires knowledge of x(t) at t = 0, which is in the future. So the system is not causal.
Let |x(t)| < B for all t. Then, |y(t)| = |x(sin t)| < B. Since the value of the output is
the same as the value of the input as some (possible other) time, then restricting the input
value to some range will restrict the output to the same range. Thus, the system is stable.
Let x1 (t) = 1 and x2 (t) = 2x1 (t) = 2 for all t. Then, y2 (t) = sin (x2 (t)) = sin (2x1 (t)) =
sin (2) ̸= 2 sin (1) = 2 sin (x1 (t)) = 2y1 (t). The system is not linear.
The value of y(t) at t = t0 is a function only of the value of x(t) at exactly the same time; no
future values are used. The system is causal.
The value returned by sine always has magnitude less that or equal to 1, so the magnitude of
the output y(t) is always restricted to some finite range (regardless of the input). The system
is stable.
R t2
(c) y(t) = t x(τ − 1) dτ
R t2
Answer. Let x1 (t) = 1 for all t, x2 (t) = x1 (t−1) = 1 for all t. Then, y2 (t) = t x2 (τ −1) dτ =
R t2 2 2
R (t−1)2
t dτ = t − t ̸= (t − 1) − (t − 1) = t−1 x1 (τ − 1) dτ = y1 (t − 1). The system is not
5
time-invariant.
y[n] = x[n]ejπn/3
= (ax1 [n] + bx2 [n])ejπn/3
= a x1 [n]ejπn/3 + b x2 [n]ejπn/3
= ay1 [n] + by2 [n]
The value of y[n] at n = n0 depends only on the value of x[n] at the same instant in time. The
system is causal.
|y[n]| = |x[n]ejπn/3 | = |x[n]| · |ejπn/3 | = |x[n]|. The magnitude of y[n] is always the same
as that of x[n] at the same instant in time, so the system is stable.
6
(e) y[n] = 2x[n]
Answer. Let x2 [n] = x1 [n − n0 ]. Then, y2 [n] = 2x2 [n] = 2x2 [n−n0 ] = y1 [n − n0 ]. The system
is time-invariant.
Let x1 [n] = 1 for all n, x2 [n] = 3x1 [n] = 3 for all n. Then, y2 [n] = 2x2 [n] = 23 = 8 ̸=
6 = 3 ∗ 21 = 3 ∗ 2x1 [n] = 3y1 [n]. The system is not linear.
The value of y[n] at n − n0 depends only on the value of x[n] at the same instant in time.
The system is causal.