Professional Documents
Culture Documents
www.ant.uni-bremen.de/teaching
Volker Kühn Time-Discrete Signals and Systems
Outline
¾ Summary of Laplace and Fourier Transformation
¾ Z-Transformation
Time-discrete Signals
Properties of Z-Transformation and Convergence
System description by Z-transformation
¾ Stochastic Processes
Characterization of stochastic processes and random variables
Probabilities, densities, distributions, moments, stationary and ergodic processes
Central limit theorem
Correlation and spectral power density (real and complex signals)
System analysis for stochastic input signals (Theorem of Wiener-Khintchine)
Universität
Bremen Outline 2
Volker Kühn Time-Discrete Signals and Systems
Linear Algebra
¾ Notations and definitions
Vectors and matrices
Elementary operations, Matrix multiplication
Determinants
¾ Special Matrices
Symmetric, orthogonal, complex, circulant, Toeplitz...
¾ Linear equation systems
Gaussian elimination, Cramer’s rule, iterative methods
¾ Matrix factorizations
LU, Cholesky, QR (Householder, Givens, Gram-Schmidt)
Eigenvalues and eigenvectors, SVD (condition, pseudo-inverse)
¾ Least squares, matrix inversion lemma
Universität
Bremen Multiple-Input Multiple Output Systems 3
Volker Kühn Time-Discrete Signals and Systems
¾ Matrices
Boldface capital letters
a1,1 a1,2 a1,n a1
a a2,2 a2,n a
A= = [a a an ] =
2,1 2
1 2
a
m ,1 a m ,2 a m,n am
Column vectors are just m × 1 matrices
Row vectors are just 1× n matrices
Universität
Bremen Multiple-Input Multiple Output Systems 4
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 5
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 7
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 8
Volker Kühn Time-Discrete Signals and Systems
36 132 36 132
AC = CA = ⇒ AC = CA
22 146
22 146
Universität
Bremen Multiple-Input Multiple Output Systems 9
Volker Kühn Time-Discrete Signals and Systems
(A + B) = A + B ( A + B) = A + B
T T T H H H
and
( AB ) = BT AT ( AB ) = B H A H
T H
Universität
Bremen Multiple-Input Multiple Output Systems 10
Volker Kühn Time-Discrete Signals and Systems
Determinants (1)
¾ Determinant of a 2 × 2 matrix
a1,1 a1,2
det A = = a1,1a2,2 − a2,1a1,2
a2,1 a2,2
¾ Determinant of a n × n matrix
Let the ( n − 1) × ( n − 1) matrix Ai,j equal A without the i-th row and j-th column
Recursive definition of determinant by cofactor expansion
column expansion row expansion
n n
det A = ∑ ( −1) i+ j
ai , j det A i , j det A = ∑ ( −1)i + j ai , j det A i , j
i =1 j =1
Universität
Bremen Multiple-Input Multiple Output Systems 11
Volker Kühn Time-Discrete Signals and Systems
Determinants (2)
¾ Fundamental properties
Linearity in columns (rows) αa1 + α′a1′ a 2 = α ⋅ a1 a 2 + α′ ⋅ a1′ a 2
Exchanging two columns (rows) a 2 a1 = − a1 a 2
Determinant of identity matrix det I = 1
¾ Some additional properties
Symmetry in columns and rows det AT = det A
Zero column (row) 0 a2 = 0
Two equal columns (rows) a1 a1 = 0
Multiple of one column (row) αa1 a 2 = α ⋅ a1 a 2
Scalar multiplication det ( αA ) = α n det A
Adding two columns (rows) a1 + αa 2 a 2 = det A
Determinant of matrix product det ( AB ) = det A ⋅ det B
Universität
Bremen Multiple-Input Multiple Output Systems 12
Volker Kühn Time-Discrete Signals and Systems
Determinants (3)
¾ Full expansion of the determinant by recursive application of the definition
pn! n pn! n
det A = ∑ (−1)
p = p1
per{p}
∏a
i =1
i , pi = ∑ (−1)
p = p1
per{p}
∏a
i =1
pi ,i
n n n
det D = ∏ d i ,i det L = ∏ li ,i det U = ∏ ui ,i
i =1 i =1 i =1
Universität
Bremen Multiple-Input Multiple Output Systems 13
Volker Kühn Time-Discrete Signals and Systems
am ,1 x1 + am ,2 x2 + + am ,n xn = bm
¾ Geometric interpretations
x is the intersection of m hyperplanes ai x = bi n
b is a linear combination of the column vectors ∑xa
i =1
i i =b
Universität
Bremen Multiple-Input Multiple Output Systems 14
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 15
Volker Kühn Time-Discrete Signals and Systems
¾ Three possibilities
det A ≠ 0 Æ unique solution
det A = 0 and det A j ≠ 0 for some j Æ no solution
det A = 0 and det A j = 0 for all j Æ infinite number of solutions
Universität
Bremen Multiple-Input Multiple Output Systems 16
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 17
Volker Kühn Time-Discrete Signals and Systems
end end
Universität
Bremen Multiple-Input Multiple Output Systems 19
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 20
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 21
Volker Kühn Time-Discrete Signals and Systems
Inverse Matrix
¾ Inverse A-1 of a square n × n matrix A
A −1A = AA −1 = I
¾ Relation of inverse to linear equation systems
Ax = b ⇔ x = A −1 b
¾ Calculation of the inverse by Gauss-Jordan method
n simultaneous linear equation systems [ Ax1 Ax n ] = AX = I ⇔ [ A I ]
Forward elimination A I ⇒ U L −1
Backward elimination U L ⇒ I A
−1 −1
¾ Inverse exists only if AX = I has a unique solution (Æ A nonsingular)
Condition: rank {A} = n ⇔ det A ≠ 0
¾ Properties
( ) =A
−1
−1
A
( )
−1 −1 −1
AB = B A
( ) ( )
−1 H
−1
A H
= A
Universität
Bremen Multiple-Input Multiple Output Systems 22
Volker Kühn Time-Discrete Signals and Systems
LU Decomposition
¾ Every invertible matrix A can be written as the product of a lower triangular
matrix L and an upper triangular matrix U
A = LU
¾ Application: Solution of linear equation system Ax = LUx = b
with constant coefficient matrix for different right hand sides
Inversion of triangular matrices easy Æ solve Ly = b and then Ux = y
¾ Calculation of LU decomposition by Gaussian elimination
Forward elimination: [ A = LU I ] ⇒ U L−1
L contains factors li , j = ai(, jj−1) / a (j ,j j−1) from the elimination steps
¾ Direct calculation of LU decomposition (example: 3 × 3 matrix)
a1,1 a1,2 a1,3 1 0 0 r1,1 r1,2 r1,3 r1,1 r1,2 r1,3
a
2,1 a2,2 a2,3 = l
2,1 1 0 ⋅
0 r2,2 r2,3 = l r
2,1 1,1 l r
2,1 1,2 + r2,2 l r
2,1 1,3 + r2,3
a3,1 a3,2 a3,3 l3,1 l3,2 1 0 0 r3,3 l3,1r1,1 l3,1r1,2 + l3,2 r2,2 l3,1r1,3 + l3,2 r2,3 + r3,3
Calculation order: r1,1 → r1,2 → r1,3 → l2,1 → l3,1 → r2,2 → r2,3 → l3,2 → r3,3
Universität
Bremen Multiple-Input Multiple Output Systems 23
Volker Kühn Time-Discrete Signals and Systems
Cholesky Decomposition
¾ Let A be
hermitian AH = A ¾ Algorithm
positive definite x Ax > 0 ∀x
H
A (0) := A
¾ Then A is fully characterized by a for k := 1 to n do
lower triangular matrix L lk ,k = ak( k,k−1)
Cholesky decomposition A = LLH
for i := k + 1 to n do
¾ Similar to LU decomposition
li ,k = ai(,kk−1) / lk*,k
But computational complexity reduced by factor 2
for j := k + 1 to i do
¾ Example: 3 × 3 matrix
ai(,kj) = ai(,kj−1) − li ,k ⋅ l *j ,k
l 2 *
l1,1l2,1 *
l1,1l3,1
a1,1 a1,2 a1,3 1,1
end
* 2 2
a a a =
l l l + l l l *
+ l l *
end
2,1 2,2 2,3 2,1 1,1 2,1 2,2 2,1 3,1 2,2 3,2
a3,1 a3,2 a3,3 * 2 2 2 end
l l l l *
+ l
3,1 1,1 3,1 2,1 3,2 2,2 3,1 l *
l + l + l3,3
3,2
Calculation order: l1,1 → l2,1 → l3,1 → l2,2 → l3,2 → l3,3
Universität
Bremen Multiple-Input Multiple Output Systems 24
Volker Kühn Time-Discrete Signals and Systems
QR Decomposition (1)
¾ Every m × n matrix A can be written as A = QR where
Q is a m × n matrix with orthonormal columns
1 for i = j
qi q j =
H
⇔ QH Q = I
0 for i ≠ j
R is an upper triangular n × n matrix
¾ Columns of A are represented in the orthonormal base defined by Q
k
a k = ∑ ri ,k q i
i =1
q1 r1,2q1 a1 = r1,1q1
Universität
Bremen Multiple-Input Multiple Output Systems 25
Volker Kühn Time-Discrete Signals and Systems
QR Decomposition (2)
¾ Calculation of QR decomposition by modified Gram-Schmidt algorithm
Calculate length (Euclidean norm) of a1 Æ r1,1
Normalize a1 to have unit length Æ q1
Projection of a2,...,an onto q1 Æ r1,j Q (0) := A
Subtract components of a2,...,an parallel to q1 Æ q (1)
j
for k := 1 to n do
Continue with next column rk ,k = q (kk −1)
¾ Q is computed from left to right q k = q (kk −1) / rk ,k
¾ R is computed from top to bottom for i := k + 1 to n do
¾ Illustration for the m × 2 case rk ,i = q kH q (jk −1)
q2
a 2 = r1,2q1 + r2,2q 2 q (jk ) = q (jk −1) − rk ,i q k
r2,2q 2
end
end
q1 r1,2q1 a1 = r1,1q1
Universität
Bremen Multiple-Input Multiple Output Systems 26
Volker Kühn Time-Discrete Signals and Systems
QR Decomposition (3)
¾ Householder reflections: reflect x onto y by multiplication with unitary matrix
x−y xH u
H = I − (1 + w) ⋅ uu H
with u = and w = H x
x−y u x u uu H x
Special case: y = [|| x || 0] Æ create zeros in a vector
T
uu H y
y = Hx
¾ Application to QR decomposition of m × n matrix A
R := A, Q := I m Initialization
for k := 1 to n do Loop through all columns
x = R ( k : m, k )
y = [|| x || 0]
T
Create zeros below the main
diagonal in k-th column of R
calculate u, w, H
R ( k : m, k : n) = H ⋅ R ( k : m, k : n)
Q(:, k : m) = Q(:, k : m) ⋅ H H Update unitary matrix Q
end
Universität
Bremen Multiple-Input Multiple Output Systems 27
Volker Kühn Time-Discrete Signals and Systems
QR Decomposition (4)
¾ Givens rotations
gi*,i = g k ,k = cos θ = c
Let G (i, k , θ) equal an identity matrix except for
G (i, k , θ) is unitary and describes a rotation − gi*,k = g k ,i = sin θ = s
2 2 2 2
¾ Special choices for c and s: c = xi xi + xk and s = − xk xi + xk
¾ Linear transformation
2 2
y = G (i, k , θ) ⋅ x ⇒ yi = xi + xk , yk = 0, y j = x j ∀j ≠ i, k
Givens rotation can create zero while changing only one other element
¾ Example
* * * * * * * * * * * *
A = * * *
G (2,3,θ1 )
→ * * *
G (1,2,θ2 )
→ 0 * *
G (2,3,θ3 )
→ 0 * * = R
* * * 0 * * 0 * * 0 0 *
Universität
Bremen Multiple-Input Multiple Output Systems 28
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 29
Volker Kühn Time-Discrete Signals and Systems
A + β I → λ i + β, xi A invertible ⇔ all λ i ≠ 0
X −1AX → λ i , X −1xi A positive definite ⇔ all λ i > 0
¾ Properties for hermitian matrices
All eigenvalues are real
Eigenvectors belonging to different eigenvalues are orthogonal
Algebraic and geometric multiplicities are identical
Consequence: all eigenvectors can be chosen to be mutually orthogonal
A hermitian matrix A can be diagonalized by a unitary matrix V
V H AV = Λ ⇔ A = VΛV H Eigenvalue decomposition
Universität
Bremen Multiple-Input Multiple Output Systems 30
Volker Kühn Time-Discrete Signals and Systems
Universität
Bremen Multiple-Input Multiple Output Systems 31
Volker Kühn Time-Discrete Signals and Systems
co
ce
lu
pa
m
ns
ws
pa
ro
ce
xr
Ax = Ax r
x Ax n = 0
0
rig
ce
ht
pa
nu
ls
xn
ul
lls
tn
pa
f
le
ce
Universität
Bremen Multiple-Input Multiple Output Systems 32
Volker Kühn Time-Discrete Signals and Systems
¾ Application: Least squares solution of a linear equation system
Problem: find vector x that minimizes the euclidean distance between Ax and b
Solution: project b onto the column space of A and solve Ax=bc
If no unique solution exists Æ take solution vector with shortest length
min Ax − b ⇒ x = A +b
x
Universität
Bremen Multiple-Input Multiple Output Systems 33
Volker Kühn Time-Discrete Signals and Systems
co
ce
lu
pa
m
x = A +b
ns
ws
pa
ro
ce
b c = Ax
b
0
A +bn = 0
rig
ce
bn
ht
pa
nu
ls
ul
lls
tn
pa
f
le
ce
Universität
Bremen Multiple-Input Multiple Output Systems 34