Spring 2013 Solving a System of Linear Equations Matrix inverse Simultaneous equations Cramer’s rule Second-order Conditions Lecture 7.

Slides:



Advertisements
Similar presentations
BAI CM20144 Applications I: Mathematics for Applications Mark Wood
Advertisements

Elementary Linear Algebra Anton & Rorres, 9th Edition
Chap. 3 Determinants 3.1 The Determinants of a Matrix
Section 3.1 The Determinant of a Matrix. Determinants are computed only on square matrices. Notation: det(A) or |A| For 1 x 1 matrices: det( [k] ) = k.
Linear Systems of Equations Ax = b Marco Lattuada Swiss Federal Institute of Technology - ETH Institut für Chemie und Bioingenieurwissenschaften ETH Hönggerberg/
Lecture 6 Intersection of Hyperplanes and Matrix Inverse Shang-Hua Teng.
Lecture 15 Recursive and Iterative Formula for Determinants Shang-Hua Teng.
Economics 2301 Matrices Lecture 13.
Matrices and Determinants
Chapter 5 Determinants.
Applications of matrices and determinants
Recall that a square matrix is one in which there are the same amount of rows as columns. A square matrix must exist in order to evaluate a determinant.
Mathematics.
1 資訊科學數學 14 : Determinants & Inverses 陳光琦助理教授 (Kuang-Chi Chen)
ECON 1150 Matrix Operations Special Matrices
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
 Row and Reduced Row Echelon  Elementary Matrices.
Matrix Inversion.
Chapter 2 Determinants. The Determinant Function –The 2  2 matrix is invertible if ad-bc  0. The expression ad- bc occurs so frequently that it has.
Systems of Linear Equations Let’s say you need to solve the following for x, y, & z: 2x + y – 2z = 10 3x + 2y + 2z = 1 5x + 4y + 3z = 4 Two methods –Gaussian.
CHAPTER 2 MATRIX. CHAPTER OUTLINE 2.1 Introduction 2.2 Types of Matrices 2.3 Determinants 2.4 The Inverse of a Square Matrix 2.5 Types of Solutions to.
Matrices & Determinants Chapter: 1 Matrices & Determinants.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 9 Matrices and Determinants.
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
8.1 Matrices & Systems of Equations
Ch X 2 Matrices, Determinants, and Inverses.
1 Ch. 4 Linear Models & Matrix Algebra Matrix algebra can be used: a. To express the system of equations in a compact manner. b. To find out whether solution.
Unit 6 : Matrices.
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
2.5 Determinants and Multiplicative Inverses of Matrices Objectives: Evaluate determinants. Find inverses of matrices. Solve systems of equations by using.
© 2005 Baylor University Slide 1 Fundamentals of Engineering Analysis EGR Adjoint Matrix and Inverse Solutions, Cramer’s Rule.
Chapter 9 Matrices and Determinants Copyright © 2014, 2010, 2007 Pearson Education, Inc Determinants and Cramer’s Rule.
Mathematics.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Ch. 5 Linear Models & Matrix Algebra
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
2x2 Matrices, Determinants and Inverses
Chapter 2 Determinants. With each square matrix it is possible to associate a real number called the determinant of the matrix. The value of this number.
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
2.5 – Determinants and Multiplicative Inverses of Matrices.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
Section 2.1 Determinants by Cofactor Expansion. THE DETERMINANT Recall from algebra, that the function f (x) = x 2 is a function from the real numbers.
Copyright © 1999 by the McGraw-Hill Companies, Inc. Barnett/Ziegler/Byleen College Algebra, 6 th Edition Chapter Seven Matrices & Determinants.
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Copyright © 2001 by the McGraw-Hill Companies, Inc. Barnett/Ziegler/Byleen Precalculus: Functions & Graphs, 5 th Edition Chapter Nine Matrices & Determinants.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
College Algebra Chapter 6 Matrices and Determinants and Applications
MAT 322: LINEAR ALGEBRA.
LINEAR ALGEBRA.
ECE 3301 General Electrical Engineering
CHAPTER 2 MATRICES Determinant Inverse.
The Inverse of a Square Matrix
10.5 Inverses of Matrices and Matrix Equations
Barnett/Ziegler/Byleen College Algebra, 7th Edition
Chapter 2 Determinants by Cofactor Expansion
ECON 213 Elements of Mathematics for Economists
Section 7.4 Matrix Algebra.
DETERMINANT MATRIX YULVI ZAIKA.
Chapter 7: Matrices and Systems of Equations and Inequalities
Multiplicative Inverses of Matrices and Matrix Equations
College Algebra Chapter 6 Matrices and Determinants and Applications
Chapter 2 Determinants.
1.8 Matrices.
1.8 Matrices.
Chapter 2 Determinants.
Chapter 2 Determinants.
Matrices - Operations ADJOINT MATRICES
Presentation transcript:

Spring 2013 Solving a System of Linear Equations Matrix inverse Simultaneous equations Cramer’s rule Second-order Conditions Lecture 7

Spring Matrix Equation and Matrix Inversion Market equilibrium model Demand: Q + P = 10 Supply : Q – 4P = -3 In matrix form,

Spring 2013 General equation system (N equations, N unknowns)

