CHAPTER HERE S WHERE YOU LL FIND THESE APPLICATIONS:

Similar documents
Matrices and Determinants

10/26/ Solving Systems of Linear Equations Using Matrices. Objectives. Matrices

For example, the system. 22 may be represented by the augmented matrix

Precalculus Notes: Unit 7 Systems of Equations and Matrices

6.3 Notes O Brien F15

EXTENSION. a 1 b 1 c 1 d 1. Rows l a 2 b 2 c 2 d 2. a 3 x b 3 y c 3 z d 3. This system can be written in an abbreviated form as

3. Replace any row by the sum of that row and a constant multiple of any other row.

MA 162: Finite Mathematics - Sections 2.6

Exploration Assignment #1. (Linear Systems)

Section 3.1 Gaussian Elimination Method (GEM) Key terms

Math 13 Chapter 3 Handout Helene Payne. Name: 1. Assign the value to the variables so that a matrix equality results.

3.1. 3x 4y = 12 3(0) 4y = 12. 3x 4y = 12 3x 4(0) = y = x 0 = 12. 4y = 12 y = 3. 3x = 12 x = 4. The Rectangular Coordinate System

Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses

Unit 0: Extending Algebra 1 Concepts

Matrices and Systems of Linear Equations

CHAPTER 5 SYSTEMS OF EQUATIONS. x y

MATH 2000 Gauss-Jordan Elimination and the TI-83 [Underlined bold terms are defined in the glossary]

Section 3.1 Graphing Using the Rectangular Coordinate System

Math 20 Practice Exam #2 Problems and Their Solutions!

Slide 2 / 222. Algebra II. Quadratic Functions

Section 1.5 Transformation of Functions

7.3 3-D Notes Honors Precalculus Date: Adapted from 11.1 & 11.4

Exponents and Real Numbers

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

Section 1.5 Transformation of Functions

Put the following equations to slope-intercept form then use 2 points to graph

Chapter 1. Linear Equations and Straight Lines. 2 of 71. Copyright 2014, 2010, 2007 Pearson Education, Inc.

Chapter 3 Linear Programming: A Geometric Approach

Let s review some things we learned earlier about the information we can gather from the graph of a quadratic.

Solving Systems Using Row Operations 1 Name

Lecture 5. If, as shown in figure, we form a right triangle With P1 and P2 as vertices, then length of the horizontal

Matrices and Systems of Equations

Linear Programming: A Geometric Approach

A Poorly Conditioned System. Matrix Form

Solving Systems of Equations Using Matrices With the TI-83 or TI-84

Question 2: How do you solve a linear programming problem with a graph?

Basic Matrix Manipulation with a TI-89/TI-92/Voyage 200

Unit 6 Quadratic Functions

Building Concepts: Moving from Proportional Relationships to Linear Equations

OVERVIEW DISPLAYING NUMBERS IN SCIENTIFIC NOTATION ENTERING NUMBERS IN SCIENTIFIC NOTATION

II. Functions. 61. Find a way to graph the line from the problem 59 on your calculator. Sketch the calculator graph here, including the window values:

Module 2 Congruence Arithmetic pages 39 54

CSE 460. Today we will look at" Classes of Optimization Problems" Linear Programming" The Simplex Algorithm"

Chapter 15 Introduction to Linear Programming

2. Use elementary row operations to rewrite the augmented matrix in a simpler form (i.e., one whose solutions are easy to find).

Announcements Wednesday, August 22

LINEAR PROGRAMMING. Chapter Overview

MAC Rev.S Learning Objectives. Learning Objectives (Cont.) Module 4 Quadratic Functions and Equations

GCSE-AS Mathematics Bridging Course. Chellaston School. Dr P. Leary (KS5 Coordinator) Monday Objectives. The Equation of a Line.

Mathematics Scope & Sequence Algebra I

Announcements Wednesday, August 23

College Algebra Exam File - Fall Test #1

MAT 003 Brian Killough s Instructor Notes Saint Leo University

Paul's Online Math Notes. Online Notes / Algebra (Notes) / Systems of Equations / Augmented Matricies

MINI LESSON. Lesson 1a Introduction to Functions

Name: ID: Discussion Section:

UNIT 2 LINEAR PROGRAMMING PROBLEMS

AP Calculus. Extreme Values: Graphically. Slide 1 / 163 Slide 2 / 163. Slide 4 / 163. Slide 3 / 163. Slide 5 / 163. Slide 6 / 163

QUADRATIC FUNCTIONS TEST REVIEW NAME: SECTION 1: FACTORING Factor each expression completely. 1. 3x p 2 16p. 3. 6x 2 13x 5 4.

Math Analysis Chapter 1 Notes: Functions and Graphs

Objective- Students will be able to use the Order of Operations to evaluate algebraic expressions. Evaluating Algebraic Expressions

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Lesson 18: There is Only One Line Passing Through a Given Point with a Given

Factor Quadratic Expressions

2.1 Introduction to Fractions and Mixed Numbers. A Introduction to Fractions SAMPLE. 3 7 Figure 1. The whole candy bar can be represented as 7 7.

2.1 Solutions to Exercises

3.1 Solving Systems Using Tables and Graphs

Test 3 review SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

08. First and second degree equations

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial

Math 135: Intermediate Algebra Homework 10 Solutions December 18, 2007

Sample tasks from: Algebra Assessments Through the Common Core (Grades 6-12)

Sample: Do Not Reproduce QUAD4 STUDENT PAGES. QUADRATIC FUNCTIONS AND EQUATIONS Student Pages for Packet 4: Quadratic Functions and Applications

Lesson #17 Function Introduction

You used set notation to denote elements, subsets, and complements. (Lesson 0-1)

MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix.

Econ 172A - Slides from Lecture 2

5 The Theory of the Simplex Method

Exploring Fractals through Geometry and Algebra. Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss

Fractions. 7th Grade Math. Review of 6th Grade. Slide 1 / 306 Slide 2 / 306. Slide 4 / 306. Slide 3 / 306. Slide 5 / 306.

Linear programming II João Carlos Lourenço

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA I. 2 nd Nine Weeks,

Chapter 1 & 2. Homework Ch 1 & 2

Quadratic Functions CHAPTER. 1.1 Lots and Projectiles Introduction to Quadratic Functions p. 31

Geometric and Algebraic Connections

YEAR 7 SCHEME OF WORK - EXTENSION

Summer Review for Students Entering Pre-Calculus with Trigonometry. TI-84 Plus Graphing Calculator is required for this course.

Without fully opening the exam, check that you have pages 1 through 11.

Common Core Algebra 2. Chapter 1: Linear Functions

Catalan Numbers. Table 1: Balanced Parentheses

Summer Review for Students Entering Pre-Calculus with Trigonometry. TI-84 Plus Graphing Calculator is required for this course.

Chapter 1: Number and Operations

ALGEBRAIC THINKING AND APPLICATIONS

Lesson 10. Student Outcomes. Lesson Notes

Announcements Wednesday, August 23

Algebra 2 Common Core Summer Skills Packet

1.1 - Functions, Domain, and Range

A Function of Two Variables A function of two variables is a function that is, to each input is associated exactly one output.

Do you need a worksheet or a copy of the teacher notes? Go to

MAC Learning Objectives. Module 4. Quadratic Functions and Equations. - Quadratic Functions - Solving Quadratic Equations

Transcription:

CHAPTER 8 You are being drawn deeper into cyberspace, spending more time online each week. With constantly improving high-resolution images, cyberspace is reshaping your life by nourishing shared enthusiasms. The people who built your computer talk of bandwidth that will give you the visual experience, in high-definition -D format, of being in the same room with a person who is actually in another city. Rectangular arrays of numbers, called matrices, play a central role in representing computer images and in the forthcoming technology of tele-immersion. HERE S WHERE YOU LL FIND THESE APPLICATIONS: The use of rectangular arrays of numbers in the digital representation of images and the manipulation of images on a computer screen is discussed in Examples 8 and 9 in Section 8.. 89

85 Chapter 8 Matrices and Determinants SECTION 8. Matrix Solutions to Linear Systems Objectives Write the augmented matrix for a linear system. Perform matrix row operations. Use matrices and Gaussian elimination to solve systems. Use matrices and Gauss-Jordan elimination to solve systems. Write the augmented matrix for a linear system. GREAT QUESTION! Do linear systems have to be expressed in a special form when writing augmented matrices? Yes. Variable terms must be on one side of each equation and constants must be on the other side. Furthermore, the variables must be in the same order in each equation. In Chapter 5, we used systems of inequalities to establish healthy weight ranges for men and women of various ages and heights. Now it s time to step on the scale. The data below show the average weight of American adults, by age. Average Weight by Age Ages 9 Ages 9 Ages 9 Ages 5 59 Ages 6 69 Ages 7 79 Ages 8 Men 88 9 99 98 87 68 J R Women 56 65 7 7 7 56 Source: National Center for Health Statistics The numbers inside the brackets are arranged in two rows and seven columns. This rectangular array of numbers, arranged in rows and columns and placed in brackets, is an example of a matrix (plural: matrices ). The numbers inside the brackets are called elements of the matrix. Matrices are used to display information and to solve systems of linear equations. Because systems involving two equations in two variables can easily be solved by substitution or addition, we will focus on matrix solutions to systems of linear equations in three or more variables. Augmented Matrices A matrix gives us a shortened way of writing a system of equations. The first step in solving a system of linear equations using matrices is to write the augmented matrix. An augmented matrix has a vertical bar separating the columns of the matrix into two groups. The coefficients of each variable are placed to the left of the vertical line and the constants are placed to the right. If any variable is missing, its coefficient is. Here are two examples: System of Linear Equations x + y + z = c x + y + z = 9 x + y + z = 5 c x + y - 5z = -9 y + z = 9 z = Augmented Matrix C -5 C 9 S 5-9 9 S. Our goal in solving a system of linear equations in three variables using matrices is to produce a matrix with s down the diagonal from upper left to lower right on the left side of the vertical bar, called the main diagonal, and s below the s. In general, the matrix will be of the form a b C d c e S, f where a through f represent real numbers. The third row of this matrix gives us the value of one variable. The other variables can then be found by back-substitution.

Section 8. Matrix Solutions to Linear Systems 85 Perform matrix row operations. Matrix Row Operations A matrix with s down the main diagonal and s below the s is said to be in rowechelon form. How do we produce a matrix in this form? We use row operations on the augmented matrix. These row operations are just like what you did when solving a linear system by the addition method. The difference is that we no longer write the variables, usually represented by x, y, and z. Matrix Row Operations The following row operations produce matrices that represent systems with the same solution set:. Two rows of a matrix may be interchanged. This is the same as interchanging two equations in a linear system.. The elements in any row may be multiplied by a nonzero number. This is the same as multiplying both sides of an equation by a nonzero number.. The elements in any row may be multiplied by a nonzero number, and these products may be added to the corresponding elements in any other row. This is the same as multiplying both sides of an equation by a nonzero number and then adding equations to eliminate a variable. Two matrices are row equivalent if one can be obtained from the other by a sequence of row operations. GREAT QUESTION! Can you clarify what I m supposed to do to find kr i + R j? Which row do I work with and which row do I replace? When performing the row operation kr i + R j, you use row i to find the products. However, elements in row i do not change. It is the elements in row j that change: Add k times the elements in row i to the corresponding elements in row j. Replace elements in row j by these sums. Each matrix row operation in the preceding box can be expressed symbolically as follows:. Interchange the elements in the ith and jth rows: R i R j.. Multiply each element in the ith row by k: kr i.. Add k times the elements in row i to the corresponding elements in row j: kr i + R j. EXAMPLE Performing Matrix Row Operations Use the matrix 8 - C - 5 S - - -6 and perform each indicated row operation: a. R R b. R c. R + R. SOLUTION a. The notation R R means to interchange the elements in row and row. This results in the row-equivalent matrix 5 C 8 S. 6 This was row ; now it s row. This was row ; now it s row. b. The notation R means to multiply each element in row by. This results in the row-equivalent matrix () (8) (-) C - - - () 5-6 6 - S = C - - - 7 5 S. -6

85 Chapter 8 Matrices and Determinants 8 - C - 5 S - - -6 The given matrix (repeated) c. The notation R + R means to add times the elements in row to the corresponding elements in row. Replace the elements in row by these sums. First, we find times the elements in row, namely,,, -, and 5: () or, () or, (-) or -6, (5) or. Now we add these products to the corresponding elements in row. Although we use row to find the products, row does not change. It is the elements in row that change, resulting in the row-equivalent matrix Replace row by the sum of itself and times row. 8 8 C 5 S = C 5 S. += += +( 6)= 6+= Check Point Use the matrix - C 6 - - - 8 S 7-9 and perform each indicated row operation: a. R R b. R c. R + R. Use matrices and Gaussian elimination to solve systems. Solving Linear Systems Using Gaussian Elimination The process that we use to solve linear systems using matrix row operations is called Gaussian elimination, after the German mathematician Carl Friedrich Gauss (777 855). Here are the steps used in Gaussian elimination: Solving Linear Systems of Three Equations with Three Variables Using Gaussian Elimination. Write the augmented matrix for the system.. Use matrix row operations to simplify the matrix to a row-equivalent matrix in row-echelon form, with s down the main diagonal from upper left to lower right, and s below the s in the first and second columns. * * * C* * * * S * * * * * * * C * * * S * * * * * * C * * S * * * * * * C * * S * * * * * C * * S * Get in the upper lefthand corner. Use the in the first column to get s below it. Get in the second row, second column position. Use the in the second column to get below it. Get in the third row, third column position.. Write the system of linear equations corresponding to the matrix in step and use back-substitution to find the system s solution. EXAMPLE Gaussian Elimination with Back-Substitution Use matrices to solve the system: x + y + z = c x + y + z = 9 x + y + z = 5.

SOLUTION Step Write the augmented matrix for the system. Section 8. Matrix Solutions to Linear Systems 85 Linear System x + y + z = c x + y + z = 9 x + y + z = 5 Augmented Matrix C 9 S 5 Step Use matrix row operations to simplify the matrix to row-echelon form, with s down the main diagonal from upper left to lower right, and s below the s in the first and second columns. Our first step in achieving this goal is to get in the top position of the first column. We want in this position. C 9 S 5 To get in this position, we interchange row and row : R R. (We could also interchange row and row to attain our goal.) 9 C S 5 This was row ; now it s row. This was row ; now it s row. Now we want to get s below the in the first column. 9 We want in these positions. C S 5 To get a where there is now a, multiply the top row of numbers by - and add these products to the second row of numbers: -R + R. To get a where there is now a, multiply the top row of numbers by - and add these products to the third row of numbers: -R + R. Although we are using row to find the products, the numbers in row do not change. Replace row by R + R. Replace row by R + R. 9 9 C ()+ ()+ ()+ (9)+ S = C 6 S ()+ ()+ ()+ (9)+5 6 We want in this position. We move on to the second column. To get in the desired position, we multiply - by its reciprocal, -. Therefore, we multiply all the numbers in the second row by - : - R. R C () 9 9 ( ) S C ( ) ( 6) = S. 6 6 We want in this position.

