• No results found

Question 2: How do you solve a matrix equation using the matrix inverse?

N/A
N/A
Protected

Academic year: 2021

Share "Question 2: How do you solve a matrix equation using the matrix inverse?"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

Question 2: How do you solve a matrix equation using the matrix inverse?

In the previous question, we wrote systems of equations as a matrix equation AXB . In this format, the matrix A contains the coefficients on the variables, matrix X contains the variables, and matrix B contains the constants. Solving the system of equations means that we need to solve for the variable matrix X. This is accomplished by

multiplying both sides of the matrix equation by the inverse of the coefficient matrix, A

1

.

1 1

A A X

A B

The product of a matrix A and its inverse is the identity matrix I. This means we can simplify the matrix equation to

IXA B

1

The product of an identity matrix with X is simply X, so the solution to the matrix equation is

XA B

1

 

How To Solve a System of Linear Equations with Inverses

1. Make sure the system is in proper format with variable terms on the left side of the equation and constants on the right side. The variable terms should be listed in the same order in each equation. Identify the coefficient matrix A, the variable matrix X, and the constant matrix B.

3. Compute the inverse A

1

. If the matrix is not invertible, it is not possible to solve the system with inverses.

4. Compute the product A B

1

.

(2)

5. The solution to the matrix equation AXB is XA B

1

. The corresponding solution for the system of linear

equations is found by matching the variables in X with the corresponding entries in the product A B

1

.

Example 3 Solve a Linear System with the Inverse

Solve the system of linear equations using the inverse of the coefficient matrix.

5

3 4 1

x y x y

  

 

Solution In 0, we wrote this system as the matrix equation A XB , where

1 1 5

, ,

3 4 1

A X x B

y

      

        

    and  

In section 3.3, we found the inverse of A,

1

4 1

3 1 A

  

     

We can use the inverse to compute the solution to the system.

The solution is found by multiplying the inverse of A times the constant

matrix B,

(3)

    

  

1

4 1 5

3 1 1

4 5 1 1

3 5 1 1 21

16

XA

B

 

   

         

  

 

        

  

  

 

Since the individual entries in X correspond to the variables x and y, this tells us that x   21 and y  16 . We can check these values in the original system to make sure they solve the system:

   

21 16 5

3 21

TRUE TR E

1 U

4 16

   

  

Example 4 Solve a Linear System with the Inverse

Solve the system of linear equations with the inverse of the coefficient matrix.

1 2 3

1 2 3

1 3

2

2 2 3 1

2 7

x x x

x x x

x x

  

   

  

Solution This system of equations is equivalent to the matrix equation A XB where

1 1 1 2

2 2 3 , , 1

1 0 2 7

x

A X y B

z

      

     

          

      

     

and

Insert the matrices. The product of a 2 x 2 matrix and a 2 x 1 matrix is a 2 x 1 matrix

Multiply the row entries in the inverse times the corresponding column entries in B

(4)

The variable matrix may be solved for using the inverse of the coefficient matrix, XA B

1

. We found the inverse of this coefficient matrix in Example 5 of section 3.3.

    

    

1

4 2 1 2

1 1 1 1

2 1 0 7

4 2 2 1 1 7

1 2 1 1 1 7

2 2 1 1 0 7

3 4 5

XA

B

 

   

   

      

    

   

      

 

 

        

       

 

   

  

   

Equating the entries in the variable matrix with the entries in this product, we observe that x  3 , y  4 , and z  5 .

For systems of linear equations with unique solutions, we can use inverses to solve for the variables. Many of the applications in Chapter 2 may be solved using this strategy.

Example 5 Mixing Ethanol Blends

In Example 12 of section 2.2 we created a system of equations to describe a mix of E10 and E85 ethanol,

E10 E85 10

0.10 E10 0.85 E85 2

 

 

where E10 is the amount of 10% ethanol pumped in gallons and E85 is the amount of 85% ethanol pumped in gallons. The first equation describes the total amount in the mixture, 10 gallons. The second

A1 was computed in Example 5 of section 3.3

Multiply the entries in the rows of A1 by the entries in the column of B

(5)

equation describes the total amount of ethanol in the mixture, 20% of 10 gallons or 2 gallons.

a. Solve this system of equations by finding the inverse of the coefficient matrix.

Solution This system of equations was solved in Chapter 2 using the Substitution Method. In this section we’ll solve the same system by writing the system as a matrix equation.

We can write this system of equations as the matrix equation A XB by identifying the matrices,

1 1 E10 10

, ,

0.10 0.85 E85 2

A   X   B  

        

    and  

The solution to the matrix equation is XA B

1

and requires the inverse of the matrix A.

We begin the process of finding the inverse of A by placing the coefficient matrix in a new matrix alongside a 2 x 2 identity matrix.

