Chap. 2 Matrices 2.1 Operations with Matrices

Slides:



Advertisements
Similar presentations
Rules of Matrix Arithmetic
Advertisements

Chap. 3 Determinants 3.1 The Determinants of a Matrix
CHAPTER ONE Matrices and System Equations
1.5 Elementary Matrices and a Method for Finding
Systems of Linear Equations and Matrices
2.3 Matrix Inverses. Numerical equivalent How would we solve for x in: ax = b ? –a -1 a x = a -1 b –x=a -1 b since a -1 a = 1 and 1x = x We use the same.
MATRIX ALGEBRA MGT 4850 Spring 2009 University of Lethbridge.
Matrices and Systems of Equations
Ch 7.2: Review of Matrices For theoretical and computation reasons, we review results of matrix theory in this section and the next. A matrix A is an m.
2005/7Inverse matrices-1 Inverse and Elementary Matrices.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
2005/8Matrices-1 Matrices. 2005/8Matrices-2 A Matrix over a Field F (R or C) m rows n columns size: m×n ij-entry: a ij  F (ij-component)
2.1 Operations with Matrices 2.2 Properties of Matrix Operations
Chapter 3 The Inverse. 3.1 Introduction Definition 1: The inverse of an n  n matrix A is an n  n matrix B having the property that AB = BA = I B is.
Copyright © Cengage Learning. All rights reserved. 7.6 The Inverse of a Square Matrix.
3.8 Matrices.
1 Operations with Matrice 2 Properties of Matrix Operations
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Linear Algebra - Chapter 1 [YR2005]
SYSTEMS OF LINEAR EQUATIONS
Chap. 1 Systems of Linear Equations
Compiled By Raj G. Tiwari
2.1 Operations with Matrices 2.2 Properties of Matrix Operations
1 資訊科學數學 14 : Determinants & Inverses 陳光琦助理教授 (Kuang-Chi Chen)
ECON 1150 Matrix Operations Special Matrices
1 資訊科學數學 13 : Solutions of Linear Systems 陳光琦助理教授 (Kuang-Chi Chen)
Elementary Linear Algebra Anton & Rorres, 9th Edition
 Row and Reduced Row Echelon  Elementary Matrices.
Matrices King Saud University. If m and n are positive integers, then an m  n matrix is a rectangular array in which each entry a ij of the matrix is.
Copyright © Cengage Learning. All rights reserved. 7.4 Matrices and Systems of Equations.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Systems of Linear Equation and Matrices
Matrix Algebra. Quick Review Quick Review Solutions.
Slide Chapter 7 Systems and Matrices 7.1 Solving Systems of Two Equations.
Matrix. REVIEW LAST LECTURE Keyword Parametric form Augmented Matrix Elementary Operation Gaussian Elimination Row Echelon form Reduced Row Echelon form.
8.1 Matrices & Systems of Equations
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
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.
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.
Chap. 4 Vector Spaces 4.1 Vectors in Rn 4.2 Vector Spaces
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Copyright © Cengage Learning. All rights reserved. 7 Linear Systems and Matrices.
For real numbers a and b,we always have ab = ba, which is called the commutative law for multiplication. For matrices, however, AB and BA need not be equal.
Chapter 8 Matrices and Determinants Matrix Solutions to Linear Systems.
Matrices and Systems of Equations
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Matrices and Determinants
MATRICES Operations with Matrices Properties of Matrix Operations
Linear Algebra Chapter 2 Matrices.
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.
Chapter 2 Matrices 2.1 Operations with Matrices 2.2 Properties of Matrix Operations 2.3 The Inverse of a Matrix 2.4 Elementary Matrices Elementary Linear.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
Linear Algebra Engineering Mathematics-I. Linear Systems in Two Unknowns Engineering Mathematics-I.
MATRICES. Introduction Matrix algebra has several uses in economics as well as other fields of study. One important application of Matrices is that it.
Matrices, Vectors, Determinants.
Properties of Matrix Operations 2010, 14, Sep. Ki-Seung Lee.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Copyright © Cengage Learning. All rights reserved. 8 Matrices and Determinants.
MAT 322: LINEAR ALGEBRA.
7.7 Determinants. Cramer’s Rule
Lecture 2 Matrices Lat Time - Course Overview
1.4 Inverses; Rules of Matrix Arithmetic
5 Systems of Linear Equations and Matrices
Elementary Matrix Methid For find Inverse
Matrices and Matrix Operations
Systems of Linear Equations and Matrices
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Presentation transcript:

