Linear Algebra
Linear Algebra
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Table of contents
1 2
Overview Vectors and Matrices Denitions Operations Special Matrices Determinant and Inverse Linear Independence System of Linear Equations General Form Matrix Solution Cramers Rule Eigenvalues and eigenvectors Denitions Properties
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Overview
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions
Vector Ordered n-tuple of objects is called a n-dimensional vector y = (y1 , y2 , . . . , yn ) Matrix A rectangular array with m rows and n columns is called a matrix with dimension m n a11 a12 a1n a21 a22 a2n A m n = . . . .. . . . . . . . am1 am2 amn
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Operations
Addition and Subtraction Two matrices can be added or subtracted if and only if they have the same dimension. (Conformability) The additions and subtractions are performed for corresponding elements. Example 1 5 2 4 1 + 1 0 6 2 3 8 7 2 4 5 1 0
Chong It Tan
= =
9 3 5 2 4 6 3 5
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Operations
Scalar multiplication There is no comformability condition. The scalar is used to multiply every element of the matrix. Example 2 3 4 2 5 1 = 12 6 15 3
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Operations
Matrix multiplication Given two matrices Amn and Bpq , if we want to nd the product of AB , the conformability condition is that the column dimension of A must be equal to the row dimension of B , i.e. n = p . Example 3.1 Given A23 = 2 1 6 0 3 4 and B33 8 1 2 = 2 3 0, 0 5 7 but not B33 A23 .
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Operations
Matrix multiplication (cont.) The resulting product is of dimension m q . The operation is performed by multiplying the row elements of A with the column elements of B and summing up. Example 3.2 8 1 2 2 1 6 2 3 0 0 3 4 0 5 7 14 35 46 32 11 28
A23 B33 = =
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Operations
Laws of Matrix Operations Both matrix addition and multiplication are associative. (A + B ) + C = A + (B + C ) (AB )C = A(BC ) Matrix addition is commutative; matrix multiplication is not. A+B =B +A AB = BA Matrix multiplication is distributive. A(B + C ) = AB + AC
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Operations
Transpose The transpose of a matrix is obtained by interchanging its rows and columns, (AT )ij = (A)ji Example 4 1 7 3 2 0 1
T
1 2 = 7 0 3 1
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Operations
Properties of Transpose (AT )T = A (A + B )T = AT + B T (A)T = AT (AB )T = B T AT Example 5 1 3 2 4 2 5 0 8
T
2 5 0 8 1 3 2 4
T
= =
2 29 4 42
= =
2 4 29 42 2 4 29 42
2 0 5 8
1 2 3 4
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Special Matrices
Special Matrices Square Matrix: equal number of rows and columns. Diagonal Matrix: a square matrix where all the non-diagonal elements are 0. 3 0 0 e.g., 0 2 0 0 0 5 Triangular Matrix: a square matrix is called lower (upper) triangular if all the entries above (below) the main diagonal are 0. 4 1 0 1 0 0 e.g., 0 10 2 , 3 0 0 0 0 3 2 6 7
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Special Matrices
Special Matrices (cont.) Identity Matrix: a square matrix and 0s elsewhere. 1 I3 = 0 0 with 1s on the main diagonal 0 0 1 0 0 1 square matrix) with all 0 0 0
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Special Matrices
Special Matrices (cont.) Symmetric Matrix: AT = A.
3 5 7 e.g., 5 1 2 7 2 0
Invertible Matrix: a square matrix having a multiplicative inverse B such that AB = BA = I . We denote the inverse of A as A1 , that is, A1 = B . Singular Matrix: a square matrix that is not invertible. Orthogonal Matrix: a matrix whose inverse equals to its transpose, A1 = AT .
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
M21 = a12 ,
M22 = a11
C11 = a22 , C12 = a21 , C21 = a12 , C22 = a11 a22 a12 a22 a21 , adj A = C T = C= a21 a11 a12 a11 det (A) = A 1 = a11 a12 = a11 |a22 | a12 |a21 | = a11 a22 a12 a21 a21 a22
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
a22 a23 a a , C12 = 21 23 . . . a32 a33 a31 a33 C11 C21 C31 adj A = C T = C12 C22 C32 C13 C23 C33
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
= a11 a22 a33 + a12 a23 a31 + a13 a21 a32 a11 a23 a32 a12 a21 a33 a13 a22 a31
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
7 26 3 26
1 13 1 0 0 1 26 = 0 1 0 1 0 0 1 2
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Linear Independence
Denition A sequence of distinct vectors v1 , v2 , , vn is said to be linearly independent if and only if the only solution set of scalars ci s for c1 v1 + c2 v2 + + cn vn = 0 is c1 = c2 = = cn = 0, i.e. there is only a trivial solution. Equivalent denition: If we cannot express the following v1 = a2 v2 + a3 v3 + + an vn for some scalars a2 , a3 , , an , then the sequence of distinct vectors v1 , v2 , , vn is said to be linearly independent.
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Linear Independence
Alternative Method Form a new matrix by taking distinct vectors v1 , v2 , , vn as the columns and nd its determinant. If the determinant is non-zero, then they are said to be linearly independent. Otherwise they are linearly depedent. Example 8 1 0 0 It is easy to check that 0 , 2 , 0 are linearly 0 0 5 independent.
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Linear Independence
Practice 2 2 0 1 Determine if 3 , 1 , 9 are linearly independent. 8 2 7
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Linear Independence
Practice 2 2 0 1 Determine if 3 , 1 , 9 are linearly independent. 8 2 7 1 0 2 1 9 3 1 +0+2 =0 3 1 9 =1 2 8 7 2 7 2 8
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Linear Independence
Practice 2 2 0 1 Determine if 3 , 1 , 9 are linearly independent. 8 2 7 1 0 2 1 9 3 1 +0+2 =0 3 1 9 =1 2 8 7 2 7 2 8 They are linearly dependent.
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Practice 3 (cont.) 3 5 2 A = 2 6 3 , A 1 = . . . 9 2 4 2 x = 1 7
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
x1 =
, x2 =
, x3 =
x1 = 2, x2 = 1, x3 = 7
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Hence we have 1 = 2, 2 = 5. 1 1 x1 0 For 1 = 2, we have = , so if we let x1 = t , 2 2 x2 0 1 then x2 = t , so v1 = . 1 2 1 x1 0 , so if we let x1 = t , For 1 = 5, we have = 0 2 1 x2 1 . then x2 = 2t , so v2 = 2
Chong It Tan Introduction to Linear Algebra
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Chong It Tan
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Overview Vectors and Matrices System of Linear Equations Eigenvalues and eigenvectors
Denitions Properties
Chong It Tan