$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$

# 11.8: Solving Systems with Inverses

Skills to Develop

In this section, you will:
• 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%. In order 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 $$a^{−1}$$, and $$aa^{−1}=a^{−1}a=(\dfrac{1}{a})a=1$$. For example, $$2^{−1}=\dfrac{1}{2}$$  and $$(\dfrac{1}{2})2=1$$. The multiplicative inverse of a matrix is similar in concept, except that the product of matrix A and its inverse $$A^{−1}$$ 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 $$I_n$$ where $$n$$ represents the dimension of the matrix. Equation and Equation are the identity matrices for a $$2×2$$ matrix and a $$3×3$$ matrix, respectively.

$$I_2=\begin{bmatrix}1&0\\0&1\end{bmatrix}$$

$$I_3=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}$$

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

$$AA^{−1}=I$$

$$A^{−1}A=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, $$AA^{−1}=A^{−1}A=I$$, is a requirement. Not all square matrices have an inverse, but if $$A$$ is invertible, then $$A^{−1}$$ 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.

A General Note: THE IDENTITY MATRIX AND MULTIPLICATIVE INVERSE

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

$$I_2=\begin{bmatrix}1&0\\0&1\end{bmatrix} I_3=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}$$

2 × 2                 3 × 3

If $$A$$ is an $$n × n$$  matrix and $$B$$ is an $$n × n$$  matrix such that $$AB=BA=I_n$$, then $$B=A−1$$, the multiplicative inverse of a matrix $$A$$.

Example

Showing That the Identity Matrix Acts as a 1

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

$$A=\begin{bmatrix}3&4\\−2&5\end{bmatrix}$$

Solution:

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

$$AI=\begin{bmatrix}3&4\\−2&5\end{bmatrix}\begin{bmatrix}1&0\\0&1\end{bmatrix}=\begin{bmatrix}3⋅1+4⋅0&3⋅0+4⋅1\\−2⋅1+5⋅0&−2⋅0+5⋅1\end{bmatrix}=\begin{bmatrix}3&4\\−2&5\end{bmatrix}$$

$$AI=\begin{bmatrix}1&0\\0&1\end{bmatrix}\begin{bmatrix}3&4\\−2&5\end{bmatrix}=\begin{bmatrix}1⋅3+0⋅(−2)&1⋅4+0⋅5\\0⋅3+1⋅(−2)&0⋅4+1⋅5\end{bmatrix}=\begin{bmatrix}3&4\\−2&5\end{bmatrix}$$

How to: Given two matrices, show that one is the multiplicative inverse of the other.

1. Given matrix $$A$$ of order $$n × n$$ and matrix $$B$$ of order $$n × n$$ multiply $$AB$$.
2. If $$AB=I$$, then find the product $$BA$$. If $$BA=I$$, then $$B=A^{−1}$$ and $$A=B^{−1}$$.

Example

Showing That Matrix A Is the Multiplicative Inverse of Matrix B

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

$$A=\begin{bmatrix}1&5\\−2&−9\end{bmatrix}$$, $$B=\begin{bmatrix}−9&−5\\2&1\end{bmatrix}$$

Solution:

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

$$AB=\begin{bmatrix}1&5\\−2&−9\end{bmatrix}·\begin{bmatrix}−9&−5\\2&1\end{bmatrix}$$

$$=\begin{bmatrix}1(−9)+5(2)&1(−5)+5(1)\\−2(−9)−9(2)&−2(−5)−9(1)\end{bmatrix}$$

$$=\begin{bmatrix}1&0\\0&1\end{bmatrix}$$

$$BA=\begin{bmatrix}−9&−5\\2&1\end{bmatrix}·\begin{bmatrix}1&5\\−2&−9\end{bmatrix}$$

$$=\begin{bmatrix}−9(1)−5(−2)&−9(5)−5(−9)\\2(1)+1(−2)&2(−5)+1(−9)\end{bmatrix}$$

$$=\begin{bmatrix}1&0\\0&1\end{bmatrix}$$

$$A$$ and $$B$$ are inverses of each other.

Exercise

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

$$A=\begin{bmatrix}1&4\\−1&−3\end{bmatrix}$$, $$B=\begin{bmatrix}−3&−4\\1&1\end{bmatrix}$$

Solution:

$$AB=\begin{bmatrix}1&4\\−1&−3\end{bmatrix}\begin{bmatrix}−3&−4\\1&1\end{bmatrix}=\begin{bmatrix}1(−3)+4(1)&1(−4)+4(1)\\−1(−3)+−3(1)&−1(−4)+−3(1)\end{bmatrix}=\begin{bmatrix}1&0\\0&1\end{bmatrix}$$

$$BA=\begin{bmatrix}−3&−4\\1&1\end{bmatrix}\begin{bmatrix}1&4\\−1&−3\end{bmatrix}=\begin{bmatrix}−3(1)+−4(−1)&−3(4)+−4(−3)\\1(1)+1(−1)&1(4)+1(−3)\end{bmatrix}=\begin{bmatrix}1&0\\0&1\end{bmatrix}$$

#### 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

Finding the Multiplicative Inverse Using Matrix Multiplication

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

$$A=\begin{bmatrix}1&−2\\2&−3\end{bmatrix}$$

Solution:

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

$$\begin{bmatrix}1&−2\\2&−3\end{bmatrix}\begin{bmatrix}a&b\\c&d\end{bmatrix}=\begin{bmatrix}1&0\\0&1\end{bmatrix}$$

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

$$\begin{bmatrix}1&−2\\2&−3\end{bmatrix}\begin{bmatrix}a&b\\c&d\end{bmatrix}=\begin{bmatrix}1a−2c&1b−2d\\2a−3c&2b−3d\end{bmatrix}$$

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.

$$1a−2c=1\space R_1$$

$$2a−3c=0\space R_2$$

Using row operations, multiply and add as follows: $$(−2)R_1+R_2\rightarrow R_2$$. Add the equations, and solve for $$c$$.

$$1a−2c=1$$

$$0+1c=−2$$

$$c=−2$$

Back-substitute to solve for $$a$$.

$$a−2(−2)=1$$

$$a+4=1$$

$$a=−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.

$$1b−2d=0\space R_1$$

$$2b−3d=1\space R_2$$

Using row operations, multiply and add as follows: $$(−2)R_1+R_2=R_2$$. Add the two equations and solve for $$d$$.

$$1b−2d=0$$

$$0+1d=1$$

$$d=1$$

Once more, back-substitute and solve for $$b$$.

$$b−2(1)=0$$

$$b−2=0$$

$$b=2$$

$$A^{−1}=\begin{bmatrix}−3&2\\−2&1\end{bmatrix}$$

#### 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 intoI, I, the augmented matrixI I transforms into $$A^{−1}$$.

For example, given

$$A=\begin{bmatrix}2&1\\5&3\end{bmatrix}$$

augment $$A$$ with the identity

$$\left[ \begin{array}{cc|cc} 2&1&1&0\\5&3&0&1\end{array} \right]$$

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

1. Switch row 1 and row 2.

$$\left[ \begin{array}{cc|cc} 5&3&0&1\\2&1&1&0\end{array} \right]$$

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

$$\left[ \begin{array}{cc|cc} 1&1&-2&1\\2&1&1&0\end{array} \right]$$

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

$$\left[ \begin{array}{cc|cc} 1&1&-2&1\\0&-1&5&-2\end{array} \right]$$

4. Add row 2 to row 1.

$$\left[ \begin{array}{cc|cc} 1&0&3&-1\\0&-1&5&-2\end{array} \right]$$

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

$$\left[ \begin{array}{cc|cc} 1&0&3&-1\\0&1&-5&2\end{array} \right]$$

The matrix we have found is $$A^{−1}$$.

$$A^{−1}=\begin{bmatrix}3&−1\\−5&2\end{bmatrix}$$

#### 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=\begin{bmatrix}a&b\\c&d\end{bmatrix}$$

the multiplicative inverse of $$A$$ is given by the formula

$$A^{−1}=\dfrac{1}{ad−bc}\begin{bmatrix}d&−b\\−c&a\end{bmatrix}$$

where $$ad−bc≠0$$. If $$ad−bc=0$$, then $$A$$ has no inverse.

Example

Using the Formula to Find the Multiplicative Inverse of Matrix $$A$$

Use the formula to find the multiplicative inverse of

$$A=\begin{bmatrix}1&−2\\2&−3\end{bmatrix}$$

Solution:

Analysis

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.

$$\left[ \begin{array}{cc|cc} 1&-2&1&0\\2&-3&0&1\end{array}\right]$$

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

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

$$\left[ \begin{array}{cc|cc} 1&-2&1&0\\0&1&-2&1\end{array} \right]$$

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

