ECON 213 Elements of Mathematics for Economists Session

  • Slides: 60
Download presentation
ECON 213 Elements of Mathematics for Economists Session 5: Introduction to Matrix Algebra- Part

ECON 213 Elements of Mathematics for Economists Session 5: Introduction to Matrix Algebra- Part Two Lecturer: Dr. Monica Lambon-Quayefio, Dept. of Economics Contact Information: mplambon-quayefio@ug. edu. gh College of Education School of Continuing and Distance Education 2014/2015 – 2016/2017

Session Overview • This session continues the study of matrix algebra, specifically focusing on

Session Overview • This session continues the study of matrix algebra, specifically focusing on how to find the solution to a system of equations using the inverse and determinants of matrices. In this session we consider the fundamentally important concept of inverse of a square matrix and its main properties in solving systems of linear equations. This session also discusses the application of the Cramer’s rule in solving a system of n linear equations and n unknowns. • Objectives: – – – Understand be able to determine the determinant of 2 X 2 matrix Understand determine the matrix of co-factors of a 3 X 3 matrix Determine the inverse of square matrices Understand the properties of the inverse matrix Understand how the Cramer’s Rule works Apply the Cramer’s rule in solving systems of equations. Slide 2

Session Outline The key topics to be covered in the session are as follows:

Session Outline The key topics to be covered in the session are as follows: • Matrix Inverses • Determinants: 2 x 2 and 3 x 3 matrices • Cramer’s Rule and its Application Slide 3

Reading List • Sydsaeter, K. and P. Hammond, Essential Mathematics for Economic Analysis, 2

Reading List • Sydsaeter, K. and P. Hammond, Essential Mathematics for Economic Analysis, 2 nd Edition, Prentice Hall, 2006 - Chapter 16 • Dowling, E. T. , “Introduction to Mathematical Economics”, 3 rd. Edition, Shaum’s Outline Series, Mc. Graw-Hill Inc. , 2001. Chapter 11 • Chiang, A. C. , “Fundamental Methods of Mathematical Economics”, Mc. Graw Hill Book Co. , New York, 1984. - Chapter 5 Slide 4

Topic One MATRIX INVERSE Slide 5

Topic One MATRIX INVERSE Slide 5

Inverse: Multiplicative Identity • The multiplicative identity for real numbers is 1. The property

Inverse: Multiplicative Identity • The multiplicative identity for real numbers is 1. The property is written as: ax 1=1 xa=a • In terms of matrices, we need a matrix that can be multiplied by a matrix (A) and give a product which is the same matrix (A) • This matrix exists and it is called the identity matrix. • It is named I and it comes in different sizes • It is a square matrix with all 1’s on the main diagonal and all other elements are 0 Slide 6

Examples of Identity • The following gives the Identity matrices of a 2 x

Examples of Identity • The following gives the Identity matrices of a 2 x 2 matrix, a 3 x 3 matrix and a 4 x 4 matrix respectively: Slide 7

 • Given the matrix A below multiply AI

• Given the matrix A below multiply AI

The identity Matrix for Multiplication • Let A be a square matrix with n

The identity Matrix for Multiplication • Let A be a square matrix with n rows and n columns. • Let I be a square matrix with the same dimensions with 1’s on the main diagonal and 0’s elsewhere • Then AI = IA = A

The multiplicative Inverse • For every non-zero real number a, there is a real

The multiplicative Inverse • For every non-zero real number a, there is a real number 1/a such that a(1/a)=1 • In terms of matrices, the product of a square matrix and its inverse is I

The inverse of a Matrix • Let A be a square matrix with n

The inverse of a Matrix • Let A be a square matrix with n rows and n columns • In terms of matrices, the product of a square matrix and its inverse is I

The inverse of a Matrix • Let A be a square matrix with n

The inverse of a Matrix • Let A be a square matrix with n rows and n columns. If there is an n x n matrix B such that AB = I and BA = I , then A and B are inverses of one another. • The inverse of a matrix A is denoted by A-1. • Inverses have the following properties:

Inverse of a Matrix • To show that matrices are inverses of one another,

