linear algebra
play

Linear Algebra Vectors A column vector is a list of numbers stored - PowerPoint PPT Presentation

Linear Algebra Vectors A column vector is a list of numbers stored vertically. The dimen- sion of a column vector is the number of values in the vector. W is a 3-dimensional column vector and V is a 5-dimensional column vector:


  1. Linear Algebra Vectors • A column vector is a list of numbers stored vertically. The dimen- sion of a column vector is the number of values in the vector. W is a 3-dimensional column vector and V is a 5-dimensional column vector:   − 1   3 0       W = − 1 V = 4 .         0 2     − 5 Subscripts are used to denote single elements of the vector. For example, W 2 = − 1, V 4 = 2.

  2. • A row vector is a list of numbers stored horizontally. The dimen- sion of a row vector is the number of values in the vector. U is a 4-dimensional row vector and T is a 2-dimensional row-vector: � � U = 2 − 4 0 0 . � � T = 4 3 . Elements are accessed by subscript: U 3 = 0, T 1 = 4. • The term vector is used to refer to either a row vector or a column vector in situations where it doesn’t matter whether the values are stored in a column or in a row.

  3. • Two vectors with a common dimension can be added or sub- tracted: � � � � � � 2 − 4 0 0 + 0 1 1 − 3 = 2 − 3 1 − 3 . Any vector can be multiplied by a scalar coefficient:     3 6 2 − 1  = − 2  .       0 0 Combining addition and scalar multiplication gives a linear com- bination: � � � � � � 3 4 3 − 2 1 − 1 = 10 11 .

  4. • Geometrically, a vector V can be viewed as a line segment in d -dimensional space with its tail at the origin and its head at the point V . 4 3 2 V 1 0 U -1 -2 -3 -4 -4 -3 -2 -1 0 1 2 3 4 V is the vector (3,2), and U is the vector (-2,-2).

  5. • The scalar product (also called the dot product or inner product) is formed from two vectors V and W having the same dimension. The scalar product is a single number (a “scalar”), and is notated V · W or � V, W � . The definition of the scalar product is � V · W = V i W i . i For example, if V = (3 , 1 , − 1) and W = ( − 1 , 0 , 1), V · W = 3 · − 1 + 1 · 0 + − 1 · 1 = − 4 . If U = (4 , − 1 , 0 , 4) and T = (0 , − 1 , − 1 , 2), U · T = 4 · 0 + − 1 · − 1 + 0 · − 1 + 4 · 2 = 9 .

  6. • If two d -dimensional vectors U and V have inner product 0, � U, V � = 0, then U and V are orthogonal, or perpendicular. Viewing 2-dimensional vectors as points in the plane, � � � � x 1 x 2 V = U = , y 1 y 2 then � V, U � = 0 when V and U are perpendicular in the geometric sense (the angle between them is π/ 2 radians).

  7. 4 3 2 V 1 0 -1 U -2 -3 -4 -4 -3 -2 -1 0 1 2 3 4 V is the vector (3,2), and U is the vector (2,-3).

  8. • A linear combination of d -dimensional vectors V 1 , V 2 , . . . , V m is an expression of the form c 1 V 1 + c 2 V 2 + · · · + c m V m , where c 1 , . . . , c m are scalars called coefficients. For example, if       4 2 − 1 V 1 = − 1 V 2 = 0 V 3 = 1  ,  ,  ,          2 0 − 1 and c 1 = 2, c 2 = − 1, c 3 = 3, then c 1 V 1 + c 2 V 2 + c 3 V 3 is   3 1  .    1

  9. • A set of d -dimensional vectors V 1 , . . . , V m are linearly dependent if there exist scalars c 1 , . . . , c m , not all of which are zero, such that the linear combination c 1 V 1 + · · · + c m V m is zero. For example,       3 0 − 6 1 1 1       V 1 =  , V 2 =  , V 3 =  ,       − 3 − 1 3          2 2 2 are linearly dependent, since if c 1 = − 2, c 2 = 3, and c 3 = − 1, then c 1 V 1 + c 2 V 2 + c 3 V 3 = 0. • A set of d -dimensional vectors V 1 , . . . , V m are linearly independent if they are not linearly dependent. That is, whenever c 1 V 1 + · · · + c m V m = 0, then c 1 = · · · = c m = 0.

  10. For example, suppose       3 5 − 6 0 0 − 2       V 1 =  , V 2 =  , V 3 =  ,       − 3 − 1 3          2 2 2 and c 1 V 1 + c 2 V 2 + c 3 V 3 = 0. The linear combination can be written     3 c 1 + 5 c 2 − 6 c 3 0 − 2 c 3 0      =  .     − 3 c 1 − c 2 + 3 c 3 0       2 c 1 + 2 c 2 + 2 c 3 0 From the second line, c 3 = 0, and from the final line c 2 = − c 1 . From the third line, c 2 = − 3 c 1 , so we conclude c 1 = c 2 = 0, hence V 1 , V 2 , V 3 are linearly independent.

  11. • It is a fact that any set of m > d d -dimensional vectors must be linearly dependent. For example, there can never be a set of 4 linearly independent vectors having dimension 3.

  12. Matrices • A m × n matrix A is a m × n array of numbers, where M ij refers to the value in the i th row and j th column. For example, the following is a 2 × 3 matrix � � 4 3 0 A = , − 1 0 − 2 where A 12 = 3, A 22 = 0, etc.

  13. The following is a 3 × 2 matrix   1 − 2 B = − 1 3  ,    2 0 where B 11 = 1, B 32 = 0, etc.

  14. • Matrices of the same shape can be added and subtracted: � � � � � � 4 3 0 0 − 2 3 4 1 3 + = , − 1 0 − 2 4 4 − 1 3 4 − 3 Any matrix can be multiplied by a scalar: � � � � 4 3 0 12 9 0 3 = , − 1 0 − 2 − 3 0 − 6 We can form linear combinations of matrices: � � � � � � 2 2 − 1 1 2 0 1 − 2 − 2 2 − 3 = . 0 0 4 − 1 2 − 3 3 − 6 17

  15. • A n -dimensional column vector is also a n × 1 matrix. A n - dimensional row vector is also a 1 × n matrix. • The transpose of an m × n matrix A , written A ′ , is an n × m matrix where A ′ ij = A ji . For example,   4 − 1 � ′ � 4 3 0 = 3 0  ,   − 1 0 − 2  0 − 2

  16. A matrix A is symmetric if A = A ′ . For example, � � 4 3 S = 3 5 is symmetric, while � � 4 3 T = 6 5 is not.

  17. • If A is a m × n matrix and V is a n -dimensional column vector, we can form the matrix vector product W = AV , where W i is the dot product of V with row i of A . For example, � � � � � � � � 2 − 1 3 3 · 2 + − 1 · − 1 7 = = . 1 4 − 1 3 · 1 + − 1 · 4 − 1

  18. • The nullspace of M , written Null( M ), is the set of all vectors V such that MV = 0. For example, if � � 2 − 1 4 0 1 2 then   3 V = 2     − 1 is in Null( M ).

  19. The zero vector is always in Null( M ), and if the columns of M are linearly independent, the zero vector is the only vector in Null( M ). But if the columns of M are linearly dependent, there will be infinitely many nonzero vectors in Null( M ). A square ( m × m ) matrix with nullspace containing only the zero vector is nonsingular, otherwise it is singular. Equivalently, a square matrix is nonsingular if and only if its columns are linearly independent.

  20. • If A is a m × n matrix and B is a n × r matrix, we can form the matrix matrix product C = AB , where C is a m × r matrix whose elements are defined as: C ij is the dot product of row i of A with column j of B . For example, �   3 − 1 � � � 2 − 1 1 7 − 3 1 0  = ,   1 0 4 11 − 5  2 − 1 where, for example, 11 = 1 · 3 + 0 · 1 + 4 · 2.

  21. Rectangular matrices can only be multiplied if the number of columns in the first matrix is equal to the number of rows in the second matrix (i.e. AB can be formed only if A is m × n and B is n × r ). For square matrices, the products AB and BA can both be formed. However it is important to note that they are differ- ent: � � � � � � 2 − 1 3 − 1 5 − 2 = , 1 4 1 0 7 − 1 � � � � � � 3 − 1 2 − 1 5 − 7 = . 1 0 1 4 2 − 1

  22. • For any matrix m × n matrix A , the products A ′ A and AA ′ can always be formed. The first product is n × n and the second product is m × m . The product A ′ A is the “column-wise inner product matrix”, since ( A ′ A ) ij is the inner product of the i th column of A with the j th column of A . The product AA ′ is the “row-wise inner product matrix”, since ( AA ′ ) ij is the inner product of the i th row of A with the j th row of A .

  23. For example, if � � 2 − 1 1 A = , 1 0 4 then   5 − 2 6 A ′ A = − 2 1 − 1  ,    6 − 1 17 and � � 6 6 AA ′ = . 6 17

  24. • The identity matrix is a special square ( n × n ) matrix I , where I jj = 1 and I ij = 0 if i � = j . For example, the 4 × 4 identity matrix is   1 0 0 0 0 1 0 0   I =   0 0 1 0     0 0 0 1 The identity matrix acts like “1” for matrix multiplication: AI = A and IA = A (if A is m × n , the first I is the m × m identity matrix, and the second I is the n × n identity matrix).

  25. • If A is a square ( n × n ) matrix with linearly independent columns, then an n × n matrix A − 1 can be constructed such that AA − 1 = A − 1 A = I , where I is the n × n identity. For example, � � � � 3 2 − 1 / 11 2 / 11 A − 1 = A = 7 1 7 / 11 − 3 / 11

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