Solving systems of equations

The system of linear equations

( i ) [Maple Math]

( ii ) [Maple Math]

is equivalent to the matrix equation AX = B where

[Maple OLE 2.0 Object] [Maple OLE 2.0 Object] [Maple OLE 2.0 Object]

because of the definition of matrix multiplication.

To solve AX = B we multiply both sides of the equation by the inverse of A

[Maple OLE 2.0 Object]

Since [Maple OLE 2.0 Object] we get that

[Maple OLE 2.0 Object]

Note that when we multiplied both sides by the inverse, the inverse was put to the left of each term.

Summary

To solve the matrix equation AX = B use

[Maple OLE 2.0 Object]

Example 1

Solve the system

( i ) 3x +5y = 6

( ii ) x + 2y = - 7

using the matrix inverse.

Solution .

This is equivalent to solving the matrix equation AX = B where

[Maple OLE 2.0 Object] [Maple OLE 2.0 Object] [Maple OLE 2.0 Object]

In example one of the previous section, we saw that the inverse of A was

[Maple OLE 2.0 Object]

Consequently,

[Maple OLE 2.0 Object]

or

[Maple OLE 2.0 Object]

Thus, x = 47 and y = -27

Example 2

Solve the system using the matrix inverse.

( i ) 7x + 9y = 62

( ii ) -3x + 5y = 62

Solution .

In this case

[Maple OLE 2.0 Object]

Using the inverse found in example three of the previous section, we have

[Maple OLE 2.0 Object]

Thus, x = -4 and y = 10.

The matrix inverse method can be used in systems with three variables, too.

Example 3

Solve the system using the matrix inverse.

( i) x + 2y + 3z = 1

( ii ) x + 3y + 3z = 1

( iii ) 2x + 8y + 7z = 1

Solution .

We must solve AX = B where

[Maple OLE 2.0 Object] [Maple OLE 2.0 Object] [Maple OLE 2.0 Object]

We'll use the equation

[Maple OLE 2.0 Object]

From example three in the section on finding inverses, we know that

[Maple OLE 2.0 Object]

Hence

[Maple OLE 2.0 Object]

Thus, x = 4, y =0, and z = -1

In the section on Gaussian elimination with back substitution we indicated that this method generally involves the fewest number of multiplications. Why then would we want to solve a system as we just did with the inverse method? One reason might be that we might have several problems to solve that involve the same matrix A (coefficeints of the variables) but have different values for B (the constants on the right side of the equations). In this case once the inverse of A has been computed it can be used again with a different B.