16.4 Matrices and Linear Equations

  • Multiply Matrix of Constants by Inverse of Matrix of Coefficients • Solving Systems of Equations • Matrix Solution on a Calculator

As we stated at the beginning of Section 16.1, matrices can be used to solve systems of equations. In this section, we show one method by which this is done. As we develop this method, it will be apparent that there is a great deal of numerical work involved. However, methods such as this one are easily programmed for use on a computer, which can do the arithmetic work very rapidly. Also, most calculators can perform these operations, and we will show an example at the end of the section in which a calculator is used to solve a system of four equations more readily than with earlier methods. It is the method of solving the system of equations that is of primary importance here.

Let us consider the system of equations

a1x + b1y = c1a2x + b2y = c2

Recalling the definition of equality of matrices, we can write this system as

 [ a1x + b1ya2x + b2y ]  =  [ c1c2 ] 
(16.6)

If we let

A =  [ a1b1a2b2 ] X =  [ xy ] C =  [ c1c2 ] 
(16.7)

the left side of Eq. (16.6) can be written as the product of matrices A and X.

AX = C
(16.8)

If we now multiply (on the left) each side of this matrix equation by A − 1 ,  we have

A − 1AX = A − 1C

Because A − 1A = I ,  we have

IX = A − 1C

However, IX = X .  Therefore,

X = A − 1C
(16.9)

NOTE

[Equation (16.9) states that we can solve a system of linear equations by multiplying the one-column matrix of the constants on the right by the inverse of the matrix of the coefficients.]

The result is a one-column matrix whose elements are the required values for the solution.

CAUTION

Note that X = A − 1C ,  and not CA − 1 .  The order of matrix multiplication must be carefully followed.

EXAMPLE 1 Matrix solution—two equations

Use matrices to solve the system of equations

2x − y = 75x − 3y = 18

The matrices for Eq. (16.7), and the matrix equation are

A =  [ 2 − 15 − 3 ] X =  [ xy ] C =  [ 718 ]  [ 2 − 15 − 3 ]  [ xy ]  =  [ 718 ] 

By either of the methods of the previous section, we can determine the inverse of matrix A to be

A − 1 =  [ 3 − 15 − 2 ] 

We now form the matrix product A − 1C . 

A − 1C =  [ 3 − 15 − 2 ]  [ 718 ]  =  [ 21 − 1835 − 36 ]  =  [ 3 − 1 ] 

Because X = A − 1C ,  this means that

 [ xy ]  =  [ 3 − 1 ] 

Therefore, the required solution is x = 3 and y =  − 1 ,  which checks when these values are substituted into the original equations. See the calculator matrix solution shown in Fig. 16.11.

A calculator screen.

Fig. 16.11

Graphing calculator keystrokes: bit.ly/2yDfhhp

EXAMPLE 2 Matrix solution two equations—electric current

For the electric circuit shown in Fig. 16.12, the equations used to find the currents (in amperes) i1 and i2 are

A circuit where I sub 1 goes through 15.0 volts, 2.30 Ohms. Current I sub 2 goes through 12.5 volts and 1.25 Ohms. Between the currents is 6.45 Ohms.

Fig. 16.12

2.30i1 + 6.45(i1 + i2) = 15.01.25i2 + 6.45(i1 + i2) = 12.5or8.75i1 + 6.45i2 = 15.06.45i1 + 7.70i2 = 12.5

Using matrices to solve this system of equations, we set up the matrix A of coefficients, the matrix C of constants, and the matrix X of currents as

A =  [ 8.756.456.457.70 ] C =  [ 15.012.5 ] X =  [ i1i2 ] 

We now find the inverse of A as

A − 1 = 18.75(7.70) − 6.45(6.45) [ 7.70 − 6.45 − 6.458.75 ]  =  [ 0.2988 − 0.2503 − 0.25030.3395 ] 

Therefore,

X = A − 1C =  [ 0.2988 − 0.2503 − 0.25030.3395 ]  [ 15.012.5 ]  =  [ 0.2988(15.0) − 0.2503(12.5) − 0.2503(15.0) + 0.3395(12.5) ]  =  [ 1.350.49 ] 

