Linear Algebra Review Leila Wehbe January 29, 2013 Leila Wehbe - - PowerPoint PPT Presentation

linear algebra review
SMART_READER_LITE
LIVE PREVIEW

Linear Algebra Review Leila Wehbe January 29, 2013 Leila Wehbe - - PowerPoint PPT Presentation

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices Linear Algebra Review Leila Wehbe January 29, 2013 Leila Wehbe Linear Algebra Review Metrics Vector Spaces Banach Spaces Hilbert Space Matrices Table of contents Metrics


slide-1
SLIDE 1

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Linear Algebra Review

Leila Wehbe January 29, 2013

Leila Wehbe Linear Algebra Review

slide-2
SLIDE 2

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Table of contents

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Leila Wehbe Linear Algebra Review

slide-3
SLIDE 3

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Metric

Given a space X, then d : X × X → R+

0 is a metric is for all x, y

and z in X if:

◮ d(x, y) = 0 is equivalent to x = y ◮ d(x, y) = d(y, x) ◮ d(x, y) ≤ d(x, z) + d(z, y)

Leila Wehbe Linear Algebra Review

slide-4
SLIDE 4

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Example of a metric

Euclidean Distance: Given X = Rn, d(x, y) := (

n

  • i=1

(xi − yi)2)

1 2

◮ d(a, b) = 0 is equivalent to a = b ◮ d(a, b) = d(b, a) ◮ d(a, b) ≤ d(a, c) + d(c, b) (this is the triangle inequality)

Leila Wehbe Linear Algebra Review

slide-5
SLIDE 5

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Vector Space

A vector space is a space X such that for all x, y ∈ X and for all α ∈ R:

◮ x + y ∈ X ◮ αx ∈ X

Leila Wehbe Linear Algebra Review

slide-6
SLIDE 6

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Examples of vector spaces

Real Numbers: given x, y ∈ R, and α ∈ R:

◮ x + y ∈ R ◮ αx ∈ R

Rn : given x, y ∈ Rn, and α ∈ R:

◮ x + y ∈ Rn ◮ αx ∈ Rn

Leila Wehbe Linear Algebra Review

slide-7
SLIDE 7

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Examples of vector spaces

Polynomials: given f (x) =

n

  • i=0

aixi and g(x) =

n

  • i=0

bixi, and α ∈ R:

◮ f (x) + g(x) = n

  • i=0

(ai + bi)xi, i.e. polynomial of order n

◮ αf (x) = n

  • i=0

αai xi, i.e. polynomial of order n

Leila Wehbe Linear Algebra Review

slide-8
SLIDE 8

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Cauchy Series

Given a space X, a Cauchy series is a series xi ∈ X for which for every ǫ > 0 there exist an n0 such that for all m, n ≥ n0, d(xm, xn) ≤ ǫ

Leila Wehbe Linear Algebra Review

slide-9
SLIDE 9

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Completeness

A space X is complete if the limit of every Cauchy series ∈ X. For example, (0, 1) is not complete but [0, 1] is. The set Q of rational numbers is not complete: you can construct a sequence that converges to √ 2 but √ 2 is not in Q.

Leila Wehbe Linear Algebra Review

slide-10
SLIDE 10

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Norm

Given a vector space X, a norm is a mapping ||.|| : X → R+

0 that

satisfies, for all x, y ∈ X and for all α ∈ R:

◮ ||x|| = 0 if and only if x = 0 ◮ ||αx|| = |α|||x|| ◮ ||x + y|| ≤ ||x|| + ||y|| (triangle inequality)

A norm is also a metric: d(x, y) := ||x − y||

Leila Wehbe Linear Algebra Review

slide-11
SLIDE 11

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Banach Space

A Banach Space is a complete vector space X together with a norm ||.||. ℓm

p Spaces: Rm with the norm ||x|| :=

m

  • i=1

|xi|p 1

p

ℓp Spaces: These are subspaces of RN with ||x|| := ∞

  • i=1

|xi|p 1

p

Function Spaces Lp(X): Over X, ||f || :=

  • X |f (x)|pdx

1

p . Leila Wehbe Linear Algebra Review

slide-12
SLIDE 12

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Dot Product

Given a vector space X, a dot product is a mapping . , . : X × X → R that satisfies, for all x, y and z ∈ X and for all α ∈ R:

◮ Symmetry: x, y = y, x ◮ Linearity: x, αy = αx, y ◮ Additivity: x, y + z = x, y + x, z

Leila Wehbe Linear Algebra Review

slide-13
SLIDE 13

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Hilbert Space

A Hilbert Space is a complete vector space X together with a dot product . , .. The dot product automatically generates a norm: ||x|| :=

  • x, x.

Hilbert spaces are special cases of Banach spaces.

Leila Wehbe Linear Algebra Review

