Docsity

Inner Product and Diagonalization of Matrices, Study notes of Linear Algebra

Partial preview of the text

Download Inner Product and Diagonalization of Matrices and more Study notes Linear Algebra in PDF only on Docsity!

Matrix Analysis and Algorithms

Andrew Stuart Jochen Voss

4th August 2009

Introduction

The three basic problems we will address in this book are as follows. In all cases we are given as data a matrix A ∈ Cm×n, with m ≥ n and, for the rst two problems, the vector b ∈ Cm. (SLE) denotes simultaneous linear equations, (LSQ) denotes least squares and (EVP) denotes eigenvalue problem.

(SLE) (m = n) nd x ∈ Cn:

Ax = b

(LSQ) (m ≥ n) nd x ∈ Cn:

min x∈Cn^ ‖Ax − b‖^22

(EVP) (m = n) nd (x, λ) ∈ Cn^ × C:

Ax = λx, ‖x‖^22 = 1 The book contains an introduction to matrix analysis, and to the basic algorithms of numer- ical linear algebra. Further results can be found in many text books. The book of Horn and Johnson [HJ85] is an excellent reference for theoretical results about matrix analysis; see also [Bha97]. The subject of linear algebra, and matrix analysis in particular, is treated in an original and illuminating fashion in [Lax97]. For a general introduction to the subject of numerical linear algebra we recommend the book by Trefethen and Bau [TB97]; more theoretical treatments of the subject can be found in Demmel [Dem97], Golub and Van Loan [GL96] and in Stoer and Bulirsch [SB02]. Higham's book [Hig02] contains a wealth of information about stability and the eect of rounding errors in numerical algorithms; it is this source that we used for almost all theorems we state concerning backward error analysis. The book of Saad [Saa97] covers the subject of iterative methods for linear systems. The symmetric eigenvalue problem is analysed in Parlett [Par80].

Acknowledgement

We are grateful to Menelaos Karavelas, Ian Mitchell and Stuart Price for assistance in the type- setting of this material. We are grateful to a variety of students at Stanford University (CS237A) and at Warwick University (MA398) for many helpful comments which have signicantly im- proved the notes.

  • 1 Vector and Matrix Analysis
    • 1.1 Vector Norms and Inner Products
    • 1.2 Eigenvalues and Eigenvectors
    • 1.3 Dual Spaces
    • 1.4 Matrix Norms
    • 1.5 Structured Matrices
  • 2 Matrix Factorisations
    • 2.1 Diagonalisation
    • 2.2 Jordan Canonical Form
    • 2.3 Singular Value Decomposition
    • 2.4 QR Factorisation
    • 2.5 LU Factorisation
    • 2.6 Cholesky Factorisation
  • 3 Stability and Conditioning
    • 3.1 Conditioning of SLE
    • 3.2 Conditioning of LSQ
    • 3.3 Conditioning of EVP
    • 3.4 Stability of Algorithms
  • 4 Complexity of Algorithms
    • 4.1 Computational Cost
    • 4.2 Matrix-Matrix Multiplication
    • 4.3 Fast Fourier Transform
    • 4.4 Bidiagonal and Hessenberg Forms
  • 5 Systems of Linear Equations
    • 5.1 Gaussian Elimination
    • 5.2 Gaussian Elimination with Partial Pivoting
    • 5.3 The QR Factorisation
  • 6 Iterative Methods
    • 6.1 Linear Methods
    • 6.2 The Jacobi Method
    • 6.3 The Gauss-Seidel and SOR Methods
    • 6.4 Nonlinear Methods
    • 6.5 The Steepest Descent Method
    • 6.6 The Conjugate Gradient Method
  • 7 Least Squares Problems
    • 7.1 LSQ via Normal Equations
    • 7.2 LSQ via QR factorisation
    • 7.3 LSQ via SVD
  • 8 Eigenvalue Problems
    • 8.1 The Power Method
    • 8.2 Inverse Iteration
    • 8.3 Rayleigh Quotient Iteration
    • 8.4 Simultaneous Iteration
    • 8.5 The QR Algorithm for Eigenvalues
    • 8.6 Divide and Conquer for Symmetric Problems