85 Chapter 8 Matrices and Determinants 9 C S 6 We want in this position. The matrix from the bottom of the previous page (repeated) Replace row by R + R. So far, our matrix row operations have resulted in the matrix that we repeated in the margin. We are not yet done with the second column. The voice balloon shows that we want to get a where there is now a. If we multiply the second row of numbers by - and add these products to the third row of numbers, we will get in this position: -R + R. Although we are using the numbers in row to find the products, the numbers in row do not change. 9 9 C S = C S ()+ ()+ ()+ ()+6 We want in this position. We move on to the third column. To get in the desired position, we multiply - by its reciprocal, -. Therefore, we multiply all the numbers in the third row by - : - R. R C () () ( ) 9 9 S = C S ( ) 5 We now have the desired matrix in row-echelon form, with s down the main diagonal and s below the s in the first and second columns. Step Write the system of linear equations corresponding to the matrix in step and use back-substitution to find the system s solution. The system represented by the matrix in step is C 9 5 x + y + z = 9 S S c x + y + z = x + y + z = 5 or x + y + z = 9 c y + z =. z = 5 () () () We immediately see from equation () that the value for z is 5. To find y, we backsubstitute 5 for z in the second equation. TECHNOLOGY Most graphing utilities can convert an augmented matrix to row-echelon form, with s down the main diagonal and s below the s. However, row-echelon form is not unique. Your graphing utility might give a row-echelon form different from the one you obtained by hand. However, all row-echelon forms for a given system s augmented matrix produce the same solution to the system. Enter the augmented matrix and name it A. Then use the REF (row-echelon form) command on matrix A. y + z = Equation () y + (5) = Substitute 5 for z. y + = Multiply. y = Subtract from both sides and solve for y. Finally, back-substitute for y and 5 for z in the first equation. x + y + z = 9 Equation () x + + (5) = 9 Substitute for y and 5 for z. x + = 9 Multiply and add. x = 6 Subtract from both sides and solve for x. With z = 5, y =, and x = 6, the solution set of the original system is {(6,, 5)}. Check to see that the solution satisfies all three equations in the given system. Check Point Use matrices to solve the system: x + y + z = 8 c x - y + z = 9 x + y - z = 6.

Section 8. Matrix Solutions to Linear Systems 855 Modern supercomputers are capable of solving systems with more than 6, variables. The augmented matrices for such systems are huge, but the solution using matrices is exactly like what we did in Example. Work with the augmented matrix, one column at a time. Get s down the main diagonal from upper left to lower right and s below the s. Let s see how this works for a linear system involving four equations in four variables. EXAMPLE Gaussian Elimination with Back-Substitution Use matrices to solve the system: SOLUTION d w + x + y - z = 6 w - x + y - z = - w - x - y + z = - -w + x - y - z = -7. Step Write the augmented matrix for the system. Linear System d w + x + y - z = 6 w - x + y - z = - w - x - y + z = - -w + x - y - z = -7 Augmented Matrix - 6 - - D - T - - - - - - -7 Step Use matrix row operations to simplify the matrix to row-echelon form, with s down the main diagonal from upper left to lower right, and s below the s in the first, second, and third columns. Our first step in achieving this goal is to get in the top position of the first column. To do this, we interchange row and row : R R. We want s in these positions. D 6 T 7 This was row ; now it s row. This was row ; now it s row. Now we use the at the top of the first column to get s below it. Use the previous matrix and: Replace row by R + R. Replace row by R + R. Replace row by R + R. D 8 T 8 We want in this position. We move on to the second column. We can obtain in the desired position by multiplying the numbers in the second row by, the reciprocal of. () D () ( ) () (8) T= D 8 8 8 T R We want s in these positions. The top position already has a.

856 Chapter 8 Matrices and Determinants D We want s in these positions. The top position already has a. 8 The matrix from the bottom of the previous page (repeated) 8 T So far, our matrix row operations have resulted in the matrix that we repeated in the margin. Now we use the in the second row, second column position to get s below it. Replace row in the previous matrix by R + R. D 8 T We want in this position. We move on to the third column. We can obtain in the desired position by multiplying the numbers in the third row by -, the reciprocal of -. 8 D T= D () () ( ) () ( ) 8 T R Now we use the in the third column to get below it. We want in this position. D Replace row in the previous matrix by R + R. 8 T We want in this position. We move on to the fourth column. Because we want s down the diagonal from upper left to lower right, we want where there is now -. We can obtain in this position by multiplying the numbers in the fourth row by - 8 D T () () () ( ) ( ). = D 8 T R We now have the desired matrix in row-echelon form, with s down the main diagonal and s below the s. An equivalent row-echelon matrix can be obtained using a graphing utility and the REF command on the augmented matrix. Step Write the system of linear equations corresponding to the matrix in step and use back-substitution to find the system s solution. The system represented by the matrix in step is - - - D - - 8 w - x + y - z = - w + x - T S d y + z = 8 w + x + y - z = w + x + y + z = or d w - x + y - z = - x - y + z = 8 y - z = z =. We immediately see that the value for z is. We can now use back-substitution to find the values for y, x, and w.

Section 8. Matrix Solutions to Linear Systems 857 These are the four equations from the last column. z= y-z= x- 8 w-x+y-z= y-= 8 x- ()+= w-+()-()= 9 9 5 8 9 y= x+ = w-+8-6= x= w+= w= Let s agree to write the solution for the system in the alphabetical order of the variables from left to right, namely (w, x, y, z). Thus, the solution set is {(-,,, )}. We can verify the solution by substituting the value for each variable into the original system of equations and obtaining four true statements. Check Point Use matrices to solve the system: d w - x - y + z = - w - 7x - y + z = w - 7x - y + z = -5 5w + x + y - z = 8. Use matrices and Gauss-Jordan elimination to solve systems. Solving Linear Systems Using Gauss-Jordan Elimination Using Gaussian elimination, we obtain a matrix in row-echelon form, with s down the main diagonal and s below the s. A second method, called Gauss-Jordan elimination, after Carl Friedrich Gauss and Wilhelm Jordan (8 899), continues the process until a matrix with s down the main diagonal and s in every position above and below each is found. Such a matrix is said to be in reduced row-echelon form. For a system of three linear equations in three variables, x, y, and z, we must get the augmented matrix into the form C a b S. c Based on this matrix, we conclude that x = a, y = b, and z = c. Solving Linear Systems Using Gauss-Jordan Elimination. Write the augmented matrix for the system.. Use matrix row operations to simplify the matrix to a row-equivalent matrix in reduced row-echelon form, with s down the main diagonal from upper left to lower right, and s above and below the s. a. Get in the upper left-hand corner. b. Use the in the first column to get s below it. c. Get in the second row, second column. d. Use the in the second column to make the remaining entries in the second column. e. Get in the third row, third column. f. Use the in the third column to make the remaining entries in the third column. g. Continue this procedure as far as possible.. Use the reduced row-echelon form of the matrix in step to write the system s solution set. (Back-substitution is not necessary.)

858 Chapter 8 Matrices and Determinants TECHNOLOGY Most graphing utilities can convert a matrix to reduced rowechelon form. Enter the system s augmented matrix and name it A. Then use the RREF (reduced row-echelon form) command on matrix A. This is the augmented matrix for the system in Example. EXAMPLE Using Gauss-Jordan Elimination Use Gauss-Jordan elimination to solve the system: SOLUTION x + y + z = c x + y + z = 9 x + y + z = 5. In Example, we used Gaussian elimination to obtain the following matrix: We want s in these positions. 9 C S. 5 To use Gauss-Jordan elimination, we need s both above and below the s in the main diagonal. We use the in the second row, second column to get a above it. Replace row in the previous matrix by R + R. 6 C S 5 We want s in these positions. This is the matrix in reduced rowechelon form we obtained in Example. We use the in the third column to get s above it. 6 C S 5 This last matrix corresponds to x = 6, y =, z = 5. As we found in Example, the solution set is {(6,, 5)}. Replace row in the previous matrix by R + R. Check Point Solve the system in Check Point using Gauss-Jordan elimination. Begin by working with the matrix that you obtained in Check Point. CONCEPT AND VOCABULARY CHECK Fill in each blank so that the resulting statement is true.. A rectangular array of numbers, arranged in rows and columns and placed in brackets, is called a/an. The numbers inside the brackets are called.. Consider the matrix - - C - - S. 6 We can obtain in the position shaded by a rectangle if we multiply the top row of numbers by and add these products to the row of numbers. We can obtain in the position shaded by an oval if we multiply the top row of numbers by and add these products to the row of numbers.. The augmented matrix for the system is C S. x + y + z = - c x + z = x + y + z = 8

Section 8. Matrix Solutions to Linear Systems 859. Using Gauss-Jordan elimination to solve the system x - y + z = - c 5x + y - z =, x - y + z = -5 we obtain the matrix C S. - The system s solution set is. 5. True or false: Back-substitution is required to solve linear systems using Gaussian elimination. 6. True or false: Back-substitution is required to solve linear systems using Gauss-Jordan elimination. EXERCISE SET 8. Practice Exercises In Exercises 8, write the augmented matrix for each system of linear equations. x + y + z =. c x - 5y - z = x - y - z = -6 x - y + z = 8. c y - z = -5 z = 5x - y - z = 5. c x + y = 5 x - z = 7. d w + 5x - y + z = x + y = w - x + 5y = 9 5w - 5x - y = x - y + 5z =. c x + y - z = - -x - 5y + z = x - y + z = 9. c y + z = 5 z = x - y + z = 6. c x + y = 5 7x + z = w + 7x - 8y + z = 5x + y = 5 8. d w - x - y = 7 w - x + y = In Exercises 9, write the system of linear equations represented by the augmented matrix. Use x, y, and z, or, if necessary, w, x, y, and z, for the variables. 5 9. C - 7. D - S - - 5 7 T 5 7. C -5 7 - S 6 5 6 - -. D 8 T 7 5 In Exercises 8, perform each matrix row operation and write the new matrix. -6. C 5-5 S 7-6 9. C - S 7 R R - 5. C - 7 S -R + R - - 5 6. C - - - - 7. D 5-5 - - - 8. D - - -6 S -R + R 5 T 6 T 6 - -R + R -5R + R -R + R R + R In Exercises 9, a few steps in the process of simplifying the given matrix to row-echelon form, with s down the diagonal from upper left to lower right, and s below the s, are shown. Fill in the missing numbers in the steps that are shown. - 9. C - - -9 8-9 -. C - - - - S S C 5 - - S C - S S C 5-8 S 8 S - S C - S S In Exercises 8, solve each system of equations using matrices. Use Gaussian elimination with back-substitution or Gauss-Jordan elimination. x + y - z = -. c x - y + z = 5 -x + y + z =. c x + y = x + y + z = x - y - z = x - y - z =. c x - y + z = -x + y - z = -. c y - z = - x + 5y - z = - -x + 6y + z =

86 Chapter 8 Matrices and Determinants x - y - z = 5. c x + y - 5z = - x - y = x + y + z = 7. c x - y - z = x - y + z = x + y = z - 9. c x = + y - z x + y - z = - a - b - c =. c a - b + c = -8 a + b - c = 9 x + y + 7z = -. c x + y + z = x + 6y + z = 5 w + x + y + z = w + x - y - z = 5. d w - x - y - z = - w + x + y + z = 6. d 7. d 8. d w + x + y + z = 5 w + x - y - z = - w - x - y - z = - w - x + y - z = - w - x + y + z = 9 w + x - y - z = w + x + y - z = -w + x + y - z = w + y - z = 8 w - x + z = - w + 5x - y - z = w + x - y - z = 6 x - z = - 6. c x + y + z = x + y - z = 5 x + y - z = 8. c x + y + z = 6 x + y + z = x + y = z +. c x = + y - z x + y + z = a + b - c =. c a + b - 5c = a - b + c = - x + y + z =. c x - 5y + 7z = x + y - z = 6 Practice Plus 9. Find the quadratic function f(x) = ax + bx + c for which f(-) = -, f() =, and f() =.. Find the quadratic function f(x) = ax + bx + c for which f(-) = 5, f() =, and f() = 5.. Find the cubic function f(x) = ax + bx + cx + d for which f(-) =, f() =, f() =, and f() =.. Find the cubic function f(x) = ax + bx + cx + d for which f(-) =, f() =, f() = 6, and f() = 7.. Solve the system: ln w + ln x + ln y - ln z = -6 ln w + ln x + ln y - ln z = - d ln w + ln x + ln y + ln z = -5 ln w + ln x - ln y - ln z = 5. (Hint: Let A = ln w, B = ln x, C = ln y, and D = ln z. Solve the system for A, B, C, and D. Then use the logarithmic equations to find w, x, y, and z. ). Solve the system: ln w + ln x + ln y + ln z = - -ln w + ln x + ln y - ln z = d ln w - ln x + ln y - ln z = -ln w - ln x + ln y + ln z = -. (Hint: Let A = ln w, B = ln x, C = ln y, and D = ln z. Solve the system for A, B, C, and D. Then use the logarithmic equations to find w, x, y, and z. ) Application Exercises 5. A ball is thrown straight upward. A position function s(t) = at + v t + s can be used to describe the ball s height, s(t), in feet, after t seconds. Height above Ground (feet) 6 5 (, ) s(t) (, 8) (, ) Time (seconds) a. Use the points labeled in the graph to find the values of a, v, and s. Solve the system of linear equations involving a, v, and s using matrices. b.find and interpret s(.5). Identify your solution as a point on the graph shown. c. After how many seconds does the ball reach its maximum height? What is its maximum height? 6. A football is kicked straight upward. A position function s(t) = at + v t + s can be used to describe the ball s height, s(t), in feet, after t seconds. Height above Ground (feet) 5 5 5 s(t) (, 98) (5, 6) 5 Time (seconds) 5 (8, 6) a. Use the points labeled in the graph to find the values of a, v, and s. Solve the system of linear equations involving a, v, and s using matrices. b.find and interpret s(7). Identify your solution as a point on the graph shown. c. After how many seconds does the ball reach its maximum height? What is its maximum height? t t

Section 8. Matrix Solutions to Linear Systems 86 Write a system of linear equations in three or four variables to solve Exercises 7 5. Then use matrices to solve the system. 7. Three foods have the following nutritional content per ounce. 5. The bar graph shows the number of rooms, bathrooms, fireplaces, and elevators in the U.S. White House. The U.S. White House by the Numbers Calories Protein (in grams) Vitamin C (in milligrams) Food A 5 Food B 5 5 w Rooms Food C If a meal consisting of the three foods allows exactly 66 calories, 5 grams of protein, and 5 milligrams of vitamin C, how many ounces of each kind of food should be used? 8. A furniture company produces three types of desks: a children s model, an office model, and a deluxe model. Each desk is manufactured in three stages: cutting, construction, and finishing. The time requirements for each model and manufacturing stage are given in the following table. Children s Model Office Model Deluxe Model Cutting hr hr hr Construction hr hr hr Finishing hr hr hr Each week the company has available a maximum of hours for cutting, hours for construction, and 65 hours for finishing. If all available time must be used, how many of each type of desk should be produced each week? 9. Imagine the entire global population as a village of precisely people. The bar graph shows some numeric observations based on this scenario. Number of People 5 5 75 5 5 Under age 5 6 Earth s Population as a Village of People Over age 65 w Asian African x European y American (U.S.) z Unable to read or write Eat at McDonald s each day Source: Gary Rimmer, Number Freaking, The Disinformation Company Ltd., 6 Combined, there are 8 Asians, Africans, Europeans, and Americans in the village. The number of Asians exceeds the number of Africans and Europeans by 7. The difference between the number of Europeans and Americans is 5. If the number of Africans is doubled, their population exceeds the number of Europeans and Americans by. Determine the number of Asians, Africans, Europeans, and Americans in the global village. 75 5 5 Bathrooms Source: The White House x Fireplaces y Elevators Combined, there are 98 rooms, bathrooms, fireplaces, and elevators. The number of rooms exceeds the number of bathrooms and fireplaces by 69. The difference between the number of fireplaces and elevators is 5. If the number of bathrooms is doubled, it exceeds the number of fireplaces and elevators by 9. Determine the number of rooms, bathrooms, fireplaces, and elevators in the U.S. White House. Writing in Mathematics 5. What is a matrix? 5. Describe what is meant by the augmented matrix of a system of linear equations. 5. In your own words, describe each of the three matrix row operations. Give an example with each of the operations. 5. Describe how to use row operations and matrices to solve a system of linear equations. 55. What is the difference between Gaussian elimination and Gauss-Jordan elimination? Technology Exercises 56. Most graphing utilities can perform row operations on matrices. Consult the owner s manual for your graphing utility to learn proper keystrokes for performing these operations. Then duplicate the row operations of any three exercises that you solved from Exercises 8. 57. If your graphing utility has a REF (row-echelon form) command or a RREF (reduced row-echelon form) command, use this feature to verify your work with any five systems that you solved from Exercises 8. 58. Solve using a graphing utility s REF or RREF command: e x - x + x - x = x + x - x + x - x 5 = -7 x + x + x - 5x 5 = -x + x - x - x - x 5 = x - x - x + x 5 =. z

86 Chapter 8 Matrices and Determinants Critical Thinking Exercises Make Sense? In Exercises 59 6, determine whether each statement makes sense or does not make sense, and explain your reasoning. 59. Matrix row operations remind me of what I did when solving a linear system by the addition method, although I no longer write the variables. 6. When I use matrices to solve linear systems, the only arithmetic involves multiplication or a combination of multiplication and addition. 6. When I use matrices to solve linear systems, I spend most of my time using row operations to express the system s augmented matrix in row-echelon form. 6. Using row operations on an augmented matrix, I obtain a row in which s appear to the left of the vertical bar, but 6 appears on the right, so the system I m working with has no solution. In Exercises 6 66, determine whether each statement is true or false. If the statement is false, make the necessary change(s) to produce a true statement. 6. A matrix row operation such as - 5 R + R is not permitted because of the negative fraction. 6. The augmented matrix for the system x - y = 5 c y - z = 7 x + z = is - C - 5 7 S. 65. In solving a linear system of three equations in three variables, we begin with the augmented matrix and use row operations to obtain a row-equivalent matrix with s down the diagonal from left to right and s below each. 66. The row operation kr i + R j indicates that it is the elements in row i that change. 67. The table shows the daily production level and profit for a business. x (Number of Units Produced Daily) 5 y (Daily Profit) $59 $75 $5 Use the quadratic function y = ax + bx + c to determine the number of units that should be produced each day for maximum profit. What is the maximum daily profit? Preview Exercises Exercises 68 7 will help you prepare for the material covered in the next section. In each exercise, refer to the following system: x - y + z = 7 c x - y - z = x - y + 6z = 5. 68. Show that (z +, z -, z) satisfies the system for z =. 69. Show that (z +, z -, z) satisfies the system for z =. 7. a. Select a value for z other than or and show that (z +, z -, z) satisfies the system. b. Based on your work in Exercises 68 7(a), how does this system differ from those in Exercises? SECTION 8. Inconsistent and Dependent Systems and Their Applications Objectives Apply Gaussian elimination to systems without unique solutions. Apply Gaussian elimination to systems with more variables than equations. Solve problems involving systems without unique solutions. Apply Gaussian elimination to systems without unique solutions. Traffic jams getting you down? Powerful computers, able to solve systems with hundreds of thousands of variables in a single bound, may promise a gridlockfree future. The computer in your car could be linked to a central computer that manages traffic flow by controlling traffic lights, rerouting you away from traffic congestion, issuing weather reports, and selecting the best route to your destination. New technologies could eventually drive your car at a steady 75 miles per hour along automated highways as you comfortably nap. In this section, we look at the role of linear systems without unique solutions in a future free of traffic jams. Linear systems can have one solution, no solution, or infinitely many solutions. We can use Gaussian elimination on systems with three or more variables to determine how many solutions such systems may have. In the case of systems with no solution or infinitely many solutions, it is impossible to rewrite the augmented matrix in the desired form with s down the main diagonal from upper left to lower right, and s below the s. Let s see what this means by looking at a system that has no solution.

Section 8. Inconsistent and Dependent Systems and Their Applications 86 DISCOVERY Use the addition method to solve Example. Describe what happens. Why does this mean that there is no solution? EXAMPLE A System with No Solution Use Gaussian elimination to solve the system: SOLUTION x - y - z = c x - y + 6z = 5 x - y + z =. Step Write the augmented matrix for the system. Linear System Augmented Matrix x - y - z = c x - y + 6z = 5 x - y + z = - - C - 6 - S 5 Step Attempt to simplify the matrix to row-echelon form, with s down the main diagonal and s below the s. Notice that the augmented matrix already has a in the top position of the first column. Now we want s below the. To get the first, multiply row by - and add these products to row. To get the second, multiply row by - and add these products to row. Performing these operations, we obtain the following matrix: We want in this position. C S 6. Use the augmented matrix and: Replace row by R + R. Replace row by R + R. Moving on to the second column, we obtain in the desired position by multiplying row by -. C () ( ) () () S= C S 6 6 We want in this position. Now we want a below the in column. To get the, multiply row by and add these products to row. (Equivalently, add row to row.) We obtain the following matrix: C S 5. Replace row in the previous matrix by R + R. It is impossible to convert this last matrix to the desired form of s down the main diagonal. If we translate the last row back into equation form, we get R x+y+z=5, There are no values of x, y, and z for which = 5. which is false. Regardless of which values we select for x, y, and z, the last equation can never be a true statement. Consequently, the system has no solution. The solution set is, the empty set. Check Point Use Gaussian elimination to solve the system: x - y - z = -5 c x - y - z = x - y - z =.

86 Chapter 8 Matrices and Determinants Recall that the graph of a system of three linear equations in three variables consists of three planes. When these planes intersect in a single point, the system has precisely one ordered-triple solution. When the planes have no point in common, the system has no solution, like the one in Example. Figure 8. illustrates some of the geometric possibilities for these inconsistent systems. Three planes are parallel with no common intersection point. Two planes are parallel with no common intersection point. FIGURE 8. Three planes may have no common point of intersection. Planes intersect two at a time. There is no intersection point common to all three planes. Now let s see what happens when we apply Gaussian elimination to a system with infinitely many solutions. Representing the solution set for these systems can be a bit tricky. EXAMPLE A System with an Infinite Number of Solutions Use Gaussian elimination to solve the following system: x - y + z = 7 c x - y - z = x - y + 6z = 5. SOLUTION As always, we start with the augmented matrix. - C - - - 6 7 S 5 R R Interchange rows and. " - - C - - 6 7 S 5 Replace row by -R + R. Replace row by -R + R. " - - C - - S -R Multiply row by -. " - - C - - - S Replace row by R + R. " - - C - S - If we translate row of the matrix into equation form, we obtain x + y + z = or =. This equation results in a true statement regardless of which values we select for x, y, and z. Consequently, the equation x + y + z = is dependent on the other two equations in the system in the sense that it adds no new information about the variables. Thus, we can drop it from the system, which can now be expressed in the form - - J - - R. This is the last matrix from above with row omitted.

Section 8. Inconsistent and Dependent Systems and Their Applications 865 The original system is equivalent to the system b x - y - z = y - z = -. This is the system represented by the matrix at the bottom of the previous page. Although neither of these equations gives a value for z, we can use them to express x and y in terms of z. From the last equation, we obtain y = z -. Add z to both sides and isolate y. Back-substituting for y into the first equation obtained from the final matrix, we can find x in terms of z. x - y - z = This is the first equation obtained from the final matrix. x - (z - ) - z = Because y = z -, substitute z - for y. x - z + - z = Apply the distributive property. x - z + = Combine like terms. x = z + Solve for x in terms of z. We have now found two equations expressing x and y in terms of z: x = z + y = z -. Because no value is determined for z, we can find a solution of the system by letting z equal any real number and then using these equations to obtain x and y. For example, if z =, then x = z + = () + = and y = z - = () - = 9. Consequently, (, 9, ) is a solution of the system. On the other hand, if we let z = -, then x = z + = (-) + = - and y = z - = (-) - = -. Thus, (-, -, -) is another solution of the system. We see that for any arbitrary choice of z, every ordered triple of the form ( z +, z -, z) is a solution of the system. The solution set of this system with dependent equations is {( z +, z -, z)}. We have seen that when three planes have no point in common, the corresponding system has no solution. When the system has infinitely many solutions, like the one in Example, the three planes intersect in more than one point. Figure 8. illustrates geometric possibilities for systems with dependent equations. The planes intersect along a common line. The planes coincide. FIGURE 8. Three planes may intersect at infinitely many points.

866 Chapter 8 Matrices and Determinants Check Point Use Gaussian elimination to solve the following system: x - y - z = 5 c x - 5y + z = 6 x - y + z =. Apply Gaussian elimination to systems with more variables than equations. Nonsquare Systems Up to this point, we have encountered only square systems in which the number of equations is equal to the number of variables. In a nonsquare system, the number of variables differs from the number of equations. In Example, we have two equations and three variables. EXAMPLE A System with Fewer Equations Than Variables Use Gaussian elimination to solve the system: x + 7y + 6z = 6 b x + y + z = 8. SOLUTION We begin with the augmented matrix. J 7 6 6 8 R R R " J 7 6 8 6 R Replace row by -R + R. " J 8 R Because the matrix J 8 R has s down the diagonal that begins with the upper-left entry and a below the leading, we translate this matrix back into equation form. b x + y + z = 8 y + z = Equation Equation We can let z equal any real number and use back-substitution to express x and y in terms of z. DISCOVERY Let z = for the solution ( 5 z +, -z +, z). What solution do you obtain? Substitute these three values in the two original equations: x + 7y + 6z = 6 b x + y + z = 8. Show that each equation is satisfied. Repeat this process for two other values of z. Equation Equation y + z = x + y + z = 8 y = -z + x + (-z + ) + z = 8 x - 6z + + z = 8 x - 5z + = 8 x = 5z + For any arbitrary choice of z, every ordered triple of the form (5z +, -z +, z) is a solution of the system. We can express the system s solution set as {(5z +, -z +, z)}. Check Point Use Gaussian elimination to solve the system: x + y + z = 7 b x + y + z = 6.

Section 8. Inconsistent and Dependent Systems and Their Applications 867 Solve problems involving systems without unique solutions. 7 Cars/hr Cars/hr 7th Ave Cars/hr Palm Drive I w I N z W E x S Sunset Drive I y I Cars/hr 7th Ave 9 Cars/hr Cars/hr FIGURE 8. The intersections of four one-way streets Cars/hr Cars/hr Applications How will computers be programmed to control traffic flow and avoid congestion? They will be required to solve systems continually based on the following premise: If traffic is to keep moving, during any period of time the number of cars entering an intersection must equal the number of cars leaving that intersection. Let s see what this means by looking at the intersections of four one-way city streets. EXAMPLE Traffic Control Figure 8. shows the intersections of four one-way streets. As you study the figure, notice that cars per hour want to enter intersection I from the north on 7th Avenue. Also, cars per hour want to head east from intersection I on Palm Drive. The letters w, x, y, and z stand for the number of cars passing between the intersections. a. If the traffic is to keep moving, at each intersection the number of cars entering per hour must equal the number of cars leaving per hour. Use this idea to set up a linear system of equations involving w, x, y, and z. b. Use Gaussian elimination to solve the system. c. If construction on 7th Avenue limits z to 5 cars per hour, how many cars per hour must pass between the other intersections to keep traffic flowing? SOLUTION a. Set up the system by considering one intersection at a time, referring to Figure 8.. For Intersection I : Because + 7 = cars enter I and w + z cars leave the intersection, then w + z =. For Intersection I : Because w + x cars enter the intersection and + 9 = cars leave I, then w + x =. For Intersection I : Figure 8. indicates that + = 7 cars enter and x + y leave, so x + y = 7. For Intersection I : With y + z cars entering and + = 6 cars exiting, traffic will keep flowing if y + z = 6. The system of equations that models this situation is given by w + z = w + x = d x + y = 7 y + z = 6. b. To solve this system using Gaussian elimination, we begin with the augmented matrix. System of Linear Equations (showing missing variables with coefficients) w + x + y + z = w + x + y + z = d w + x + y + z = 7 w + x + y + z = 6 Augmented Matrix D T 7 6

868 Chapter 8 Matrices and Determinants We can now use row operations to obtain the following matrix: D T 6. w + z = x z = y + z = 6 The last row of the matrix shows that the system in the voice balloons has dependent equations and infinitely many solutions. To write the solution set containing these infinitely many solutions, let z equal any real number. Use the three equations in the voice balloons to express w, x, and y in terms of z: 7 Cars/hr Cars/hr 5 7th Ave 5 I x I w FIGURE 8.5 Cars/hr Palm Drive I w I z S Sunset Drive I y I y = 55 Cars/hr w = 95 N W E y z I I 7th Ave 9 Cars/hr x x = 5 Cars/hr FIGURE 8. With z limited to 5 cars per hour, values for w, x, and y are determined. Cars/hr Cars/hr w = - z, x = + z, and y = 6 - z. With z arbitrary, the alphabetically ordered solution ( w, x, y, z) enables us to express the system s solution set as {( - z, + z, 6 - z, z)}. c. We are given that construction limits z to 5 cars per hour. Because z = 5, we substitute 5 for z in the system s ordered solution: ( - z, + z, 6 - z, z) Use the system s solution. = ( - 5, + 5, 6-5, 5) z = 5 = (95, 5, 55, 5). Thus, w = 95, x = 5, and y = 55. (See Figure 8..) With construction on 7th Avenue, this means that to keep traffic flowing, 95 cars per hour must be routed between I and I, 5 per hour between I and I, and 55 per hour between I and I. Check Point Figure 8.5 shows a system of four one-way streets. The numbers in the figure denote the number of cars per minute that travel in the direction shown. a. Use the requirement that the number of cars entering each of the intersections per minute must equal the number of cars leaving per minute to set up a system of equations in w, x, y, and z. b. Use Gaussian elimination to solve the system. c. If construction limits z to cars per minute, how many cars per minute must pass between the other intersections to keep traffic flowing? CONCEPT AND VOCABULARY CHECK Fill in each blank so that the resulting statement is true. Using Gaussian elimination on linear systems in three variables, we obtained each of the matrices shown in Exercises through. State whether the linear system has one solution, no solution, or infinitely many solutions.. C. C 6 S -6-7 9 S 5 - -. C - S -. True or false: If {(z +, 5z -, z)} is the solution set of a system with dependent equations, then (5,, ) is a solution of this system.

Section 8. Inconsistent and Dependent Systems and Their Applications 869 5. Using Gaussian elimination to solve Translating this matrix back into equation form gives x + y - z = b x - y + z = 5, b. Equation Equation we obtain the matrix J - - 5 - R. Solving Equation for y in terms of z results in y =. Substituting this expression for y in Equation gives x =. The system s solution set is. EXERCISE SET 8. Practice Exercises In Exercises, use Gaussian elimination to find the complete solution to each system of equations, or show that none exists. 5x + y + z =. c x + 5y + z = - x + y - z = 5 5x + 8y - 6z =. c x + y - z = 8 x + y - z = x + y + z = 5. c x - y - 8z = - x + y - z = 8x + 5y + z = 7. c -x - y + z = x - y + 5z = 9. d. d. d w - x - y - z = -9 w + x - y = w + x + z = 6 x - y + z = w + x - y - z = w - x + y + z = -w - 8x + 7y + 5z = w + x - y + z = 6 w + x - y = w - x + y = - w + x - y + z = w + x - y - z = - w - x + y + z = w + x + y - z =. d 5w - x - y - z = w + x - 7y - 5z = w - x + y - z = -w + x + y = -. d w - x + y - 6z = -w + x + y - z = -6. d w + x - y + z = - w - x + y + z = w + x + y + z = - -w + x + y - z = x - y + z =. c x - y + z = 5 x - 7y + z = 5x - y + 6z =. c -x + y - z = - x - 5y + z = x - y - z = 6. c x + y + z = x + y + z = 8 x + y - z = - 8. c x - 7z = -5 x + 5y - 6z = - 5. b x + y - z = x + y - z = x + y + z = 5 7. b y - 5z = 9. b x + y - z = x - y - 6z = -7 w + x - y + z = -. c w - x + y - z = 7 -w + x + y + z = - w - x + y + z = 7. c w - x + y - 5z = w + x - y - z = 6 w + x + y - z = 7. c x - y + z = w - x + y = w - x + z =. c w - x + y + z = w - y + z = Practice Plus x + y - z = 5 6. b x + y - z = x - y + z = 8 8. b y + z = -x - 5y + z = 9. b x + y - z = In Exercises 5 8, the first screen shows the augmented matrix, A, for a nonsquare linear system of three equations in four variables, w, x, y, and z. The second screen shows the reduced row-echelon form of matrix A. For each exercise, a.write the system represented by A. b.use the reduced row-echelon form of A to find the system s complete solution. 5.

87 Chapter 8 Matrices and Determinants 6.. The figure shows the intersections of four one-way streets. Cars/hr Cars/hr 8 Cars/hr Palm Drive I w I Cars/hr 7. 7 Cars/hr 7th Ave z x Sunset Drive I y I 7th Ave Cars/hr Cars/hr Cars/hr 8. a. Set up a system of equations that keeps traffic moving. b. Use Gaussian elimination to solve the system. c.if construction limits z to 5 cars per hour, how many cars per hour must pass between the other intersections to keep traffic moving?. The vitamin content per ounce for three foods is given in the following table. Application Exercises The figure for Exercises 9 shows the intersections of three one-way streets. To keep traffic moving, the number of cars per minute entering an intersection must equal the number exiting that intersection. For intersection I, x + cars enter and y + cars exit per minute. Thus, x + = y +. Cars/min Cars/min 6 Cars/min I x I y z I 8 Cars/min 6 Cars/min Cars/min 9. Write an equation for intersection I that keeps traffic moving.. Write an equation for intersection I that keeps traffic moving.. Use Gaussian elimination to solve the system formed by the equation given prior to Exercise 9 and the two equations that you obtained in Exercises 9.. Use your ordered solution obtained in Exercise to solve this exercise. If construction limits z to cars per minute, how many cars per minute must pass between the other intersections to keep traffic flowing? Milligrams per Ounce Thiamin Riboflavin Niacin Food A 7 Food B 5 Food C 8 a. Use matrices to show that no combination of these foods can provide exactly mg of thiamin, mg of riboflavin, and 9 mg of niacin. b. Use matrices to describe in practical terms what happens if the riboflavin requirement is increased by 5 mg and the other requirements stay the same. 5. Three foods have the following nutritional content per ounce. Units per Ounce Vitamin A Iron Calcium Food Food Food a. A diet must consist precisely of units of vitamin A, 8 units of iron, and units of calcium. However, the dietician runs out of Food. Use a matrix approach to show that under these conditions the dietary requirements cannot be met. b. Now suppose that all three foods are available. Use matrices to give two possible ways to meet the iron and calcium requirements with the three foods.

Section 8. Inconsistent and Dependent Systems and Their Applications 87 6. A company that manufactures products A, B, and C does both manufacturing and testing. The hours needed to manufacture and test each product are shown in the table. Hours Needed Weekly to Manufacture Hours Needed Weekly to Test Product A 7 Product B 6 Product C The company has exactly 67 hours per week available for manufacturing and hours per week available for testing. Give two different combinations for the number of products that can be manufactured and tested weekly. Writing in Mathematics 7. Describe what happens when Gaussian elimination is used to solve an inconsistent system. 8. Describe what happens when Gaussian elimination is used to solve a system with dependent equations. 9. In solving a system of dependent equations in three variables, one student simply said that there are infinitely many solutions. A second student expressed the solution set as { ( z +, 5z -, z)}. Which is the better form of expressing the solution set and why? Technology Exercise. a.the figure shows the intersections of a number of one-way streets. The numbers given represent traffic flow at a peak period (from p.m. to 5: p.m.). Use the figure to write a linear system of six equations in seven variables based on the idea that at each intersection the number of cars entering must equal the number of cars leaving. b. Use a graphing utility with a REF or RREF command to find the complete solution to the system. 8 6 7 Ct. 9 6 7 x 6 x x 7 x x x Pl. 95 Street x 5 8 Ave. Street Critical Thinking Exercises Make Sense? In Exercises, determine whether each statement makes sense or does not make sense, and explain your reasoning. - -. I omitted row from C - S and expressed the - 5 - - system in the form J - - R. - -. I omitted row from C - -S and expressed the - - system in the form J - - R.. I solved a nonsquare system in which the number of equations was the same as the number of variables.. Models for controlling traffic flow are based on an equal number of cars entering an intersection and leaving that intersection. 5. Consider the linear system x + y + z = a cx + 5y + az = x + y + a z = -9. For which values of a will the system be inconsistent? Group Exercise 6. Before beginning this exercise, the group needs to read and solve Exercise. a. A political group is planning a demonstration on 95th Street between th Place and 7th Court for 5 p.m. Wednesday. The problem becomes one of minimizing traffic flow on 95th Street (between th and 7th) without causing traffic tie-ups on other streets. One possible solution is to close off traffic on 95th Street between th and 7th (let x 6 = ). What can group members conclude about x 7 under these conditions? b. Working with a matrix allows us to simplify the problem caused by the political demonstration, but it did not actually solve the problem. There are an infinite number of solutions; each value of x 7 we choose gives us a new picture. We also assumed x 6 was equal to ; changing that assumption would also lead to different solutions. With your group, design another solution to the traffic flow problem caused by the political demonstration. Preview Exercises Exercises 7 9 will help you prepare for the material covered in the next section. In each exercise, perform the indicated operation or operations. 7. -6 - (-5 ) 8. ( -) + (5) + (-6 ) 9. [8 - (-8)]

87 Chapter 8 Matrices and Determinants SECTION 8. Matrix Operations and Their Applications Objectives Use matrix notation. Understand what is meant by equal matrices. Add and subtract matrices. Perform scalar multiplication. Solve matrix equations. Multiply matrices. Model applied situations with matrix operations. U se your smartphone to read your e-mail. Turn on your computer to write a paper. When you need to do research, use the Internet to browse through art museums and photography exhibits. When you need a break, load a flight simulator program and fly through a photorealistic computer world. As different as these experiences may be, they all share one thing you re looking at images based on matrices. Matrices have applications in numerous fields, including the technology of digital photography in which pictures are represented by numbers rather than film. In this section, we turn our attention to matrix algebra and some of its applications. Use matrix notation. Notations for Matrices We have seen that an array of numbers, arranged in rows and columns and placed in brackets, is called a matrix. We can represent a matrix in two different ways. A capital letter, such as A, B, or C, can denote a matrix. A lowercase letter enclosed in brackets, such as that shown below, can denote a matrix. A=[a ij ] Matrix A with elements a ij A general element in matrix A is denoted by a ij. This refers to the element in the ith row and jth column. For example, a is the element of A located in the third row, second column. A matrix of order m : n has m rows and n columns. If m = n, a matrix has the same number of rows as columns and is called a square matrix. EXAMPLE Matrix Notation Let A = J - -5 - R. 5 a. What is the order of A? b. If A = [a ij ], identify a and a. SOLUTION a. The matrix has rows and columns, so it is of order *. b. The element a is in the second row and third column. Thus, a = - 5. The element a is in the first row and second column. Consequently, a =.

Section 8. Matrix Operations and Their Applications 87 Check Point Let 5 - A = C - p S. 6 a. What is the order of A? b. Identify a and a. Understand what is meant by equal matrices. Equality of Matrices Two matrices are equal if and only if they have the same order and corresponding elements are equal. Definition of Equality of Matrices Two matrices A and B are equal if and only if they have the same order m * n and a ij = b ij for i =,,...,m and j =,,...,n. For example, if A = J x y + R and B = J 5 R, then A = B if and only if z 6 6 x =, y + = 5 (so y = ), and z =. Add and subtract matrices. Matrix Addition and Subtraction Table 8. shows that matrices of the same order can be added or subtracted by simply adding or subtracting corresponding elements. Table 8. Adding and Subtracting Matrices Let A = [a ij ] and B = [b ij ] be matrices of order m * n. Definition The Definition in Words Example Matrix Addition Matrices of the same order are added by A + B = [a ij + b ij ] adding the elements in corresponding J - 5 R + J- 6 R positions. + (-) - + 6 = J + 5 + R = J 9 R Matrix Subtraction A - B = [a ij - b ij ] Matrices of the same order are subtracted by subtracting the elements in corresponding positions. J - 5 R - J- 6 R - (-) - - 6-8 = J R = J - 5 - R The sum or difference of two matrices of different orders is undefined. For example, consider the matrices A = J 9 R and B = C 5S. The order of A is * ; the order of B is *. These matrices are of different orders and cannot be added or subtracted.

87 Chapter 8 Matrices and Determinants TECHNOLOGY Graphing utilities can add and subtract matrices. Enter the matrices and name them [A] and [B]. Then use a keystroke sequence similar to [A] + [B] ENTER [A] - [B] ENTER Consult your manual and verify the results in Example. EXAMPLE Adding and Subtracting Matrices Perform the indicated matrix operations: a. J 5-6 -8 R + J- 5 7-9 6 R b. J -6 7 - R - J-5 6 - R. SOLUTION a. J 5-6 -8 R + J- 5 7-9 6 R = J + (-) 5 + + 5 - + 7 6 + (-9) -8 + 6 R Add the corresponding elements in the * matrices. = J - 8 8 5 - - R Simplify. b. J -6 7 - R - J-5 6 - R -6 - (-5) 7-6 = J R Subtract the corresponding elements - - - (-) in the * matrices. = J - R Simplify. Check Point Perform the indicated matrix operations: a. J - 5-8 - R + J6 7-6 - R b. C - 7S - C 6 S. -5 A matrix whose elements are all equal to is called a zero matrix. If A is an m * n matrix and is the m * n zero matrix, then A + = A. For example, J -5 6 R + J R = J-5 6 R. The m * n zero matrix is called the additive identity for m * n matrices. For any matrix A, the additive inverse of A, written -A, is the matrix with the same order as A such that every element of -A is the opposite of the corresponding element of A. Because corresponding elements are added in matrix addition, A + (-A) is a zero matrix. For example, J -5 6 R + J 5 - - -6 R = J R. Properties of matrix addition are similar to properties for adding real numbers. Properties of Matrix Addition If A, B, and C are m * n matrices and is the m * n zero matrix, then the following properties are true.. A + B = B + A Commutative property of addition. ( A + B) + C = A + (B + C) Associative property of addition. A + = + A = A Additive identity property. A + (-A) = (-A) + A = Additive inverse property

Section 8. Matrix Operations and Their Applications 875 Perform scalar multiplication. Scalar Multiplication A matrix of order *, such as [6], contains only one entry. To distinguish this matrix from the number 6, we refer to 6 as a scalar. In general, in our work with matrices, we will refer to real numbers as scalars. To multiply a matrix A by a scalar c, we multiply each entry in A by c. For example, 5 () B R= B ( ) (5) R () = B 8 R. Scalar Matrix Definition of Scalar Multiplication If A = [a ij ] is a matrix of order m * n and c is a scalar, then the matrix ca is the m * n matrix given by ca = [ca ij ]. This matrix is obtained by multiplying each element of A by the real number c. We call ca a scalar multiple of A. EXAMPLE Scalar Multiplication If A = J - - R and B = J R, find the following matrices: 5-6 a. -5B b. A + B. SOLUTION 5() a. 5B= 5 B R= B 5 6 5(5) 5( ) R 5( 6) = B 5 5 R Multiply each element by 5. TECHNOLOGY You can verify the algebraic solution in Example (b) by first entering the matrices [A] and [B] into your graphing utility. The screen below shows the required computation. b. A + B = J - - R + J 5-6 R ( ) () () = B R+ B () () (5) Multiply each element in A by. 8 6 = B R+ B 6 5 ( ) R ( 6) Multiply each element in B by. 9 R 8 = B +6 8+( 9) 6+5 +( 8) R Perform the addition of these x matrices by adding corresponding elements. = J - -8 R Check Point If A = J - - R and B = J- R, find the following matrices: 8 5 a. -6B b. A + B.

876 Chapter 8 Matrices and Determinants DISCOVERY Verify each of the four properties listed in the box using A = J - -5 R, B = J -6 R, c =, and d =. Properties of scalar multiplication are similar to properties for multiplying real numbers. Properties of Scalar Multiplication If A and B are m * n matrices, and c and d are scalars, then the following properties are true.. ( cd)a = c(da) Associative property of scalar multiplication. A = A Scalar identity property. c(a + B) = ca + cb Distributive property. ( c + d)a = ca + da Distributive property Solve matrix equations. Have you noticed the many similarities between addition of real numbers and matrix addition, subtraction of real numbers and matrix subtraction, and multiplication of real numbers and scalar multiplication? Example shows how these similarities can be used to solve matrix equations involving matrix addition, matrix subtraction, and scalar multiplication. EXAMPLE Solving a Matrix Equation Solve for X in the matrix equation X + A = B, where A = J -5 5 R and B = J-6 9 R. SOLUTION We begin by solving the matrix equation for X. We multiply both sides both sides by. This is in anticipation of performing scalar multiplication. X + A = B X = B - A by rather than divide X= (B-A) This is the given matrix equation. Subtract matrix A from both sides. Multiply both sides by and solve for matrix X. Now we use the matrices A and B to find the matrix X. X = J-6 5-5 R - J 9 R Substitute the matrices into X = (B - A). = J-7 9 - R Subtract matrices by subtracting corresponding elements. - 7 = D 9-5 T Perform the scalar multiplication by multiplying each element by. Take a few minutes to show that this matrix satisfies the given equation X + A = B. Substitute the matrix for X and the given matrices for A and B into the equation. The matrices on each side of the equal sign, X + A and B, should be equal.

Section 8. Matrix Operations and Their Applications 877 Check Point Solve for X in the matrix equation X + A = B, where A = J -8 R and B = J- -9 7 R. Multiply matrices. Matrix Multiplication We do not multiply two matrices by multiplying the corresponding entries of the matrices. Instead, we must think of matrix multiplication as row-by-column multiplication. To better understand how this works, let s begin with the definition of matrix multiplication for matrices of order *. Definition of Matrix Multiplication: : Matrices Row of A Column of B Row of A Column of B a AB= B c b R d B e f g h R=B ae+bg af+bh ce+dg cf+dh R Row of A Column of B Row of A Column of B Notice that we obtain the element in the ith row and jth column in AB by performing computations with elements in the ith row of A and the jth column of B. For example, we obtain the element in the first row and first column of AB by performing computations with elements in the first row of A and the first column of B. First row of A First column of B a b e ae+bg B R B R =B R g a b e B R B R g Corresponding elements Corresponding elements FIGURE 8.6 Finding corresponding elements when multiplying matrices. Multiply each element in row of A by the corresponding element in column of B.. Add these products.. Record the sum as the element in row, column of the product matrix. You may wonder how to find the corresponding elements in step in the voice balloon. The element at the far left of row corresponds to the element at the top of column. The second element from the left of row corresponds to the second element from the top of column. This is illustrated in Figure 8.6. EXAMPLE 5 Multiplying Matrices Find AB, given A = J R and B = J 7 5 6 R.

878 Chapter 8 Matrices and Determinants SOLUTION We will perform a row-by-column computation. AB = J 7 RJ 5 6 R Row of A Column of B Row of A Column of B ()+(5) = B ()+7(5) ()+(6) R ()+7(6) =B 5 5 6 R Row of A Column of B Row of A Column of B Check Point 5 Find AB, given A = J 6 R and B = J 5 R. We can generalize the process of Example 5 to multiply an m * n matrix and an n * p matrix. 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. First Matrix m*n Second Matrix n*p The number of columns in the first matrix must be the same as the number of rows in the second matrix. GREAT QUESTION! Is there a diagram I can use to determine the order of the matrix product AB? Yes. The following diagram illustrates the first sentence in the box defining matrix multiplication. Matrix A m * n These must be equal. Matrix B n * p Definition of Matrix Multiplication The product of an m * n matrix, A, and an n * p matrix, B, is an m * p matrix, AB, whose elements are found as follows: The element in the ith row and jth column of AB is found by multiplying each element in the ith row of A by the corresponding element in the jth column of B and adding the products. To find a product AB, each row of A must have the same number of elements as each column of B. We obtain p ij, the element in the ith row and jth column in AB, by performing computations with elements in the ith row of A and the jth column of B: ith row of A jth column of B Element in the ith row and jth column of AB The order of AB is m * p. D T D T= D p ij T. When multiplying corresponding elements, keep in mind that the element at the far left of row i corresponds to the element at the top of column j. The element second from the left in row i corresponds to the element second from the top in column j. Likewise, the element third from the left in row i corresponds to the element third from the top in column j, and so on. EXAMPLE 6 Multiplying Matrices Matrices A and B are defined as follows: A = [ ] B = C 5 S. 6 Find each product: a. AB b. BA.

SOLUTION Section 8. Matrix Operations and Their Applications 879 a. Matrix A is a * matrix and matrix B is a * matrix. Thus, the product AB is a * matrix. Matrix A Matrix B * * A = [ ] These are B = C 5 S equal. 6 The order of AB is *. AB = [ ]C 5 S We will perform a row-by-column computation. 6 = [()() + ()(5) + ()(6)] Multiply elements in row of A by corresponding elements in column of B and add the products. = [ + + 8] Perform the multiplications. = [] Add. b. Matrix B is a * matrix and matrix A is a * matrix. Thus, the product BA is a * matrix. TECHNOLOGY The screens illustrate the solution of Example 6 using a graphing utility. B = C 5 S A = [ ] 6 Matrix B Matrix A * * These are equal. The order of BA is *. BA = C 5 S [ ] We perform a row-by-column computation. 6 Row of B Column of A Row of B Column of A Row of B Column of A = Row of B Column of A ()() C (5)() (6)() ()() (5)() (6)() ()() (5)() S (6)() Row of B Column of A Row of B Column of A Row of B Column of A Row of B Column of A Row of B Column of A 8 = C 5 5S 6 8 Simplify. In Example 6, did you notice that AB and BA are different matrices? For most matrices A and B, AB BA. Because matrix multiplication is not commutative, be careful about the order in which matrices appear when performing this operation. Check Point 6 If A = [ ] and B = C S, find AB and BA. 7

88 Chapter 8 Matrices and Determinants Blitzer Bonus Arthur Cayley EXAMPLE 7 Multiplying Matrices Where possible, find each product: a. J RJ R b. J - 6-6 RJ R. SOLUTION a. The first matrix is a * matrix and the second is a * matrix. The product will be a * matrix. First Matrix Second Matrix * * Matrices were first studied intensively by the English mathematician Arthur Cayley (8 895). Before reaching the age of 5, he published 5 papers, setting a pattern of prolific creativity that lasted throughout his life. Cayley was a lawyer, painter, mountaineer, and Cambridge professor whose greatest invention was that of matrices and matrix theory. Cayley s matrix algebra, especially the noncommutativity of multiplication (AB BA), opened up a new area of mathematics called abstract algebra. These are equal. The order of the product is *. J RJ R We perform a row-by-column computation. - 6 Row Column ()+() ()+() ()+( ) ()+(6) = B R ()+() ()+() ()+( ) ()+(6) Row Column Row Column Row Column + 8 + - 6 + = J + + 6 - + 8 R Row Column Row Column Row Column Row Column 8 = J 8 R b. J - 6 RJ R First matrix : Second matrix : These numbers must be the same to multiply the matrices. The number of columns in the first matrix does not equal the number of rows in the second matrix. Thus, the product of these two matrices is undefined. Check Point 7 Where possible, find each product: a. J - 6-6 RJ R b. J 5 5 RJ R.

Section 8. Matrix Operations and Their Applications 88 Although matrix multiplication is not commutative, it does obey many of the properties of real numbers. DISCOVERY Verify the properties listed in the box using A = J - R, B = J R, C = J - R, and c =. Model applied situations with matrix operations. Properties of Matrix Multiplication If A, B, and C are matrices and c is a scalar, then the following properties are true. (Assume the order of each matrix is such that all operations in these properties are defined.). ( AB)C = A(BC) Associative property of matrix multiplication. A(B + C) = AB + AC Distributive properties of matrix multiplication ( A + B)C = AC + BC. c(ab) = (ca)b Associative property of scalar multiplication Applications All of the still images that you see on the Web have been created or manipulated on a computer in a digital format made up of hundreds of thousands, or even millions, of tiny squares called pixels. Pixels are created by dividing an image into a grid. The computer can change the brightness of every square or pixel in this grid. A digital camera captures photos in this digital format. Also, you can scan pictures to convert them into digital format. Example 8 illustrates the role that matrices play in this technology. EXAMPLE 8 Matrices and Digital Photography The letter L in Figure 8.7 is shown using 9 pixels in a * grid. The colors possible in the grid are shown infigure 8.8. Each color is represented by a specific number:,,, or. White Light gray Dark gray Black FIGURE 8.9 Changing contrast: the letter L FIGURE 8.7 The letter L FIGURE 8.8 Color levels a. Find a matrix that represents a digital photograph of this letter L. b. Increase the contrast of the letter L by changing the dark gray to black and the light gray to white. Use matrix addition to accomplish this. SOLUTION a. Look at the L and the background in Figure 8.7. Because the L is dark gray, color level, and the background is light gray, color level, a digital photograph offigure 8.7 can be represented by the matrix C S. b. We can make the L black, color level, by increasing each in the above matrix to. We can make the background white, color level, by decreasing each in the above matrix to. This is accomplished using the following matrix addition: - - C S + C - - S = C S. - The picture corresponding to the matrix sum to the right of the equal sign is shown infigure 8.9.

88 Chapter 8 Matrices and Determinants Check Point 8 Change the contrast of the letter L in Figure 8.7 on the previous page by making the L light gray and the background black. Use matrix addition to accomplish this. Blitzer Bonus Images of Space Photographs sent back from space use matrices with thousands of pixels. Each pixel is assigned a number from to 6 representing its color for pure white and 6 for pure black. In the image of Saturn shown here, matrix operations provide false colors that emphasize the banding of the planet s upper atmosphere. We have seen how functions can be transformed using translations, reflections, stretching, and shrinking. In a similar way, matrix operations are used to transform and manipulate computer graphics. EXAMPLE 9 Transformations of an Image The quadrilateral in Figure 8. can be represented by the matrix (, ) 5 (, ) 5 FIGURE 8. 5 y (, ) (, ) 5 x Coordinates of vertices A= B R. x-coordinates y-coordinates Each column in the matrix gives the coordinates of a vertex, or corner, of the quadrilateral. Use matrix operations to perform the following transformations: a. Move the quadrilateral units to the right and unit down. b. Shrink the quadrilateral to half its perimeter. c. Let B = J - R. Find BA. What effect does this have on the quadrilateral in Figure 8.? (, ) 5 y (, ) (, ) 5 5 6 7 (, ) (5, ) (, ) 5 (, ) FIGURE 8. Shifting the quadrilateral units right and unit down (7, ) x SOLUTION a. We translate the quadrilateral units right and unit down by adding to each x@coordinate and subtracting from each y@coordinate. This is accomplished using the following matrix addition: B This matrix represents the original quadrilateral. 7 5 R+B R=B R. Shift units to the right and unit down. This matrix represents the translated quadrilateral. Each column in the matrix on the right gives the coordinates of a vertex of the translated quadrilateral. The original quadrilateral and the translated image are shown infigure 8..

(, ) ( q, ) 5 y (, ) (w, ) 5 5 (, w) (, ) (, ) 5 (q, ) FIGURE 8. Shrinking the quadrilateral to half the original perimeter x Section 8. Matrix Operations and Their Applications 88 b. We shrink the quadrilateral in Figure 8., shown in blue in Figure 8., to half its perimeter by multiplying each x@coordinate and each y@coordinate by. This is accomplished using the following scalar multiplication: B R= B This matrix represents the original quadrilateral. R. This matrix represents the quadrilateral with half the original perimeter. Each column in the matrix on the right gives the coordinates of a vertex of the reduced quadrilateral. The original quadrilateral and the reduced image are shown infigure 8.. c. We begin by finding BA. Keep in mind that A represents the original quadrilateral, shown in blue in Figure 8.. y BA = J - - RJ- - - R (, ) (, ) 5 5 (, ) 5 (, ) FIGURE 8. (, ) (, ) 5 (, ) (, ) x (-)(-) + (-) (-)(-) + () (-)() + () (-)() + (-) = J (-) + (-) (-) + () () + () () + (-) R - - = J - - R Each column in the matrix multiplication gives the coordinates of a vertex of the transformed image. The original quadrilateral and this transformed image are shown infigure 8.. Notice that each x@coordinate on the original blue image is replaced with its opposite on the transformed red image. We can conclude that multiplication by J - R refl ected the blue quadrilateral about the y@axis. Check Point 9 Consider the triangle represented by the matrix A = J 5 R. Use matrix operations to perform the following transformations: a. Move the triangle units to the left and unit down. b. Enlarge the triangle to twice its original perimeter. Illustrate your results in parts (a) and (b) by showing the original triangle and the transformed image in a rectangular coordinate system. c. Let B = J R. Find BA. What effect does this have on the original - triangle? CONCEPT AND VOCABULARY CHECK Fill in each blank so that the resulting statement is true.. The notation a refers to the element in the row and column of a matrix.. The order of A = [ 7] is.. A matrix that has the same number of rows as columns is called a/an matrix.. If J x - R = J R, then x = and y -7 6-7 y =. 5. True or false: Matrix addition is commutative.

88 Chapter 8 Matrices and Determinants 6. True or false: Matrices of different orders can be added. 7. True or false: The scalar multiple -A is obtained by multiplying each element of A by -. 8. If A is an m * n matrix and B is an n * p matrix, then AB is defined as an * matrix. To find the product AB, the number of in matrix A must equal the number of in matrix B. 9. True or false: Matrices of different orders can sometimes be multiplied.. True or false: Matrix multiplication is commutative. EXERCISE SET 8. Practice Exercises In Exercises, a. Give the order of each matrix. b. If A = [a ij ], identify a and a, or explain why identification is not possible.. J -7 5 - R. J-6 R -6 8 - -9-5 p e. C 7-6 -p S - - 5 - -5. C - p S -e In Exercises 5 8, find values for the variables so that the matrices in each exercise are equal. 5. J x R = J6 y R 6. Jx 7 R = J y R 7. J x y R = J z 9 9 R 8. J x y + z 8 R = J 5 6 8 R In Exercises 9 6, find the following matrices: a. A + B b. A - B c. -A d. A + B. 9. A = J R, B = J5 9 7 R. A = J - R, B = J8 5 R. A = C S, 5 6 - B = C - S. A = J - 5 R, B = J - 6 - - R. A = C - S, -5 B = C S -. A = [6 -], B = [ - ] - - 5. A = C S, - 6-5 6. A = C 6 - S, - - 6 - B = C - - S -5 - - 5 B = C - -6 S 5 In Exercises 7 6, let - -7 A = C -9 S and B = C 5 Solve each matrix equation for X. -5 - S. - 7. X - A = B 8. X - B = A 9. X + A = B. X + A = B. X + A = B. X + 5A = B. B - X = A. A - X = B 5. A + B = -X 6. B + A = -X In Exercises 7 6, find (if possible) the following matrices: a. A B b. BA. 7. A = J 5 R, B = J - - 6 R 8. A = J - 5 R, B = J 5-6 R 9. A = [ ], B = D T -. A = C - S, B = [ ] - -. A = C - S, - -. A = C 5 - S, - B = C S - B = C - 5S -. A = C 6 S, B = J - - R 5. A = C S, B = J - - 5 R

Section 8. Matrix Operations and Their Applications 885 - - 5. A = J - R, B = D - T 5 5-6. A = J - - R, B = D T - 6 5 In Exercises 7, perform the indicated matrix operations given that A, B, and C are defined as follows. If an operation is not defined, state the reason. A = C - 5S B = J 5 - - R C = J - - R 7. B - C 8. 5 C - B 9. BC + CB. A(B + C). A - C. B - A. A(BC). A(CB) Practice Plus In Exercises 5 5, let A = J R, B = J - R, C = J- R, D = J - - R. 5. Find the product of the sum of A and B and the difference between C and D. 6. Find the product of the difference between A and B and the sum of C and D. 7. Use any three of the matrices to verify a distributive property. 8. Use any three of the matrices to verify an associative property. In Exercises 9 5, suppose that the vertices of a computer graphic are points, (x, y), represented by the matrix Z = J x y R. 9. Find BZ and explain why this reflects the graphic about the x@a x is. 5. Find CZ and explain why this reflects the graphic about the y@a x is. Application Exercises T he + sign in the figure is shown using 9 pixels in a * grid. The color levels are given to the right of the figure. Each color is represented by a specific number:,,, or. Use this information to solve Exercises 5 5. White Light gray Dark gray Black 5. a. Find a matrix that represents a digital photograph of t he + s ig n. b. Adjust the contrast by changing the black to dark gray and the light gray to white. Use matrix addition to accomplish this. c. Adjust the contrast by changing the black to light gray and the light gray to dark gray. Use matrix addition to accomplish this. 5. a. Find a matrix that represents a digital photograph of t he + s ig n. b. Adjust the contrast by changing the black to dark gray and the light gray to black. Use matrix addition to accomplish this. c. Adjust the contrast by leaving the black alone and changing the light gray to white. Use matrix addition to accomplish this. The figure shows the letter L in a rectangular coordinate system. y (, 5) 5 (, ) 5 (, 5) (, ) (, ) 5 (, ) The figure can be represented by the matrix B = J 5 5 R. Each column in the matrix describes a point on the letter. The order of the columns shows the direction in which a pencil must move to draw the letter. The L is completed by connecting the last point in the matrix, (, 5), to the starting point, (, ). Use these ideas to solve Exercises 5 6. 5. Use matrix operations to move the L units to the left and units down. Then graph the letter and its transformation in a rectangular coordinate system. 5. Use matrix operations to move the L units to the right and units down. Then graph the letter and its transformation in a rectangular coordinate system. 55. Reduce the L to half its perimeter and move the reduced image unit up. Then graph the letter and its transformation. 56. Reduce the L to half its perimeter and move the reduced image units up. Then graph the letter and its transformation. 57. a. If A = J R, find AB. - b. Graph the object represented by matrix AB. What effect does the matrix multiplication have on the letter L represented by matrix B? 58. a. If A = J - R, find AB. b. Graph the object represented by matrix AB. What effect does the matrix multiplication have on the letter L represented by matrix B? x

886 Chapter 8 Matrices and Determinants (In Exercises 59 6, be sure to refer to matrix B described in the second column on the previous page.) 59. a. If A = J - R, find AB. b. Graph the object represented by matrix AB. What effect does the matrix multiplication have on the letter L represented by matrix B? 6. a. If A = J R, find AB. b. Graph the object represented by matrix AB. What effect does the matrix multiplication have on the letter L represented by matrix B? 6. Completing the transition to adulthood is measured by one or more of the following: leaving home, finishing school, getting married, having a child, or being financially independent. The bar graph shows the percentage of Americans, ages and, who had completed the transition to adulthood in 96 and in. Percentage Having Completed the Transition 8% 7% 6% 5% % % % % Percentage Having Completed the Transition to Adulthood 9% 65% Age Age 96 % Men % Women 9% 77% Age Age Age Age 96 Year 6% 6% Age Age Source: James M. Henslin, Sociology, Eleventh Edition, Pearson,. a.use a * matrix to represent the data for. Entries in the matrix should be percents that are organized as follows: Men Women Age Age J R Call this matrix A. b.use a * matrix to represent the data for 96. Call this matrix B. c.find B - A. What does this matrix represent? 6. The table gives an estimate of basic caloric needs for different age groups and activity levels. Age Range 9 5 5+ Sedentary Men Source: USA Today 8 6 Women Moderately Active 7 5 Men 8 Women 9 6 Active Men Women a.use a * matrix to represent the daily caloric needs, by age and activity level, for men. Call this matrix M. b.use a * matrix to represent the daily caloric needs, by age and activity level, for women. Call this matrix W. c.find M - W. What does this matrix represent? 6. The final grade in a particular course is determined by grades on the midterm and final. The grades for five students and the two grading systems are modeled by the following matrices. Call the first matrix A and the second B. Student Student Student Student Student 5 Midterm Final 76 9 7 8 E 9 86 U 8 6 58 8 Midterm Final System System.5. J.5.7 R a. Describe the grading system that is represented by matrix B. b.compute the matrix AB and assign each of the five students a final course grade first using system and then using system. (89.5 - = A, 79.5-89. = B, 69.5-79. = C, 59.5-69. = D, below 59.5 = F) 6. In a certain county, the proportion of voters in each age group registered as Republicans, Democrats, or Independents is given by the following matrix, which we ll call A. Age 8 5 Over 5 Republicans...7 Democrats C..6.5 S Independents...5 The distribution, by age and gender, of this county s voting population is given by the following matrix, which we ll call B. 89 Age 95 Over 5 Male Female 6 8 C,, S, 6, a.calculate the product AB. b. How many female Democrats are there? c. How many male Republicans are there? Writing in Mathematics 65. What is meant by the order of a matrix? Give an example with your explanation. 66. What does a ij mean? 67. What are equal matrices? 68. How are matrices added? 69. Describe how to subtract matrices. 7. Describe matrices that cannot be added or subtracted. 7. Describe how to perform scalar multiplication. Provide an example with your description. 7. Describe how to multiply matrices.

Mid-Chapter Check Point 887 7. Describe when the multiplication of two matrices is not defined. 7. If two matrices can be multiplied, describe how to determine the order of the product. 75. Low-resolution digital photographs use 6, pixels in a 5 * 5 grid. If you enlarge a low-resolution digital photograph enough, describe what will happen. Technology Exercise 76. Use the matrix feature of a graphing utility to verify each of your answers to Exercises 7. Critical Thinking Exercises Make Sense? In Exercises 77 8, determine whether each statement makes sense or does not make sense, and explain your reasoning. 77. I added matrices of the same order by adding corresponding elements. 78. I multiplied an m * n matrix and an n * p matrix by multiplying corresponding elements. 79. I m working with two matrices that can be added but not multiplied. 8. I m working with two matrices that can be multiplied but not added. 8. Find two matrices A and B such that AB = BA. 8. Consider a square matrix such that each element that is not on the diagonal from upper left to lower right is zero. Experiment with such matrices (call each matrix A ) by finding AA. Then write a sentence or two describing a method for multiplying this kind of matrix by itself. 8. If AB = -BA, then A and B are said to be anticommutative. Are A = J - R and B = J - R anticommutative? Group Exercise 8. The interesting and useful applications of matrix theory are nearly unlimited. Applications of matrices range from representing digital photographs to predicting long-range trends in the stock market. Members of the group should research an application of matrices that they find intriguing. The group should then present a seminar to the class about this application. Preview Exercises Exercises 85 87 will help you prepare for the material covered in the next section. 85. Multiply: J a a a a RJ R. After performing the multiplication, describe what happens to the elements in the first matrix. 86. Use Gauss-Jordan elimination to solve the system: -x - y - z = c x + 5y = y - z =. 87. Multiply and write the linear system represented by the following matrix multiplication: a b c C a b c SC a b c x y z d S = C d S. d CHAPTER 8 Mid-Chapter Check Point WHAT YOU KNOW: We learned to use matrices to solve systems of linear equations. Gaussian elimination required simplifying the augmented matrix to one with s down the main diagonal and s below the s. Gauss-Jordan elimination simplified the augmented matrix to one with s down the main diagonal and s above and below each. Such a matrix, in reduced row-echelon form, did not require back-substitution to solve the system. We applied Gaussian elimination to systems with no solution, as well as to represent the solution set for systems with infinitely many solutions, including nonsquare systems. We learned how to perform operations with matrices, including matrix addition, matrix subtraction, scalar multiplication, and matrix multiplication. In Exercises 5, use matrices to find the complete solution to each system of equations, or show that none exists. x + y - z = -7. c x - y + z = 8 x - y + z = 5 x + y + 5z =. c x + y + z = x + 5y + 7z = x - y + z = -. b x + y - z = x - y + z = 5 5. c x - y + z = x + y - z =. d w + x + y + z = 6 w - x + y + z = - w + x - z = w + x + 6y + z = In Exercises 6, perform the indicated matrix operations or solve the matrix equation for X given that A, B, and C are defined as follows. If an operation is not defined, state the reason. A = C - S B = J -6 - R C = J- R 6. C - B 7. A(B + C) 8. A(BC) 9. A + C. X - C = B

888 Chapter 8 Matrices and Determinants SECTION 8. Multiplicative Inverses of Matrices and Matrix Equations Objectives Find the multiplicative inverse of a square matrix. Use inverses to solve matrix equations. Encode and decode messages. In 99, Britain s secret service hired top chess players, mathematicians, and other masters of logic to break the code used by the Nazis in communications between headquarters and troops. The project, which employed over, people, broke the code less than a year later, providing the Allies with information about Nazi troop movements throughout World War II. Messages must often be sent in such a way that the real meaning is hidden from everyone but the sender and the recipient. In this section, we will look at the role that matrices and their inverses play in this process. The Multiplicative Identity Matrix For the real numbers, we know that is the multiplicative identity because a # = # a = a. Is there a similar property for matrix multiplication? That is, is there a matrix I such that AI = A and IA = A? The answer is yes. A square matrix with s down the main diagonal from upper left to lower right and s elsewhere does not change the elements in a matrix in products with that matrix. In the case of * matrices, a B a a R B a B R R a a = a a The elements in the matrix do not change. a B a a and B R R= B a R. a a a a The elements in the matrix do not change. The n * n square matrix with s down the main diagonal from upper left to lower right and s elsewhere is called the multiplicative identity matrix of order n. This matrix is designated by I n. For example, and so on. I = J R, I = C S, Find the multiplicative inverse of a square matrix. The Multiplicative Inverse of a Matrix The multiplicative identity matrix, I n, will help us to define a new concept: the multiplicative inverse of a matrix. To do so, let s consider a similar concept, the multiplicative inverse of a nonzero number, a. Recall that the multiplicative inverse of a is a. The multiplicative inverse has the following property: a # a = and a # a =.

Section 8. Multiplicative Inverses of Matrices and Matrix Equations 889 We can define the multiplicative inverse of a square matrix in a similar manner. Definition of the Multiplicative Inverse of a Square Matrix Let A be an n * n matrix. If there exists an n * n matrix A - (read: A inverse ) such that AA - = I n and A - A = I n, then A - is the multiplicative inverse of A. We have seen that matrix multiplication is not commutative. Thus, to show that a matrix B is the multiplicative inverse of the matrix A, find both AB and BA. If B is the multiplicative inverse of A, both products ( AB and BA ) will be the multiplicative identity matrix, I n. EXAMPLE The Multiplicative Inverse of a Matrix Show that B is the multiplicative inverse of A, where A = J - R and B = J5-5 R. SOLUTION To show that B is the multiplicative inverse of A, we must find the products AB and BA. If B is the multiplicative inverse of A, then AB will be the multiplicative identity matrix and BA will be the multiplicative identity matrix. Because A and B are * matrices, n =. Thus, we denote the multiplicative identity matrix as I ; it is also a * matrix. We must show that AB = I = J R and BA = I = J R. Let s first show AB = I. AB = J - -5 RJ5 R -(5) + () -() + () = J (5) + (-5)() () + (-5)() R = J R Let s now show BA = I. BA = J 5 RJ- -5 R 5(-) + () 5() + (-5) = J (-) + () () + (-5) R = J R Both products give the multiplicative identity matrix. Thus, B is the multiplicative inverse of A and we can designate B as A - = J 5 R. Check Point Show that B is the multiplicative inverse of A, where A = J - R and B = J - R.

89 Chapter 8 Matrices and Determinants One method for finding the multiplicative inverse of a matrix A is to begin by denoting the elements in A - with variables. Using the equation AA - = I n, we can find a value for each element in the multiplicative inverse that is represented by a variable. Example shows how this is done. EXAMPLE Finding the Multiplicative Inverse of a Matrix Find the multiplicative inverse of SOLUTION A = J 5 R. Let us denote the multiplicative inverse by A - = J w x y z R. Because A is a * matrix, we use the equation AA - = I to find values for w, x, y, and z. A A I w x B R B R= B 5 y z R J w + y x + z 5w + y 5x + z R = J R Use row-by-column matrix multiplication on the left side of J 5 RJw x y z R = J R. We now equate corresponding elements to obtain the following two systems of linear equations: TECHNOLOGY You can use a graphing utility to find the inverse of the matrix in Example. Enter the matrix and name it A. The screens show A and A -. Verify that this is correct by showing that AA - = I and A - A = I. e w + y = 5w + y = and e x + z = 5x + z =. Each of these systems can be solved using the addition method. b w + y = Multiply by -. " -6w - y = - 5w + y = No change " 5w + y = Add: -w = - w = Use back-substitution. y = - 5 b x + z = 5x + z = Multiply by -. " -6x - z = No change " 5x + z = Add: -x = x = - Use back-substitution. z = Using these values, we have A - = J w x y z R = J - -5 R. Check Point Find the multiplicative inverse of A = J 5 7 R.

Section 8. Multiplicative Inverses of Matrices and Matrix Equations 89 Only square matrices of order n * n have multiplicative inverses, but not every square matrix possesses a multiplicative inverse. For example, suppose that you apply the procedure of Example to A = J -6 - R : This is A. This represents A. This is the multiplicative identity matrix. 6 w x B R B R= B y z R. Multiplying matrices on the left and equating corresponding elements results in inconsistent systems with no solutions. There are no values for w, x, y, and z. This shows that matrix A does not have a multiplicative inverse. A nonsquare matrix, one with a different number of rows than columns, cannot have a multiplicative inverse. If A is an m * n matrix and B is an n * m matrix ( n m), then the products AB and BA are of different orders. This means that they could not be equal to each other, so that AB and BA could not both equal the multiplicative identity matrix. If a square matrix has a multiplicative inverse, that inverse is unique. This means that the square matrix has no more than one inverse. If a square matrix has a multiplicative inverse, it is said to be invertible or nonsingular. If a square matrix has no multiplicative inverse, it is called singular. GREAT QUESTION! Can you provide any suggestions that will help me remember the formula for the multiplicative inverse of a : matrix? Yes. To find the matrix that appears as the second factor for the inverse of A = J a b c d R : Reverse a and d, the numbers in the diagonal from upper left to lower right. Negate b and c, the numbers in the other diagonal. GREAT QUESTION! When using the formula to find the multiplicative inverse of J a b c d R, what should I do first? Start by computing ad - bc. If the computed value is, there is no need to continue. The given matrix is singular that is, it does not have a multiplicative inverse. A Quick Method for Finding the Multiplicative Inverse of a : Matrix The same method used in Example can be used to develop the general form of the multiplicative inverse of a * matrix. The following rule enables us to calculate the multiplicative inverse, if there is one: Multiplicative Inverse of a : Matrix If A = J a b c d R, then A- = ad - bc J d -b -c a d. The matrix A is invertible if and only if ad - bc. If ad - bc =, then A does not have a multiplicative inverse. EXAMPLE Using the Quick Method to Find a Multiplicative Inverse Find the multiplicative inverse of - - A = J R. SOLUTION a b A= B R c d This is the given matrix. We ve designated the elements a, b, c, and d.

89 Chapter 8 Matrices and Determinants a b A= B R c d The given matrix (repeated) A - = = ad - bc J d -b -c a R This is the formula for the inverse of J a b c d R. (-)() - (-)() J -(-) - - R Apply the formula with a = -, b = -, c =, and d =. = J - - R Simplify. = J - - R Perform the scalar multiplication by multiplying each element in the matrix by. - - The inverse of A = J R is A- = J - - R. We can verify this result by showing that AA - = I and A - A = I. Check Point Find the multiplicative inverse of A = J - - R. Finding Multiplicative Inverses of n : n Matrices with n Greater Than To find the multiplicative inverse of a * invertible matrix, we begin by denoting the elements in the multiplicative inverse with variables. Here is an example: C 5 S C x y z x y z x y S= C S. z This is matrix A whose inverse we wish to find. This represents A. This is the multiplicative identity matrix, I. We multiply the matrices on the left, using the row-by-column definition of matrix multiplication. -x - y - z -x - y - z -x - y - z C x + 5y + z x + 5y + z x + 5y + z S = C S x + y - z x + y - z x + y - z We now equate corresponding entries to obtain the following three systems of linear equations: -x - y - z = c x + 5y + z = x + y - z = -x - y - z = c x + 5y + z = x + y - z = -x - y - z = c x + 5y + z = x + y - z =.

Section 8. Multiplicative Inverses of Matrices and Matrix Equations 89 Notice that the variables on the left of the equal signs have the same coefficients in each system. We can use Gauss-Jordan elimination to solve all three systems at once. Form an augmented matrix that contains the coefficients of the three systems to the left of the vertical line and the constants for the systems to the right. C 5 S Coefficients of the three systems Constants on the right in each of the three systems To solve all three systems using Gauss-Jordan elimination, we must obtain C S to the left of the vertical line. Use matrix row operations, working one column at a time. Obtain in the required position. Then obtain s in the other two positions. Using these operations, we obtain the matrix C 5-5 - - S. - - This augmented matrix provides the solutions to the three systems of equations. They are given by C 5 S - - x = 5 y = - z = - and C - S - x = y = - z = - and C -5 S x = -5 y = z =. Using the preceding nine values, the inverse matrix is x x x 5-5 C y y y S = C - - S. z z z - - Take a second look at the matrix obtained at the point where Gauss-Jordan elimination was completed. This matrix is shown, again, below. Notice that the * matrix to the right of the vertical bar is the multiplicative inverse of A. Also notice that the multiplicative identity matrix, I is the matrix that appears to the left of the vertical bar. 5 5 C S This is the multiplicative identity, I. This is the multiplicative inverse of A. The observations in the voice balloons and the procedures followed above give us a general method for finding the multiplicative inverse of an invertible matrix. This method is given at the top of the next page.

89 Chapter 8 Matrices and Determinants GREAT QUESTION! Should I use the procedure in the box for finding the multiplicative inverse of a : matrix? No. Because we have a quick method for finding the multiplicative inverse of a * matrix, the procedure on the right is recommended for matrices of order * or greater when a graphing utility is not being used. Procedure for Finding the Multiplicative Inverse of an Invertible Matrix To find A - for any n * n matrix A for which A - exists,. Form the augmented matrix [A I n ], where I n is the multiplicative identity matrix of the same order as the given matrix A.. Perform row operations on [A I n ] to obtain a matrix of the form [I n B]. This is equivalent to using Gauss-Jordan elimination to change A into the identity matrix.. Matrix B is A -.. Verify the result by showing that AA - = I n and A - A = I n. EXAMPLE Finding the Multiplicative Inverse of a : Matrix Find the multiplicative inverse of SOLUTION - A = C - S. - - Step Form the augmented matrix [A I ]. C S This is matrix A. This is I, the multiplicative identity matrix, with s down the main diagonal and s elsewhere. Step Perform row operations on [A I ] to obtain a matrix of the form [I B]. To the left of the vertical dividing line, we want s down the diagonal from upper left to lower right and s elsewhere. - C - S - - Replace row by R + R. " - C - -5 S - R " - C - -5 - S Replace row by R + R. Replace row by 5R + R. " - C - - - S - 5 -R " C - - - S - 5 - Replace row by - R + R. Replace row by R + R. ". C S 5 This is the multiplicative identity, I. This is the multiplicative inverse of A.

Section 8. Multiplicative Inverses of Matrices and Matrix Equations 895 TECHNOLOGY We can use a graphing utility to verify the inverse matrix we found in Example. Enter the elements in matrix A and press x - to display A -. Step Matrix B is A. The last matrix shown at the bottom of the previous page is in the form [I B]. The multiplicative identity matrix is on the left of the vertical bar. Matrix B, the multiplicative inverse of A, is on the right. Thus, the multiplicative inverse of A is - A - = C - - S. - 5 - Step Verify the result by showing that AA I and A A I. Try confirming the result by multiplying A and A - to obtain I. Do you obtain I if you reverse the order of the multiplication? We have seen that not all square matrices have multiplicative inverses. If the row operations in step result in all zeros in a row or column to the left of the vertical line, the given matrix does not have a multiplicative inverse. TECHNOLOGY The matrix A = J 6 R = Ja b c d R has no multiplicative inverse because ad - bc = # - 6 # = - =. When we try to find the inverse with a graphing utility, an error message occurs, indicating the matrix is singular. Check Point Find the multiplicative inverse of A = C - S. - Summary: Finding Multiplicative Inverses for Invertible Matrices Use a graphing utility with matrix capabilities, or a. If the matrix is * : The inverse of A = J a b c d R is A - = ad - bc J d -b -c a R. b. If the matrix A is n * n where n 7 : Use the procedure on page 89. Form [A I n ] and use row transformations to obtain [I n B]. Then A - = B. Solving Systems of Equations Using Multiplicative Inverses of Matrices Matrix multiplication can be used to represent a system of linear equations. Linear System Matrix Form of the System a x + b y + c z = d a b c x d c a x + b y + c z = d C a b c S C y S= Cd S a x + b y + c z = d a b c z d The matrix contains the system s coefficients. The matrix contains the system s variables. The matrix contains the system s constants. You can work with the matrix form of the system and obtain the form of the linear system on the left. To do so, perform the matrix multiplication on the left side of the matrix equation. Then equate the corresponding elements. The matrix equation a b c x d C a b c SCyS = C d S a b c z d T T T A X = B is abbreviated as AX = B, where A is the coefficient matrix of the system, and X and B are matrices containing one column, called column matrices. The matrix B is called the constant matrix.

896 Chapter 8 Matrices and Determinants Here is a specific example of a linear system and its matrix form: Linear System x - y + z = c - y + z = -x - y = Coefficients Matrix Form C S x C y S= z CS Constants A, the coefficient matrix X B, the constant matrix The matrix equation AX = B can be solved using A - if it exists. AX = B A - AX = A - B I n X = A - B We see that if AX = B, then X = A - B. This is the matrix equation. Multiply both sides by A -. Because matrix multiplication is not commutative, put A - in the same left position on both sides. The multiplicative inverse property tells us that A - A = I n. X = A - B Because I n is the multiplicative identity, I n X = X. Use inverses to solve matrix equations. Solving a System Using A If AX = B has a unique solution, then X = A - B. To solve a linear system of equations, multiply A - and B to find X. EXAMPLE 5 Using the Inverse of a Matrix to Solve a System Solve the system by using A -, the inverse of the coefficient matrix: x - y + z = c - y + z = -x - y =. TECHNOLOGY We can use a graphing utility to solve a linear system with a unique solution by entering the elements in A, the coefficient matrix, and B, the column matrix. Then find the product of A - and B. The screen below verifies our solution in Example 5. SOLUTION The linear system can be written as C A S x C y S = z X C S B. This verifies that x =.5, or, y =.5, or, and z =. The solution is given by X = A - B. Consequently, we must find A -. We found the inverse of matrix A in Example. Using this result, - X = A - B = C - - SCS = C - 5 - # + (-) # + # - # + # + (-) # - # + 5 # + (-) # Thus, x =, y = -, and z =. The solution set is 5, -,6. S = C - S.

Section 8. Multiplicative Inverses of Matrices and Matrix Equations 897 Check Point 5 Solve the system by using A -, the inverse of the coefficient matrix that you found in Check Point : x + z = 6 c -x + y + z = -5 x - y = 6. Encode and decode messages. Applications of Matrix Inverses to Coding A cryptogram is a message written so that no one other than the intended recipient can understand it. To encode a message, we begin by assigning a number to each letter in the alphabet: A =, B =, C =,...,Z = 6, and a space =. For example, the numerical equivalent of the word MATH is,,, 8. The numerical equivalent of the message is then converted into a matrix. Finally, an invertible matrix can be used to convert the message into code. The multiplicative inverse of this matrix can be used to decode the message. Encoding a Word or Message. Express the word or message numerically.. List the numbers in step by columns and form a square matrix. If you do not have enough numbers to form a square matrix, put zeros in any remaining spaces in the last column.. Select any square invertible matrix, called the coding matrix, the same size as the matrix in step. Multiply the coding matrix by the square matrix that expresses the message numerically. The resulting matrix is the coded matrix.. Use the numbers, by columns, from the coded matrix in step to write the encoded message. EXAMPLE 6 Encoding a Word Use matrices to encode the word MATH. SOLUTION Step Express the word numerically. As shown previously, the numerical equivalent of MATH is,,, 8. Step List the numbers in step by columns and form a square matrix. The * matrix for the numerical equivalent of MATH,,,, 8, is J 8 R. Step Multiply the matrix in step by a square invertible matrix. We will use - - J R as the coding matrix. B Coding matrix R B Numerical representation of MATH ()-() R= B 8 ()+() 9 = B Coded matrix 6 R 9 ()-(8) R ()+(8) Step Use the numbers, by columns, from the coded matrix in step to write the encoded message. The encoded message is -9,, -6, 9. - - Check Point 6 Use the coding matrix in Example 6, J R, to encode the word BASE.

898 Chapter 8 Matrices and Determinants The inverse of a coding matrix can be used to decode a word or message that was encoded. Decoding a Word or Message That Was Encoded. Find the multiplicative inverse of the coding matrix.. Multiply the multiplicative inverse of the coding matrix and the coded matrix.. Express the numbers, by columns, from the matrix in step as letters. EXAMPLE 7 Decoding a Word Decode -9,, -6, 9 from Example 6. SOLUTION Step Find the inverse of the coding matrix. The coding matrix in Example 6 was - - J R. We use the formula for the multiplicative inverse of a * matrix to find the multiplicative inverse of this matrix. It is J - - R. Step Multiply the multiplicative inverse of the coding matrix and the coded matrix. B Multiplicative inverse of the coding matrix 9 R B Coded matrix 6 ( 9)+() R= B 9 ( 9)-() = B R 8 ( 6)+(9) R ( 6)-(9) Step Express the numbers, by columns, from the matrix in step as letters. The numbers are,,, and 8. Using letters, the decoded message is MATH. Check Point 7 Decode the word that you encoded in Check Point 6. CONCEPT AND VOCABULARY CHECK Fill in each blank so that the resulting statement is true. Decoding is simple for an authorized receiver who knows the coding matrix. Because any invertible matrix can be used for the coding matrix, decoding a cryptogram for an unauthorized receiver who does not know this matrix is extremely difficult.. The multiplicative identity matrix of order is I =.. The multiplicative identity matrix of order is I =.. For n * n matrices A and B, if AB = I n and BA = I n, then B is called the of A.. True or false: Only square matrices have multiplicative inverses. 5. If A = J a b R, the matrix A is invertible if and c d only if. 6. If a square matrix does not have a multiplicative inverse, it is called. 7. True or false: A = J R is invertible. 9 6 8. To find the multiplicative inverse of an invertible matrix A, we perform row operations on [A I n ] to obtain a matrix of the form [I n B], where B =. 9. If the matrix equation AX = B has a unique solution, then we can solve the equation using X =.

Section 8. Multiplicative Inverses of Matrices and Matrix Equations 899 EXERCISE SET 8. Practice Exercises In Exercises, find the products AB and BA to determine whether B is the multiplicative inverse of A.. A = J - -5 R, B = J 5 R - -. A = J - R, B = J R. A = J - R, B = J- R. A = J - - R, B = J - - R 5. A = J - - R, B = J R 6. A = J 5 R, B = J - 5 - R 7. A = C S, - - 8. A = C -5 - S, - 9. A = C S,. A = C S, 5 - -. A = D T, - - - -. A = D T, - B = C S B = C S - 7 - B = C - S - - -.5 - B = C.5 S.5 - B = D T B = D T In Exercises 8, use the fact that if A = J a b c d R, then A - = ad - bc c d -b d to find the inverse of each matrix, if -c a possible. Check that AA - = I and A - A = I.. A = J R. A = J - - R 5. A = J - -6 R 6. A = J - - R - 6-7. A = J R 8. A = J -5 - R In Exercises 9 8, find A - by forming [A I] and then using row operations to obtain [I B], where A - = [B]. Check that AA - = I and A - A = I. 9. A = C S 6 -. A = C - S - -. A = C - S - - 5 5. A = C S - - - 7. A = D T. A = C 6 S 9 -. A = C - S -. A = C - S - 6 6. A = C S 5 8. A = D T - In Exercises 9, write each linear system as a matrix equation in the form AX = B, where A is the coefficient matrix and B is the constant matrix. 6x + 5y = 9. b 5x + y = x + y + z = -. c x + y + z = - x + y + z = -6 7x + 5y =. b x + y =. c x + y - z = x + y - z = 5 x + 7y - 5z = In Exercises 6, write each matrix equation as a system of linear equations without matrices.. J -7 - RJx y R = J- R. J - RJx y R = J 6-7 R - x 6 5. C SCyS = C 9 S z 5 - x - 6. C - SCyS = C S z In Exercises 7, a. Write each linear system as a matrix equation in the form AX = B. b. Solve the system using the inverse that is given for the coefficient matrix. The inverse of x + 6y + 6z = 8 7. c x + 7y + 6z = x + 7y + 7z = 9 6 6 - C 7 6S is C - S. 7 7-7

9 Chapter 8 Matrices and Determinants 8. c 9. c x + y + 5z = x + y + 8z = -x + y + z = x - y + z = 8 y - z = -7 x + y = x - 6y + z =. c x - 7y + z = x - y + 5z = 5 w - x + y = - x - y + z =. d -w + x - y + z = -x + y - z = - The inverse of - - - - D - - - - T is D - - w + y + z = 6 w + z = 9. d -w + x - y + z = w - x + y = 6 The inverse of - - - - 9-5 -6 D - - - T is D T. - - -5 Practice Plus In Exercises, find A - and check. e x e x. A = J -e x e 5x R. A = -e x Jex e x e x R In Exercises 5 6, if I is the multiplicative identity matrix of order, find (I - A) - for the given matrix A. 5. J 8-5 7-5 R 6. J - - R In Exercises 7 8, find (AB) -, A - B -, and B - A -. What do you observe? 7. A = J R B = J 7 R 8. A = J -9 - R B = J9 5 7 R 9. Prove the following statement: a If A = C b S, a, b, c, c a then A - = C b S. c The inverse of 5 - - C 8S is C -7 - S. - -5 The inverse of - - C - S is C - - S. - -5 The inverse of -6-6 C -7 S is C -7 S. - 5-5 T. 5. Prove the following statement: If A = J a b R and ad - bc, c d then A - = ad - bc J d -b -c a d. (Hint: Use the method of Example on page 6.) Application Exercises In Exercises 5 5, use the coding matrix A = J - - R and its inverse A- = J R to encode and then decode the given message. 5. HELP 5. LOVE In Exercises 5 5, use the coding matrix - A = C S and its inverse - - A - = C - S to write a cryptogram for each - - message. Check your result by decoding the cryptogram. 5. S E N D _ C A S H 9 5 9 8 9 Us e C 5 9S. 8 5. S T A Y _ W E L L 9 5 5 9 5 5 Us e C S. Writing in Mathematics 55. What is the multiplicative identity matrix? 56. If you are given two matrices, A and B, explain how to determine if B is the multiplicative inverse of A. 57. Explain why a matrix that does not have the same number of rows and columns cannot have a multiplicative inverse. 58. Explain how to find the multiplicative inverse for a * invertible matrix. 59. Explain how to find the multiplicative inverse for a * invertible matrix. 6. Explain how to write a linear system of three equations in three variables as a matrix equation. 6. Explain how to solve the matrix equation AX = B. 6. What is a cryptogram? 6. It s January, and you ve written down your major goal for the year. You do not want those closest to you to see what you ve written in case you do not accomplish your objective. Consequently, you decide to use a coding matrix to encode your goal. Explain how this can be accomplished.

Section 8. Multiplicative Inverses of Matrices and Matrix Equations 9 6. A year has passed since Exercise 6. (Time flies when you re solving exercises in precalculus books.) It s been a terrific year and so many wonderful things have happened that you can t remember your goal from a year ago. You consult your personal journal and you find the encoded message and the coding matrix. How can you use these to find your original goal? Technology Exercises In Exercises 65 7, use a graphing utility to find the multiplicative inverse of each matrix. Check that the displayed inverse is correct. 65. J - R 66. J- - 6 - R - - 67. C -5 - S - 7 - - - 69. D T - - - - 68. C - - S - 7. D T In Exercises 7 76, write each system in the form AX = B. Then solve the system by entering A and B into your graphing utility and computing A - B. x - y + z = -6 7. c x + y + z = 9 x - y + z = - x - y + z = - 7. c x - 5y + z = -9 x - y + 5z = -5 75. e y -x + z = - w + y = - x + z = 7 y + w - x + y = -8 y + w + x + y + z = 8 y + z = 7. c -x + y = x - y + z = - x - y = 7. c 6x + y + z = y + z = w + x + y + z = w + x - y + z = 7 76. d w + x + y + z = w - x + y + z = 5 In Exercises 77 78, use a coding matrix A of your choice. Use a graphing utility to find the multiplicative inverse of your coding matrix. Write a cryptogram for each message. Check your result by decoding the cryptogram. Use your graphing utility to perform all necessary matrix multiplications. 77. A R R I V E D _ S A F E L Y 8 8 9 5 9 6 5 5 78. A R T _ E N R I C H E S 8 5 8 9 8 5 9 Critical Thinking Exercises Make Sense? In Exercises 79 8, determine whether each statement makes sense or does not make sense, and explain your reasoning. 79. I found the multiplicative inverse of a * matrix. 8. I used Gauss-Jordan elimination to find the multiplicative inverse of a * matrix. 8. I used matrix multiplication to represent a system of linear equations. 8. I made an encoding error by selecting the wrong square invertible matrix. In Exercises 8 88, determine whether each statement is true or false. If the statement is false, make the necessary change(s) to produce a true statement. 8. All square * matrices have inverses because there is a formula for finding these inverses. 8. Two * invertible matrices can have a matrix sum that is not invertible. 85. To solve the matrix equation AX = B for X, multiply A and the inverse of B. 86. ( AB) - = A - B -, assuming A, B, and AB are invertible. 87. ( A + B) - = A - + B -, assuming A, B, and A + B are invertible. 88. J - R is an invertible matrix. - 89. Give an example of a * matrix that is its own inverse. 9. If A = J 5 R, find (A- ) -. 9. Find values of a for which the following matrix is not invertible: Group Exercise a + J a - R. 9. Each person in the group should work with one partner. Send a coded word or message to each other by giving your partner the coded matrix and the coding matrix that you selected. Once messages are sent, each person should decode the message received. Preview Exercises Exercises 9 95 will help you prepare for the material covered in the next section. Simplify the expression in each exercise. 9. ( -5) - (- ) ( ) 9. (-5) - (-) 5(-5) - 6(-) 95. ( - - (-)) - (6-9) + (-)( - 5 )

9 Chapter 8 Matrices and Determinants SECTION 8.5 Determinants and Cramer s Rule Objectives Evaluate a second-order determinant. Solve a system of linear equations in two variables using Cramer s Rule. Evaluate a third-order determinant. Solve a system of linear equations in three variables using Cramer s Rule. Evaluate higher-order determinants. A portion of Charles Babbage s unrealized difference engine As cyberspace absorbs more and more of our work, play, shopping, and socializing, where will it all end? Which activities will still be offline in 5? Our technologically transformed lives can be traced back to the English inventor Charles Babbage (79 87). Babbage knew of a method for solving linear systems called Cramer s Rule, in honor of the Swiss geometer Gabriel Cramer (7 75). Cramer s Rule was simple but involved numerous multiplications for large systems. Babbage designed a machine, called the difference engine that consisted of toothed wheels on shafts for performing these multiplications. Despite the fact that only one-seventh of the functions ever worked, Babbage s invention demonstrated how complex calculations could be handled mechanically. In 9, scientists at IBM used the lessons of the difference engine to create the world s first computer. Those who invented computers hoped to relegate the drudgery of repeated computation to a machine. In this section, we look at a method for solving linear systems that played a critical role in this process. The method uses real numbers, called determinants, that are associated with arrays of numbers. As with matrix methods, solutions are obtained by writing down the coefficients and constants of a linear system and performing operations with them. Evaluate a second-order determinant. The Determinant of a : Matrix Associated with every square matrix is a real number, called its determinant. The determinant for a * square matrix is defined as follows: GREAT QUESTION! What does the definition of a determinant mean? What am I supposed to do? To evaluate a second-order determinant, find the difference of the product of the two diagonals. a b ` ` = a b - a a b b Definition of the Determinant of a : Matrix The determinant of the matrix J a b R is denoted by a b and is defined by a b b a b = a a b b - a b. We also say that the value of the second-order determinant a b is a a b b - a b. a Example illustrates that the determinant of a matrix may be positive or negative. A determinant can also have as its value.

Section 8.5 Determinants and Cramer s Rule 9 EXAMPLE Evaluating the Determinant of a : Matrix Evaluate the determinant of each of the following matrices: a. J 5 6 7 R b. J - -5 R. DISCOVERY Write and then evaluate three determinants, one whose value is positive, one whose value is negative, and one whose value is. SOLUTION We multiply and subtract as indicated. a. 5 6 :" :" 7 = 5 # - 7 # 6 = 5 - = -7 The value of the secondorder determinant is - 7. b. - -5 = (-5) - (-)() = - + = 9:" 9:" The value of the secondorder determinant is. Check Point Evaluate the determinant of each of the following matrices: a. J 9 6 5 R b. J -5-8 R. Solve a system of linear equations in two variables using Cramer s Rule. Solving Systems of Linear Equations in Two Variables Using Determinants Determinants can be used to solve a linear system in two variables. In general, such a system appears as b a x + b y = c a x + b y = c. Let s first solve this system for x using the addition method. We can solve for x by eliminating y from the equations. Multiply the first equation by b and the second equation by -b. Then add the two equations: b a x + b y = c a x + b y = c Because Multiply by b. " Multiply by -b. " Add: b a b x + b b y = c b -a b x - b b y = -c b ( a b - a b )x = c b - c b x = c b - c b a b - a b. c b = c c b b - c b and a b = a a b b - a b, we can express our answer for x as the quotient of two determinants: x = c b - c b a b - a b = c b c b a b a b. Similarly, we could use the addition method to solve our system for y, again expressing y as the quotient of two determinants. This method of using determinants to solve the linear system, called Cramer s Rule, is summarized in the box at the top of the next page.

9 Chapter 8 Matrices and Determinants Solving a Linear System in Two Variables Using Determinants Cramer s Rule If then b a x + b y = c a x + b y = c, x = c b c b a b a b and y = a c a c a b a b, where a b a b. Here are some helpful tips when solving b a x + b y = c a x + b y = c using determinants:. Three different determinants are used to find x and y. The determinants in the denominators for x and y are identical. The determinants in the numerators for x and y differ. In abbreviated notation, we write x = D x D and y = D y, where D. D. The elements of D, the determinant in the denominator, are the coefficients of the variables in the system. D = a b a b. D x, the determinant in the numerator of x, is obtained by replacing the x@coefficients, in D, a and a, with the constants on the right sides of the equations, c and c. D = a b and D a b x = c b c b Replace the column with a and a with the constants c and c to get D x.. D y, the determinant in the numerator for y, is obtained by replacing the y@coefficients, in D, b and b, with the constants on the right sides of the equations, c and c. D = a b and D a b y = a c a c Replace the column with b and b with the constants c and c to get D y.

Section 8.5 Determinants and Cramer s Rule 95 EXAMPLE Using Cramer s Rule to Solve a Linear System Use Cramer s Rule to solve the system: 5x - y = b 6x - 5y =. SOLUTION Because x = D x D and y = D y D, we will set up and evaluate the three determinants D, D x, and D y.. D, the determinant in both denominators, consists of the x- and y@coefficients. D = 5-6 -5 = (5)(-5) - (6)(-) = -5 + = - Because this determinant is not zero, we continue to use Cramer s Rule to solve the system.. D x, the determinant in the numerator for x, is obtained by replacing the x@coefficients in D, 5 and 6, by the constants on the right sides of the equations, and. D x = - -5 = ()(-5) - ()(-) = - + = -6. D y, the determinant in the numerator for y, is obtained by replacing the y@coefficients in D, - and -5, by the constants on the right sides of the equations, and.. Thus, D y = 5 6 = (5)() - (6)() = 5 - = -7 x = D x D = -6 - = 6 and y = D y D = -7 - = 7. As always, the solution (6, 7) can be checked by substituting these values into the original equations. The solution set is {(6, 7)}. Check Point Use Cramer s Rule to solve the system: 5x + y = e x - 6y =. Evaluate a third-order determinant. The Determinant of a : Matrix Associated with every square matrix is a real number called its determinant. The determinant for a * matrix is defined as follows: Definition of a Third-Order Determinant a b c a b c a b c = a b c + b c a + c a b - a b c - b c a - c a b

96 Chapter 8 Matrices and Determinants The six terms and the three factors in each term in this complicated evaluation formula, a b c + b c a + c a b - a b c - b c a - c a b, can be rearranged, and then we can apply the distributive property. We obtain a b c - a b c - a b c + a b c + a b c - a b c = a (b c - b c ) - a (b c - b c ) + a (b c - b c ) = a b c - a b c b c + a b c b c. b c You can evaluate each of the second-order determinants and obtain the three expressions in parentheses in the second step. In summary, we now have arranged the definition of a third-order determinant as follows: Definition of the Determinant of a : Matrix A third-order determinant is defined by a a a b b b c c c b Subtract. Add. c c c =a a b +a b c. b c c b b Each a on the right comes from the first column. Here are some tips that may be helpful when evaluating the determinant of a * matrix: Evaluating the Determinant of a : Matrix. Each of the three terms in the definition contains two factors a numerical factor and a second-order determinant.. The numerical factor in each term is an element from the first column of the third-order determinant.. The minus sign precedes the second term.. The second-order determinant that appears in each term is obtained by crossing out the row and the column containing the numerical factor. b a ` c b ` - a c ` c b ` + a c ` c ` c b b b a b c a b c a b c a b c a b c a b c a b c a b c a b c The minor of an element is the determinant that remains after deleting the row and column of that element. For this reason, we call this method expansion by minors. EXAMPLE Evaluating the Determinant of a : Matrix Evaluate the determinant of the following matrix: C -9 S. - 8

SOLUTION Section 8.5 Determinants and Cramer s Rule 97 We know that each of the three terms in the determinant contains a numerical factor and a second-order determinant. The numerical factors are from the first column of the given matrix. They are highlighted in red in the following matrix: C -9 S. - 8 We find the minor for each numerical factor by deleting the row and column of that element: C 9 S C 9 S C 9 S 8 8 8 The minor for is. 8 The minor for 9 is. 8 The minor for is. TECHNOLOGY A graphing utility can be used to evaluate the determinant of a matrix. Enter the matrix and call it A. Then use the determinant command. The screen below verifies our result in Example. Now we have three numerical factors,, -9, and -, and three second-order determinants. We multiply each numerical factor by its second-order determinant to find the three terms of the third-order determinant: 8, -9 8, -. Based on the preceding definition, we subtract the second term from the first term and add the third term: Don't forget to supply the minus sign. 9 = -( 9) 8 8 8 Begin by evaluating the three second-order determinants. = ( # - 8 # ) + 9( # - 8 # ) - ( # - # ) = ( - ) + 9( - ) - ( - ) Multiply within parentheses. = (-9) + 9() - () Subtract within parentheses. = -6 + 9 - Multiply. = -9 Add and subtract as indicated. Check Point Evaluate the determinant of the following matrix: 7 C -5 6 S. - The six terms in the definition of a third-order determinant can be rearranged and factored in a variety of ways. Thus, it is possible to expand a determinant by minors about any row or any column. Minus signs must be supplied preceding any element appearing in a position where the sum of its row and its column is an odd number. For example, expanding about the elements in column gives us a a a b b b c c c a c a c c = b +b a -b a. a c c a c Minus sign is supplied because b appears in row and column ; + =, an odd number. Minus sign is supplied because b appears in row and column ; + = 5, an odd number.