HW1 Solution
HW1 Solution
HW1 Solution
1. (4 pts) Determine which of the following systems are linear. Explain your answer:
dy(t)
(a) dt + 3y(t) = 4x(t)
Solution: Yes, it is linear. The reason is that given two pairs of input-output
signals x1 (t), y1 (t) and x2 (t), y2 (t) that satisfy the differential equation, it is
clear that ax1 (t) + bx2 (t) and ay1 (t) + by2 (t) are also a solution to the differential
equation as shown below:
· ¸ · ¸
d d d
(ay1 (t) + by2 (t)) + 3(ay1 (t) + by2 (t)) = a y1 (t) + 3y1 (t) + a y1 (t) + 3y1 (t)
dt dt dt
= ax1 (t) + bx + 2(t)
2. (2 pts) Give the definition of Fourier transform and Fourier series. Does every signal
have a Fourier transform? If yes, prove it. If no, give a counter-example.
Solution:
The Fourier transform of a sequence x[n] is defined as:
∞
X
jω
X(e ) = x[n]e−jωn
n=−∞
n=0
1
Synthesis equation:
N −1
1 X j2πkn
x̃[k] = X̃[n]e N
N
n=0
Fourier Transform does not exist for signals whose Laplace Transforms have poles on
the open right half plane. An example of such signal is x(t) = et u(t).
3. (2 pts) (THIS PROBLEM WILL NOT BE GRADED) Get the Laplace transform for
the following transform and the corresponding region of convergence (ROC):
1 ¡ jωt ¢
sin(ωt) = e − e−jωt
2j
1
e−at u(t) ⇔
s+a
By the linearity property, the sum of these terms corresponds to the sum of their
Laplace transforms. Therefore,
· ¸
1 1 1 ω
L [sin(ωt)u(t)] = − = 2
2j s − jω s + jω s + ω2
for σ > 0
(b) x(t) = δ(t − t0 ), t0 > 0
Solution:
Z ∞
X(s) = δ(t − t0 )e−st dt = e−st0
−∞
for all s
4. (2 pts) Use Matlab to plot y versus t with t = 0 : 0.01 : 5 and y defined as:
t2
y = 3e−4t cos(5t) − 2e−3t sin(2t) +
t+1
Solution:
t=0:0.01:5;
y=3*exp(-4*t).*cos(5.*t)-2*exp(-3*t).*sin(2*t)+t.^2./(t+1);
plot(t,y)
xlabel(’t’)
ylabel(’y’)
2
5
y
1
−1
0 1 2 3 4 5
t
and
g(x) = 2x6 − 8x4 + 4x2 + 10x + 12
Find all the solutions to equations:
f (x)g(x) = 0
f = [1 -3 0 5 7 9];
g = [2 0 -8 0 4 10 12];
fg = conv(f,g)
roots(fg)
ans =
2.4186 + 1.0712i
2.4186 - 1.0712i
1.6760 + 0.4922i
1.6760 - 0.4922i
-1.9304
-0.2108 + 0.9870i
-0.2108 - 0.9870i
-0.3370 + 0.9961i
-0.3370 - 0.9961i
-1.1633
-1.0000