






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Maxim Neumann
May 2006, Version 0.1.
Literature to this topic: [1–4].
x
† y ⇐⇒ < y, x >: standard inner product.
x
† x = 1 : x is normalized
x
† y = 0 : x, y are orthogonal
x
† y = 0 , x
† x = 1 , y
† y = 1 : x, y are orthonormal
Ax = y is uniquely solvable if A is linear independent (nonsingular).
Majorization: Arrange b and a in increasing order (b m
, a m
) then:
b majorizes a ⇐⇒
k
i= 1
b mi
k
i= 1
a mi
∀ k ∈ [ 1 ,... , n] (1)
The collection of all vectors b ∈ R
n that majorize a given vector a ∈ R
n may be obtained by forming the convex hull of n!
vectors, which are computed by permuting the n components of a.
Direct sum of matrices A ∈ M n 1
n 2
∈ Mn 1 +n 2 (2)
[A, B] = trace AB
† : matrix inner product.
trace A =
n
i
λ i
trace(A + B) = trace A + trace B (4)
trace AB = trace BA (5)
The determinant det (A) expresses the volume of a matrix A.
det(A) = 0 ⇐⇒
A is singular.
Linear equation is not solvable.
− 1 does not exists
vectors in A are linear dependent
det(A) 6 = 0 ⇐⇒ A is regular/nonsingular.
Ai j ∈ R → det(A) ∈ R Ai j ∈ C → det(A) ∈ C
If A is a square matrix(A n×n
) and has the eigenvalues λ i
, then det(A) = (^) ∏ λ i
det A
T = det A (7)
det A
† = det A (8)
det AB = det A det B (9)
Elementary operations on matrix and determinant:
Interchange of two rows : det A ∗ = − 1
Multiplication of a row by a nonzero scalar c : det A ∗ = c
Addition of a scalar multiple of one row to another row : det A = det A
a b
c d
= ad − bc (10)
σ(An×n) = {λ 1 ,... , λn} is the set of eigenvalues of A, also called the spectrum of A.
ρ(A) = max{|λi|} is the spectral radius of matrix A.
Λ = Dn×n = diag{λ 1 ,... , λn} is the diagonal matrix of eigenvalues.
V = {v 1 ,... , vn} is the matrix of eigenvectors.
p A
(t) = det(tI − A) (11)
pA(t) =
m
i= 1
(t − λi)
si , 1 ≤ si ≤ n,
m
i
si = n, λi ∈ σ(A) (12)
Mv = λv (13)
If M =
1
N
[Re(x), Im(x)]
T [Re(x), Im(x)], then λ is the variance of M along v. sdev(M) along v is then =
λ.
Characteristic function: |λI − M| = 0
trace M =
λi (14)
det M = |M| =
λi (15)
σ(AB) = σ(BA) even if AB 6 = BA (16)
T ∗ → λ ∈ R (17)
k → λ
k (18)
M is squared matrix. With D = diag λ i
and V = [v 0
, v 1
− 1 (19)
2
= (VDV
− 1
)(VDV
− 1
) = VD
2
V
− 1
(20)
n
= VD
n
V
− 1
with n ∈ N
0
(21)
− 1 = VD
− 1 V
− 1 with D
− 1 = diag λ
− 1
i
e
M = Ve
D V
− 1 with e
D = diag e
λi (23)
1 / 2 = VD
1 / 2 V
− 1 with D
1 / 2 = diag λ
1 / 2
i
(24) is also known as square root of the matrix M with M = M
1 / 2 M
1 / 2 † .
A triangular → σ(A) = {a ii
| 1 ≤ i ≤ n}
A is similar to B if ∃ S such that:
− 1 AS → A ∼ B ⇐⇒ B ∼ A (25)
σ(A) = σ(B)
det A = det B
trace A = trace B
rank A = rank B
p A
(t) = p B
(t) p A
(t): characteristic polynomial of A
∀ A ∈ Mn A ∼ A
T !! → rank A = rank A
T (row rank = column rank).
∀ A ∈ Mn A ∼ S S = S
T := S is a symmetric matrix
A is diagonalizable ⇐⇒ ∃D : A ∼ D
A ∼ D ⇐⇒ A has n linearly independent eigenvectors V = {v 1 ,... , vn}:
− 1 AS with S = Va, D = Λa (27)
A, B (A 6 ∼ B) are simultaneously diagonalizable, if:
∃ S : Da = S
− 1 AS, D b
− 1 BS (28)
A, B commute ⇐⇒ A, B are simultaneously diagonalizable
Jordan block J k
(λ) ∈ M k
and Jordan matrix J ∈ M n
k
(λ) =
λ 1 0
λ
0 λ
n 1
(λ 1
0 Jn k
(λk)
k
i
n i
= n (39)
Jordan canonical form theorem: ∀A ∈ Mn ∃ S, J : A = SJS
− 1
Where J is unique up to permutations of the diagonal Jordan blocks. By convention, the Jordan blocks corresponding to each
distinct eigenvalue are presented in decreasing order with the largest block first.
Minimal Polynomial q A
(t) of A is the unique monic polynomial q A
(t) of minimum degree that annihilates A. (monic: a
polynomial whose highest–order term has coefficient +1; annihilates: a polynomial whose value is the 0 matrix).
Similar matrices have the same minimal polynomial.
Minimal polynomial q A
(t) divides the characteristic polynomial p A
(t) = q A
(t)h A
(t). Also, q A
(λ) = 0 ∀ λ ∈ σ(A).
q A
(t) =
m
i= 1
(t − λ i
ri , λ i
∈ σ(A) (40)
Where ri is the order of the largest Jordan block of A corresponding to λi.
Polar decomposition: (rank P = rank A)
∀A : A = PU P positive semidifinite, U unitary
∀A nonsingular : A = GQ G = G
T , QQ
T = I
Singular value decomposition:
† V, W unitary, Σ nonnegative diagonal, rank Σ = rank A (42)
Triangular factorization:
† U unitary, R upper triangular (43)
Others:
∀A Hermitian : A = SIAS
† S nonsingular, IA = diag ∈ {− 1 , 0 , + 1 } (44)
Where I A
is a diagonal matrix with entries ∈ {− 1 , 0 , + 1 }. The number of + 1 (− 1 ) entries in I A
is the same as the number of
positive (negative) eigenvalues of A, the number of 0 entries is equal to (n − rank A).
∀A normal : A = UΛU
† U unitary, Λ = diag λ i
∈ σ(A)
∀A symmetric : A = SK A
T S nonsingular, K A
= diag ∈ { 0 , + 1 },
rank K A
= rank A
∀A symmetric : A = UΣU
T U unitary, Σ = diag ≥ 0 , rank Σ = rank A
∀U unitary : U = Qe
iE Q real orthogonal, E real symmetric
∀P orthogonal : P = Qe
iF Q real orthogonal, E real skew–symm.
T S
− 1 S nonsingular, U unitary, Σ = diag ≥ 0
LU factorization: is not unique. Only if all upper left principal submatrices of A are nonsingular (and A is nonsingular):
A = LU L lower triangular, U upper triangular, det A({ 1 , .., k}) 6 = 0 , k = 1 , .., n (46)
∀A nonsingular : A = PLU P permutation, L, U lower/upper triangular
∀A : A = PLUQ P, Q permutation, L, U lower/upper triangular
† , AA
† , A
† A Hermitian
† skew–Hermitian
A+A
†
2
Hermitian, SA =
A−A
†
2
skew–Hermitian
A = EA + iFA EA, FA Hermitian, EA = HA, FA = −iSA
A
A
A
A
are unique ∀A. H A
A
A
A
A
A
A
⇐⇒ A is normal (49)
∀ A, B Hermitian →
k Hermitian ∀ k ∈ N
≥ 0
− 1 Hermitian (A nonsingular)
aA + bB Hermitian ∀ a, b ∈ R
iA skew–Hermitian
x
† Ax ∈ R ∀ x ∈ C
n
σ(A) ∈ R
† AS Hermitian ∀ S
A normal (see 3.1)
† = A
2 = A
† A
† U unitary, Λ = diag ∈ σ(A) ∈ R
† AU A is unitarily diagonalizable
v
†
i
v j
= 0 i 6 = j eigenvectors are othonormal
trace(AB)
2 ≤ trace A
2 B
2
rank(A) = number of nonzero eigenvalues
rank(A) ≥
(trace A)
2
trace A
2
∀ A, B skew–Hermitian →
aA + bB skew–Hermitian ∀ a, b ∈ R
iA Hermitian
σ(A) ∈ Imaginary
∃ U unitary : DA = UAU
†
A, B Hermitian → AB Hermitian ⇐⇒ AB = BA (53)
But in general: AB 6 = BA !!! and AB is in general not Hermitian!!!
A class of matrices where A is similar to its Hermitian (A ∼ A
† ):
† ⇐⇒
n
†
† via a Hermitian similarity transformation
⇐⇒ A = HK H, K Hermitian
⇐⇒ A = HK H, K Hermitian with at least one nonsingular
A matrix A ∈ M n
is uniquely determined by the Hermitian (sesquilinear) form x
† Ax:
x
† Ax = x
† Bx ∀ x ∈ C
n ⇐⇒ A = B (55)
The class of hermitian matrices is closed under unitary equivalence.
† , ∀ x : x
† Ax =
≥ 0 → σ(A) ≥ 0 A is positive semidifinite
0 A is positive difinite
Matrix A is a Hermitian matrix with eigenvalues λ i
Convention for eigenvalues of Hermitian matrices: λ min
= λ 1
≤ λ 2
≤... ≤ λ n
= λ max
Rayleigh–Ritz ratio:
x
† Ax
x
† x
λ 1 x
† x ≤ x
† Ax ≤ λnx
† x ∀ x ∈ C
n (57)
λmax = λn = max
x 6 = 0
x
† Ax
x
† x
= max
x
† x= 1
x
† Ax (58)
λmin = λ 1 = min
x 6 = 0
x
† Ax
x
† x
= min
x
† x= 1
x
†
Ax (59)
Geometrical interpretation: λ max
is the largest value of the function x
† Ax as x ranges over the unit sphere in C
n , a compact set.
Analog is λ min
the smallest (negative) value.
λ n− 1
= inf
w∈C
n
sup
x
† x= 1
x⊥w
x
† Ax λ 2
= sup
w∈C
n
inf
x
† x= 1
x⊥w
x
† Ax (60)
Ax = λx — x is an coneigenvector of A, corresponding to the coneigenvalue λ. A matrix may have infinitely many distinct
coneigenvalues or it may have no coneigenvalues at all.
− 1
(72)
∀ A ∈ Mn : A is consimilar to A, A
† , A
T , to a Hermitian matrix, and to a real matrix.
∀ A ∈ Mn : ∃ S 1 , S 2 (symmetric), H 1 , H 2 (Hermitian) such that A = S 1 H 1 = H 2 S 2
Let V be a vector space over a field F (R or C).
A function ‖·‖ : V → R is a vector norm if ∀ x, y ∈ V:
‖x‖ ≥ 0 Nonnegative
‖x‖ = 0 ⇐⇒ x = 0 Positive
‖cx‖ = |c|‖x‖ ∀ c ∈ F Homogeneous
‖x + y‖ ≤ ‖x‖ + ‖y‖ Triangle inequality
The Euclidean norm (or l 2
norm) on C
n : ‖x‖ 2
|x 1
2 +... + |x n
2
The sum norm (or l 1
norm) on C
n : ‖x‖ 1
= |x 1
| +... + |x n
The max norm (or l ∞
norm) on C
n : ‖x‖ ∞
= max{|x 1
| +... + |x n
The l p
norm on C
n : ‖x‖ p
p
n
i= 1
|x 1
p
A function < ·, · >: V × V → F is an inner product if ∀ x, y, z ∈ V:
< x, x >≥ 0 Nonnegative
< x, x >= 0 ⇐⇒ x = 0 Positive
< x + y, z >=< x, z > + < y, z > Additive
< cx, y >= c < x, y > ∀ c ∈ F Homogeneous
< x, y >= < y, x > Hermitian property
A function ‖| · |‖ : M n
→ R is a matrix norm if ∀ A, B ∈ M n
‖|A‖| ≥ 0 Nonnegative
‖|A‖| = 0 ⇐⇒ A = 0 Positive
‖|cA‖| = |c|‖|A‖| ∀ c Homogeneous
‖|A + B‖| ≤ ‖|A‖| + ‖|B‖| Triangle inequality
‖|AB‖| ≤ ‖|A‖|‖|B‖| Submultiplicative
The maximum column sum matrix norm ‖| · |‖ 1
on M n
1
= max
1 ≤ j≤n
n
i= 1
|a i j
The maximum row sum matrix norm ‖| · |‖∞ on Mn: ‖|A|‖∞ = max
1 ≤i≤n
n
j= 1
|ai j|
The spectral norm ‖| · |‖ 2
on M n
2
= max{
λ : λ is an eigenvalue of A
† A}
General properties:
| < x, y > |
2 ≤< x, x >< y, y >
‖x‖ =
< x, x >
ρ(A) ≤ ‖|A‖|
A positive definite x
† Ax > 0 ∀x ∈ C
n 6 = 0 (77)
A positive semidefinite x
† Ax ≥ 0 ∀x ∈ C
n 6 = 0 (78)
Similarly are the terms negative definite and negative semidefinite defined. If a Hermitian matrix is neither positive, nor negative
semidefinite, it is called indefinite.
Any principal submatrix of a positive definite matrix is positive definite.
A positive definite →
σ(A) > 0
trace A > 0
det A > 0
A positive definite ⇐⇒ σ(A) > 0 (80)
A positive def. Hermitian ⇐⇒ det(A) > 0 A Hermitian (81)
A positive definite ⇐⇒ ∃ C : A = C
† C C nonsingular (82)
A positive definite ⇐⇒ ∃ L : A = LL
† L nonsingular lower (83)
triangular with positive diag elements (84)
A positive semidefinite ⇐⇒ σ(A) ≥ 0 (85)
A positive definite ⇐⇒ A
− 1 positive definite (86)
A positive definite ⇐⇒ A
k positive definite ∀ k ∈ N > 0 (87)
Block diagonal matrix ⇐⇒ diagonal block matrix, is a square diagonal matrix in which the diagonal elements are square
matrices of any size (possibly even 1x1), and the off-diagonal elements are 0. A block diagonal matrix is therefore a block
matrix in which the blocks off the diagonal are the zero matrices, and the diagonal matrices are square.
The determinant of the a block diagonal matrix is the product of the determinants of the diagonal elements.
Square root of a matrix. This matrix has to be hermitian, positive semi–definite.
Orthogonal matrix Q : QQ
T = I
Symmetric matrix A : A = A
T
Skew–Symmetric matrix A : A = −A
T
Hermitian matrix A : A = A
†
Skew–Hermitian matrix A : A = −A
†
Positive semidefinite A ← A = A
† , σ(A) ∈ R
= 0
Scalar matrix A : A = aI, a ∈ C
The rank of a matrix An×m is the smallest value r for which exist Fn×r and Gr×m so that An×m = Fn×rGr×m:
rank An×m = rank
a 11
· · · a 1 n
am 1 · · · amn
=^ r^ with^ An×m =^ Fn×rGr×m (89)
Examples:
rank T 6
= kk
† = 1
rank T 6 = 〈kk
† 〉 ≥ 1
6
6#
, k → F 6#
rank An×m
= number of linearly independent vectors in A
≤ min(m, n)
= rank A
T = rank A
†
= dimension of the range of A
= rank AX = rank YA X, Y non-singular
= m − nullity An×m
rank An×n
= n − nullity A n×n
< n ⇐⇒ det A n×n
Range The range (or image) of A n×m
n×m is the subspace of vectors that equal Ax for all x ∈ F
m
. The dimension of this
subspace is the rank of A.
range A n×m
= {Ax : x ∈ F
m } (93)
Null space and Nullity The null space (or kernel) of An×m ∈ F
n×m is the subspace of vectors x ∈ F
m for which Ax = 0. The
dimension of this subspace is the nullity of A.
null space An×m = {x ∈ F
m : Ax = 0 }
The range of A is the orthogonal complement of the null space of A
† and vice versa (the null space of A is the orthogonal
complement of the range of A
† ).
The rank of a matrix plus the nullity of the matrix equals the number of columns of the matrix.
In IDL: M ⇐⇒ C =
a c
b d
T , so that C[ 1 , 2 ] = b, C[ 2 , 1 ] = c
Examples:
r
T
r
$ A=transpose(Ar)
r
r
r
T
r
r
r
T $ C=transpose(Ar ## Br)
T B
T )
T = (BA) $ C=B##A=A#B
Cr = ArB
†
r
T
r
= (ArB
†
r
T
T B)
T = B
† A $ C=A#adj(B)
Cr = A
T
r
Br ⇐⇒ C ← C
T
r
T
r
Br)
T
T )
T = BA
T $ C=transpose(A)#B
r
= k 1 r
k
†
2 r
T
r
= (k 1 r
k
†
2 r
T
= (k
T
1
k 2
T = k
†
2
k 1
$ C=k1#adj(k2)
r
r
r
r
r
r
T
T B
T C
T )
T = CBA $ A#B#C
r
k r
r
k r
T = (A
T k
T )
T = kA $ A#k
− 1
r
− 1
r
T = (A
T
r
− 1 ?
Short summary : every matrix and vector should be considered as transposed, in relation between math and IDL.
In mathematics first index is the y–row–index, the second is the x–column-index! In IDL its reversed: first x–column– and then
y–row–index.
Using these notations one can use all kinds of matrix multiplications and transpose/conjugate in the mathematical order with #.
(e.g. in mathematics w
† Tw will correspond in IDL to ad j(w)#T #w, but it should be considered that w and T are transposed:
T and w = w
T
. i.e. w is a row–array during w is a column–vector.)
Matrix input/output in IDL : To give a matrix from math–book or paper into IDL you have to transpose it (before input or
right after). To read out the correct values, you have also to transpose the IDL matrix. Since the mathematical matrix indexing
and the IDL matrix indexing are transposed and we also transpose the matrix between these systems, the values have the same
indices in mathematical matrices with mathematical indexing as in IDL matrices with IDL indexes! (i.e. A( 1 , 2 )m = A[ 1 , 2 ]IDL)
Consider these (right!) cases: T 6 = T
T
6
, T 12 = T 6 (0 : 2, 3 : 5)m = T 6 [3 : 5, 0 : 2]IDL, T 12 = T 6 [0 : 2, 3 : 5]IDL = T 6 (3 : 5, 0 : 2)m,
12
= transp(T 12 ).
Conclusion : Transpose matrices by input/output! And everything else can be used as in mathematical notation: order, matrix
multiplication (with #), indices, transpose, conjugate, etc...
Capital bold letters reference to matrices, small bold letter to vectors.
A is a matrix with dimensions n × n if no other dimensions are supplied.
T : transpose
† : transpose conjugate complex.
∗ : conjugate complex.
inf: is the infimum of a set (max over a set with bounds)
sup: is the supremum of a set (min over a set with bounds)
inf(S) = − sup(−S)
Hadamard Product: A ◦ B is the element-wise multiplication of matrices.
[1] G.H. Golub and C.F. Van Loan. Matrix Computation, volume 3. The Johns Hopkins University Press, 1996. recommended
by Hongwei Zheng.
[2] R. A. Horn and C. R. Johnson. Matrix Analysis. Cambridge University Press, 1990.
[3] R. A. Horn and C. R. Johnson. Topics in Matrix Analysis. Cambridge University Press, 1991.
[4] G Strang. Introduction to Linear Algebra. Wellesley Cambridge Press, 1998.