ECON 186 Class Notes: Linear Algebra

Similar documents
MATRICES AND MATRIX OPERATIONS

Algebra & Trig. I. For example, the system. x y 2 z. may be represented by the augmented matrix

Evaluating Determinants by Row Reduction

1 Determinants. 1.1 Determinant

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Chapter 2:Determinants. Section 2.1: Determinants by cofactor expansion

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

Chapter 3. Determinants and Eigenvalues

Graduate Mathematical Economics Lecture 1

Undergraduate Mathematical Economics Lecture 1

3 Matrix Algebra. 3.1 Operations on matrices

Matrices. In this chapter: matrices, determinants. inverse matrix

Linear Systems and Matrices

Matrix Algebra. Matrix Algebra. Chapter 8 - S&B

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

1111: Linear Algebra I

Section 5.3 Systems of Linear Equations: Determinants

POLI270 - Linear Algebra

Determinants. Recall that the 2 2 matrix a b c d. is invertible if

Properties of the Determinant Function

Chapter 2. Square matrices

Elementary maths for GMT

Introduction to Determinants

MTH501- Linear Algebra MCQS MIDTERM EXAMINATION ~ LIBRIANSMINE ~

Math Camp Notes: Linear Algebra I

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

Determinants Chapter 3 of Lay

7.6 The Inverse of a Square Matrix

Linear Algebra and Vector Analysis MATH 1120

Math Linear Algebra Final Exam Review Sheet

Fundamentals of Engineering Analysis (650163)

Chapter 4. Determinants

c c c c c c c c c c a 3x3 matrix C= has a determinant determined by

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

Chapter 7. Linear Algebra: Matrices, Vectors,

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form:

Homework Set #8 Solutions

Applied Matrix Algebra Lecture Notes Section 2.2. Gerald Höhn Department of Mathematics, Kansas State University

Methods for Solving Linear Systems Part 2

Linear Algebra (part 1) : Matrices and Systems of Linear Equations (by Evan Dummit, 2016, v. 2.02)

Lecture Notes in Linear Algebra

Math 240 Calculus III

ANSWERS. E k E 2 E 1 A = B

Chapter 9: Systems of Equations and Inequalities

4. Determinants.

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Determinants. Samy Tindel. Purdue University. Differential equations and linear algebra - MA 262

Name: MATH 3195 :: Fall 2011 :: Exam 2. No document, no calculator, 1h00. Explanations and justifications are expected for full credit.

1 Matrices and Systems of Linear Equations

Section 2.2: The Inverse of a Matrix

Math Bootcamp An p-dimensional vector is p numbers put together. Written as. x 1 x =. x p

Review of Vectors and Matrices

MATRICES The numbers or letters in any given matrix are called its entries or elements

ECON2285: Mathematical Economics

ANSWERS. Answer: Perform combo(3,2,-1) on I then combo(1,3,-4) on the result. The elimination matrix is

Determinants by Cofactor Expansion (III)

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Linear Algebra: Lecture Notes. Dr Rachel Quinlan School of Mathematics, Statistics and Applied Mathematics NUI Galway

Section 1.1 System of Linear Equations. Dr. Abdulla Eid. College of Science. MATHS 211: Linear Algebra

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Lecture 10: Determinants and Cramer s Rule

Review for Exam Find all a for which the following linear system has no solutions, one solution, and infinitely many solutions.

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Chapter 1. Vectors, Matrices, and Linear Spaces

Matrices and RRE Form

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Lesson 3. Inverse of Matrices by Determinants and Gauss-Jordan Method

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Introduction to Matrices

Matrix & Linear Algebra

1 Matrices and Systems of Linear Equations. a 1n a 2n

Lectures on Linear Algebra for IT

Matrix operations Linear Algebra with Computer Science Application

Matrices and Determinants

UNIT 1 DETERMINANTS 1.0 INTRODUCTION 1.1 OBJECTIVES. Structure

1300 Linear Algebra and Vector Geometry

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

MAC Learning Objectives. Learning Objectives (Cont.) Module 10 System of Equations and Inequalities II

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

LINEAR ALGEBRA REVIEW

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

= 1 and 2 1. T =, and so det A b d

Lecture Summaries for Linear Algebra M51A