$$\left[ \begin{array}{cc|cc} 1&0&-3&2\\0&1&-2&1\end{array} \right]$$

So, we have verified our original solution.

$$A^{−1}=\begin{bmatrix}−3&2\\−2&1\end{bmatrix}$$

Exercise

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

$$A=\begin{bmatrix}1&−1\\2&3\end{bmatrix}$$

Solution:

$$A^{−1}=\begin{bmatrix}\dfrac{3}{5}&\dfrac{1}{5}\\−\dfrac{2}{5}&\dfrac{1}{5}\end{bmatrix}$$

Example

Finding the Inverse of the Matrix, If It Exists

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

$$A=\begin{bmatrix}3&6\\1&2\end{bmatrix}$$

Solution:

We will use the method of augmenting with the identity.

$$\left[ \begin{array}{cc|cc} 3&6&1&0\\1&3&0&1\end{array} \right]$$

1. Switch row 1 and row 2.

$$\left[ \begin{array}{cc|cc} 1&3&0&1\\3&6&1&0\end{array} \right]$$

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

$$\left[ \begin{array}{cc|cc} 1&2&1&0\\0&0&-3&1\end{array} \right]$$

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=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}$$

augment $$A$$ with the identity matrix

$$\begin{array}{c|c}A&I\end{array}=\left[ \begin{array}{ccc|ccc}2&3&1&1&0&0\\3&3&1&0&1&0\\2&4&1&0&0&1\end{array} \right]$$

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 $$AA^{−1}=I$$ and $$A^{−1}A=I$$.

Example

Finding the Inverse of a $$3 × 3$$ Matrix

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

$$A=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}$$

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$$.

$$\left[ \begin{array}{ccc|ccc}2&3&1&1&0&0\\3&3&1&0&1&0\\2&4&1&0&0&1 \end{array} \right] \xrightarrow{Interchange\space R_2\space and\space R_1} \left[ \begin{array}{ccc|ccc}3&3&1&0&1&0\\2&3&1&1&0&0\\2&4&1&0&0&1 \end{array} \right]$$

$$−R_2+R_1=R_1\rightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\2&3&1&1&0&0\\2&4&1&0&0&1\end{array} \right]$$

$$−R_2+R_3=R_3\rightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\2&3&1&1&0&0\\0&1&0&-1&0&1\end{array} \right]$$

$$R_2\leftrightarrow R_3\rightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\0&1&0&-1&0&1\\2&3&1&1&0&0\end{array} \right]$$

$$−2R_1+R_3=R_3\rightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\0&1&0&-1&0&1\\0&3&1&3&-2&0\end{array} \right]$$

$$−3R_2+R_3=R_3\rightarrow \left[ \begin{array}{ccc|ccc}1&0&0&-1&1&0\\0&1&0&-1&0&1\\0&0&1&6&-2&-3\end{array} \right]$$

Thus,

$$A^{−1}=B=\begin{bmatrix}−1&1&0\\−1&0&1\\6&−2&−3\end{bmatrix}$$

Analysis

To prove that $$B=A^{−1}$$, let’s multiply the two matrices together to see if the product equals the identity, if $$AA^{−1}=I$$ and $$A^{−1}A=I$$.

$$AA^{−1}=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}\begin{bmatrix}−1&1&0\\−1&0&1\\6&−2&−3\end{bmatrix}$$

$$=\begin{bmatrix}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)\end{bmatrix}$$

$$=\begin{bmatrix}1&0&0&0&1&0\\0&0&1\end{bmatrix}$$

$$A^{−1}A=\begin{bmatrix}−1&1&0\\−1&0&1\\6&−2&−3\end{bmatrix}\begin{bmatrix}&2&31\\3&3&1\\2&4&1\end{bmatrix}$$

$$=\begin{bmatrix}−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)\end{bmatrix}$$

$$=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}$$

Exercise

Find the inverse of the $$3×3$$ matrix.

$$A=\begin{bmatrix}2&−17&11\\−1&11&−7\\0&3&−2\end{bmatrix}$$

Solution:

$$A^{−1}=\begin{bmatrix}1&1&2\\2&4&−3\\3&6&−5\end{bmatrix}$$

# 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.

$$a_1x+b_1y=c_1$$

$$a_2x+b_2y=c_2$$

From this system, the coefficient matrix is

$$A=\begin{bmatrix}a_1&b_1\\a_2&b_2\end{bmatrix}$$

The variable matrix is