slide-14
SLIDE 14

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Examples of Hilbert Spaces

Euclidean spaces and the standard dot product for x, y ∈ Rm: x, y =

m

  • i=1

xiyi Function spaces (L2(X)): functions on X with f : X → C for all f , g ∈ F, with the dot product: f , g =

  • X f (x)g(x)dx

ℓ2 series of real numbers (infinite), ∈ RN: x, y =

  • i=1

xiyi

Leila Wehbe Linear Algebra Review

slide-15
SLIDE 15

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Matrices

A matrix M ∈ Rm×n corresponds to a linear map from Rm to Rn. A symmetric matrix M ∈ Rm×m satisfies Mij = Mji. An anti-symmetric matrix M ∈ Rm×m satisfies Mij = −Mji. Rank: Denote by I the image of Rm under M. rank(M) is the smallest number of vectors that span I.

Leila Wehbe Linear Algebra Review

slide-16
SLIDE 16

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Matrices: orthogonality

A matrix M ∈ Rm×m is orthogonal if MTM = I. This means MT = M−1. An orthogonal matrix consists of mutually orthogonal rows and columns.

Leila Wehbe Linear Algebra Review

slide-17
SLIDE 17

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Matrix Norms

The norm of a linear operator between two Banach spaces X and Y: ||A|| := max

x∈X ||Ax|| ||x|| ◮ ||αA|| = max x∈X ||αAx|| ||x||

= |α|||A||

◮ ||A + B|| = max x∈X ||(A+B)x|| ||x||

≤ max

x∈X ||Ax|| ||x|| + max x∈X ||Bx|| ||x|| =

||A|| + ||B||

◮ ||A|| = 0 implies max x∈X ||Ax|| ||x|| and thus Ax = 0 for all x , i.e.

A = 0.

Leila Wehbe Linear Algebra Review

slide-18
SLIDE 18

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Matrix Norms

Frobenius norm: (in analogy with vector norm) ||M||2

Frob = m

  • i=1

m

  • j=1

M2

ij

Leila Wehbe Linear Algebra Review

slide-19
SLIDE 19

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Eigen Systems

Given M in Rm×m, then λ ∈ R is an eigenvalue and x ∈ Rm is an eigenvector if: Mx = λx

Leila Wehbe Linear Algebra Review

slide-20
SLIDE 20

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Eigen Systems, symmetric matrices

For symmetric matrices all eigenvalues are real and the matrix is fully diagonalizable (i.e. m eigenvectors). All eigenvectors with different eigenvalues are mutually orthogonal: Proof, for two eigenvectors x and x′ with respective eigenvalues λ and λ′: λxTx′ = (Mx)Tx = xT(MTx′) = xT(Mx′) = λ′xTx′ so λ′ = λ or xTx = 0. We can decompose M = OTΛO.

Leila Wehbe Linear Algebra Review

slide-21
SLIDE 21

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Eigen Systems, symmetric matrices

We also have the operator norm: ||M||2 = max

x∈Rm

||Mx||2 ||x||2 = max

x∈Rmand||x||=1 ||Mx||2

= max

x∈Rmand||x||=1 xTMTMx

= max

x∈Rmand||x||=1 xTOΛOTOΛOTx

= max

x∈Rmand||x′||=1 x′TΛ2x′

= max

i∈[m] λ2 i

Leila Wehbe Linear Algebra Review

slide-22
SLIDE 22

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Eigen Systems, symmetric matrices

Frobenius norm: ||M||2

Frob

= tr(MMT) = tr(OΛOTOΛOT) = tr(ΛOTOΛOTO) = tr(Λ2) =

m

  • i=1

λ2

i

Leila Wehbe Linear Algebra Review

slide-23
SLIDE 23

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Matrices: Invariants

Trace: tr(M) =

m

  • i=1

Mii. tr(AB) = tr(BA). For symmetric matrices: tr(M) = tr(OTΛO) = tr(ΛOOT) = tr(Λ) =

m

  • i=1

λi Determinant: det(M) =

m

  • i=1

λi

Leila Wehbe Linear Algebra Review

slide-24
SLIDE 24

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Positive Matrices

A Positive Definite Matrix is a matrix M ∈ Rm×m for which for all x ∈ Rm: xTMx > 0 if x = 0 This matrix has only positive eigenvalues: xTMx = λxTx = λ||x|| > 0 Induced norm: ||x||2

M = xTMx

Leila Wehbe Linear Algebra Review

slide-25
SLIDE 25

Metrics Vector Spaces Banach Spaces Hilbert Space Matrices

Singular Value Decomposition

Want to find similar thing for arbitrary matrix M ∈ Rm×n where m ≥ n: M = UΛO U ∈ Rm×n, UTU = I O ∈ Rn×n, OTO = I Λ = diag(λ1, λ2, ...λn)

Leila Wehbe Linear Algebra Review