Introduction to Matrices and Linear Systems Ch. 3

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

Inverting Matrices. 1 Properties of Transpose. 2 Matrix Algebra. P. Danziger 3.2, 3.3

Elementary Row Operations on Matrices

MATH10212 Linear Algebra B Homework 7

Math 103, Summer 2006 Determinants July 25, 2006 DETERMINANTS. 1. Some Motivation

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

Linear Equations in Linear Algebra

Components and change of basis

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued)

a11 a A = : a 21 a 22

Review of Linear Algebra

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Matrix Operations: Determinant

APPENDIX: MATHEMATICAL INDUCTION AND OTHER FORMS OF PROOF

Transcription:

ECON 86 Class Notes: Linear Algebra Jijian Fan Jijian Fan ECON 86 / 27

Singularity and Rank As discussed previously, squareness is a necessary condition for a matrix to be nonsingular (have an inverse). The sufficient condition is that the rows and columns must be linearly independent. Formally, a matrix A is nonsingular if and only if it is square and its rows and columns are linearly independent. Example: [ Suppose ][ we] have [ the ] equation system Ax = d taking the 4 x 2 form =. 5 2 6 x 2 Clearly, the first row is just 2 times the second, so the rows are linearly dependent. In effect, this reduces the system to just one equation with an infinite number of solutions. So, in order for a system of equations to have a unique solution, all rows must be linearly independent, therefore the rows of a matrix must be linearly independent to have an inverse. Jijian Fan (UC Santa Cruz) ECON 86 2 / 27

Rank and Row Reduction The rank of a matrix is the maximum number of linearly independent rows (and columns) in a matrix. The rank of an m n matrix can be at most m or n, whichever is smaller. To determine the rank of a matrix (and to solve systems of equations in general), we use elementary row operations to reduce a matrix into row echelon form, where we can easily tell how many rows are linearly independent. The number of linearly independent rows is given by the number of nonzero rows after putting a matrix into row echelon form. Jijian Fan (UC Santa Cruz) ECON 86 3 / 27

Rank and Row Reduction A matrix is in row echelon form if: All nonzero rows are above any rows of all zeroes. The leading coefficient of a nonzero row is always strictly to the right of the leading coefficient of the row above it. All entries in a column below a leading entry are zeroes. Jijian Fan (UC Santa Cruz) ECON 86 4 / 27

Rank and Row Reduction Example of a matrix in row echelon form: a a a 2 a 3 2 a 4 a 5 a 6 The elementary row operations on a matrix are as follows:. Interchange of any two rows in the matrix. 2. Multiplication of a row by any scalar k. 3. Addition of k times any row to another row. Jijian Fan (UC Santa Cruz) ECON 86 5 / 27

Rank and Row Reduction Example : Let [ 3 A = 2 ] 2 [ 3 2 ] 2 [ 3 ] 3 [ ] Interestingly, A reduces to the identity matrix. Since the echelon form has 2 nonzero rows, the rank of the matrix is 2. Is A nonsingular? Jijian Fan (UC Santa Cruz) ECON 86 6 / 27

Rank and Row Reduction A = 3 3 Example 2: Find the rank of the matrix A = 2 3 2 4 2 3 3 2 3 2 4 3 3 3 2 3 2 4 2 4 4 Jijian Fan (UC Santa Cruz) ECON 86 7 / 27

Rank and Row Reduction This matrix in echelon form has 3 nonzero rows, so the rank of the matrix is 3. Is the matrix nonsingular? By definition, for an n n matrix to be nonsingular, it must have n linearly independent rows, and thus have rank n. This means that for a matrix to be nonsingular, the echelon form of the matrix must have no zero rows. Jijian Fan (UC Santa Cruz) ECON 86 8 / 27