Chapter 1

Vector and Matrix Analysis

The purpose of this chapter is to summarise the fundamental theoretical results from linear algebra to which we will frequently refer, and to provide some basic theoretical tools which we will use in our analysis. We study vector and matrix norms, inner-products, the eigenvalue problem, orthogonal projections and a variety of special matrices which arise frequently in computational linear algebra.

1.1 Vector Norms and Inner Products

Denition 1.1. A vector norm on Cn^ is a mapping ‖ · ‖ : Cn^ → R satisfying

a) ‖x‖ ≥ 0 for all x ∈ Cn^ and ‖x‖ = 0 i x = 0,

b) ‖αx‖ = |α|‖x‖ for all α ∈ C, x ∈ Cn, and

c) ‖x + y‖ ≤ ‖x‖ + ‖y‖ for all x, y ∈ Cn.

Remark. The denition of a norm on Rn^ is identical, but with Cn^ replaced by Rn^ and C replaced by R.

Examples.

  • the p-norm for 1 ≤ p < ∞:

‖x‖p =

( (^) ∑n

j=

|xj |p

) 1 /p ∀x ∈ Cn;

  • for p = 2 we get the Euclidean norm:

‖x‖ 2 =

∑^ n

j=

|xj |^2 ∀x ∈ Cn;

  • for p = 1 we get

‖x‖ 1 =

∑^ n

j=

|xj | ∀x ∈ Cn;

  • Innity norm: ‖x‖∞ = max 1 ≤j≤n |xj |.

Theorem 1.2. All norms on Cn^ are equivalent: for each pair of norms ‖ · ‖a and ‖ · ‖b on Cn there are constants 0 < c 1 ≤ c 2 < ∞ with

c 1 ‖x‖a ≤ ‖x‖b ≤ c 2 ‖x‖a ∀x ∈ Cn.

Lemma 1.6. Let 〈 · , · 〉 : Cn^ × Cn^ → C be an inner product. Then ‖ · ‖ : Cn^ → R dened by

‖x‖ =

〈x, x〉 ∀x ∈ Cn

is a vector norm.

Proof. a) Since 〈 · , · 〉 is an inner product we have 〈x, x〉 ≥ 0 for all x ∈ Cn, i.e.

〈x, x〉 is real and positive. Also we get

‖x‖ = 0 ⇐⇒ 〈x, x〉 = 0 ⇐⇒ x = 0.

b) We have ‖αx‖ =

〈αx, αx〉 =

αα〈x, x〉 = |α| · ‖x‖. c) Using the Cauchy-Schwarz inequality ∣ ∣〈x, y〉

∣ (^) ≤ ‖x‖‖y‖ ∀x, y ∈ Cn

from Lemma 1.5 we get

‖x + y‖^2 = 〈x + y, x + y〉 = 〈x, x〉 + 〈x, y〉 + 〈y, x〉 + 〈y, y〉 ≤ ‖x‖^2 + 2

∣〈x, y〉

∣ (^) + ‖y‖^2

≤ ‖x‖^2 + 2‖x‖‖y‖ + ‖y‖^2

‖x‖ + ‖y‖

∀x, y ∈ Cn.

This completes the proof.

Remark. The angle between two vectors x and y is the unique value ϕ ∈ [0, π] with

cos(ϕ)‖x‖‖y‖ = 〈x, y〉.

When considering the Euclidean norm and inner product on Rn, this denition of angle coincides with the usual, geometric meaning of angles. In any case, two vectors are orthogonal, if and only if they have angle π/ 2.

We write matrices A ∈ Cm×n^ as

A =

a 11 a 12... a 1 n a 21 a 22... a 2 n .. .

am 1 am 2... amn

we write (A)ij = aij for the ijth^ entry of A.

Denition 1.7. Given A ∈ Cm×n^ we dene the adjoint A∗^ ∈ Cn×m^ by

A∗

ij =^ aji.^ (For A ∈ Rm×n^ we write AT^ instead of A∗.)