Therefore, the required currents are i1 = 1.35 A and i2 = 0.49 A .  These values check when substituted into the original equations.

EXAMPLE 3 Matrix solution—three equations

Use matrices to solve the system of equations

x + 2y − z =  − 43x + 5y − z =  − 5 − 2x − y − 2z =  − 5

Setting up matrices A, C, and X, we have

A =  [ 12 − 135 − 1 − 2 − 1 − 2 ] C =  [  − 4 − 5 − 5 ] X =  [ xyz ] 

Finding A − 1 (see Example 4 of Section 16.3) and solving for X, we have

A − 1 =  [ 112 − 52 − 32 − 421 − 723212 ] X = A − 1C =  [ 112 − 52 − 32 − 421 − 723212 ]  [  − 4 − 5 − 5 ]  =  [  − 214 ] 

Thix means that x =  − 2 , y = 1 ,  and z = 4.

EXAMPLE 4 Matrix solution on a calculator—4 equations

Use a calculator to perform the necessary matrix operations in solving the following

2r + 4s − t + u = 5r − 2s + 3t − u =  − 43r + s + 2t − 4u = 84r + 5s − t + 3u =  − 1

First, we set up matrices A, X, and C:

A =  [ 24 − 111 − 23 − 1312 − 445 − 13 ] X =  [ rstu ] C =  [ 5 − 48 − 1 ] 

It is now necessary only to enter matrices A and C in the calculator and find the matrix product A − 1C ,  as shown in Fig. 16.13(a). (There is no need to record or display A − 1 . ) This shows that the solution is

Two calculator screens.

Fig. 16.13

Graphing calculator keystrokes: bit.ly/2IVdskE

r =  − 2s = 3t = 0.5u =  − 2.5

This solution can be checked on the calculator by storing the resulting matrix X as matrix B and finding the matrix product AB, which should equal matrix C as shown in Fig. 16.13(b). The product AB is equivalent to substituting each value into the original equations, as shown in Eq. (16.8).

EXERCISES 16.4

In Exercises 1 and 2, make the given changes in the indicated examples of this section and then solve the systems of equations.

  1. In Example 1, change the 18 to 19 and then solve the system of equations.

  2. In Example 3, change the  − 4 in the top equation to  − 2 and then solve the system of equations.

In Exercises 38, solve the given systems of equations by using the inverse of the coefficient matrix. The numbers in parentheses refer to exercises from Section 16.3, where the inverses may be checked.

  1. 2x − 3y =  − 6(3) − 2x + 4y = 11

  2.  − x + 5y = 4(5)4x + 10y =  − 4

  3. x + 2y = 7(11)2x + 5y = 11

  4. 2x + 4y =  − 9(13) − x − y = 2

  5. x − 3y − 2z =  − 8(17) − 2x + 7y + 3z = 19x − y − 3z =  − 3

  6. x + 3y + 2z = 5(19) − 2x − 5y − z =  − 12x + 4y =  − 2

In Exercises 916. solve the given systems of equations by using the inverse of the coefficient matrix

  1. 2x − 3y = 34x − 5y = 4

  2. x + 2y = 33x + 4y = 11

  3. 2.5x + 2.8y =  − 3.03.5x − 1.6y = 9.6

  4. 24x − 10y =  − 80031x + 25y = 180

  5. x + 2y + 2z =  − 44x + 9y + 10z =  − 18 − x + 3y + 7z =  − 7

  6. x − 4y − 2z =  − 7 − x + 5y + 5z = 183x − 7y + 10z = 38

  7. 2x + 4y + z = 5 − 2x − 2y − z =  − 6 − x + 2y + z = 0

  8. 4x + y = 2 − 2x − y + 3z =  − 182x + y − z = 8