Chap. 2 Matrices 2.1 Operations with Matrices 2.2 Properties of Matrix Operations 2.3 The Inverse of a Matrix 2.4 Elementary Matrices 2.5 Applications of Matrix Operations

2.1 Operations with Matrices Matrix representations: An uppercase case: A, B, C, … A representative element enclosed in brackets: [aij], [bij] A rectangular array of numbers: Vector (column/row matrix): boldface lowercase a1, a2, …, an Ming-Feng Yeh Chapter 2

Section 2-1 Definitions Equality of Matrices Two matrices A = [aij] and B = [bij] are equal if they have the same size (mn) and aij = bij for 1  i  m and 1  j  n. Matrix Addition If A = [aij] and B = [bij] are matrices of size mn, then their sum is the mn matrix given by A+B = [aij + bij]. The sum of two matrices of different sizes is undefined. Scalar Multiplication If A = [aij] is an mn matrix and c is a scalar, then the scalar multiplication of A by c is the mn matrix given by cA = [caij] Ming-Feng Yeh Chapter 2

Example 1 Consider the four matrices Section 2-1 Example 1 Consider the four matrices Matrices A and B are not equal because they are of different sizes. Similarly, B and C are not equal. Matrices A and D are equal if and only if (iff) x = 3 Remark: “p if and only if q” means that p implies q and q implies p. Ming-Feng Yeh Chapter 2

Subtraction of Matrices Section 2-1 Subtraction of Matrices If A and B are of the same size, AB represents the sum of A and (B). That is, AB = A+(1)B = [aij  bij]. cA  dB = [caij  dbij]. Example 3: Ming-Feng Yeh Chapter 2

Matrix Multiplication Section 2-1 Matrix Multiplication If A = [aij] is an mn matrix and B = [bij] is an np matrix, then the product AB is an mp matrix AB = [cij], where Ming-Feng Yeh Chapter 2

Example 4 Find the product AB, where and Section 2-1 Ming-Feng Yeh Chapter 2

Section 2-1 Example 5 Matrix multiplication is not, in general, commutative. Ming-Feng Yeh Chapter 2

Systems of Linear Equations Section 2-1 Systems of Linear Equations Matrix Equation: Ax = b A: coefficient matrix; x and b: column matrix (vector) Example 6: Solve the matrix equation Ax = 0, where Ming-Feng Yeh Chapter 2

Diagonal Matrix & Trace (p. 58) Section 2-1 Diagonal Matrix & Trace (p. 58) A square matrix is called a diagonal matrix if all entries that not on the main diagonal are zero. The trace of an nn matrix A is the sum of the main diagonal entries. That is, Ming-Feng Yeh Chapter 2

2.2 Properties of Matrix Operations Theorem 2.1 Properties of Matrix Addition and Scalar Multiplication If A, B, and C are mn matrices and c and d are scalars, then the following properties are true. 1. A+B = B+A Commutative property of addition 2. A+(B+C) = (A+B)+C Associative property of addition 3. (cd)A = c(dA) Associative property of multiplication 4. 1A = A Multiplication identity 5. c(A+B) = cA + cB Distributive property 6. (c+d)A = cA + dA Distributive property 交換律 結合律 結合律 乘法單位元素 左分配律 右分配律 Ming-Feng Yeh Chapter 2

Section 2-2 Proof of Theorem 2.1 The proofs follow directly from the definitions of matrix addition and scalar multiplication, and the corresponding properties of real numbers. Let A = [aij] and B = [bij] 1. Use the commutative properties of addition of real numbers to write A+B = [aij+bij] = [bij+aij] = B+A 5. Use the distributive properties (for real number) of multiplication over addition to write c(A+B) = [c(aij+bij)] = [caij+cbij] = cA+cB Ming-Feng Yeh Chapter 2

Zero Matrix & Additive Identity Section 2-2 Zero Matrix & Additive Identity If A is an mn matrix and Omn is the mn matrix consisting entirely of zeros, then A + Omn = A. The matrix Omn is called a zero matrix, and it serves as the additive identity for the set of all mn matrices. Theorem 2.2: Properties of Zero Matrix If A is an mn matrix and c is a scalar, then the following properties are true. 1. A + Omn = A. 2. A + (A) = Omn.  A is the additive inverse of A. 3. If cA = Omn, then c = 0 or A = Omn. Ming-Feng Yeh Chapter 2