By identifying the space Cn^ of vectors with the space Cn×^1 of n × 1 -matrices, we can take the adjoint of a vector. Then we can write the standard inner product as

〈x, y〉 = x∗y.

Thus, the standard inner product satises

〈Ax, y〉 = (Ax)∗y = x∗A∗y = 〈x, A∗y〉

for all x ∈ Cn, y ∈ Cm^ and all A ∈ Cm×n. Unless otherwise specied, we will use 〈 · , · 〉 to denote the standard inner product (1.1) and ‖ · ‖ 2 to denote the corresponding Euclidean norm.

The following families of special matrices will be central in what follows:

Denition 1.8. 1. Q ∈ Cm×n^ is unitary if Q∗Q = I. (If Q is real then QT^ Q = I and we say Q is orthogonal.)

  1. A ∈ Cn×n^ is Hermitian if A∗^ = A. (If A is real, we say A is symmetric.)
  2. A Hermitian matrix A ∈ Cn×n^ is positive-denite (resp. positive semi-denite) if x∗Ax = 〈Ax, x〉 > 0 (resp. ≥ 0 ) for all x ∈ Cn^ \ { 0 }. In this text, whenever we use the terminology positive-denite or positive semi-denite we are necessarily refering to Hermitian matrices.

Remarks. Unitary matrices have the following properties:

  • A matrix Q is unitary, if and only if the columns of Q are orthonormal with respect to the standard inner-product. In particular unitary matrices cannot have more columns than rows.
  • If Q is a square matrix, Q−^1 = Q∗^ and thus QQ∗^ = I.
  • A square matrix Q is unitary, if and only if Q∗^ is unitary.

The standard inner product and norm are invariant under multiplication by a unitary matrix:

Theorem 1.9. Let 〈 · , · 〉 denote the standard inner product. Then for any unitary Q ∈ Cm×n and any x, y ∈ Cn^ we have 〈Qx, Qy〉 = 〈x, y〉 and ‖Qx‖ 2 = ‖x‖ 2.

Proof. The rst claim follows from 〈Qx, Qy〉 = 〈x, Q∗Qy〉 = 〈x, y〉 and using the relation ‖x‖^2 = 〈x, x〉 gives the second claim.

Other inner products with appropriate properties can give rise to other norms; for example, for matrices A which are Hermitian and positive-denite,

〈x, y〉A = 〈x, Ay〉 (1.4)

is an inner product and ‖x‖A =

〈x, x〉A. (1.5)

denes a norm (see Exercise 1-2).

1.2 Eigenvalues and Eigenvectors

Denition 1.10. Given a matrix A ∈ Cn×n, a vector x ∈ Cn^ is an eigenvector and λ ∈ C is an eigenvalue (also called a right eigenvalue) of A if

Ax = λx and x 6 = 0. (1.6)

When x is an eigenvector of A, then for every α 6 = 0 the vector αx is an eigenvector for the same eigenvalue, since both sides of (1.6) are linear in x. Sometimes it is convenient to normalise x by choosing ‖x‖ 2 = 1. Then the eigenvalue problem is to nd (x, λ) ∈ Cn^ × C satisfying

Ax = λx and ‖x‖ 2 = 1.

Denition 1.11. Given a matrix A ∈ Cn×n^ we dene the characteristic polynomial of A as

ρA(z) := det(A − zI).

Theorem 1.12. A value λ ∈ C is an eigenvalue of the matrix A, if and only if ρA(λ) = 0.

Proof. λ is an eigenvalue of A, if and only if there is an x 6 = 0 with (A − λI)x = 0. This is equivalent to the condition that A − λI is singular which in turn is equivalent to det(A − λI) =

where Ω = diag{(λ 1 − μ)^2 , (λ 2 − μ)^2 ,... , (λn − μ)^2 }. Without loss of generality let μ = λ 1 , noting that λj 6 = μ by simplicity. ker(Ω) is one dimensional, spanned by e 1. Hence ker(A − μI)^2 is one dimensional by Theorem 1. The general case can be established by use of the Jordan form (see Theorem 2.7), using the fact that the Jordan block corresponding to a simple eigenvalue is diagonal.

