0% found this document useful (0 votes)
137 views3 pages

HW1 Solution

This document contains the solutions to 5 homework problems related to linear systems and signal processing: 1. It determines which systems are linear by examining if inputs and outputs scale appropriately. 2. It defines the Fourier transform and Fourier series, and notes that not all signals have a Fourier transform, giving an example of one that does not. 3. It finds the Laplace transform of two signals and their regions of convergence. 4. It uses Matlab to plot a function of time defined by a sum of exponentials and trigonometric terms. 5. It finds the common roots of two polynomials by taking their convolution and finding the roots of the resulting polynomial.

Uploaded by

Zim Shah
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)
137 views3 pages

HW1 Solution

This document contains the solutions to 5 homework problems related to linear systems and signal processing: 1. It determines which systems are linear by examining if inputs and outputs scale appropriately. 2. It defines the Fourier transform and Fourier series, and notes that not all signals have a Fourier transform, giving an example of one that does not. 3. It finds the Laplace transform of two signals and their regions of convergence. 4. It uses Matlab to plot a function of time defined by a sum of exponentials and trigonometric terms. 5. It finds the common roots of two polynomials by taking their convolution and finding the roots of the resulting polynomial.

Uploaded by

Zim Shah
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/ 3

EE422G Homework #1 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)

(b) The impulse response: h(t) = δ(t + 2)


Solution:
Since the system has an impulse response, it is definitely linear.
(c) y(t) = x2 (t) + 2 dx(t)
dt
Solution:
It is non-linear due to the second degree term – when using a similar test as part
a), you will notice that the second degree term creates a cross term x1 (t)x2 (t)
that is not present in the differential equation.
(d) Solution:
The system is non-linear. This is a little bit tricky. As we know, for all lin-
ear systems, we can relate the input and output Fourier Transforms using the
following relationship:
Y (jω) = X(jω)H(jω)
where H(jω) is the Fourier Transform of the impulse response. Using this rela-
tionship, if X(jω) is zero at a particular frequency, Y (jω) must also be zero no
matter what H(jω). This is clearly not the case here as X(jω) is zero except at
ω0 and −ω0 .

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

X(e ) = x[n]e−jωn
n=−∞

The discrete Fourier series analysis-synthesis pair is expressed as:


Analysis equation:
N
X −1
−j2πkn
X̃[k] = x̃[n]e 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):

(a) x(t) = sin(ωt)u(t)


Solution:

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

5. (2 pts) Given two polynomials:

f (x) = x5 − 3x4 + 5x2 + 7x + 9

and
g(x) = 2x6 − 8x4 + 4x2 + 10x + 12
Find all the solutions to equations:

f (x)g(x) = 0

Hint: Run help on Matlab commands “roots” and “conv”.


Solution:

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

You might also like