Inverse of a Matrix • To show that matrices are inverses of one another, show that the multiplication of the matrices is commutative and the results is the identity matrix. • Example: Show that A and B are inverses of each other.

Finding the Inverse of a Matrix: Method 1 • Use the equation AB =

Finding the Inverse of a Matrix: Method 1 • Use the equation AB = I • Write and Solve the equation

Multiply the two matrices to get the matrix below Use matrix equality to equate

Multiply the two matrices to get the matrix below Use matrix equality to equate corresponding elements Solve by substitution / elimination to obtain the elements of the inverse matrix.

 • So the inverse of A is • We can check this my

• So the inverse of A is • We can check this my multiplying A x A-1

Properties of Inverses Slide 19

Properties of Inverses Slide 19

Topic Two DETERMINANTS Slide 20

Topic Two DETERMINANTS Slide 20

Determinants • Each matrix can be assigned a real number called the determinant of

Determinants • Each matrix can be assigned a real number called the determinant of the matrix. • It is denoted by the symbol • means the determinant of A

 • The determinant of a 2 x 2 matrix is found as follows:

• The determinant of a 2 x 2 matrix is found as follows: • Find the determinant of the matrix

 • Find the determinant of the matrix • If the determinant of a

• Find the determinant of the matrix • If the determinant of a matrix is 0, the matrix does not have an inverse. • The matrix is then said to be invertible

Method 2: Using determinants to find Inverse of Matrix

Method 2: Using determinants to find Inverse of Matrix

 • is called the adjoint of the original matrix • It is found

• is called the adjoint of the original matrix • It is found by switching the entries on the main diagonal and changing the signs of the entries on the other diagonal.

Properties of Determinants • Determinants have several mathematical properties which are useful in matrix

Properties of Determinants • Determinants have several mathematical properties which are useful in matrix manipulations. – 1 |A|=|A'|. – 2. If a row or column of A = 0, then |A|= 0. – 3. If every value in a row or column is multiplied by k, then |A| = k|A|. – 4. If two rows (or columns) are interchanged the sign, but not value, of |A| changes. – 5. If two rows or columns are identical, |A| = 0. – 6. If two rows or columns are linear combination of each other, |A| = 0 – 7. |A| remains unchanged if each element of a row or each element multiplied by a constant, is added to any other row. – 8. |AB| = |A| |B| – 9. Det of a diagonal matrix = product of the diagonal elements Slide 26

Find the multiplicative inverse of: First find the determinant Next, find the adjoint and

Find the multiplicative inverse of: First find the determinant Next, find the adjoint and then use the formula for finding the inverse.

Practice Questions on Inverses. Find the inverses of the matrices below using determinants.

Practice Questions on Inverses. Find the inverses of the matrices below using determinants.

Determinant of a 3 x 3 Matrix • One way to find the determinant

Determinant of a 3 x 3 Matrix • One way to find the determinant of a 3 x 3 is the formula below:

Example Find the determinant of the matrix below using the formula

Example Find the determinant of the matrix below using the formula

Minor of a matrix •

Minor of a matrix •

Cofactor of a matrix •

Cofactor of a matrix •

Inverse of a 3 x 3 matrix •

Inverse of a 3 x 3 matrix •

FINDING THE INVERSE OF A 3 X 3 MATRIX • Calculate the inverse of

FINDING THE INVERSE OF A 3 X 3 MATRIX • Calculate the inverse of B = • Find the co-factors: 2 2 M 11 = 3 4 1 1 2 |M 11| = 2 1 1 2 2 3 4 C 11 = 2

 • Calculate the inverse of B = 1 1 2 M 12 =

• Calculate the inverse of B = 1 1 2 M 12 = 1 2 2 4 |M 12| = 0 1 1 2 2 3 4 C 12 = 0

 • Calculate the inverse of B = 1 • Find the co-factors: 1

• Calculate the inverse of B = 1 • Find the co-factors: 1 2 M 13 = 2 3 1 2 |M 13| = -1 1 1 2 2 3 4 C 13 = -1

 • Calculate the inverse of B = 1 1 2 2 3 4

• Calculate the inverse of B = 1 1 2 2 3 4 • Find the co-factors: 1 1 M 21 = 3 4 |M 21| = 1 C 21 = -1

 • Calculate the inverse of B = 1 1 2 2 3 4

