Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

7.8: Solving Systems with Inverses

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives
  • Find the inverse of a matrix.
  • Solve a system of linear equations using an inverse matrix

Nancy plans to invest $10,500 into two different bonds to spread out her risk. The first bond has an annual return of 10, and the second bond has an annual return of 6. To receive an 8.5 return from the two bonds, how much should Nancy invest in each bond? What is the best method to solve this problem? There are several ways we can solve this problem. As we have seen in previous sections, systems of equations and matrices are useful in solving real-world problems involving finance. After studying this section, we will have the tools to solve the bond problem using the inverse of a matrix.

Finding the Inverse of a Matrix

We know that the multiplicative inverse of a real number a is a1, so

aa1=a1a=(1a)a=1

For example, consider the scalar multiplication situation

21=12

therefore from Equation ???

(12)2=1.

The multiplicative inverse of a matrix is similar in concept, except that the product of matrix A and its inverse A1 equals the identity matrix. The identity matrix is a square matrix containing ones down the main diagonal and zeros everywhere else. We identify identity matrices by In where n represents the dimension of the matrix. Equations ??? and ??? are the identity matrices for a 2×2 matrix and a 3×3 matrix, respectively:

I2=[1001]

I3=[100010001]

The identity matrix acts as a 1 in matrix algebra. For example,

AI=IA=A

A matrix that has a multiplicative inverse has the properties

AA1=I

A1A=I

A matrix that has a multiplicative inverse is called an invertible matrix. Only a square matrix may have a multiplicative inverse, as the reversibility,

AA1=A1A=I

is a requirement. Not all square matrices have an inverse, but if A is invertible, then A1 is unique. We will look at two methods for finding the inverse of a 2×2 matrix and a third method that can be used on both 2×2 and 3×3 matrices.

Definitions: THE IDENTITY MATRIX AND MULTIPLICATIVE INVERSE

The identity matrix, In, is a square matrix containing ones down the main diagonal and zeros everywhere else.

I2=[1001]

as for the 2×2 identity matrix

I3=[100010001]

as for the 3×3 identity matrix

If A is an n×n matrix and B is an n×n matrix such that AB=BA=In, then B=A1, the multiplicative inverse of a matrix A.

Example 7.8.1: Showing That the Identity Matrix Acts as a 1

Given matrix A, show that AI=IA=A.

A=[3425]

Solution

Use matrix multiplication to show that the product of A and the identity matric is equal to the product of the identity matrix and A.

AI=[3425][1001]=[31+4030+4121+5020+51]=[3425]

AI=[1001][3425]=[13+0(2)14+0503+1(2)04+15]=[3425]

How to: Given two matrices, show that one is the multiplicative inverse of the other
  • Given matrix A of order n×n and matrix B of order n×n multiply AB.
  • If AB=I, then find the product BA. If BA=I, then B=A1 and A=B1.
Example 7.8.2: Showing That Matrix A Is the Multiplicative Inverse of Matrix B

Show that the given matrices are multiplicative inverses of each other.

A=[1529]

and

B=[9521]

Solution

Multiply AB and BA. If both products equal the identity, then the two matrices are inverses of each other.

AB=[1529]·[9521]=[1(9)+5(2)1(5)+5(1)2(9)9(2)2(5)9(1)]=[1001]

and

BA=[9521]·[1529]=[9(1)5(2)9(5)5(9)2(1)+1(2)2(5)+1(9)]=[1001]

A and B are inverses of each other.

Exercise 7.8.1

Show that the following two matrices are inverses of each other.

A=[1413]

and

B=[3411]

Answer

AB=[1413][3411]=[1(3)+4(1)1(4)+4(1)1(3)+3(1)1(4)+3(1)]=[1001]

BA=[3411][1413]=[3(1)+4(1)3(4)+4(3)1(1)+1(1)1(4)+1(3)]=[1001]

Finding the Multiplicative Inverse Using Matrix Multiplication

We can now determine whether two matrices are inverses, but how would we find the inverse of a given matrix? Since we know that the product of a matrix and its inverse is the identity matrix, we can find the inverse of a matrix by setting up an equation using matrix multiplication.

Example 7.8.3: Finding the Multiplicative Inverse Using Matrix Multiplication

Use matrix multiplication to find the inverse of the given matrix.

A=[1223]

Solution

For this method, we multiply A by a matrix containing unknown constants and set it equal to the identity.

[1223][abcd]=[1001]

Find the product of the two matrices on the left side of the equal sign.

[1223][abcd]=[1a2c1b2d2a3c2b3d]

Next, set up a system of equations with the entry in row 1, column 1 of the new matrix equal to the first entry of the identity, 1. Set the entry in row 2, column 1 of the new matrix equal to the corresponding entry of the identity, which is 0.

1a2c=1 R1

2a3c=0 R2

Using row operations, multiply and add as follows: (2)R1+R2R2. Add the equations, and solve for c.

1a2c=10+1c=2c=2

Back-substitute to solve for a.

a2(2)=1a+4=1a=3

Write another system of equations setting the entry in row 1, column 2 of the new matrix equal to the corresponding entry of the identity, 0. Set the entry in row 2, column 2 equal to the corresponding entry of the identity.

1b2d=0 R1

2b3d=1 R2

Using row operations, multiply and add as follows: (2)R1+R2=R2. Add the two equations and solve for d.

1b2d=00+1d=1d=1

Once more, back-substitute and solve for b.

b2(1)=0b2=0b=2

A1=[3221]

Finding the Multiplicative Inverse by Augmenting with the Identity

Another way to find the multiplicative inverse is by augmenting with the identity. When matrix A is transformed into I, the augmented matrix I transforms into A1.

For example, given

A=[2153]

augment A with the identity

[21105301]

Perform row operations with the goal of turning A into the identity.

  1. Switch row 1 and row 2.

    [53012110]

  2. Multiply row 2 by −2 and add to row 1.

    [11212110]

  3. Multiply row 1 by −2 and add to row 2.

    [11210152]

  4. Add row 2 to row 1.

    [10310152]

  5. Multiply row 2 by−1. −1.

    [10310152]

The matrix we have found is A1.

A1=[3152]

Finding the Multiplicative Inverse of 2×2 Matrices Using a Formula

When we need to find the multiplicative inverse of a 2×2 matrix, we can use a special formula instead of using matrix multiplication or augmenting with the identity.

If A is a 2×2 matrix, such as

A=[abcd]

the multiplicative inverse of A is given by the formula

A1=1adbc[dbca]

where adbc0. If adbc=0, then A has no inverse.

Example 7.8.4: Using the Formula to Find the Multiplicative Inverse of Matrix A

Use the formula to find the multiplicative inverse of

A=[1223]

Solution

We can check that our formula works by using one of the other methods to calculate the inverse. Let’s augment A with the identity.

[12102301]

Perform row operations with the goal of turning A into the identity.

  1. Multiply row 1 by 2 and add to row 2.

    [12100121]

  2. Multiply row 1 by 2 and add to row 1.

    [10320121]

So, we have verified our original solution.

A1=[3221]

Exercise 7.8.2

Use the formula to find the inverse of matrix A. Verify your answer by augmenting with the identity matrix.

A=[1123]

Answer

A1=[35152515]

Example 7.8.5: Finding the Inverse of the Matrix, If It Exists

Find the inverse, if it exists, of the given matrix.

A=[3612]

Solution

We will use the method of augmenting with the identity.

[36101301]

  1. Switch row 1 and row 2.

    [13013610]

  2. Multiply row 1 by −3 and add it to row 2.

    [12100031]

  3. There is nothing further we can do. The zeros in row 2 indicate that this matrix has no inverse.
Finding the Multiplicative Inverse of 3×3 Matrices

Unfortunately, we do not have a formula similar to the one for a 2×2 matrix to find the inverse of a 3×3 matrix. Instead, we will augment the original matrix with the identity matrix and use row operations to obtain the inverse.

Given a 3×3 matrix

A=[231331241]

augment A with the identity matrix

AI=[231100331010241001]

To begin, we write the augmented matrix with the identity on the right and A on the left. Performing elementary row operations so that the identity matrix appears on the left, we will obtain the inverse matrix on the right. We will find the inverse of this matrix in the next example.

How to: Given a 3×3 matrix, find the inverse
  1. Write the original matrix augmented with the identity matrix on the right.
  2. Use elementary row operations so that the identity appears on the left.
  3. What is obtained on the right is the inverse of the original matrix.
  4. Use matrix multiplication to show that AA1=I and A1A=I.