Matrix Equation Real Numbers m  n Matrices Section 2-2 Matrix Equation Real Numbers m  n Matrices Ex. 2: Solve for X in the equation 3X+A = B, where Ming-Feng Yeh Chapter 2

Theorem 2.3 Properties of Matrix Multiplication Section 2-2 Theorem 2.3 Properties of Matrix Multiplication If A, B, and C are matrices (with sizes such that the given matrix products are defined) and c is a scalar, then the following properties are true. 1. A(BC) = (AB)C Associative property 2. A(B+C) = AB + AC Distribution property 3. (A+B)C = AC + BC Distribution property 4. c(AB) = (cA)B = A(cB) Proof of Property 2: A: mn matrix, B: np matrix, C: np matrix. The entry in the ith row and jth column of A(B+C) is The entry in the ith row and jth column of AB +AC is equal Ming-Feng Yeh Chapter 2

Section 2-2 Noncommutativity A commutative property for matrix multiplication was NOT listed in Theorem 2.3. If A is of size 23 and B is of size 33, then the product AB is defined, but the product BA is not. Example 4: Show that AB and BA are not equal for the matrices and Ming-Feng Yeh Chapter 2

Cancellation Property Section 2-2 Cancellation Property It does NOT have a general cancellation property for matrix multiplication. If AC = BC, it is NOT necessary true that A = B. Example 5: Show that AC = BC. Ming-Feng Yeh Chapter 2

Identity Matrix & Theorem 4 Section 2-2 Identity Matrix & Theorem 4 A square matrix that has 1’s on the main diagonal and 0’s elsewhere. The identity matrix of order n: Theorem 2.4: Properties of the Identity Matrix If A is a matrix of size mn, then the following properties are true. 1. AIn = A. 2. ImA = A. If A is a square matrix of order n, then AIn = InA = A. Ming-Feng Yeh Chapter 2

Repeated Multiplication Section 2-2 Repeated Multiplication Repeated multiplication of a square matrix: For a positive integer k, Ak is A0 = In, where A is a square matrix of order n. Example 3: Find A3 for the matrix . k factors j and k are nonnegative integer. Ming-Feng Yeh Chapter 2

Theorem 2.5 Number of Solutions of a System of Linear Equations Section 2-2 Theorem 2.5 Number of Solutions of a System of Linear Equations For a system of linear equations in n variables, precisely one of the following is true. 1. The system has exactly one solution. 2. The system has an infinite number of solutions. 3. The system has no solution. Ming-Feng Yeh Chapter 2

The Transpose of a Matrix Section 2-2 The Transpose of a Matrix The transpose of a matrix is formed by writing its columns as rows. A matrix A is symmetric if A = AT.  aij = aji,  i  j.  a symmetric matrix must be square. Ming-Feng Yeh Chapter 2

Theorem 2.6 Properties of Transpose Section 2-2 Theorem 2.6 Properties of Transpose If A and B are matrices (with sizes such that the given matrix products are defined) and c is a scalar, then the following properties are true. 1. Transpose of a transpose 2. Transpose of a sum 3. Transpose of a scalar multiplication 4. Transpose of a product For any matrix A, the matrix is symmetric. Ming-Feng Yeh Chapter 2

Example 9 Show that are equal. Sol: Section 2-2 Ming-Feng Yeh Chapter 2

Section 2-2 Example 10 For the matrix find the product and show that it is symmetric. Sol: Since , is symmetric. Ming-Feng Yeh Chapter 2

2.3 The Inverse of a Matrix Definition of an Inverse of a Matrix An nn matrix A is invertible (or nonsingular) if there exists an nn matrix B such that AB = BA = In In is the identity matrix of order n. The matrix B is called the (multiplicative) inverse of A. A matrix that does NOT have an inverse is called noninvertible (or singular). Nonsquare matrices do NOT have inverse. Theorem 2.7: Uniqueness of an Inverse Matrix If A is an invertible matrix, then its inverse is unique. The inverse of A is denoted by . Ming-Feng Yeh Chapter 2

Section 2-3 Proof of Theorem 2.7 Because A is invertible, it has at least one inverse B such that AB = BA = I. Suppose that A has another inverse C such that AC = CA = I. Then you can show that B and C are equal as follows. AB = I  C(AB) = C(I)  (CA)B = C  (I)B = C  B = C Consequently B = C, and it follows that the inverse of a matrix is unique. Ming-Feng Yeh Chapter 2