Theorem 1.18 (Eigenvalue Multiplicities). For any eigenvalue of A ∈ Rn×n^ the algebraic and geometric multiplicities q and r respectively satisfy

1 ≤ r ≤ q.

Proof. Let μ be the eigenvalue. Since (A − μI) is non-invertible, its null-space U has dimension r ≥ 1. Let Vˆ ∈ Cn×r^ have r columns comprising an orthonormal basis for U; then extend Vˆ to V ∈ Cn×n^ by adding orthonormal columns so that V is unitary. Now

B = V ∗AV =

μI C 0 D

where I is the r × r identity, C is r × (n − r) and D is (n − r) × (n − r), and B and A are similar. Then

det(B − zI) = det(μI − zI) det(D − zI) = (μ − z)r^ det(D − zI).

Thus B has algebraic multiplicity ≥ r for B and hence A has algebraic multiplicity ≥ r, by Theorem 1.16.

Denition 1.19. The spectral radius of a matrix A ∈ Cn×n^ is dened by

ρ(A) = max

|λ|

∣ (^) λ is eigenvalue of A

By considering the eigenvectors of a matrix, we can dene an important class of matrices

Denition 1.20. A matrix A ∈ Cn×n^ is normal i it has n orthogonal eigenvectors.

The importance of this concept lies in the fact, that normal matrices can always be diago- nalised: if Q ∈ Cn×n^ is a matrix where the columns form an orthonormal system of eigenvectors and Λ ∈ Cn×n^ is the diagonal matrix with the corresponding eigenvalues on the diagonal, then we have A = QΛQ∗.

Using this relation, we see that every normal matrix satises A∗A = QΛ∗ΛQ∗^ = QΛΛ∗Q∗^ = AA∗. In Theorem 2.3 we will see that the condition A∗A = AA∗^ is actually equivalent to A being normal in the sense of the denition above. Sometimes this alternative condition is used to dene when a matrix is normal. As a consequence of this equivalence, every Hermitian matrix is also normal. Let now A be Hermitian and positive denite. Then Ax = λx implies

λ〈x, x〉 = 〈x, λx〉 = 〈x, Ax〉 = 〈Ax, x〉 = 〈λx, x〉 = λ¯〈x, x〉.

Thus, all eigenvalues of A are real and we can arrange them in increasing order λmin = λ 1 ≤ · · · ≤ λn = λmax. The following lemma uses λmin and λmax to estimate the values of the norm ‖ · ‖A from (1.5) by ‖ · ‖.

Lemma 1.21. Let λmin and λmax be the smallest and largest eigenvalues of a Hermitian, positive denite matrix A ∈ Cn×n. Then

λmin‖x‖^2 ≤ ‖x‖^2 A ≤ λmax‖x‖^2 ∀x ∈ Cn.

Proof. Let ϕ 1 ,... , ϕn be an orthonormal system of eigenvectors of A with corresponding eigen- values λmin = λ 1 ≤ · · · ≤ λn = λmax. By writing x as x =

∑n i=1 ξiϕi^ we get

‖x‖^2 =

∑^ n

i=

|ξi|^2

and

‖x‖^2 A =

∑^ n

i=

λiξ^2 i.

This gives the upper bound

‖x‖^2 A ≤

∑^ n

i=

λmaxξ^2 i ≤ λmax‖x‖^2

and similarly we get the lower bound.

1.3 Dual Spaces

Let 〈 · , · 〉 denote the standard inner-product.

Denition 1.22. Given a norm ‖ · ‖ on Cn, the pair (Cn, ‖ · ‖) is a Banach space B. The Banach space B′, the dual of B, is the pair (Cn, ‖ · ‖B′^ ), where

‖x‖B′^ = max ‖y‖=

|〈x, y〉|.

See Exercise 1-5 to deduce that the preceeding denition satises the norm axioms.

Theorem 1.23. The spaces (Cn, ‖ · ‖ 1 ) and (Cn, ‖ · ‖∞) are the duals of one another.