Example 7.8.6: Finding the Inverse of a 3×3 Matrix

Given the 3×3 matrix A, find the inverse.

A=[231331241]

Solution

Augment A with the identity matrix, and then begin row operations until the identity matrix replaces A. The matrix on the right will be the inverse of A.

[231100331010241001]Interchange R2 and R1[331010231100241001]

R2+R1=R1[100110231100241001]

R2+R3=R3[100110231100010101]

R2R3[100110010101231100]

2R1+R3=R3[100110010101031320]

3R2+R3=R3[100110010101001623]

Thus,

A1=B=[110101623]

Analysis

To prove that B=A1, let’s multiply the two matrices together to see if the product equals the identity, if AA1=I and A1A=I.

AA1=[231331241][110101623]=[2(1)+3(1)+1(6)2(1)+3(0)+1(2)2(0)+3(1)+1(3)3(1)+3(1)+1(6)3(1)+3(0)+1(2)3(0)+3(1)+1(3)2(1)+4(1)+1(6)2(1)+4(0)+1(2)2(0)+4(1)+1(3)]=[100010001]A1A=[110101623][231331241]=[1(2)+1(3)+0(2)1(3)+1(3)+0(4)1(1)+1(1)+0(1)1(2)+0(3)+1(2)1(3)+0(3)+1(4)1(1)+0(1)+1(1)6(2)+2(3)+3(2)6(3)+2(3)+3(4)6(1)+2(1)+3(1)]=[100010001]

Exercise 7.8.3

Find the inverse of the 3×3 matrix.

A=[217111117032]

Answer

A1=[112243365]

Solving a System of Linear Equations Using the Inverse of a Matrix

Solving a system of linear equations using the inverse of a matrix requires the definition of two new matrices: X is the matrix representing the variables of the system, and B is the matrix representing the constants. Using matrix multiplication, we may define a system of equations with the same number of equations as variables as

AX=B

To solve a system of linear equations using an inverse matrix, let A be the coefficient matrix, let X be the variable matrix, and let B be the constant matrix. Thus, we want to solve a system AX=B. For example, look at the following system of equations.

a1x+b1y=c1

a2x+b2y=c2

From this system, the coefficient matrix is

A=[a1b1a2b2]

The variable matrix is

X=[xy]

And the constant matrix is

B=[c1c2]

Then AX=B looks like

[a1b1a2b2][xy]=[c1c2]

Recall the discussion earlier in this section regarding multiplying a real number by its inverse, (21)2=(12)2=1. To solve a single linear equation ax=b for x, we would simply multiply both sides of the equation by the multiplicative inverse (reciprocal) of a. Thus,

ax=b(1a)ax=(1a)b(a1)ax=(a1)b[(a1)a]x=(a1)b1x=(a1)bx=(a1)b

The only difference between a solving a linear equation and a system of equations written in matrix form is that finding the inverse of a matrix is more complicated, and matrix multiplication is a longer process. However, the goal is the same—to isolate the variable.

We will investigate this idea in detail, but it is helpful to begin with a 2×2 system and then move on to a 3×3 system.

SOLVING A SYSTEM OF EQUATIONS USING THE INVERSE OF A MATRIX

Given a system of equations, write the coefficient matrix A, the variable matrix X, and the constant matrix B. Then

AX=B

Multiply both sides by the inverse of A to obtain the solution.

(A1)AX=(A1)B[(A1)A]X=(A1)BIX=(A1)BX=(A1)B

Q&A: If the coefficient matrix does not have an inverse, does that mean the system has no solution?

No, if the coefficient matrix is not invertible, the system could be inconsistent and have no solution, or be dependent and have infinitely many solutions.

Example 7.8.7: Solving a 2×2 System Using the Inverse of a Matrix

Solve the given system of equations using the inverse of a matrix.

3x+8y=54x+11y=7

Solution

Write the system in terms of a coefficient matrix, a variable matrix, and a constant matrix.

A=[38411], X=[xy], B=[57]

Then

[38411][xy]=[57]

First, we need to calculate A1. Using the formula to calculate the inverse of a 2 by 2 matrix, we have:

A1=1adbc[dbca]=13(11)8(4)[11843]=11[11843]

So,

A1=[11843]

Now we are ready to solve. Multiply both sides of the equation by A1.

(A1)AX=(A1)B[11843][38411][xy]=[11843][57][1001][xy]=[11(5)+(8)74(5)+3(7)][xy]=[11]

The solution is (1,1).

Q&A: Can we solve for X by finding the product BA1?

No, recall that matrix multiplication is not commutative, so A1BBA1. Consider our steps for solving the matrix equation.

(A1)AX=(A1)B[(A1)A]X=(A1)BIX=(A1)BX=(A1)B

Notice in the first step we multiplied both sides of the equation by A1, but the A1 was to the left of A on the left side and to the left of B on the right side. Because matrix multiplication is not commutative, order matters.

Example 7.8.8: Solving a 3 × 3 System Using the Inverse of a Matrix

Solve the following system using the inverse of a matrix.

5x+15y+56z=354x11y41z=26x3y11z=7

Solution

Write the equation AX=B.

[51556411411311][xyz]=[35267]

First, we will find the inverse of A by augmenting with the identity.

[51556100411410101311001]

Multiply row 1 by 15.

[135651500411410101311001]

Multiply row 1 by 4 and add to row 2.

[1356515000119545101311001]

Add row 1 to row 3.

[13565150001195451000151501]

Multiply row 2 by 3 and add to row 1.

[10151153001195451000151501]

Multiply row 3 by 5.

[101511530011954510001105]

Multiply row 3 by 15 and add to row 1.

[100231011954510001105]

Multiply row 3 by 195 and add to row 2.

[1002310103119001105]

So,

A1=[2313119105]

Multiply both sides of the equation by A1. We want A1AX=A1B:

[2313119105][51556411411311][xyz]=[2313119105][35267]

Thus,

A1B=[70+78710526+13335+035]=[120]

The solution is (1,2,0).

Exercise 7.8.4

Solve the system using the inverse of the coefficient matrix.

2x17y+11z=0x+11y7z=83y2z=2

Answer

X=[43858]

How to: Given a system of equations, solve with matrix inverses using a calculator
  1. Save the coefficient matrix and the constant matrix as matrix variables [A] and [B].
  2. Enter the multiplication into the calculator, calling up each matrix variable as needed.
  3. If the coefficient matrix is invertible, the calculator will present the solution matrix; if the coefficient matrix is not invertible, the calculator will present an error message.
Example 7.8.9: Using a Calculator to Solve a System of Equations with Matrix Inverses

Solve the system of equations with matrix inverses using a calculator

2x+3y+z=323x+3y+z=272x+4y+z=2

Solution

On the matrix page of the calculator, enter the coefficient matrix as the matrix variable [A], and enter the constant matrix as the matrix variable [B].

[A]=[231331241], [B]=[32272]

On the home screen of the calculator, type in the multiplication to solve for X, calling up each matrix variable as needed.

[A]1×[B]

Evaluate the expression.

[5934252]

Media

Access these online resources for additional instruction and practice with solving systems with inverses.

Key Equations

Identity matrix for a 2×2 matrix I2=[1001]
Identity matrix for a 3×3 matrix I3=[100010001]
Multiplicative inverse of a 2×2 matrix A1=1adbc[dbca], where adbc0

Key Concepts

  • An identity matrix has the property AI=IA=A. See Example 7.8.1.
  • An invertible matrix has the property AA1=A1A=I. See Example 7.8.2.
  • Use matrix multiplication and the identity to find the inverse of a 2×2 matrix. See Example 7.8.3.
  • The multiplicative inverse can be found using a formula. See Example 7.8.4.
  • Another method of finding the inverse is by augmenting with the identity. See Example 7.8.5.
  • We can augment a 3×3 matrix with the identity on the right and use row operations to turn the original matrix into the identity, and the matrix on the right becomes the inverse. See Example 7.8.6.
  • Write the system of equations as AX=B, and multiply both sides by the inverse of A: A1AX=A1B. See Example 7.8.7 and Example 7.8.8.
  • We can also use a calculator to solve a system of equations with matrix inverses. See Example 7.8.9.

This page titled 7.8: Solving Systems with Inverses is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?