Example 2 Find the inverse of the matrix Section 2-3 Example 2 Find the inverse of the matrix Sol: To find the inverse of A, try to solve the matrix equation AX = I for X. Using matrix multiplication to check the result. Ming-Feng Yeh Chapter 2

Gauss-Jordan Elimination Section 2-3 Gauss-Jordan Elimination  The same coefficient matrix (4) [ A ┇ I ]  …  [ I ┇ A1 ] Double augment matrix Ming-Feng Yeh Chapter 2

Procedure Let A be a square matrix of order n. Section 2-3 Procedure Let A be a square matrix of order n. Write the n2n matrix [ A┇I ] (adjoining the matrices A & I) If possible, row reduce A to I using elementary row operations on the entire matrix [ A┇I ]. The result will be the matrix [I ┇A1 ]. If this in not possible, then A is not invertible. Check your work by multiplying to see that Ming-Feng Yeh Chapter 2

Example 4 Show that the matrix has no inverse. pf: (3) 2 Section 2-3 Example 4 Show that the matrix has no inverse. pf: (3) 2 It is not possible to rewrite [A┇I ] in the form [I ┇A1 ]. Hence A has no inverse. Ming-Feng Yeh Chapter 2

The Inverse of a 22 Matrix Section 2-3 The Inverse of a 22 Matrix  + The matrix A is a 22 matrix given by The matrix A is invertible if and only if  = ad  bc  0. If   0, then pf: Interchanging the entires on the main diagonal and changing the signs of the other two entires. Ming-Feng Yeh Chapter 2

Example 5 If possible, find the inverse of each matrix. Section 2-3 Example 5 If possible, find the inverse of each matrix. The matrix B is not invertible. Ming-Feng Yeh Chapter 2

Theorem 2.8 Properties of Inverse Matrix Section 2-3 Theorem 2.8 Properties of Inverse Matrix If A is an invertible matrix, k is a positive integer, and c is a scalar, then A1, Ak, cA, and AT are invertible and the flowing are true. 1. 2. 3. 4. Hint: if BC = CB = I, then C is the inverse of B. pf: 1. Observe that , which means that A is the inverse of A1. Thus, . 3. Hence is the inverse of (cA), which implies that Ming-Feng Yeh Chapter 2

Section 2-3 Example 6 Compute A2 in two different ways and show that the results are equal. 1. (A2)1: 2. (A1)2: the same result Ming-Feng Yeh Chapter 2

Theorem 2.9 The Inverse of a Product Section 2-3 Theorem 2.9 The Inverse of a Product If A and B are invertible matrices of size n, then AB is invertible and (AB)1 = B1A1. pf: 1. (AB)(B1A1) = A(BB1)A1 = A(I)A1 = AA1 = I. 2. (B1A1)(AB) = B1(A1A)B = B1(I)B = B1B = I. Hence AB is invertible. : in reverse order Recall: (AB)T = BTAT Ming-Feng Yeh Chapter 2

Example 7 Find (AB)1 for the matrices and Section 2-3 Example 7 Find (AB)1 for the matrices and using the fact that A1 and B1 are given by Sol: Ming-Feng Yeh Chapter 2

Theorem 2.10 Cancellation Property Section 2-3 Theorem 2.10 Cancellation Property If C is an invertible matrix, then the following properties hold. 1. If AC = BC, then A = B. Right cancellation property 2. If CA = CB, then A = B. Left cancellation property pf: Use that fact that C is invertible and write AC = BC  (AC)C1 = (BC)C1  A(CC1) = B(CC1)  AI = BI  A = B Ming-Feng Yeh Chapter 2

Theorem 2.11 Systems of Equations with Unique Solutions Section 2-3 Theorem 2.11 Systems of Equations with Unique Solutions If A is an invertible matrix, then the system of linear equations Ax = b has a unique solution given by x = A1b. pf: Ax = b  A1(Ax) = A1(b)  A1Ax = A1b  x = A1b Example 8: Use an inverse matrix to solve each system Ming-Feng Yeh Chapter 2

2.4 Elementary Matrices Definition: An nn matrix is called an elementary matrix if it can be obtained from the identity matrix In by a single elementary row operation. Elementary row operations: 1. Interchange two rows. 2. Multiply a row by a nonzero constant. 3. Add a multiple of a row to another row. The identity matrix In is elementary.  it can be obtained from itself by multiplying any one of its row by 1. Ming-Feng Yeh Chapter 2

