linear algebra review powers of a diagonalizable matrix
play

Linear Algebra review Powers of a diagonalizable matrix Spectral - PowerPoint PPT Presentation

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Prof. Tesler Math 283 Fall 2018 Also see the separate version of this with Matlab and R commands. Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 1 /


  1. Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition Prof. Tesler Math 283 Fall 2018 Also see the separate version of this with Matlab and R commands. Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 1 / 35

  2. Matrices A matrix is a square or rectangular table of numbers. An m × n matrix has m rows and n columns. This is read “ m by n ”. This matrix is 2 × 3 : � 1 � 2 3 A = 4 5 6 The entry in row i , column j , is denoted A i , j or A ij . A 1 , 1 = 1 A 1 , 2 = 2 A 1 , 3 = 3 A 2 , 1 = 4 A 2 , 2 = 5 A 2 , 3 = 6 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 2 / 35

  3. Matrix multiplication = A B C   − 2 5 3 2 � 1 � � · � 2 3 · · · − 1 = 0 1 1   4 5 6 · · · · − 1 6 4 3 � ��������� �� ��������� � � ���������� �� ���������� � � ��������������������� �� ��������������������� � 2 × 3 2 × 4 3 × 4 Let A be p × q and B be q × r . The product AB = C is a certain p × r matrix of dot products: q � A i , k B k , j = dot product ( i th row of A ) · ( j th column of B ) C i , j = k = 1 The number of columns in A must equal the number of rows in B (namely q ) in order to be able to compute the dot products. Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 3 / 35

  4. Matrix multiplication �   − 2 5 3 2 � 1 � � 2 3 2 · · ·  = − 1 0 1 1  4 5 6 · · · · − 1 6 4 3 C 1 , 1 = 1 ( 5 ) + 2 ( 0 ) + 3 (− 1 ) = 5 + 0 − 3 = 2 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 4 / 35

  5. Matrix multiplication �   − 2 5 3 2 � 1 � � 2 3 2 18 · ·  = − 1 0 1 1  4 5 6 · · · · − 1 6 4 3 C 1 , 2 = 1 (− 2 ) + 2 ( 1 ) + 3 ( 6 ) = − 2 + 2 + 18 = 18 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 5 / 35

  6. Matrix multiplication �   − 2 5 3 2 � 1 � � 2 3 2 18 17 ·  = − 1 0 1 1  4 5 6 · · · · − 1 6 4 3 C 1 , 3 = 1 ( 3 ) + 2 ( 1 ) + 3 ( 4 ) = 3 + 2 + 12 = 17 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 6 / 35

  7. Matrix multiplication �   − 2 5 3 2 � 1 � � 2 3 2 18 17 9  = − 1 0 1 1  4 5 6 · · · · − 1 6 4 3 C 1 , 4 = 1 ( 2 ) + 2 (− 1 ) + 3 ( 3 ) = 2 − 2 + 9 = 9 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 7 / 35

  8. Matrix multiplication �   − 2 5 3 2 � 1 � � 2 3 2 18 17 9  = − 1 0 1 1  4 5 6 14 · · · − 1 6 4 3 C 2 , 1 = 4 ( 5 ) + 5 ( 0 ) + 6 (− 1 ) = 20 + 0 − 6 = 14 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 8 / 35

  9. Matrix multiplication �   − 2 5 3 2 � 1 � � 2 3 2 18 17 9  = − 1 0 1 1  4 5 6 14 33 · · − 1 6 4 3 C 2 , 2 = 4 (− 2 ) + 5 ( 1 ) + 6 ( 6 ) = − 8 + 5 + 36 = 33 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 9 / 35

  10. Matrix multiplication �   − 2 5 3 2 � 1 � � 2 3 2 18 17 9  = − 1 0 1 1  4 5 6 14 33 41 · − 1 6 4 3 C 2 , 3 = 4 ( 3 ) + 5 ( 1 ) + 6 ( 4 ) = 12 + 5 + 24 = 41 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 10 / 35

  11. Matrix multiplication � 2 �   − 2 5 3 2 � 1 � 2 3 18 17 9  = − 1 0 1 1  4 5 6 14 33 41 21 − 1 6 4 3 C 2 , 4 = 4 ( 2 ) + 5 (− 1 ) + 6 ( 3 ) = 8 − 5 + 18 = 21 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 11 / 35

  12. Transpose of a matrix Given matrix A of dimensions p × q , the transpose A ′ is q × p , obtained by interchanging rows and columns: ( A ′ ) ij = A ji .   1 4 � ′ � 1 2 3 = 2 5   4 5 6 3 6 Transpose of a product reverses the order and transposes the factors: ( AB ) ′ = B ′ A ′ � 2 �   − 2 5 3 2 � 1 � 2 3 18 17 9  = − 1 0 1 1  4 5 6 14 33 41 21 − 1 6 4 3     5 0 1 2 14   1 4 − 2 1 6 18 33  =     2 5      3 1 4 17 41     3 6 − 1 2 3 9 21 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 12 / 35

  13. Matrix multiplication is not commutative: usually, AB � BA For both AB and BA to be defined, need compatible dimensions: A : m × n , B : n × m giving AB : m × m , BA : n × n The only chance for them to be equal would be if A and B are both square and of the same size, n × n . Even then, they are usually not equal: � 1 � � 3 � � 3 � 2 0 0 = 0 0 0 0 0 0 � 3 � � 1 � � 3 � 0 2 6 = 0 0 0 0 0 0 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 13 / 35

  14. Multiplying several matricies Multiplication is associative: ( AB ) C = A ( BC ) Suppose A is p 1 × p 2 B is p 2 × p 3 C is p 3 × p 4 D is p 4 × p 5 Then ABCD is p 1 × p 5 . By associativity, it may be computed in many ways, such as A ( B ( CD )) , ( AB )( CD ) , . . . or directly by: p 2 p 3 p 4 � � � ( ABCD ) i , j = A i , k 2 B k 2 , k 3 C k 3 , k 4 D k 4 , j k 2 = 1 k 3 = 1 k 4 = 1 This generalizes to any number of matrices. Powers A 2 = AA , A 3 = AAA , . . . are defined for square matrices. Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 14 / 35

  15. Identity matrix The n × n identity matrix I is   � 1 0 0 if i = j (main diagonal); 1 I = I i , j = 0 1 0   if i � j (elsewhere). 0 0 0 1 For any n × n matrix A , IA = AI = A . This plays the same role as 1 does in multiplication of numbers: 1 · x = x · 1 = x . Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 15 / 35

  16. Inverse matrix The inverse of an n × n matrix A is an n × n matrix A − 1 such that A A − 1 = I and A − 1 A = I . It may or may not exist. This plays the role of reciprocals of ordinary numbers, x − 1 = 1 / x . For 2 × 2 matrices � d � a � � 1 − b b A − 1 = A = − c c d ad − bc a unless det ( A ) = ad − bc = 0 , in which case A − 1 is undefined. For n × n matrices, use the row reduction algorithm (a.k.a. Gaussian elimination ) in Linear Algebra. If A , B are invertible and the same size: ( AB ) − 1 = B − 1 A − 1 The order is reversed and the factors are inverted. Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 16 / 35

  17. Span, basis, and linear (in)dependence The span of vectors � v 1 , . . . , � v k is the set of all linear combinations α 1 � v 1 + · · · + α k � α 1 , . . . , α k ∈ R v k Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 17 / 35

  18. Span, basis, and linear (in)dependence Example 1 In 3D,           1 0 x      ,  : x , z ∈ R  =  = xz plane span 0 0 0       0 1 z Here, the span of these two vectors is a 2-dimensional space. Every vector in it is generated by a unique linear combination. Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 18 / 35

  19. Span, basis, and linear (in)dependence Example 2 In 3D,             1 1 0 x      ,  ,  : x , y , z ∈ R  = R 3 .  = span 0 1 0 y        − 1 / 2 0 0 z Note that         x 1 1 0  = ( x − y )  + y  − 2 z y 0 1 0      − 1 / 2 z 0 0 Here, the span of these three vectors is a 3-dimensional space. Every vector in R 3 is generated by a unique linear combination. Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 19 / 35

  20. Span, basis, and linear (in)dependence Example 3 In 3D,             1 1 0 x      ,  ,  : x , z ∈ R  =  = xz plane span 0 0 0 0        0 1 1 z This is a plane (2D), even though it’s a span of three vectors. v 3 = � Note that � v 2 = � v 1 + � v 3 , or � v 1 − � v 2 + � 0 . There are multiple ways to generate each vector in the span: for all x , z , t ,             x 1 0 1 1 0  = x  + z  + t ( �  − t  + ( z + t ) v 1 − � v 2 + � v 3 ) = ( x + t ) 0 0 0 0 0 0        � ����������� �� ����������� � 0 1 0 1 1 z = � 0 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 20 / 35

  21. Span, basis, and linear (in)dependence Given vectors � v 1 , . . . , � v k , if there is a linear combination v k = � v 1 + · · · + α k � α 1 � 0 with at least one α i � 0 , the vectors are linearly dependent (Ex. 3). Otherwise they are linearly independent (Ex. 1–2). Linearly independent vectors form a basis of the space S they span. Any vector in S is a unique linear combination of basis vectors (vs. it’s not unique if � v 1 , . . . , � v k are linearly dependent). � 1 � � 0 � � 0 � One basis of R n is a unit vector on each axis: , , 0 1 0 0 0 1 � 1 � � 1 � � � 0 but there are other possibilities, e.g., Example 2: , , 0 1 0 − 1 / 2 0 0 Prof. Tesler Diagonalizing a matrix Math 283 / Fall 2018 21 / 35

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend