520 likes | 539 Views
COLLEGE ALGEBRA. LIAL HORNSBY SCHNEIDER. 5.7. Properties of Matrices. Basic Definitions Adding Matrices Special Matrices Subtracting Matrices Multiplying Matrices Applying Matrix Algebra. Basic Definitions.
E N D
COLLEGE ALGEBRA LIAL HORNSBY SCHNEIDER
5.7 Properties of Matrices Basic Definitions Adding Matrices Special Matrices Subtracting Matrices Multiplying Matrices Applying Matrix Algebra
Basic Definitions It is customary to use capital letters to name matrices. Also, subscript notation is often used to name elements of a matrix, as in the following matrix A.
Basic Definitions Certain matrices have special names: an n x n matrix is a square matrix because the number of rows is equal to the number of columns. A matrix with just one row is a row matrix, and a matrix with just one column is a column matrix.
Basic Definitions Two matrices are equal if they are the same size and if corresponding elements, position by position, are equal. Using this definition, the matrices and are not equal (even though they contain the same elements and are the same size), since the corresponding elements differ.
FINDING VALUES TO MAKE TWO MATRICES EQUAL Example 1 Find the values of the variables for which each statement is true, if possible. a. Solution From the definition of equality, the only way that the statement can be true is if 2 = x, 1 = y, p = –1 and q = 0.
FINDING VALUES TO MAKE TWO MATRICES EQUAL Example 1 Find the values of the variables for which each statement is true, if possible. b. Solution This statement can never be true since the two matrices are different sizes. (One is 2 1 and the other is 3 1. )
Addition of Matrices To add two matrices of the same size, add corresponding elements. Only matrices of the same size can be added.
ADDING MATRICES Example 2 Find each sum, if possible. a. Solution
ADDING MATRICES Example 2 Find each sum, if possible. b. Solution
ADDING MATRICES Example 2 Find each sum, if possible. c. A + B, if A = and B = Solution The matrices and have different sizes so A and B cannot be added; the sum does not exist.
Special Matrices A matrix containing only zero elements is called a zero matrix. A zero matrix can be written with any size. 1 3 zero matrix 2 3 zero matrix
Special Matrices By the additive inverse property, each real number has an additive inverse: if a is a real number, then there is a real number such that
Special Matrices Given matrix A, there is a matrix –A such that A + (–A) = . The matrix –A has as elements the additive inverses of the elements of A. (Remember, each element of A is a real number and therefore has an additive inverse.) For example, if
Special Matrices To check, test that A + (– A) equals the zero matrix, O Matrix –A is called the additive inverse, or negative, of matrix A. Every matrix has an additive inverse.
Subtraction of Matrices If A and B are two matrices of the same size, then A – B = A + (–B).
SUBTRACTING MATRICES Example 3 Find each difference, if possible. a. Solution
SUBTRACTING MATRICES Example 3 Find each difference, if possible. b. Solution
SUBTRACTING MATRICES Example 3 Find each difference, if possible. c. A – B, if A = and B = Solution The matrices and have different sizes and cannot be subtracted, so the difference does not exist.
MULTIPLYING MATRICES BY SCALARS Example 4 Find each product. a. Solution Multiply each element of the matrix by the scalar 5.
MULTIPLYING MATRICES BY SCALARS Example 4 Find each product. b. Solution
Properties of Scalar Multiplication If A and B are matrices of the same size and c and d are scalars, then
Matrix Multiplication We have seen how to multiply a real number (scalar) and a matrix. To find the product of two matrices, such as
Matrix Multiplication first locate row 1of A and column 1of B, shown shaded below.
Matrix Multiplication Multiply corresponding elements, and find the sum of the products. This result is the element for row 1, column 1 of the product matrix. Now use row 1 of A and column 2 of B to determine the element in row 1, column 2 of the product matrix.
Matrix Multiplication Next, use row 2 of A and column 1 of B; this will give the row 2, column 1 entry of the product matrix. Finally, use row 2 of A and column 2 of B to find the entry for row 2, column 2 of the product matrix.
Matrix Multiplication The product matrix can now be written.
Matrix Multiplication To find the ithrow, jthcolumn element of AB, multiply each element in the ith row of A by thecorresponding element in the jthcolumn of B. (Note the shaded areas in the matrices below.) The sum of these products will give the row i, column j element of AB.
Matrix Multiplication The number of columns of an m nmatrix A is the same as the number of rows of an n pmatrix B (i.e., both n). The element cij of the product matrix C = AB is found as follows: Matrix AB will be an m p matrix.
DECIDING WHETHER TWO MATRICES CAN BE MULTIPLIED Example 5 Suppose A is a 3 2 matrix, while B is a 2 4 matrix. a. Can the product AB be calculated? Solution The following diagram shows that AB can be calculated, because the number of columns of A is equal to the number of rows of B. (Both are 2.) Matrix A Matrix B 3 2 2 4 must match size of AB 3 4
DECIDING WHETHER TWO MATRICES CAN BE MULTIPLIED Example 5 Suppose A is a 3 2 matrix, while B is a 2 4 matrix. b. If AB can be calculated, what size is it? Solution As indicated in the diagram below, the product AB is a 3 x 4 matrix. Matrix A Matrix B 3 2 2 4 must match size of AB 3 4
DECIDING WHETHER TWO MATRICES CAN BE MULTIPLIED Example 5 Suppose A is a 3 2 matrix, while B is a 2 4 matrix. c. Can BA be calculated? Solution The diagram below shows that BA cannot be calculated. Matrix B Matrix A 3 4 3 4 different
DECIDING WHETHER TWO MATRICES CAN BE MULTIPLIED Example 5 Suppose A is a 3 2 matrix, while B is a 2 4 matrix. d. If BA can be calculated, what size is it? Solution The product BA cannot be calculated, because B has 4 columns and A has only 3 rows.
MULTIPLYING MATRICES Example 6 Let Find each product, if possible. a. AB Solution First decide whether AB can be found. Since A is22 and B is2 4, the product can be found and will be a 2 4 matrix.
MULTIPLYING MATRICES Example 6 Use the definition of matrix multiplication Perform the operations.
MULTIPLYING MATRICES Example 6 Let Find each product, if possible. b. BA Solution Since B is a 2 4 matrix, and A is a 2 2 matrix, the number of columns of B (4) does not equal the number of rows of A (2). Therefore, the product BA cannot be found.
SQUARE Example 7 Let Find each product. a. AB Solution
SQUARE Example 7 Let Find each product. b. BA Solution Note that AB ≠ BA.
In general, if A and B are matrices, then AB ≠ BA . Matrix multiplication is not commutative.
Properties of Matrix Multiplication If A, B, and C are matrices such that all the following products and sums exist, then
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 A contractor builds three kinds of houses, models A, B, and C, with a choice of two styles, colonial or ranch. Matrix Pshows the number of each kind of house the contractor is planning to build for a new 100-home subdivision. The amounts for each of the main materials used depend on the style of the house. These amounts are shown in matrix Q, while matrix Rgives the cost in dollars for each kind of material. Concrete is measured here in cubic yards, lumber in 1000 board feet, brick in 1000s, and shingles in 100 square feet.
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 Colonial Ranch Model A Model B Model C
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 Concrete Lumber Brick Shingles Colonial Ranch
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 Cost per Unit Concrete Lumber Brick Shingles
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 a. What is the total cost of materials for all houses of each model? Solution To find the materials cost for each model, first find matrix PQ, which will show the total amount of each material needed for all houses of each model.
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 Concrete Lumber Brick Shingles Model A Model B Model C
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 Multiplying PQ and the cost matrix R gives the total cost of materials for each model. Cost Model A Model B Model C
USING MATRIX MULTIPLICATION TO MODEL PLANS FOR A SUBDIVISION Example 8 b. How much of each of the four kinds of material must be ordered? Solution To find how much of each kind of material to order, refer to the columns of matrix PQ. The sums of the elements of the columns will give a matrix whose elements represent the total amounts of each material needed for the subdivision. Call this matrix T, and write it as a row matrix.