Determinants A determinant is a uniquely defined scalar associated with a matrix, which is only defined for square matrices. The determinant of A is denoted as A. [ ] a a Let A = 2. Then, A = a 2 a 22 a a 2 a 2 a 22 = a a 22 a 2 a 2 [ ] 2 Example: Let A =. A = 3 4 2 3 4 = (4) 2(3) = 2. a a 2 a 3 a a 2 a 3 Let A = a 2 a 22 a 23. A = a 2 a 22 a 23 a 3 a 32 a 33 a 3 a 32 a 33 = a a 22 a 23 a 32 a 33 a 2 a 2 a 23 a 3 a 33 + a 3 a 2 a 22 a 3 a 32 = a a 22 a 33 a a 23 a 32 a 2 a 2 a 33 + a 2 a 23 a 3 + a 3 a 2 a 32 a 3 a 22 a 3 a 22 a 23 a 32 a 33 is an example of a subdeterminant, and is the minor of the element a. It is denoted by M. Jijian Fan (UC Santa Cruz) ECON 86 9 / 27

Evaluating an nth-order Determinant In general, the symbol M ij denotes the minor obtained by deleting the ith row and jth column of a determinant. A cofactor, denoted by C ij is a minor with a prescribed algebraic sign attached to it. If the sum of the subscripts i and j in the minor M ij is even, the cofactor takes the same sign as the minor. If it is odd, the cofactor takes the opposite sign. In short, C ij ( ) i+j M ij Jijian Fan (UC Santa Cruz) ECON 86 / 27

Example of 3x3 Determinant Let A = 2 3 4 5 6 7 8 9. 2 3 A = 4 5 6 7 8 9 = 2 5 6 8 9 4 6 7 9 + 3 4 5 7 8 = 2(5)(9) 2(6)(8) (4)(9) + (6)(7) + 3(4)(8) 3(5)(7) = 9 96 36 + 42 + 96 5 = 9 We can see that M = 5 6, M 2 = 4 6, M 3 = 4 5 8 9 7 9 7 8 Since + = 2 and + 3 = 4 are even, M = C and M 3 = C 3. However, since + 2 = 3 is odd, M 2 = C 2, which is why there is a negative sign before the second cofactor.. Jijian Fan (UC Santa Cruz) ECON 86 / 27

3x3 Determinants So, we can write a third-order determinant (determinant of a 3 3) matrix as: A = a M a 2 M 2 + a 3 M 3 = a C + a 2 C 2 + a 3 C 3 = 3 j= a j C j Thus, the determinant of any square matrix B of size n n can be expressed as B = n j= a ij C ij Jijian Fan (UC Santa Cruz) ECON 86 2 / 27

Properties of Determinants The interchanging of rows and columns does not affect the determinant of a matrix. That is, A = A. a b c d = a c b d = ad bc The interchanging of any two rows will alter the sign, but not the numerical value of the determinant c d a b = cb ad = (ad bc) Jijian Fan (UC Santa Cruz) ECON 86 3 / 27

Properties of Determinants The multiplication of any one row by a scalar k will change the value of the determinant by a multiple of k. ka kb c d = kad kbc = k(ad bc) The addition of a multiple of any row to another row will leave the value of the determinant unaltered. a b c + ka d + kb = a(d + kb) b(c + ka) = ad bc = a b c d Jijian Fan (UC Santa Cruz) ECON 86 4 / 27

Value of the Determinant and Nonsingularity If one row is a multiple of another row, the value of the determinant will be zero. Example: 5a a b 2b = ab ab = If we attempt to reduce this matrix to its echelon form, we will obtain a row of all s, therefore the matrix is singular. So, the rank of this matrix is, and the matrix is singular as discussed previously. Jijian Fan (UC Santa Cruz) ECON 86 5 / 27

Value of the Determinant and Nonsingularity Therefore, given a linear equation system Ax = d, where A is an n n coefficient matrix, the following are equivalent: A A has row independence, that is, there are n linearly independent rows (equivalently columns) in A. A is nonsingular. A exists. The rank of A is n. A unique solution x = A d exists. Jijian Fan (UC Santa Cruz) ECON 86 6 / 27

Finding the Inverse of a Matrix Method Let A and B be m n and m p matrices, respectively. Then the augmented matrix (A B) is the m (n + p) matrix. That is, the matrix whose first n columns are the columns of A, and whose last p columns are the columns of B. If A is an invertible (nonsingular) n n matrix, then it is possible to transform the matrix (A I n ) into the matrix (I n A ) with elementary row operations. Jijian Fan (UC Santa Cruz) ECON 86 7 / 27

