Docsity

Notes on Linear Algebra and Matrix Analysis, Slides of Linear Algebra

Toggle sidebar
bg1
Notes on Linear Algebra and Matrix Analysis
Maxim Neumann
May 2006, Version 0.1.1
1 Matrix Basics
Literature to this topic: [1–4].
x†y⇐⇒ <y,x>: standard inner product.
x†x=1 : xis normalized
x†y=0 : x,yare orthogonal
x†y=0,x†x=1,y†y=1 : x,yare orthonormal
Ax =yis uniquely solvable if Ais linear independent (nonsingular).
Majorization: Arrange band ain increasing order (bm,am) then:
bmajorizes a⇐⇒
k
∑
i=1
bmi≥
k
∑
i=1
ami∀k∈[1,...,n](1)
The collection of all vectors b∈Rnthat majorize a given vector a∈Rnmay be obtained by forming the convex hull of n!
vectors, which are computed by permuting the ncomponents of a.
Direct sum of matrices A∈Mn1,B∈Mn2:
A⊕B=A 0
0 B∈Mn1+n2(2)
[A,B] = traceAB†: matrix inner product.
1.1 Trace
traceA=
n
∑
i
λi(3)
trace(A+B) = traceA+traceB(4)
traceAB =traceBA (5)
1.2 Determinants
The determinant det(A)expresses the volume of a matrix A.
det(A) = 0⇐⇒
Ais singular.
Linear equation is not solvable.
A−1does not exists
vectors in Aare linear dependent
(6)
det(A)6=0⇐⇒ Ais regular/nonsingul ar.
Ai j ∈R→det(A)∈RAi j ∈C→det(A)∈C
If Ais a square matrix(An×n) and has the eigenvalues λi, then det(A) = ∏λi
detAT=detA(7)
detA†=detA(8)
detAB =detAdetB(9)
Elementary operations on matrix and determinant:
Interchange of two rows : detA∗=−1
Multiplication of a row by a nonzero scalar c: detA∗=c
Addition of a scalar multiple of one row to another row : detA=detA
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Notes on Linear Algebra and Matrix Analysis and more Slides Linear Algebra in PDF only on Docsity!

Notes on Linear Algebra and Matrix Analysis

Maxim Neumann

May 2006, Version 0.1.

1 Matrix Basics

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

, B ∈ M

n 2

A ⊕ B =
[
A 0
0 B
]

∈ Mn 1 +n 2 (2)

[A, B] = trace AB

† : matrix inner product.

1.1 Trace

trace A =

n

i

λ i

trace(A + B) = trace A + trace B (4)

trace AB = trace BA (5)

1.2 Determinants

The determinant det (A) expresses the volume of a matrix A.

det(A) = 0 ⇐⇒

A is singular.

Linear equation is not solvable.

A

− 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

2 EIGENVALUES, EIGENVECTORS, AND SIMILARITY 2

a b

c d

= ad − bc (10)

2 Eigenvalues, Eigenvectors, and Similarity

σ(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.

2.1 Characteristic Polynomial

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)

2.2 Eigendecomposition

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)

M = M

T ∗ → λ ∈ R (17)

M

k → λ

k (18)

M is squared matrix. With D = diag λ i

and V = [v 0

, v 1

,.. .]:
MV = DV ⇐⇒ M = VDV

− 1 (19)

M

2

= (VDV

− 1

)(VDV

− 1

) = VD

2

V

− 1

(20)

M

n

= VD

n

V

− 1

with n ∈ N

0

(21)

M

− 1 = VD

− 1 V

− 1 with D

− 1 = diag λ

− 1

i

e

M = Ve

D V

− 1 with e

D = diag e

λi (23)

M

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}

2.3 Similarity

A is similar to B if ∃ S such that:

B = S

− 1 AS → A ∼ B ⇐⇒ B ∼ A (25)

A ∼ B →

σ(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}:

A ∼ D ⇐⇒ D = S

− 1 AS with S = Va, D = Λa (27)

A, B (A 6 ∼ B) are simultaneously diagonalizable, if:

∃ S : Da = S

− 1 AS, D b

= S

− 1 BS (28)

A, B commute ⇐⇒ A, B are simultaneously diagonalizable

4 CANONICAL FORMS 4

4 Canonical Forms

Jordan block J k

(λ) ∈ M k

and Jordan matrix J ∈ M n

J

k

(λ) =

λ 1 0

λ

