Professional Documents
Culture Documents
Econ6300 Danger Presentation6-GW New
Econ6300 Danger Presentation6-GW New
Matrix Algebra
Solutions to Systems of Linear Equations
and
Matrix Algebra
Systems of Linear Equations
• Example of a system of linear equations
–4
3
Four Different Ways to Obtain Solutions to
Systems
• Solutions to linear equations can be obtained using
several different methods. We will eventually cover
four different approaches.
– Substitution
– Elimination
– Matrix
– Cramer’s
4
Substitution Technique - I
• Given
–4
• Which gives
4 6
Gaussian Elimination
• Given
–4
8
General Solution Continued
• Using the result from the prior slide and solving for y gives
• The result from equation 7e can be plugged into one of the original
equations to find x. After a bit of math we obtain
9
General Solution for a
System of Two Linear Equations
• Our general solutions are given by
10
Matrix Addition
• Two matrices must be the same size in order to add or subtract
them.
• Two matrices are of the same size if they have same number of
rows and columns.
Elements (3,2)
11
Matrix Subtraction
12
Example of Scalar Multiplication
13
Conformable
• A matrix is conformable if it’s dimensions are
suitable to perform an operation.
14
Conformable Matrices: Multiplication
• The matrix product AB exists if and only if
15
Matrix Multiplication: Order Matters
Define
A= B=
A*B = *
B*A = *
16
Example
• Find C = AB
17
Solution
• Given
Matrix dimensions: Notice that the dimensions of C are the number of rows in A
and the number of columns in B
18
Identity Matrix
[ ]
1 0 0
0 1 0
0 0 1
19
Identity Matrix Multiplication
• Provided the matrices can be multiplied
– AI = A
– IB = B
Also
20
Matrix Algebra Laws
• Associative
– (A + B) + C = A + (B + C)
– (AB)C = A(BC)
• Laws of Addition
–A+B=B+A
• Distributive
– A(B + C) = AB + AC
– (A + B)C = AC + BC
21
Transpose of a Matrix
• When you transpose a matrix, the first row becomes the
first column, the second row becomes the second
column, etc.
• Define
• Define
• Then
• Steps
– Calculate minors
– Calculate cofactors
– Calculate the determinant
27
Minors
• Define the (i, j)th minor of A as
• Given
28
Example
• Find M13 for the matrix
29
Solution
• Given
30
Cofactors
• A cofactor is a signed minor.
• Two cases
– Cij = Mij, if the sum of the row and column is even.
– Cij = -1*Mij, if the sum of the row and column is odd.
• Example
– If M23 = 5, then C23 = -5 because 2 + 3 = 5 and 5 is an odd
number.
31
Determinant of 3x3 Matrix
• The determinant of a 3x3 matrix can be
calculated in 6 different ways!
Using a row
Using a column
32
Example
• Find the determinant.
33
Solution I
• When one of the elements in a coefficient matrix is a zero, it is
often helpful to use the column or row that corresponds to
the zero element to calculate the determinant.
34
Solution II
35
Solution III
• The cofactors corresponding to the first row are given by:
36
Solution IV
• Given
37