HomeNotesAboutLinks

David. C. Lay: Linear Algebra and its Applications", Addison-Wesley. ​

5.3 Theorem 5 ​

The Diagonalization Theorem: An n×n matrix A is diagonalizable if and only if A has n linearly independent eigenvectors.

First, prove that

An n×n matrix A is diagonalizable ⟹ A has n linearly independent eigenvectors.

A=PDP−1D=[λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn]P=[v1v2⋯vn]PD=[v1v2⋯vn][λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn]=[λ1v1λ2v2⋯λnvn]A=A×I=A(PP−1)=(AP)P−1=APP−1APP−1=PDP−1APP−1P=PDP−1PAP(P−1P)=PD(P−1P)AP×I=PD×IAP=PDAP=A[v1v2⋯vn]=[Av1Av2⋯Avn][Av1Av2⋯Avn]=[λ1v1λ2v2⋯λnvn]Avi=λivi

vi is the ith eigenvactor of A and λi is the corresponding eigenvalue.

Because P is invertible, [v1v2⋯vn] is linearly independent.

Then, prove that

A has n linearly independent eigenvectors ⟹ An n×n matrix A is diagonalizable.

Let A=PBP−1.

A is similar to B

Let B=[λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn]

Where λi is the ith eigenvalue of A.

Avi=λivi, vi is the corresponding eigenvector.

P is some matirx. But such P may not exit, resulting A=PBP−1 is invalid.

So we just need to find a P.

Let P=[p1p2⋯pn], where pi is the ithe column vector.

PB=[p1p2⋯pn][λ10⋯00λ2⋯0⋮⋮⋱⋮00⋯λn]=[λ1p1λ2p2⋯λnpn]

Construct the same euqation again.

A=A×I=A(PP−1)=(AP)P−1=APP−1APP−1=PBP−1APP−1P=PBP−1PAP(P−1P)=PB(P−1P)AP×I=PB×IAP=PB

Let A=[a1a2⋮an], where ai is the ithe raw vector.

AP=[a1a2⋮an][p1p2⋯pn]=[a1p1a1p2⋯a1pna2p1a2p2⋯a2pn⋮⋮⋱⋮anp1anp2⋯anpn]AP=PB[a1p1a1p2⋯a1pna2p1a2p2⋯a2pn⋮⋮⋱⋮anp1anp2⋯anpn]=[λ1p1λ2p2⋯λnpn][a1pia2pi⋮anpi]=λipi

Let ai=[ai1ai2⋯ain].

Let pi=[p1ip2i⋯pni].

ajpi=[aj1aj2⋯ajn][p1ip2i⋯pni]

By the definition of matrix multiplication,

[a1pia2pi⋮anpi]=[a11a12⋯a1na21a22⋯a2n⋮⋮⋱⋮an1an2⋯ann][p1ip2i⋯pni]=[a1a2⋮an]Pi=ApiApi=λipi

Thus, each p is an eigenvector of A.

Because n eigenvectors of A are linearly independet, P is invertible.

A=PBP−1 is indeed valid.

6.1 Theorem 3 ​

Let A be an m×n matrix. The orthogonal complement of the row space of A is the null space of A, and the orthogonal complement of the column space of A is the null space of AT : (RowA)⊥=NulA and (ColA)⊥=NulAT

Let A=[a1a2⋮an], and x∈NulA.

By the definition of Null Space,

Ax=0[a1a2⋮an]x=[00⋮0]aix=0

Because ai is the row vector and x is the column vector, aix is the the inner product of the row vector and any vector from Null Space, resulting the linear combinations of row vector are also perpendicular to Null Space.

Thus, RowA=(NulA)⊥, namely (RowA)⊥=NulA.

And we can get (ColA)⊥=NulAT, by transposing both sides.

6.2 Theorem 7 ​

Let U be an m×n matrix with orthonormal columns, and let x and y be in Rn. Then

a. ‖Ux‖=‖x‖ ​

‖Ux‖=Ux⋅Ux=(Ux)TUx=xTUTUx=xT(UTU)x=xTIx=xTx‖x‖=x⋅x=xTx

b. (Ux)⋅(Uy)=x⋅y ​

(Ux)⋅(Uy)=(Ux)T(Uy)=xTUTUy=xT(UTU)y=xTIy=xTyx⋅y=xTy

c. (Ux)⋅(Uy)=0⟺x⋅y=0 ​

This is just a special case of b.

6.3 Theorem 8 ​

The Orthogonal Decomposition Theorem: Let W be a subspace of Rn. Then each y in Rn can be written uniquely in the form y=y^+z (1) where y^ is in W and z is in W⊥. In fact, if {u1,…,up} is any orthogonal basis of W , then y^=y⋅u1u1⋅u1u1+…+y⋅upup⋅upup (2) and z=y−y^.

The textbook provides the proof. Therefore, we only show how to derive formula (2) here.

(y−y^)⋅y^=0y⋅y^−y^⋅y^=0y⋅y^=y^⋅y^

Let y^=c1u1+⋯+cpup.

Namely,

y^=[u1u2⋯up][c1c2⋮cp]y⋅y^=yTy^=yT[u1u2⋯up][c1c2⋮cp]y^⋅y^=(c1u1+⋯+cpup)⋅(c1u1+⋯+cpup)=(c1)2u1⋅u1+⋯+(cp)2up⋅up=[c1(u1⋅u1)⋯cp(up⋅up)][c1c2⋮cp]

Apply y⋅y^=y^⋅y^:

yT[u1u2⋯up][c1c2⋮cp]=[c1(u1⋅u1)⋯cp(up⋅up)][c1c2⋮cp]yT[u1u2⋯up]=[c1(u1⋅u1)⋯cp(up⋅up)]

By the definition of matrix multiplication,

ci(ui⋅ui)=yTui=y⋅uici=y⋅uiui⋅ui

i ranges from 1 to p.

6.5 Theorem 15 ​

Given an m×n matrix A with linearly independent columns, let A=QR be a QR factorization of A as in Theorem 12. Then, for each b in Rm, the equation Ax=b has a unique least-squares solution, given by x^=R−1QTb^

The textbook provides the proof. We only show how to derive formula (6) here.

Ax^=b^(QR)x^=b^(QR)−1(QR)x^=(QR)−1b^Ix^=R−1Q−1b^x^=R−1QTb^

Because Q has orthonormal columns,

QTQ=I=Q−1QQT=Q−1