0 λ

J =
J

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:

∀A : A = VΣW

† V, W unitary, Σ nonnegative diagonal, rank Σ = rank A (42)

Triangular factorization:

∀A : A = URU

† 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

S

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.

∀A : A = SUΣU

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

5 Hermitian and Symmetric Matrices

∀ A
A + A

† , AA

† , A

† A Hermitian

A − A

† skew–Hermitian

A = HA + SA HA =

A+A

†

2

Hermitian, SA =

A−A

†

2

skew–Hermitian

A = EA + iFA EA, FA Hermitian, EA = HA, FA = −iSA

H

A

, S

A

, E

A

, F

A

are unique ∀A. H A

, E

A

, F

A

∈ M(R).
H

A

S

A

= S

A

H

A

⇐⇒ A is normal (49)

5 HERMITIAN AND SYMMETRIC MATRICES 5

∀ A, B Hermitian →

A

k Hermitian ∀ k ∈ N

≥ 0

A

− 1 Hermitian (A nonsingular)

aA + bB Hermitian ∀ a, b ∈ R

iA skew–Hermitian

x

† Ax ∈ R ∀ x ∈ C

n

σ(A) ∈ R

S

† AS Hermitian ∀ S

A normal (see 3.1)

AA

† = A

2 = A

† A

A = UΛU

† U unitary, Λ = diag ∈ σ(A) ∈ R

D = U

† 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

Commutivity of Hermitian matrices! Let W be a given family of Hermitian matrices:

∃ U unitary : DA = UAU

†

, DA is diagonal ∀A ∈ W ⇐⇒ AB = BA ∀A, B ∈ W (52)

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

† ):

A ∼ A

† ⇐⇒

⇐⇒ A ∼ B B ∈ M

n

(R)
⇐⇒ A ∼ A

†

⇐⇒ A ∼ A

† 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.

A = A

† , ∀ x : x

† Ax =

≥ 0 → σ(A) ≥ 0 A is positive semidifinite

0 A is positive difinite

5.1 Variational characterization of eigenvalues of Hermitian matrices

Matrix A is a Hermitian matrix with eigenvalues λ i

∈ R.

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)

6 NORMS FOR VECTORS AND MATRICES 7

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.

AA = I ⇐⇒ ∃ S : A = SS

− 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

6 Norms for vectors and matrices

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

: ‖|A|‖

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

: ‖|A|‖

2

= max{

λ : λ is an eigenvalue of A

† A}

General properties:

| < x, y > |

2 ≤< x, x >< y, y >

‖x‖ =

< x, x >

ρ(A) ≤ ‖|A‖|

7 Positive Definite Matrices

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

8 MATRICES 8

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)

8 Matrices

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

9 Rank and Range VS. Nullity and Null Space

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

T

6

→ A

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

= 0 ⇐⇒ |A| = 0

Range The range (or image) of A n×m

∈ F

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.

C NOTATION CONVENTIONS 10

In IDL: M ⇐⇒ C =

[

a c

b d

]
= M

T , so that C[ 1 , 2 ] = b, C[ 2 , 1 ] = c

Examples:

A

r

⇐⇒ IDL: A ← A

T

r

$ A=transpose(Ar)

C

r

= A

r

B

r

⇐⇒ IDL: C ← C

T

r

= (A

r

B

r

T $ C=transpose(Ar ## Br)

= (A

T B

T )

T = (BA) $ C=B##A=A#B

Cr = ArB

†

r

⇐⇒ C ← C

T

r

= (ArB

†

r

T

= (A

T B)

T = B

† A $ C=A#adj(B)

Cr = A

T

r

Br ⇐⇒ C ← C

T

r

= (A

T

r

Br)

T

= (AB

T )

T = BA

T $ C=transpose(A)#B

C

r

= k 1 r

k

†

2 r

⇐⇒ C = C

T

r

= (k 1 r

k

†

2 r

T

= (k

T

1

k 2

T = k

†

2

k 1

$ C=k1#adj(k2)

= A

r

B

r

C

r

⇐⇒ (A

r

B

r

C

r

T

= (A

T B

T C

T )

T = CBA $ A#B#C

A

r

k r

⇐⇒ (A

r

k r

T = (A

T k

T )

T = kA $ A#k

A

− 1

r

⇐⇒ (A

− 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 = T

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,

T

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...

C Notation Conventions

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.

D Mathematical Glossary

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.

References

[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.