Example 1 Which matrices are elementary? Section 2-4 Example 1 Which matrices are elementary? : (3)R2  R2 : it is not a square matrix : (0)R3  R3 must be by a nonzero const. : R2  R3 : R2+R1 R2 : two elementary row operations are required. Ming-Feng Yeh Chapter 2

Example 2 Elementary Matrices & Elementary Row Operations Section 2-4 Example 2 Elementary Matrices & Elementary Row Operations Interchange two rows: R1  R2 Multiply a row by a nonzero constant: (0.5)R2  R2 Add a multiple of a row to another row: R2+(2)R1  R2 Ming-Feng Yeh Chapter 2

Theorem 2.12 Representing Elementary Row Operations Section 2-4 Theorem 2.12 Representing Elementary Row Operations Let E be the elementary matrix obtained by performing an elementary row operation on Im. If the same elementary row operation is performed on an mn matrix A, then the resulting matrix is given by the product EA. Most applications of elementary row operations require a sequence of operations.  Gaussian elimination Ming-Feng Yeh Chapter 2

Section 2-4 Example 3 Find a sequence of elementary matrices that can be used to write the matrix A in row-echelon form. Sol: The elementary matrix E is a 33 matrix. (2) (1/2) Ming-Feng Yeh Chapter 2

Row Equivalence & Thms. 2.13~14 Section 2-4 Row Equivalence & Thms. 2.13~14 Definition: Let A and B be mn matrices. Matrix B is row-equivalent to A if there exists a finite number of elementary matrices E1, E2, …, Ek such that B = EkEk1E2E1A. Theorem 2.13: Elementary Matrices Are Invertible If E is an elementary matrix, then E1 exists and is an elementary matrix. Theorem 2.14: A Property of Elementary Matrices A square matrix A is invertible if and only if it can be written as the product of elementary matrices. Ming-Feng Yeh Chapter 2

Elementary Matrices Are Invertible Section 2-4 Elementary Matrices Are Invertible Elementary Matrix Inverse Matrix R1  R2 R1  R2 R3+(2)R1 R3 R3+(2)R1 R3 (½)R3 R3 (2)R3 R3 Ming-Feng Yeh Chapter 2

Section 2-4 Proof of Theorem 2.14 () If A can be written as the product of elementary matrices, then A is invertible. pf: Assume that A is the product of elementary matrices. Then, because every elementary matrix is invertible and the product of invertible matrices is invertible, it follows that A is invertible. () If A is invertible, then it can be written as the product of elementary matrices. pf: Assume that A is invertible. The system of linear equations AX = O has only the trivial solution. This implies that [A┇O] can be rewritten in the form [I┇O] using the elementary operations as EkEk1E2E1A = I. Then it follows that . Thus A can be written as the product of elementary matrices. Ming-Feng Yeh Chapter 2

Example 4 Find a sequence of elementary matrices whose product is Sol: Section 2-4 Example 4 (1) Find a sequence of elementary matrices whose product is Sol: (3) (½) (2) Ming-Feng Yeh Chapter 2

 Theorem 2.15 Equivalent Conditions Section 2-4  Theorem 2.15 Equivalent Conditions If A is an nn matrix, then the following statements are equivalent. 1. A is invertible. 2. Ax = b has a unique solution for every n1 column vector b. 3. Ax = O has only the trivial solution. 4. A is row-equivalent to In. 5. A can be written as the product of elementary matrices. Ming-Feng Yeh Chapter 2

Section 2-4 LU-Factorization A square matrix A is expressed as a product A = LU, where the square matrix L is lower triangular and the square matrix U is upper triangular. Step 1: EkE2E1A = U : row reduction Step 2: Step 3: A = LU By row reducing A Ming-Feng Yeh Chapter 2

Example 6 Find the LU-factorization of the matrix Sol: = U = L Section 2-4 Example 6 (2) Find the LU-factorization of the matrix Sol: 4 = U = L  LU = A Ming-Feng Yeh Chapter 2

Solving a Linear System Section 2-4 Solving a Linear System Using LU-factorization to solve the linear system Ax = b: Ax = b and A = LU  LUx = b Let Ux = y.  Ly = b 1. Solve Ly = b for y. (forward substitution) 2. Solve Ux = y for x. (back-substitution) Ming-Feng Yeh Chapter 2

Example 7 Solve the linear system. Section 2-4 Example 7 Solve the linear system. Sol: 1. Let y = Ux and solve Ly = b for y 2. Solve Ux = y for x Ming-Feng Yeh Chapter 2