Download presentation
Presentation is loading. Please wait.
Published byNeil Fisher Modified over 8 years ago
1
Copyright © Cengage Learning. All rights reserved. 7 Matrices and Determinants
2
7.2 OPERATIONS WITH MATRICES Copyright © Cengage Learning. All rights reserved.
3
3 Decide whether two matrices are equal. Add and subtract matrices and multiply matrices by scalars. Multiply two matrices. Use matrix operations to model and solve real-life problems. What You Should Learn
4
4 Equality of Matrices
5
5 There is a rich mathematical theory of matrices, and its applications are numerous. This section introduces some fundamentals of matrix theory. It is standard mathematical convention to represent matrices in any of the following three ways.
6
6 Equality of Matrices Two matrices A = [a ij ] and B = [b ij ] are equal if they have the same order (m n) and a ij = b ij for 1 i m and 1 j n. In other words, two matrices are equal if their corresponding entries are equal.
7
7 Example 1 – Equality of Matrices Solve for a 11, a 12, a 21, and a 22 in the following matrix equation. Solution: Because two matrices are equal only if their corresponding entries are equal, you can conclude that a 11 = 2, a 12 = –1, a 21 = –3, and a 22 = 0.
8
8 Matrix Addition and Scalar Multiplication
9
9 In this section, three basic matrix operations will be covered. The first two are matrix addition and scalar multiplication. With matrix addition, you can add two matrices (of the same order) by adding their corresponding entries.
10
10 Example 2 – Addition of Matrices
11
11 Example 2 – Addition of Matrices d. The sum of and is undefined because A is of order 3 3 and B is of order 3 2. cont’d
12
12 Matrix Addition and Scalar Multiplication In operations with matrices, numbers are usually referred to as scalars. In this text, scalars will always be real numbers. You can multiply a matrix A by a scalar c by multiplying each entry in A by c.
13
13 Matrix Addition and Scalar Multiplication The symbol –A represents the negation of A, which is the scalar product (–1)A. Moreover, if A and B are of the same order, then A – B represents the sum of A and (–1)B. That is, A – B = A + (–1)B. The order of operations for matrix expressions is similar to that for real numbers. Subtraction of matrices
14
14 Example 3 – Scalar Multiplication and Matrix Subtraction For the following matrices, find (a) 3A, (b) –B, and (c) 3A – B.
15
15 Example 3(a) – Solution Scalar multiplication Multiply each entry by 3. Simplify.
16
16 Example 3(b) – Solution Definition of negation Multiply each entry by –1. cont’d
17
17 Example 3(c) – Solution Matrix subtraction Subtract corresponding entries. cont’d
18
18 Matrix Addition and Scalar Multiplication The properties of matrix addition and scalar multiplication are similar to those of addition and multiplication of real numbers.
19
19 Matrix Addition and Scalar Multiplication Note that the Associative Property of Matrix Addition allows you to write expressions such as A + B + C without ambiguity because the same sum occurs no matter how the matrices are grouped. This same reasoning applies to sums of four or more matrices.
20
20 Matrix Addition and Scalar Multiplication One important property of addition of real numbers is that the number 0 is the additive identity. That is, c + 0 = c for any real number c. For matrices, a similar property holds. That is, if A is an m n matrix and O is the m n zero matrix consisting entirely of zeros, then A + O = A.
21
21 Matrix Addition and Scalar Multiplication In other words, O is the additive identity for the set of all m n matrices. For example, the following matrices are the additive identities for the sets of all 2 3 and 2 2 matrices. and 2 3 zero matrix 2 2 zero matrix
22
22 Matrix Addition and Scalar Multiplication The algebra of real numbers and the algebra of matrices have many similarities. For example, compare the following solutions. Real Numbers m n Matrices (Solve for x.) (Solve for X.) x + a = b X + A = B x + a + (–a) = b + (–a) X + A + (–A) = B + (–A) x + 0 = b – a X + O = B – A x = b – a X = B – A
23
23 Matrix Multiplication
24
24 Matrix Multiplication Another basic matrix operation is matrix multiplication. The definition of matrix multiplication indicates a row-by-column multiplication, where the entry in the i th row and j th column of the product AB is obtained by multiplying the entries in the i th row of A by the corresponding entries in the j th column of B and then adding the results.
25
25 Matrix Multiplication So for the product of two matrices to be defined, the number of columns of the first matrix must equal the number of rows of the second matrix. The general pattern for matrix multiplication is as follows.
26
26 Example 7 – Finding the Product of Two Matrices Find the product AB using and Solution: To find the entries of the product, multiply each row of A by each column of B.
27
27 Example 7 – Solution cont’d
28
28 Matrix Multiplication Be sure you understand that for the product of two matrices to be defined, the number of columns of the first matrix must equal the number of rows of the second matrix. That is, the middle two indices must be the same. The outside two indices give the order of the product, as shown below. A B = AB m n n p m p
29
29 Even if both AB and BA are defined, matrix multiplication is not, in general, commutative. That is, for most matrices, AB BA. This is one way in which the algebra of real numbers and the algebra of matrices differ. Matrix Multiplication
30
30 Matrix Multiplication
31
31 Matrix Multiplication If A is an n n matrix, the identity matrix has the property that AI n = A and I n A = A. For example, and AI = A IA = A
32
32 Applications
33
33 Applications Matrix multiplication can be used to represent a system of linear equations. Note how the system can be written as the matrix equation AX = B, where A is the coefficient matrix of the system, and X and B are column matrices. A X = B
34
34 Example 11 – Solving a System of Linear Equations Consider the following system of linear equations. x 1 – 2x 2 + x 3 = – 4 x 2 + 2x 3 = 4 2x 1 + 3x 2 – x 3 = 2 a. Write this system as a matrix equation, AX = B. b. Use Gauss-Jordan elimination on the augmented matrix to solve for the matrix X.
35
35 Example 11 – Solution a. In matrix form, AX = B, the system can be written as follows. b. The augmented matrix is formed by adjoining matrix B to matrix A.
36
36 Example 11 – Solution Using Gauss-Jordan elimination, you can rewrite this equation as So, the solution of the system of linear equations is x 1 = –1, x 2 = 2, and x 3 = 1, and the solution of the matrix equation is cont’d
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.