Spring 2013 If we can find a matrix A -1 such that A -1 Ax = x, then we can solve the equations by observing that A -1 Ax = A -1 b x = A -1 b Existence of an inverse A -1 : A is a square matrix. A is not a null matrix. Rows and columns are linearly independent. A -1 A = AA -1 = I N.

Spring 2013 In the previous example, Ax = b Example 7.1: Consider the matrix

Spring Determinants 2.1 Determinants of Order 2 |A| = a 11 a 22 – a 12 a 21. |A| = 1·4 - 2·3 = -2. Example 7.2:

Spring 2013 |A| = a 11 a 22 a 33 + a 12 a 23 a 31 + a 13 a 21 a 32 - a 11 a 23 a 32 – a 12 a 21 a 33 – a 13 a 22 a Determinants of Order 3

Spring 2013 a 11 a 12 a 21 a 22 a 31 a – – – |A| = a 11 a 22 a 33 + a 12 a 23 a 31 + a 13 a 21 a 32 - a 11 a 23 a 32 – a 12 a 21 a 33 – a 13 a 22 a 31

Spring 2013 Example 7.3: Find the determinants of the following square matrices.

Spring 2013 |M ij | = 2.3 Expansion by Cofactors 1. The minor |M ij | of a matrix is the determinant of the matrix obtained by deleting the i th row and j th column.

Spring 2013 |M 11 | = 4, |M 12 | = 3, |M 21 | = 2, |M 22 | = 1 |M 11 | = 5, |M 12 | = -17, |M 13 | = -14 Example 7.4: Find all the minors of the matrices A and B.

Spring The cofactor |C ij | of a matrix = (-1) i+j |M ij | Example 7.5: Find all the cofactors of the following matrices.

Spring The determinant is the expansion along any row or column. |A| = a i1 C i1 + a i2 C i2 +  + a ij C ij +  a in C in = a 1j C 1j + a 2j C 2j +  + a ij C ij +  a nj C nj

Spring st row: |A| = a 11 C 11 + a 12 C 12 = 1·4 + 2·(-3) = -2 2 nd row: |A| = a 21 C 21 + a 22 C 22 = 3·(-2) + 4·1 = -2 1 st column: |A| = a 11 C 11 + a 21 C 21 = 1·4 + 3·(-2) = -2 2nd column: |A| = a 12 C 12 + a 22 C 22 = 2·(-3) + 4·1 = -2 Example 7.6: Calculate the determinant of matrix A.

Spring 2013 Expansion along the 1st row |B| = 8·5 + 3·17 + 2·(-14) = 63. Expansion along the 3rd column

Spring Basic Rules for Determinatns Let A be an n  n matrix. Then: If all the elements in a row (or column) of A are zero, then |A| = 0. If two of the rows (or columns) of A are proportional, then |A| = 0.

Spring 2013 Let A and B be n  n matrices. Then: If all the elements in a single row (or column) of A are multiplied by a number , the determinant is multiplied by . The value of the determinant of A is unchanged if a multiple of one row (or column) is added to a different row (or column) of A. |AB| = |A|  |B|.

Spring Matrix Inversion Let A be n by n. If there is a n by n matrix X such that AX = XA = I n, then X is called the inverse of A and is denoted by A -1.

Spring 2013 Example 7.7: Consider the following three matrices: Show that A and X are inverses of each other and B has no inverse.

Spring 2013 Step 1: Check the singularity of A |A|  0  Carry on matrix inversion |A| = 0  Stop Step 2: Find the cofactor matrix of A 3.1 Finding the Inverse of a Matrix

Spring 2013 Step 3: Find the adjoint of A adj(A) = C T. Step 4: Compute the inverse A -1 = adj(A) / |A|. Example 7.8: Find the inverse of

Spring 2013 Step 1: |A| = 1x4 – 3x2 = -2 < 0 Step 2: M 11 = 4, M 12 = 3, M 21 = 2, M 22 = 1 C 11 = 4, C 12 = -3, C 21 = -2, M 22 = 1 Step 3:

Spring 2013 Step 4: Example 7.9: Show that the matrix A has an inverse and find the inverse.

Spring Solving Equations Matrix equation Ax = b  A -1 Ax = A -1 b  x = A -1 b.

Spring 2013 Example 7.10: Solve the following simultaneous equations. 3x 1 – 2x 2 = 11 2x 1 + x 2 = 12 Matrix equation 1. |A| = 3  1 – 2  (-2) = 7 > 0

Spring 2013

4. Cramer’s Rule Matrix equation Let

Spring 2013 Cramer’s rule: If |A|  0, then for i = 1,...,N, In the previous example, x 1 * = A 1 / |A| = 35/7 = 5 x 2 * = A 2 / |A| = 14/7 = 2

Spring 2013 Example 7.11: Solve the following system for the unknowns x 1, x 2 and x 3 using Cramer’s rule. 2x 1 + 4x 2 – x 3 = 15 x 1 – 3x 2 + 2x 3 = -5 6x 1 + 5x 2 + x 3 = 28

Spring 2013 Example 7.12: Solve the following system of equations: x 1 + x 2 = 3 x 1 + x 3 = 2 x 2 + x 3 + x 4 = 6 x 2 + x 4 = 1

Spring Possible Cases of an Equation System Case 1: Unique solution |A|  0

Spring 2013 Case 2: No solution |A| = 0 and equations are inconsistent. Case 3: Multiple solutions |A| = 0 and equations are consistent.