1 1 1 0

0.10 0.85 0 1

 

 

 

Since the entry in the first row, first column is already a 1, we’ll make the rest of the column into zeros using row operations. To do this, multiply the first row by -0.10 and add it to the second row. Place the sum in the second row:

1 2

0.10 : 0.10 0.10 0.10 0

: 0.10 0.85 0 1

0 0.75 0.10 1 R

R

   

1 1 1 0

0 0.75 0.10 1

 

  

 

1 2

2

0.10 becomes

R R R

 

(6)

With the first column transformed, proceed to the second column and use row operations to create a 1 in the second row, second column.

We put a 1 in the second row, second column by multiplying the second row by 1

0.75 . Since 3

0.75  , this is the same as multiplying by 4 4 3 :

Now multiply the second row by -1 and add it to the first row. Place the result in the first row:

The inverse matrix is the right hand side of this matrix,

1

17 4

15 3

2 4

15 3 A

  

 

  

  

 

 

The solution to the original system of equations is 0 0.75 .10 1

1 0.75

2 4

0 1

15 3

1 1 1 0

2 4

0 1 15 3

 

 

 

  

 

 

1 2 0.75

2

becomes R R

2 1

2 4

0 1

1 : 15 3

: 1 1 1 0

17 4

1 0

15 3 R

R

 

17 4

1 0

15 3

2 4

0 1

15 3

    

 

  

 

 

2 1

1

1 becomes

R R R

 

(7)

1

17 4

15 3 10

2 4 2

15 3

17 4

10 2

15 3

2 4

10 2

15 3

26 3 4 3

XA

B

  

   

    

    

 

 

         

   

 

  

   

 

 

 

 

  

 

 

 

Since the variable matrix X represents E10 E85

 

 

  , this means that the amount of E10 needed is 26

3 gallons and the amount of E85 needed is 4

3 gallons.

b. If the number of gallons in the mixture should be 12 gallons, how much 10% ethanol and 85% ethanol must be pumped?

Solution If the total number of gallons in the mixture is increased to 12 gallons, the total amount of ethanol in the mixture is .20 12  or 2.4 gallons. The system of equations becomes

E10 E85 12

0.10 E10 0.85 E85 2.4

 

 

The only change to the system of equations is in the constants, not the coefficients.

Multiply the entries in the rows of A1 by the entries in the column of B

Combine the terms in each entry and simplify all fractions

(8)

This means that we may use the existing coefficient matrix A and the corresponding inverse A

1

to find the solution of this system,

E10 E85 12

0.10 E10 0.85 E85 2.4

 

 

The constant matrix for this system is 12 B  2.4 

  

 

and the solution is

1

17 4

15 3 12

2 4 2.4

15 3

17 4

12 2.4

15 3

2 4

12 2.4

15 3

52 5 8 5

XA

B

  

   

    

 

  

 

 

         

   

 

          

   

  

   

 

Since the coefficients in the system have not changed, there is no need to recompute the inverse. We may use the inverse from part a to

calculate the product. We must mix 52

5 gallons of E10 and 8

5 gallons of E85.

Multiply the entries in the rows of A1 by the entries in the column of B

Combine the terms in each entry and simplify all fractions

Use the same inverse as in part a

(9)

This example illustrated the power of using inverses to solve a system of linear

equations. As long as the coefficient matrix does not change, the same inverse may be used to solve several different problems with different constant matrices. The solutions are simply the product of the inverse of the coefficient matrices and the different

constants. For part a, the constant was 10 B   2

  

  and for part b the constant was 12

B  2.4 

  

  . There was no need to recomputed the inverse for the different parts.

References

Related documents

2 Development of Research and Technology Center, Deputy of Research and Technology, Ministry of Health and Medical Education, Tehran, IR Iran 3 Department of Community Medicine,

monocytogenes ATCC 19111 s Lactobacillus brevis D6, bez prethodne kokultivacije te nakon kokultivacije navedenog probiotičkog soja s test-mikroorganizmima

Once communication content is outlined and its components are selected, the decisive step is to create relevant tasks that help learners in three essential aspects: to acquire new

The architecture of the faceted browsing system is shown in Figure 7.1 a. The system is designed around the partial materialization module shown in Figure 7.1 b, which is central

1) The versatility and low cost of wet welding makes this method highly desirable. 2) Other benefits include the speed. With which the operation is carried out. 3) It is less

In further questions about the access management treatment, survey respondents were asked if the installation of the raised median made (or “would make” for comparison sites)

Assistive technology for day-to-day help Reduced physical activity can cause stiffness.. Breathing problems can lead to reduced physical activity and thereby reduced

Provide problems using Cramer’s Rule and inverse matrices to solve