$$X=\begin{bmatrix}x\\y\end{bmatrix}$$

And the constant matrix is

$$B=\begin{bmatrix}c_1\\c_2\end{bmatrix}$$

Then $$AX=B$$ looks like

$$\begin{bmatrix}a_1&b_1\\a_2&b_2\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}c_1\\c_2\end{bmatrix}$$

Recall the discussion earlier in this section regarding multiplying a real number by its inverse, $$(2^{−1}) 2=(\dfrac{1}{2}) 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$$

$$(\dfrac{1}{a})ax=(\dfrac{1}{a})b$$

$$(a^{−1})ax=(a^{−1})b$$

$$[(a^{−1})a]x=(a^{−1})b$$

$$1x=(a^{−1})b$$

$$x=(a^{−1})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.

A General Note: 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.

$$(A^{−1})AX=(A^{−1})B$$

$$[(A^{−1})A ]X=(A^{−1})B$$

$$IX=(A^{−1})B$$

$$X=(A^{−1})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

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=5$$

$$4x+11y=7$$

Solution:

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

$$A=\begin{bmatrix}3&8\\4&11\end{bmatrix}$$, $$X=\begin{bmatrix}x\\y\end{bmatrix}$$, $$B=\begin{bmatrix}5\\7\end{bmatrix}$$

Then

$$\begin{bmatrix}3&8\\4&11\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}5\\7\end{bmatrix}$$

First, we need to calculate $$A^{−1}$$. Using the formula to calculate the inverse of a 2 by 2 matrix, we have:

$$A^{−1}=\dfrac{1}{ad−bc}\begin{bmatrix}d&−b\\−c&a\end{bmatrix}$$

$$=\dfrac{1}{3(11)−8(4)}\begin{bmatrix}11&−8\\−4&3\end{bmatrix}$$

$$=\dfrac{1}{1}\begin{bmatrix}11&−8\\−4&3\end{bmatrix}$$

So,

$$A^{−1}=\begin{bmatrix}11&−8\\−4​​&3\end{bmatrix}$$

Now we are ready to solve. Multiply both sides of the equation by $$A^{−1}$$.

$$(A^{−1})AX=(A^{−1})B$$

$$\begin{bmatrix}11&−8\\−4&3\end{bmatrix}\begin{bmatrix}3&8\\4&11\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}11&−8\\−4&3\end{bmatrix}\begin{bmatrix}5\\7\end{bmatrix}$$

$$\begin{bmatrix}1&0\\0&1\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}11(5)+(−8)7\\−4(5)+3(7)\end{bmatrix}$$

$$\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}−1\\1\end{bmatrix}$$

The solution is $$(−1,1)$$.

Q&A

Can we solve for $$X$$ by finding the product $$BA^{−1}$$?

No, recall that matrix multiplication is not commutative, so $$A^{−1}B≠BA^{−1}$$. Consider our steps for solving the matrix equation.

$$(A^{−1})AX=(A^{−1})B$$

$$[ (A^{−1})A ]X=(A^{−1})B$$

$$IX=(A^{−1})B$$

$$X=(A^{−1})B$$

Notice in the first step we multiplied both sides of the equation by $$A^{−1}$$, but the $$A^{−1}$$ 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

Solving a 3 × 3 System Using the Inverse of a Matrix

Solve the following system using the inverse of a matrix.

$$5x+15y+56z=35$$

$$−4x−11y−41z=−26$$

$$−x−3y−11z=−7$$

Solution:

Write the equation $$AX=B$$.

$$\begin{bmatrix}5&15&56\\−4&−11&−41\\−1&−3&−11\end{bmatrix}\begin{bmatrix}x\\y\\z\end{bmatrix}=\begin{bmatrix}35\\−26\\−7\end{bmatrix}$$

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

$$\left[ \begin{array}{ccc|ccc}5&15&56&1&0&0\\−4&−11&−41&0&1&0\\−1&−3&−11&0&0&1\end{array} \right]$$

Multiply row 1 by $$\dfrac{1}{5}$$.

$$\left[ \begin{array}{ccc|ccc}1&3&\dfrac{56}{5}&\dfrac{1}{5}&0&0\\−4&−11&−41&0&1&0\\−1&−3&−11&0&0&1\end{array} \right]$$

Multiply row 1 by 4 and add to row 2.