Proof. Firstly, we must show ‖x‖ 1 = max ‖y‖∞=

|〈x, y〉|.

This is clearly true for x = 0 and so we consider only x 6 = 0. Now

|〈x, y〉| ≤ max i |yi|

∑^ n

j=

|xj | = ‖y‖∞‖x‖ 1 ,

and therefore max ‖y‖∞=

|〈x, y〉| ≤ ‖x‖ 1.

We need to show that this upper-bound is achieved. If yj = xj /|xj | (with the convention that this is 0 when xj is 0 ) then ‖y‖∞ = 1 (since x 6 = 0) and

〈x, y〉 =

∑^ n

j=

|xj |^2 /|xj | =

∑^ n

j=

|xj | = ‖x‖ 1.

Hence max‖y‖∞=1 |〈x, y〉| = ‖x‖ 1. Secondly, it remains to show that

‖x‖∞ = max ‖y‖ 1 = |〈x, y〉|.

We have

|〈x, y〉| ≤ ‖y‖ 1 ‖x‖∞ ⇒ max ‖y‖ 1 = |〈x, y〉| ≤ ‖x‖∞.

If x = 0 we have equality; if not then, for some k such that |xk| = ‖x‖∞ > 0 , choose yj = δjkxk/|xk|. Then 〈x, y〉 = |xk| = ‖x‖∞ and ‖y‖ 1 = 1.

Thus max‖y‖ 1 =1 |〈x, y〉| = ‖x‖∞.

Theorem 1.27. The induced norm ‖ · ‖m of a vector norm ‖ · ‖v is a matrix norm with

‖I‖m = 1

and ‖Ax‖v ≤ ‖A‖m‖x‖v

for all A ∈ Cn×n^ and x ∈ Cn.

Proof. a) ‖A‖m ∈ R and ‖A‖m ≥ 0 for all A ∈ Cn×n^ is obvious from the denition. Also from the denition we get

‖A‖m = 0 ⇐⇒

‖Ax‖v ‖x‖v

= 0 ∀x 6 = 0

⇐⇒ ‖Ax‖v = 0 ∀x 6 = 0 ⇐⇒ Ax = 0 ∀x 6 = 0 ⇐⇒ A = 0.

b) For α ∈ C and A ∈ Cn×n^ we get

‖αA‖m = max x 6 =

‖αAx‖v ‖x‖v

= max x 6 =

|α|‖Ax‖v ‖x‖v

= |α|‖A‖m

c) For A, B ∈ Cn×n^ we get

‖A + B‖m = max x 6 =

‖Ax + Bx‖v ‖x‖v

≤ max x 6 =

‖Ax‖v + ‖Bx‖v ‖x‖v

≤ max x 6 =

‖Ax‖v ‖x‖v

  • max x 6 =

‖Bx‖v ‖x‖v

= ‖A‖m + ‖B‖m.

Before we check condition d) from the denition of a matrix norm we verify

‖I‖m = max x 6 =

‖Ix‖v ‖x‖v

= max x 6 =

‖x‖v ‖x‖v

and

‖A‖m = max y 6 =

‖Ay‖v ‖y‖v

‖Ax‖v ‖x‖v

∀x ∈ Cn^ \ { 0 }

which gives ‖Ax‖v ≤ ‖A‖m‖x‖v ∀x ∈ Cn. d) Using this estimate we nd

‖AB‖m = max x 6 =

‖ABx‖v ‖x‖v

≤ max x 6 =

‖A‖m‖Bx‖v ‖x‖v

= ‖A‖m‖B‖m.

Remarks.

  1. Usually one denotes the induced matrix norm with the same symbol as the corresponding vector norm. For the remainder of this text we will follow this convention.
  2. As a consequence of theorem 1.27 we can see that not every matrix norm is an induced norm: If ‖ · ‖m is a matrix norm, then it is easy to check that ‖ · ‖′ m = 2‖ · ‖m is a matrix norm, too. But at most one of these two norms can equal 1 for the identity matrix, and thus the other one cannot be an induced matrix norm.
  1. Recall that ‖ · ‖A := ‖A · ‖ is a vector norm on Cn^ whenever ‖ · ‖ is, provided that A is invertible. The inequality from Theorem 1.27 gives the following upper and lower bounds for the norm ‖ · ‖ in terms of the original norm:

1 ‖A−^1 ‖

‖x‖ ≤ ‖x‖A ≤ ‖A‖‖x‖.

Theorem 1.28. The matrix norm induced by the innity norm is the maximum row sum:

‖A‖∞ = max 1 ≤i≤n

∑n

j=

|aij |.

Proof. For x ∈ Cn^ we get

‖Ax‖∞ = max 1 ≤i≤n |(Ax)i| = max 1 ≤i≤n

∑^ n

j=

aij xj | ≤ max 1 ≤i≤n

∑n

j=

|aij |‖x‖∞

which gives ‖Ax‖∞ ‖x‖∞

≤ max 1 ≤i≤n

∑n

j=

|aij |

for all x ∈ Cn^ and thus ‖A‖∞ ≤ max 1 ≤i≤n

∑n j=1 |aij^ |. For the lower bound choose k ∈ { 1 , 2 ,... , n} such that

max 1 ≤i≤n

∑n

j=

|aij | =

∑^ n

j=

|akj |

and dene x ∈ Cn^ by xj = akj /|akj | for all j = 1,... , n (with the convention that this is 0 when akj is 0 ). Then we have ‖x‖∞ = 1 and

‖A‖∞ ≥

‖Ax‖∞ ‖x‖∞

= max 1 ≤i≤n

∑^ n

j=

aij akj |akj |

∑^ n

j=

akj

akj |akj |

∑^ n

j=

|akj |

= max 1 ≤i≤n

∑n

j=

|aij |.

This is the required result.

Theorem 1.29. Let A ∈ Cn×n. Then ‖A∗‖ 1 = ‖A‖∞ and so

‖A‖ 1 = ‖A∗‖∞ = max 1 ≤j≤n

∑n

i=

|aij |.

This expression is known as the maximum column sum.

This shows

‖Ax‖ 2 ‖x‖ 2

(∑n j=1 |αj^ λj^ |

2 )^1 /^2

(∑n j=1 |αj^ |

2 )^1 /^2