Example of Finding the Inverse of a Matrix using Elementary Operations 3 5 2 2 3 2 2 2 2 2 2 5 5 Jijian Fan (UC Santa Cruz) ECON 86 8 / 27

Example of Finding the Inverse of a Matrix using Elementary Operations 3 3 2 5 2 5 5 3 5 5 5 5 3 3 5 So the inverse of this matrix is 2 5 5 3 5 5 3 5 5 5 3 5 5 3 5 5 3 Jijian Fan (UC Santa Cruz) ECON 86 9 / 27

Finding the Inverse of a Matrix Method 2 In general, the formula to find the inverse of a matrix is A = A Adj A where Adj represents the adjugate or adjoint of a matrix. This is found by first finding the matrix of cofactors of a matrix and then swapping their positions over the main diagonal (also known as finding the transpose). Jijian Fan (UC Santa Cruz) ECON 86 2 / 27

Example of Finding Inverse using Cofactors Let A = 3 2 2 2. Step : Construct a matrix of minors. () + 2() 2() + 2() 2() () () 2() 3() 2() 3() () = ( 2) (2) 3( 2) 2(2) 3() 2() 2 2 2 2 3 3 Step 2: Construct a matrix of cofactors by simply applying the previously defined rule to the matrix of minors. 2 2 2 2 3 3 Jijian Fan (UC Santa Cruz) ECON 86 2 / 27

Example of Finding Inverse using Cofactors Step 3: Find the adjugate by taking the transpose of the cofactor matrix. 2 2 2 3 2 3 Step 4: Find the determinant of A. Since we already found the matrix of minors, all we have to do is multiply the top row of A by each element s corresponding minor. 3 2 2 2. Step 5: Apply the formula. A = = 3(2) (2) + 2(2) = 2 2 2 3 2 3 = 5 5 3 5 5 3 Jijian Fan (UC Santa Cruz) ECON 86 22 / 27

Formula for the 2x2 case A well [ known] and useful formula to find the inverse of a 2 2 matrix a b A = is c d A = deta [ d b c a ] = ad bc Derivation using row echelon form: [ a b c d ] [ a cb d c d b d [ ad bc d c d ] [ b ad bc d d d [ d ad bc b ] [ ad bc d cd ad ad bc ad bc [ ] d b So the inverse of A is ad bc. c a [ d b ] c a ] b d cd ad ad bc ad bc d ad bc b ad bc c a ad bc ad bc ] ] Jijian Fan (UC Santa Cruz) ECON 86 23 / 27

Cramer s Rule Another sometimes useful way of solving a system of equations is called Cramer s Rule. Suppose we have a system of equations Ax = d, then Cramer s Rule says that xj = A j A where A j is the determinant of A with the jth column replaced by d. Clearly, it must be the case that A, that is, A has an inverse, in order for Cramer s Rule to be applied. Jijian Fan (UC Santa Cruz) ECON 86 24 / 27

Example of Cramer s Rule Suppose we have the system of equations 7x x 2 x 3 = x 2x 2 + x 3 = 8 6x + 3x 2 2x 3 = 7 Jijian Fan (UC Santa Cruz) ECON 86 25 / 27

Example of Cramer s Rule Then, A = A = 7 2 6 3 2 7 2 6 3 2, x = x x 2 x 3, d = 8 7 = 7 2 3 2 + 6 2 2 6 3 = 7(4) 7(3) +( 2) 6 (3) +6( 2) = 28 2 2 6 3 2 = 6 Jijian Fan (UC Santa Cruz) ECON 86 26 / 27

Example of Cramer s Rule A = 8 2 7 3 2 = 2 3 2 + 8 7 2 8 2 7 3 = 6 7 24 4 = 6 7 A 2 = 8 6 7 2 = 7 8 7 2 + 6 2 8 6 7 = 6(7) 7(7) 7 + 8(6) = 83 7 A 3 = 2 8 6 3 7 = 7 2 8 3 7 + 8 6 7 2 6 3 = 4(7) 24(7) + 7 8(6) = 244 x = A A = 6 6 =, x 2 = A 2 A = 83 6 = 3, x 3 = A 3 A = 244 6 = 4 Jijian Fan (UC Santa Cruz) ECON 86 27 / 27