In Exercises 1728, solve the given systems of equations by using the inverse of the coefficient matrix. Use a calculator to perform the necessary matrix operations and display the results and the check. See Example 4.

  1. 3x − y = 47x + 2y = 18

  2. 5s + 2t = 1s − 3t = 7

  3. 3x − 2y = 59x + 4y =  − 5

  4. 4u + 3v = 76u − 2v =  − 9

  5. 2x − y − z = 74x − 3y + 2z = 43x + 5y + z =  − 10

  6. 6x + 2y + 9z = 137x + 6y − 6z = 65x − 4y + 3z = 15

  7. u − 3v − 2w = 93u + 2v + 6w = 204u − v + 3w = 25

  8. 4x + 2y − 2z = 23x − 2y − 8z =  − 3x + 3y + z = 10

  9. x − 5y + 2z − t =  − 183x + y − 3z + 2t = 174x − 2y + z − t =  − 1 − 2x + 3y − z + 4t = 11

  10. 2p + q + 5r + s = 5p + q − 3r − 4s =  − 13p + 6q − 2r + s = 82p + 2q + 2r − 3s = 2

  11. 2v + 3w + x − y − 2z = 66v − 2w − x + 3y − z = 21v + 3w − 4x + 2y + 3z =  − 93v − w − x + 7y + 4z = 5v + 6w + 6x − 4y − z =  − 4

  12. 4x − y + 2z − 2t + u =  − 158x + y − z + 4t − 2u = 262x − 6y − 2z + t − u = 102x + 5y + z − 3t + 8u =  − 224x − 3y + 2z + 4t + 2u =  − 4

In Exercises 2940, solve the indicated systems of equations using the inverse of the coefficient matrix. In Exercises 3540, it is necessary to set up the appropriate equations.

  1. For the following system of equations, solve for x2 and y using the matrix methods of this section, and then solve for x and y.

    x2 + y = 22x2 − y = 10
  2. For the following system of equations, solve for x2 and y2 using the matrix methods of this scction, and then solve for x and y.

    x2 − y2 = 8x2 + y2 = 10
  3.  Solve any pair of the system of equations 2x − y = 4 , 3x + y = 1 ,  and x − 2y = 5. Show that the solution is valid for any pair chosen. What conclusions can be drawn about the graphs of the three equations?

  4.  In solving the system of equations 3x − 4y = 5 , 8y − 6x = 7 ,  when conclusion can be drawn?

  5. Forces F1 and F2 hold up a beam that weights 2540 N, as shown in Fig. 16.14. The equations used to find the forces are

    A beam is held up by force F sub 1 at 47.2 degrees to the horizontal and force F sub 2 at 64.4 degrees to the horizontal. A force of 2540 Newtons pulls down vertically.

    Fig. 16.14

    Asin 47.2 °  + Bsin 64.4 °  = 2540Acos 47.2 °  − Bcos 64.4 °  = 0

    Find the magnitude of each force.

  6. In applying Kirchhoff’s laws to the circuit shown in Fig. 16.15, following equations are found. Determine the indicated currents (in A).

    A circuit with currents I sub Ay, I sub B, and I sub C running parallel with 2 Ohms, 5 Ohms, and 1 Ohm, respectively. Between 2 and 5 Ohms is 6 volts, and between 5 and 1 Ohms is 3 volts.

    Fig. 16.15

    IA + IB + IC = 02IA − 5IB = 65IB − IC =  − 3
  7. Two batteries in an electric circuit have a combined voltage of 18 V, and one battery produces 6 V less than twice the other. What is the voltage of each?

  8. For college expenses, a student took out a loan at 4.00%, and a semester later took out a second loan at 3.00%. The total annual interest for the two loans was $245. If the second loan had been for twice as much, the annual interest would have been $290. How much was each loan?

  9. What volume of each of a 20% acid solution and a 50% acid solution should be combined to form 48 mL of a 25% solution?

  10. Two computer programs together require 236 MB (megabytes) of memory. If one program requires 20.0 MB of memory more than twice the memory of the other, what are the memory requirements of each program?

  11. A research chemist wants to make 10.0 L of gasoline containing 2.0% of a new experimental additive. Gasoline without additive and two mixtures of gasoline with additive, one with 5.0% and the other with 6.0%, are to be used. If four times as much gasoline without additive as the 5.0% mixture is to be used, how much of each is needed?

  12. A river tour boat takes 5.0 h to cruise downstream and 7.0 h for the return upstream. If the river flows at 4.0 mi/h, how fast does the boat travel in still water, and how far downstream does the boat go before starting the return trip?

Answer to Practice Exercise

  1. x = 3 , y =  − 1

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.98.71