• Calculate the inverse of B = 1 1 2 2 3 4 • Find the co-factors: 1 1 M 22 = 2 4 |M 22| = 2 C 22 = 2

1 • Calculate the inverse of B = 1 2 1 1 2 2

1 • Calculate the inverse of B = 1 2 1 1 2 2 3 4 • Find the co-factors: 1 1 M 23 = 2 3 |M 23| = 1 C 23 = -1

1 • Calculate the inverse of B = 1 2 1 1 2 2

1 • Calculate the inverse of B = 1 2 1 1 2 2 3 4 • Find the co-factors: 1 1 M 31 = 2 2 |M 31| = 0 C 31 = 0

1 • Calculate the inverse of B = 1 2 1 1 2 2

1 • Calculate the inverse of B = 1 2 1 1 2 2 3 4 • Find the co-factors: 1 1 M 32 = 1 2 |M 32| = 1 C 32 = -1

1 • Calculate the inverse of B = 1 2 1 1 2 2

1 • Calculate the inverse of B = 1 2 1 1 2 2 3 4 • First find the co-factors: 1 1 M 33 = 1 2 |M 33| = 1 C 33 = 1

1 • Calculate the inverse of B = 1 2 1 1 2 2

1 • Calculate the inverse of B = 1 2 1 1 2 2 3 4 • Next the determinant: use the top row: |B| = 1 x |M 11| -1 x |M 12| + 1 x |M 13| = 2 – 0 + (-1) = 1

 • Using the formula, B-1 1 = (matrix of co-factors)T |B| 1 =

• Using the formula, B-1 1 = (matrix of co-factors)T |B| 1 = (matrix of co-factors)T 1

 • Using the formula, B-1 1 = (matrix of co-factors)T |B| 1 2

• Using the formula, B-1 1 = (matrix of co-factors)T |B| 1 2 0 1 = 1 -1 2 -1 0 -1 1 T

 • Using the formula, B-1 1 = (matrix of co-factors)T |B| = 2

• Using the formula, B-1 1 = (matrix of co-factors)T |B| = 2 -1 0 0 2 -1 -1 -1 1

Topic Three CRAMER’S RULE AND ITS APPLICATION Slide 47

Topic Three CRAMER’S RULE AND ITS APPLICATION Slide 47

Systems of Equations •

Systems of Equations •

ax + by = e In general the solution to the system x= where

ax + by = e In general the solution to the system x= where e b f d a b c d is (x, y) cx + dy = f and a b c d =0 a e y= c f a b c d If we let A be the coefficient matrix of the linear system, notice this is just det A.

Example • Solve the following system of equations using Cramer’s rule: • 8 x+5

Example • Solve the following system of equations using Cramer’s rule: • 8 x+5 y=2 • 2 x-4 y=-10 Solution: The coefficient matrix is and its determinant is • so and Slide 51

The solution to the system of equations is (-1, 2) Slide 52

The solution to the system of equations is (-1, 2) Slide 52

Cramer’s Rule for 3 x 3 Matrix Let A be the coefficient matrix of

Cramer’s Rule for 3 x 3 Matrix Let A be the coefficient matrix of this linear system: If det A is not 0, then the system has exactly one solution. The solution is:

Lets solve this system equations by Cramer’s rule 2 x – 3 y +

Lets solve this system equations by Cramer’s rule 2 x – 3 y + z = 5 x + 2 y + z = -1 x – 3 y + 2 z = 1 Need to find the determinants of

Find the determinant of the Coefficient Matrix We will use this for the denominators

Find the determinant of the Coefficient Matrix We will use this for the denominators in the all the fractions.

Solving for x Replace the x column with the answers. So

Solving for x Replace the x column with the answers. So

Solving for y Replace the y column with the answers. So

Solving for y Replace the y column with the answers. So

Solving for z Replace the z column with the answers. So

Solving for z Replace the z column with the answers. So

Session Problem Sets • Slide 59

Session Problem Sets • Slide 59

References • XXXXXXXXXXXXX Slide 60

References • XXXXXXXXXXXXX Slide 60