$$\left[ \begin{array}{ccc|ccc}1&3&\dfrac{56}{5}&\dfrac{1}{5}&0&0\\0&1&\dfrac{19}{5}&\dfrac{4}{5}&1&0\\−1&−3&−11&0&0&1\end{array} \right]$$

Add row 1 to row 3.

$$\left[ \begin{array}{ccc|ccc}1&3&\dfrac{56}{5}&\dfrac{1}{5}&0&0\\0&1&\dfrac{19}{5}&\dfrac{4}{5}&1&0\\0&0&\dfrac{1}{5}&\dfrac{1}{5}&0&1\end{array} \right]$$

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

$$\left[ \begin{array}{ccc|ccc}1&0&-\dfrac{1}{5}&-\dfrac{11}{5}&-3&0\\0&1&\dfrac{19}{5}&\dfrac{4}{5}&1&0\\0&0&\dfrac{1}{5}&\dfrac{1}{5}&0&1\end{array} \right]$$

Multiply row 3 by 5.

$$\left[ \begin{array}{ccc|ccc}1&0&-\dfrac{1}{5}&-\dfrac{11}{5}&-3&0\\0&1&\dfrac{19}{5}&\dfrac{4}{5}&1&0\\0&0&1&1&0&5\end{array} \right]$$

Multiply row 3 by $$\dfrac{1}{5}$$ and add to row 1.

$$\left[ \begin{array}{ccc|ccc}1&0&0&-2&-3&1\\0&1&\dfrac{19}{5}&\dfrac{4}{5}&1&0\\0&0&1&1&0&5\end{array} \right]$$

Multiply row 3 by $$−\dfrac{19}{5}$$ and add to row 2.

$$\left[ \begin{array}{ccc|ccc}1&0&0&-2&-3&1\\0&1&0&-3&1&-19\\0&0&1&1&0&5\end{array} \right]$$

So,

$$A^{−1}=\begin{bmatrix}−2&−3&1\\−3&1&−19\\1&0&5\end{bmatrix}$$

Multiply both sides of the equation by $$A^{−1}$$. We want $$A^{−1}AX=A^{−1}B$$:

$$\begin{bmatrix}−2&−3&1\\−3&1&−19\\1&0&5\end{bmatrix}\begin{bmatrix}5&15&56\\−4&−11&−41\\−1&−3&−11\end{bmatrix}\begin{bmatrix}x\\y\\z\end{bmatrix}=\begin{bmatrix}−2&−3&1\\−3&1&−19\\1&0&5\end{bmatrix}\begin{bmatrix}35\\−26\\−7\end{bmatrix}$$

Thus,

$$A^{−1}B=\begin{bmatrix}−70+78−7\\−105−26+133\\35+0−35\end{bmatrix}=\begin{bmatrix}1\\2\\0\end{bmatrix}$$

The solution is $$(1,2,0)$$.

Exercise

Solve the system using the inverse of the coefficient matrix.

$$2x−17y+11z=0$$

$$−x+11y−7z=8$$

$$3y−2z=−2$$

Solution:

$$X=\begin{bmatrix}4\\38\\58\end{bmatrix}$$

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

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=32$$

$$3x+3y+z=−27$$

$$2x+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]=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}$$, $$[B]=\begin{bmatrix}32\\−27\\−2\end{bmatrix}$$

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.

$$\begin{bmatrix}−59\\−34\\252\end{bmatrix}$$

Media

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

### Key Equations

 Identity matrix for a $$2 × 2$$ matrix $$I_2=\begin{bmatrix}1&0\\0&1\end{bmatrix}$$ Identity matrix for a $$3 × 3$$ matrix $$I_3=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}$$ Multiplicative inverse of a $$2 × 2$$ matrix $$A^{−1}=\dfrac{1}{ad−bc}\begin{bmatrix}d&−b\\−c&a\end{bmatrix}$$, where $$ad−bc≠0$$

### Key Concepts

• An identity matrix has the property $$AI=IA=A$$. See Example.
• An invertible matrix has the property $$AA^{−1}=A^{−1}A=I$$. See Example.
• Use matrix multiplication and the identity to find the inverse of a $$2×2$$ matrix. See Example.
• The multiplicative inverse can be found using a formula. See Example.
• Another method of finding the inverse is by augmenting with the identity. See Example.
• 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.
• Write the system of equations as $$AX=B$$, and multiply both sides by the inverse of $$A$$: $$A^{−1}AX=A^{−1}B$$. See Example and Example.
• We can also use a calculator to solve a system of equations with matrix inverses. See Example.