( ∑n j=1 |αj^ | (^2) |λ 1 | 2 ∑n j=1 |αj^ |^2

= |λ 1 | = ρ(A) ∀x ∈ Cn

and consequently ‖A‖ 2 ≤ ρ(A). Using Theorem 1.30 we get

ρ(A)^ ≤ ‖A‖ 2 ≤ ‖A‖2 ≤ ρ(A)

for all ` ∈ N. This completes the proof.

Similar methods to those used in the proof of the previous result yield the following theorem.

Theorem 1.32. For all matrices A ∈ Cm×n

‖A‖^22 = ρ(A∗A).

Proof. See Exercise 1-9.

The matrix 2 -norm has the special property that it is invariant under multplication by a unitary matrix. This is the analog of Theorem 1.9 for vector norms.

Theorem 1.33. For all matrices A ∈ Cm×n^ and unitary matrices U ∈ Cm×m, V ∈ Cn×n

‖U A‖ 2 = ‖A‖ 2 , ‖AV ‖ 2 = ‖A‖ 2.

Proof. The rst result follows from the previous theorem, after noting that (U A)∗(U A) = A∗U ∗U A = A∗A. Because (AV )∗(AV ) = V ∗(A∗A)V and because V ∗(A∗A)V is a similarity transformation of A∗A the second result also follows from the previous theorem.

Let A, B ∈ Cm×n. In the following it will be useful to employ the notation |A| to denote the matrix with entries (|A|)ij = |aij | and the notation |A| ≤ |B| as shorthand for |aij | ≤ |bij | for all i, j.

Lemma 1.34. If two matrices A, B ∈ Cm×n^ satisfy |A| ≤ |B| then ‖A‖∞ ≤ ‖B‖∞ and ‖A‖ 1 ≤ ‖B‖ 1. Furthermore ‖|AB|‖∞ ≤ ‖|A||B|‖∞.

Proof. For the rst two observations, it suces to prove the rst result since ‖A‖ 1 = ‖A∗‖∞ and |A| ≤ |B| implies that |A∗| ≤ |B∗|. The rst result is a direct consequence of the representation of the ∞-norm and 1 -norm from theorems 1.28 and 1.29. To prove the last result note that

(|AB|)ij = |

k

AikBkj |

k

|Aik||Bkj |

= (|A||B|)ij.

The rst result completes the proof.

Lemma 1.35. Let A, B ∈ Cn×n. Then

‖A‖max ≤ ‖A‖∞ ≤ n‖A‖max, ‖AB‖max ≤ ‖A‖∞‖B‖max, ‖AB‖max ≤ ‖A‖max‖B‖ 1.

Proof. Exercise 1-8.

Denition 1.36. The outer product of two vectors a, b ∈ Cn^ is the matrix a ⊗ b ∈ Cn×n^ dened by (a ⊗ b)c = (b∗c)a = 〈b, c〉a ∀c ∈ Cn.

We sometimes write a ⊗ b = ab∗. The ijth^ entry of the outer product is (a ⊗ b)ij = ai¯bj.

Denition 1.37. Let S be a subspace of Cn. Then the orthogonal complement of S is dened by S⊥^ = {x ∈ Cn^ | 〈x, y〉 = 0 ∀y ∈ S}.

The orthogonal projection onto S, P , can be dened as follows: let {yi}ki=1 be an orthonormal basis for S, then

P x =

∑^ k

j=

〈yj , x〉yj =

( (^) ∑k

j=

yj y∗ j

x =

( (^) ∑k

j=

yj ⊗ yj

x.

Theorem 1.38. P is a projection, that is P 2 = P. Furthermore, if P ⊥^ = I − P , then P ⊥^ is the orthogonal projection onto S⊥.

Proof. Extend {yi}ki=1 to a basis for Cn, denoted {yi}ni=1, noting that S⊥^ = span {yk+1,... , yn}. Any x ∈ Cn^ can be written uniquely as

x =

∑^ n

j=

〈yj , x〉yj ,

and so

P x =

∑^ k

j=

〈yj , x〉yj ,

found by truncating to k terms. Clearly truncating again leaves the expression unchanged:

P 2 x =

∑^ k

j=

〈yj , x〉yj = P x, ∀x ∈ Cn.

Now (I − P )x = P ⊥x =

∑n j=k+1〈yj^ , x〉yj^ , proving the second result.

1.5 Structured Matrices

Denition 1.39. A matrix A ∈ Cn×n^ is

diagonal if aij = 0 i 6 = j (strictly) upper-triangular if aij = 0 i > j ( ≥ ) (strictly) lower-triangular if aij = 0 i < j ( ≤ ) upper Hessenberg if aij = 0 i > j + 1 upper bidiagonal if aij = 0 i > j & i < j − 1 tridiagonal if aij = 0 i > j + 1 & i < j − 1

Denition 1.40. A matrix P ∈ Rn×n^ is called a permutation matrix if every row and every column contains n − 1 zeros and 1 one.

Exercise 1-4. Dene an inner product 〈 · , · 〉 on matrices in Rn×n^ such that

‖A‖^2 F = 〈A, A〉.

Exercise 1-5. Prove that the norm ‖ · ‖B′ appearing in Denition 1.22 is indeed a norm.

Exercise 1-6. Prove Theorem 1.24.

Exercise 1-7. Show that ‖A‖max = maxi,j |aij | for all A ∈ Cn×n^ denes a vector norm on the space of n × n-matrices, but not a matrix norm.

Exercise 1-8. Prove Lemma 1.35.

Exercise 1-9. Show that ‖A‖^22 = ρ(AT^ A) for every matrix A ∈ Rn×n^ (this is the real version of Theorem 1.32).

Exercise 1-10. For A ∈ Rn×n^ recall the denition of |A|, namely (|A|)ij = |aij |. Show that

‖|A|‖ = ‖A‖

holds in the Frobenius, innity and 1-norms. Is the result true in the Euclidean norm? Justify your assertion.

Exercise 1-11. Let ‖ · ‖ be an operator norm. Prove that if ‖X‖ < 1 , then

  • I − X is invertible,
  • the series

i=0 X

i (^) converges, and

  • (I − X)−^1 =

i=0 X

i.

Moreover, prove that in the same norm

‖(I − X)−^1 ‖ ≤ (1 − ‖X‖)−^1.

Exercise 1-12. Let K be a matrix in Rn×n^ with non-negative entries and let f, g be two vectors in Rn^ with strictly positive entries which satisfy

(Kf )i/gi < λ, (KT^ g)i/fi < μ ∀i ∈ { 1 ,... , n}.

Prove that ‖K‖^22 ≤ λμ.

Exercise 1-13. Let A ∈ Rk×l, B ∈ Rl×m^ and C ∈ Rm×m. Here k ≥ l. If A and C are orthogonal, that is if CT^ C = I (the identity on Rm) and AT^ A = I (the identity on Rl) then show that ‖ABC‖ 2 = ‖B‖ 2.

Exercise 1-14. Prove that the Frobenius norm of a matrix is unchanged by multplication by unitary matrices. This is an analogue of Theorem 1.33.

Exercise 1-15. Show that for every vector norm ‖ · ‖ on Rn×n^ there is a number λ > 0 such that ‖A‖λ = λ‖A‖ A ∈ Rn×n

denes a matrix norm.

Chapter 2

Matrix Factorisations

In this chapter we present various matrix factorisations. These are of interest in their own right, and also because they form the basis for many useful numerical algorithms. There are two groups of results presented in this chapter. The rst kind of results factorises a matrix A ∈ Cn×n^ as A = S AS˜ −^1

where, typically, A˜ is of a simpler form than the original matrix A. Results of this type are matrix diagonalisations and the Jordan canonical form. These factorisations are useful, because properties of A˜ are often easier to understand than properties of A and often questions about A can be reduced to questions about A˜. For example, since Ax = λx implies A˜(S−^1 x) = λ(S−^1 x), the matrices A and A˜ have the same eigenvalues (but dierent eigenvectors). These factorisations are typically used in proofs. The second group of results, including the QR factorisation and LU factorisation, just splits a matrix A into two, simpler parts: A = BC

where B and C are matrices of a simpler form than A is, for example triangular matrices. These factorisations typically form the basis of numerical algorithms, because they allow to split one complicated problem into two simpler ones. This strategy will be used extensively in the later chapters of this text.

2.1 Diagonalisation

A matrix A ∈ Cn×n^ is diagonalised by nding a unitary matrix Q ∈ Cn×n^ and a diagonal matrix D ∈ Cn×n^ such that A = QDQ∗.

Since this implies AQ = DQ we see, by considering the individual columns of this matrix equation, that the diagonal elements of D are the eigenvalues of A and the (orthonormal) columns of Q are the corresponding eigenvectors. This insight has several consequences: Firstly, a matrix can be diagonalised if and only if it has a complete, orthonormal system of eigenvectors. And, secondly, there can be no direct algoritms to diagonalise a matrix, since the eigenvalues of a matrix in general cannot be found exactly in nite time (see the discussion around Theorem 8.2). Thus, diagonalisation will be mostly useful as a tool in our proofs and not as part of an algorithm. The basic result in this section is the Schur triangularisation of a matrix; diagonalisation will follow from this. The next lemma is key in proving the Schur factorisation.

Lemma 2.1. For all A ∈ Cn×n^ satisfying dim(range(A)) = k ≤ n, there is an orthonormal set {y 1... , yk} ⊆ range(A) with the property that Ayl ∈ span{y 1 ,... , yl} for l = 1,... , k.

Proof. If k = 1, then there is a y 1 ∈ Cn^ with ‖y 1 ‖ 2 = 1 which spans range(A). Clearly Ay 1 ∈ range(A) = span{y 1 }.