Solutions: Signals & Systems
Solutions: Signals & Systems
Solutions
Number of Problems: 10
Problem 1 5 points
β z −1 α
z −1
Y (z)
a) Calculate the transfer function Q(z) . (1 point)
Q(z)
b) Calculate the transfer function X(z)
. (1 point)
Y (z)
c) Calculate the system transfer function H(z) = X(z) . (1 point)
Solution 1
Q(z) 1
=
X(z) 1 − βz −1
c)
Y (z) Q(z) 1 + αz −2
H(z) = =
Q(z) X(z) 1 − βz −1
d) The system is stable if all the poles lie inside the unit circle.
1 − βz −1 = 0
z=β
Final Exam – Signals & Systems Page 3
Problem 2 5 points
Solution 2
a) Define
n
X
y1 [n] := x1[k]
k=−∞
Xn
y2 [n] := x2[k]
k=−∞
k = −∞ ⇒ m = −∞
k =n⇒m=n−l
Problem 3 5 points
1
H(s) = .
τs + 1
Ts = 0.01.
Solution 3
b) The difference equation can be derived from the transfer function H(z)
and reads as
or
1 1 a1
y[n] = x[n] + x[n − 1] − y[n − 1].
a0 a0 a0
where
2τ
a0 = 1 +
Ts
2τ
a1 = 1 − .
Ts
Applying an impulse as input, the coefficient a0 can directly be deter-
mined as
1 1
y[0] = = .
41 a0
Thus
Ts
τ = (a0 − 1) · = 0.2.
2
Page 8 Final Exam – Signals & Systems
Problem 4 5 points
x[n] = 1 ∀n,
the output is
lim y[n] = 1.
n→∞
Solution 4
The first requirement implies unity gain and imposes following condition
on the filter coefficients
The second requirement combined with the fact that the filter has unity
gain or H(0) = 1 yields
π 1 1
|H( )| = √ · 12 = √
2 2 2
or
π 1
|H( )|2 = .
2 2
The transfer function of the filter equals
b0 + b1z −1
H(z) = = b0 + b1 z −1 .
1
Final Exam – Signals & Systems Page 9
Evaluating the transfer function on the unit circle z = ejΩ yields the fre-
quency response
b0 = 1 − b1
Problem 5 5 points
You want to identify a linear time invariant system T with input x[n] and
output y[n]
y[n] = T {x[n]}
b0 + z −1
HID (z) = .
1 + a1 z −1
You apply a causal input to the system that has four elements
G = FΘ
x = {1, 0, 0, 0}
y = {2, 3, 2, 2}
Solution 5
2−0 2
and
1 0
0 −2
F=
0 −3 .
0 −2
Thus
1 0 2
1 0 0 0 0 −2)−1 1 0 0 0 2 =
(FT F)−1FT G = (
0 −2 −3 −2 0 −3 0 −2 −3 −2 2
0 −2 2
1 0 2 2 b
= 1 = 14 = 0 .
0 17 14 17 a1
Page 12 Final Exam – Signals & Systems
Problem 6 5 points
H(Ω) = R(Ω)ejφ(Ω) .
b) Using the result of a), determine the power spectral density (1 points)
function Syy (Ω) of the output y[n].
σy2
c) Using the result of b), calculate the ratio σx2
. (2 points)
(Hint : cos2 (Ω) = 21 (1 + cos(2Ω)))
Solution 6
b) The power spectral density (PSD) of the output depends on the PSD
of the input and the square magnitude of the frequency response
Syy (Ω) = |H(Ω)|2Sxx (Ω).
The PSD of zero-mean white noise is constant and equals
Sxx (Ω) = σx2 .
The magnitude of the frequency response equals R(Ω) and therefore
the PSD of the output becomes
1
Syy (Ω) = R2(Ω)σx2 = (4 cos2 (Ω) + 16 cos(Ω) + 16)σx2 =
36
1
= (cos2 (Ω) + 4 cos(Ω) + 4)σx2 .
9
c) The variance σy2 of the output can be calculated from the inverse
Fourier transform of the PSD Syy (Ω) as following
Zπ
1
σy2 = Ryy [k = 0] = Syy ejΩ·0 dΩ =
2π
−π
Zπ
1 1
= (cos2 (Ω) + 4 cos(Ω) + 4)dΩ · σx2 =
2π 9
−π
Zπ Zπ Zπ
σx2 1
= (1 + cos(2Ω))dΩ + 4 cos(Ω)dΩ +4 1dΩ =
18π −π 2
|−π {z } −π
0
Zπ Zπ Zπ
σx2 1 1
= 1dΩ + cos(2Ω)dΩ +4 1dΩ =
18π 2
2
−π
| −π {z } −π
2
02
σ 1 σ
= x · 2π + 4 · 2π = x .
18π 2 2
σy2
Therefore the ratio σx2 equals 12 .
Page 14 Final Exam – Signals & Systems
Problem 7 5 points
You want to isolate the low frequency content of x[n], and keep only fre-
quencies in the range Ω ∈ [0, π2 ], to yield the (real) signal y[n].
b) Write down the DFT Y [k], and from that calculate the (3 points)
signal y[n].
Solution 7
2π π
a) We have x[n] = {1, −1, 0, 0}, N = 4, WN = e−j N = e−j 2
N
X −1
X[k] = x[n]WNkn
n=0
−j π2 0k π
= 1e − 1ej 2 1k
π
= 1 − e−j 2 k
This gives:
X[0] = 0
X[1] = 1 + j
X[2] = 2
X[3] = 1 − j
b) Because it is a real signal, the DFT contains only three distinct frequen-
cies: Ω0 = 0, Ω1 = π2 , Ω2 = π. To eliminate the frequencies above π2 , we
set:
Y [0] = X[0] = 0
Y [1] = X[1] = 1 + j
Y [2] = 0
Y [3] = Y [N − 3]∗ = 1 − j
Final Exam – Signals & Systems Page 15
Note that Y [3] is not zero. If one sets Y [3] = 0, but keeps Y [1] = 1 + j the
inverse DFT would yield a signal with imaginary components.
The time series y[n] is now calculated using the inverse DFT:
N −1
1 X
y[n] = Y [k]WN−kn
N
k=0
1 π π
= (1 + j)ej 2 n + (1 − j)ej 2 3n
4
1 1
y[0] = ((1 + j) + (1 − j)) =
4 2
1 1
y[1] = ((1 + j)(j) + (1 − j)(−j)) = −
4 2
1 1
y[2] = ((1 + j)(−1) + (1 − j)(−1)) = −
4 2
1 1
y[3] = ((1 + j)(−j) + (1 − j)(j)) =
4 2
1 1 1 1
y[n] = ,− ,− ,
2 2 2 2
Page 16 Final Exam – Signals & Systems
Problem 8 5 points
where φ(t) is the deviation of the pendulum from the upper equilibrium and
u(t) is the input to the system. The output of the system is the deviation
φ(t).
a) Discretize the equation using the Euler Method (3 points)
φ(t) − 2φ(t − Ts ) + φ(t − 2Ts)
φ̈(t) ≈
Ts2
and provide the discrete state space representation with two
states.
b) Let a = 3, b = 1 and Ts = 1. Is the system controllable? (1 point)
Solution 8
or
q[n + 1] = Aq[n] + Bx[n]
y[n] = Cq[n] + Dx[n].
b) The system is controllable if the matrix
B AB
has full rank. From a)
0
B=
− 12
1
0 1 0 −2
AB = 1 1 = 1 .
2
−1 − 2 2
Thus the system is controllable as
0 − 21
B AB =
− 12 12
has full rank. This can readily be seen as the rows are linearly inde-
pendent.
c) Similarly, the system is observable if
C
CA
has full rank. From a)
1
C= 2 −1
1 0 1
CA = 2 −1 1 = − 21 3
2
2 −1
and thus the system is observable as
1
C −1
= 21 3
CA −2 2
has full rank as the rows are linearly independent.
Page 18 Final Exam – Signals & Systems
Problem 9 5 points
Solution 9
b) By definition,
∞
X
H(z) = h[k]z −k
k=−∞
X∞
⇒H(1) = h[k]
k=−∞
Final Exam – Signals & Systems Page 19
Problem 10 5 points
You are to discretize the system over a sample time of Ts by using a hold
device at the input, such that
qd [n + 1] = Ad qd [n] + Bd xd [n]
yd [n] = Cd qd [n] + Dd xd [n].
Solution 10
y[n] = q2[n]
= 0.75q2[n − 1] + 3u[n − 1]
= 0.75y[n − 1] + 3u[n − 1]