Partial preview of the text
Download Mathematics chapter 3 and more Lecture notes Mathematics in PDF only on Docsity!
Operations with Matric CHAPTER OBJECTIVES @ Write a system of linear equations represented by a matrix, as well as write the matrix form of a system of linear equations. © Write and solve a system of linear equations in the form Ax = b. @ Use properties of matrix operations to solve matrix equations. @ Find the transpose of a matrix, the inverse of a matrix, and the inverse of a matrix product (if they exist). @ Factor a matrix into a product of elementary matrices, and determine when they are invertible. @ Find and use the LU-factorization of a matrix to solve a system of linear equations. @ Use a stochastic matrix to measure consumer preference. @ Use matrix multiplication to encode and decode messages. @ Use matrix algebra to analyze economic systems (Leontief input-output models). @ Use the method of least squares to find the least squares regression line for a set of data. 2.1 | Operations with Matrices In Section 1.2 you used matrices to solve systems of linear equations. Matrices, however, can be used to do much more than that. There is a rich mathematical theory of matrices, and its applications are numerous. This section and the next introduce some fundamentals of matrix theory. It is standard mathematical convention to represent matrices in any one of the following three ways. 1. A matrix can be denoted by an uppercase letter such as ABE G con nn 2. A matrix can be denoted by a representative element enclosed in brackets, such as {a,J.[6,} fe, )- - Definition of Equality of Matrices EXAMPLE 1 Section 2.1 Operations with Matrices aT 3. A matrix can be denoted by a rectangular array of numbers ay yy yg ay Gz, zy gg ay G3, yy ag ay Amy yx Ams Aan As mentioned in Chapter 1, the matrices in this text are primarily real matrices. That is, their entries contain real numbers. ‘Two matrices are said to be equal if their corresponding entries are equal. ‘Two matrices A = [a,,] and B = [b,,] are equal if they have the same size (m x m) and a, = b; forl =i = mandl 2 a3 Bixby, Robert E, et al, Operations “1-2 1 a on 2 1 Research, 40, no. 5, 1892.) ‘The matrix could also be partitioned into column matrices 1 2 0 0 3} 4/0 | Of= ce cGy] aT? 2 1 or row matrices 1 2 0 oO r, 3400 Ol=]r, -1 -2 2: 1 Fy ECTION Exercises In Exercises 1-6, find (a) A + B, (b) A — B, (c) 2A, (d) 2A = B, Z a-[ 2 1 ‘| e-[ 2-3 | and (e) B+ 4A “t-1 -b 47 *"[-3 1 -2 1-1 2-1 3 2-1 o 2 1 was[, “ih e=[ si 8 afi 4 | «-[: 4 4 [: " [2 iy o 1 2 2 1 0 A= , os 2 1 42 2 3 4 o 6 2 6 -1 1 6A=|0 1-1 B=] 4 1 «0 3.A=| 2 4) B=]-1 2 0 1 vio 2 4 -3 5 1 10. 58 Chapter 2 Matrices 33. xy, - 2 tas 9 -1 x, + 3y,- x= -6 1 2x, — Sx, + Sx, = 17 2 Box - Sx tly ~3x, - 3,5 ~2x, ++ 5x, 3x yt ay = at Sy -1l 6x, + 5x, = 40 In Exercises 37 and 38, solve the matrix equation for A. 1 2 a) 2-1 1 oO a [: lA - [5 iI 3s i “2/4 - [; il In Exercises 39 and 40, solve the matrix equation for a, b, e, and d. 1 2}[a Bb 6 3 3. [; ‘] E ‘l i (i | a | B 1 _ F | e a@jl3 41) la -1 41. Find conditions on w,.«, y, and z such that AB = BA for the matrices below. w x 1 i we Gow fe 7 ¥ z =f 1 42. Verify AB = BA for the following matrices. an mul ana ae |e - eal sina cos @ sinB cos B 40. A square matrix 0 Os: 0 0 a 0 --- 0 du) oo OQ 0 0 0 ++. ome is called a diagonal matrix if all entries that are not on the main diagonal are zero. In Exercises 43 and 44, find the prod- uct AA for the diagonal matrix. 1 Oo oO 2 oO i} 43. A= Oo 2 Oo 44.A=)0 3 oO o 0 3 o 0 0 In Exercises 45 and 46, find the products AB and BA for the diagonal matrices. sy 0 _f-5 0 wan[? SL a=[-3 fl] 3 oO i} —7 oO oO 46.A=}0 5 O| B= oO 4 oO Oo oO oO oO oO 12 47. Guided Proof Prove that if A and & are diagonal matrices (of the same size), then AB = BA. Getting Started: To prove that the matrices AB and BA are equal, you need to show that their corresponding entries are equal. a Begin your proof by letting A = [a,,] and & = [b,] be two diagonal x # matrices 7 (ii) The jjth entry of the product AB is ¢,, = Sah, A Gi) Evaluate the entries ¢,, for the two cases / % jand i = j. (iv) Repeat this analysis for the product BA. 48, Writing LetAand & be 3 x 3 matrices, where A is diagonal. (a) Describe the product AB- Illustrate your answer with ‘examples. (b) Describe the product BA. Illustrate your answer with examples. (c) How do the results in parts (a) and (b) change if the diagonal entries of A are all equal’? In Exercises 49-52, find the twace of the matrix. The trace of an moc matrix A is the sum of the main diagonal entries. That is, THA} =a, tay t--- +a, 1 2 3 1 0 0 49.0 cf 4 50. | 0 1 Oo 3 1 3 Oo o 1 1 o 2 1 1 4 3 2 oO 1 1 = 4 Oo 6 1 a 4 - 1 oO Be 3 6 2 1 oO oO 3 1 2 1 1-3 53. Prove that each statement is tue if A and 8 are square matrices of order nt and ¢ is a scalar. (a) TA + B) = TrlA) + Tr(B) (b) Tred) = cTr(A) 54, Prove that if A and B are square matrices of order n, then THAB) = Tr(BA). 55. 58. 59, ol. 62. Show that the matrix equation has no solution. eT 4 . Show that no 2 = 2 matrices A and 8 exist that satisfy the matrix equation AB- BA= [i Al ool . Let = v= T and let A -[; *) sna a= e al (a) Find A®, A®, and A‘, Identify any similarities among i, i, and i*, (b) Find and identify B2. Guided Proof Prove that if the product AB is a square matrix, then the product BA is defined. Getting Started: To prove that the product BA is defined, you need to show that the number of columns of 5 equals the number of rows of A, (i) Begin your proof by noting that the number of columns of A equals the number of rows of B. (ii) You can then assume that A has size mn and B has size n x p Use the hypothesis that the product AB is a square matrix. Prove that if both products AB and BA are defined, then AB and BA are square matrices. (iii) . Let A and B be two matrices such that the product AB is defined. Show that if A has two identical rows, then the corresponding two rows of AB are also identical Let A and B be n » n matrices. Show that if the ith row of A has all zero entries, then the ith row of AB will have all zero entries. Give an example using 2 » 2 matrices to show that the converse is not true. The columns of matrix 7 show the coordinates of the vertices of atriangle. Matrix A is a transformation matrix. _fo -1 _fi 2 3 as is Ar r=[I 4 3] (a) Find AT and AAT. Then sketch the original triangle and the two transformed triangles. What transformation does A represent? (b) A triangle is determined by AAT. Describe the transfor- mation process that produces the triangle determined by AT and then the triangle determined by T. 63. 65. Section 2.1 Operations with Matrices 59 A corporation has three factories, each of which manufactures acoustic guitars and electric guitars. The number of guitars of type / produced at factory j in one day is represented by a, in the matrix ‘al 70 a= Ee 50 Find the production levels if production is increased by 20%. 35° 100 |. A corporation has four factories, each of which manufactures sport utility vehicles and pickup trucks. The number of vehicles of type / produced at factory jin one day is represented by a, in the matrix | cc Find the production levels if production is increased by 10%. a=[® 90-70 L400 20 60 A fruit grower raises two crops, apples and peaches. Each of these crops is shipped to three different outlets. The number of units of crop i that are shipped to outlet j is represented by a, in the matrix _ a 100 i ~ [loo 17s) 135 The profit per unit is represented by the matrix B= [83.50 $6.00). Find the product BA and state what each entry of the product represents. » A company manufactures tables and chairs at two locations. Matrix C gives the total cost of manufacturing each product at each location. Lovation I Lacation 2 Tables [ 627 681 | Chairs 135 150 (a) If labor accounts for about 3 of the total cost, determine the matrix £ that gives the labor cost for each product at each location. What matrix operation did you use? (b) Find the matrix M that gives material costs for each product at each location. (Assume there are only labor and material costs.) Section 2.2 Properties of Matrix Operations 61 In Exercises 73-76, express the column matrix b as a linear combi- bo o4-s 3 nation of the columns of A. BoA= f a Liebe 1-1 2 =I o aE: <4 0 73. A= b= [<3 ih e-Pa] 305 -22 i A=] 3 4, b=| 4 3 4-8 2 2 1 2 4 4. A=|-1 oO 2), b oO 1 3 2.2 | Properties of Matrix Operations In Section 2.1 you concentrated on the mech: of the three basic matrix operations: matrix addition, scalar multiplication, and matrix multiplication. This section begins to develop the algebra of matrices. You will see that this algebra shares many (but not all) of the properties of the algebra of real numbers. Several properties of matrix addition and scalar multiplication are listed below. THEOREM 2.1 If A,B, and C are m = n matrices and ¢ and d are scalars, then the following properties Properties of Matrix are true. Addition and Scalar 1. A+B=Bt+A ‘Commutative property of addition Multiplication 2A+(B+C)=(A+ B+ Associative property of addition 3. (cd)A = (dA) Associative property of multiplication 4.1A=A4 Multiplicative identity 5. ofA + B) = cA + cB Distributive property 6. (c+ dA =cA+ dA Distributive property proor The proofs of these six properties follow directly from the definitions of matrix addition, scalar multiplication, and the corresponding properties of real numbers. For example, to prove the commutative property of matrix addition, let A = [a,,| and B = [b,,]. Then, using the commutative property of addition of real numbers, write A+ B=[a, + 6,] =[b) +4] = B+ 4. Similarly, to prove Property 5, use the distributive property (for real numbers) of multipli- cation over addition to write clA + B) = [ela + b,)] = [cay + by] = cA + &B. i The proofs of the remaining four properties are left as exercises. (See Exercises 47-50.) 62 Chapter 2 Matrices EXAMPLE 1 In the preceding section, matrix addition was defined as the sum of hve matrices, ma ita binary operation. The associative property of matrix addition now allows you to write expressions such as A + B + Cas (A + B) + Coras A + (B + C). This same reasoning applies to sums of four or more matrices. Addition of More than Two Matrices THEOREM 2.2 Properties of Zero Matrices By adding corresponding entries, you can obtain the sum of four matrices shown below. 1 = oO 2 2 2)+]-1]+ | =|- al 2. 4 cad, 1 One important property of the addition of real numbers is that the number 0 serves as the additive identity. That is, ¢ + 0 = ¢ for any real number c. For matrices, a similar prop- erty holds. Specifically, if A is an m x n matrix and Q,,, is the m » n matrix consisting entirely of zeros, then A + Q,,, = A. The matrix O,,, is called a zero matrix, and it serves as the additive identity for the set of all m » nm matrices. For example, the following matrix serves as the additive identity for the set of all 2 x 3 matrices. — ks 0 | 3 lo 0 0 When the size of the matrix is understood, you may denote a zero matrix simply by 0. The following properties of zero matrices are easy to prove, and their proofs are left as an exercise. (See Exercise 51.) If A is an m * w mattix and c is a scalar, then the following properties are true. LA+0,,=4 2A+(-A)=0,, 3. Wed = O,,, then c = 00rd = On, REMARK: Property 2 can be described by saying that mawix —A is the additive inverse of A. The algebra of real numbers and the algebra of matrices have many similarities. For example, compare the solutions below. Real Numbers mx nt Matrices: (Solve for x.) (Solve for X.) xta=b X+A=B xt+a+(-a) = b+ (-a) X+A+(-A) = 8+ (-A) x+0=b-a@ X+O=B-A x=b-a X=B-A The process of solving a matrix equation is demonstrated in Example 2. Chapter 2 Matrices EXAMPLE 3 Matrix Multiplication Is Associative SOLUTION EXAMPLE 4 Find the matrix product ABC by grouping the factors first as (AB)C and then as A(BC). Show that the same result is obtained from both processes. jin 2] |! 0 | Bel 4 2 -1r 3-2 aif 2 4 Grouping the factors as (AB)C, you have -1 0 ane = ([} UL! 0 ‘| ay 4 ~AL2 -1}L3 -2 11) 2 4 -s 4 of “lon 4 ag 2 3| “lis ual 2 4 Grouping the factors as A(BC), you obtain the same result. wo A(R 3 I) ') “aL 0 Ae Note that no commutative property for matrix multiplication is listed in Theorem 2.3. Although the product AB is defined, it can easily happen that A and B are not of the proper sizes to define the product BA. For instance, if A is of size 2 x 3 and B is of size 3 x 3, then the product AB is defined but the product BA is not. The next example shows that even if both products AB and BA are defined, they may not be equal. Noncommutativity of Matrix Multiplication SOLUTION Show that AB and BA are not equal for the matrices ej ek of IG WE melo all -l-[ 2] AB # BA EXAMPLE § Section 2.2 Properties of Matrix Operations 65 Do not conclude from Example 4 that the matrix products AB and BA are never the same. Sometimes they are the same. For example, wy multiplying the following matrices, first in the order AB and then in the order BA. of eli ‘You will see that the two products are equal. The point is this: Although AB and BA are sometimes equal, AB and BA are usually not equal. Another important quality of matrix algebra is that it does not have a general cancella- tion property for matrix multiplication. That is, if AC = BC not necessarily true that A = B. This is demonstrated in Example 5. (In the next section you will see that, for some special types of matrices, cancellation is valid.) An Example in Which Cancellation Is Not Valid SOLUTION Show that AC = BC. a=|) 4 ae 10 LF ac=|) il 1 o oft-1 cee | AC = BC, even though A # B. You will now look at a special type of square matrix that has 1's on the main diagonal and 0's elsewhere. 100 0 o 10 0 i,=|0 01 0 000° 1 For instance, if n = 1, 2, or 3, we have i 0 1 0 oO i,=fh a-[} Hi i=|0 1 of 0 0 1 1x1 2x2 3x3 When the order of the matrix is understood to be m, you may denote J, simply as 1. As stated in Theorem 2.4 on the next page, the matrix J, serves as the identity for matrix multiplication; it is called the identity matrix of order n. The proof of this theorem is left as an exercise. (See Exercise 53.)