Skip to content

Solving Systems with Inverses

By the end of this section, you will be able to:

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

Soriya plans to invest $10,500 into two different bonds to spread out her risk. The first bond has an annual return of 10%10\%, and the second bond has an annual return of 6%6\%. In order to receive an 8.5%8.5\% return from the two bonds, how much should Soriya 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 aa is a1a^{-1}, and aa1=a1a=(1a)a=1aa^{-1}=a^{-1}a=\left(\tfrac{1}{a}\right)a=1. For example, 21=122^{-1}=\tfrac{1}{2} and (12)2=1\left(\tfrac{1}{2}\right)2=1. The multiplicative inverse of a matrix is similar in concept, except that the product of matrix AA and its inverse A1A^{-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 InI_n, where nn represents the dimension of the matrix. Observe the following equations.

I2=[1001]I3=[100010001]I_2=\begin{bmatrix}1&0\\0&1\end{bmatrix}\qquad I_3=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}

The identity matrix acts as a 11 in matrix algebra. For example, AI=IA=AAI=IA=A.

A matrix that has a multiplicative inverse has the properties

AA1=IA1A=I \begin{array}{lrcl} & AA^{-1} &=& I \\[4pt] & A^{-1}A &=& I \end{array}

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=IAA^{-1}=A^{-1}A=I, is a requirement. Not all square matrices have an inverse, but if AA is invertible, then A1A^{-1} is unique. We will look at two methods for finding the inverse of a 2×22\times2 matrix and a third method that can be used on both 2×22\times2 and 3×33\times3 matrices.

The Identity Matrix and Multiplicative Inverse. The identity matrix, InI_n, is a square matrix containing ones down the main diagonal and zeros everywhere else.

I2=[1001]I3=[100010001]I_2=\begin{bmatrix}1&0\\0&1\end{bmatrix}\qquad I_3=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}

If AA is an n×nn\times n matrix and BB is an n×nn\times n matrix such that AB=BA=InAB=BA=I_n, then B=A1B=A^{-1}, the multiplicative inverse of a matrix AA.

Example. Given matrix AA, show that AI=IA=AAI=IA=A.

A=[3425]A=\begin{bmatrix}3&4\\-2&5\end{bmatrix}

Solution. Use matrix multiplication to show that the product of AA and the identity is equal to the product of the identity and AA.

AI=[3425][1001]=[31+4030+4121+5020+51]=[3425]AI=\begin{bmatrix}3&4\\-2&5\end{bmatrix}\begin{bmatrix}1&0\\0&1\end{bmatrix}=\begin{bmatrix}3\cdot1+4\cdot0&3\cdot0+4\cdot1\\-2\cdot1+5\cdot0&-2\cdot0+5\cdot1\end{bmatrix}=\begin{bmatrix}3&4\\-2&5\end{bmatrix}IA=[1001][3425]=[13+0(2)14+0503+1(2)04+15]=[3425]IA=\begin{bmatrix}1&0\\0&1\end{bmatrix}\begin{bmatrix}3&4\\-2&5\end{bmatrix}=\begin{bmatrix}1\cdot3+0\cdot(-2)&1\cdot4+0\cdot5\\0\cdot3+1\cdot(-2)&0\cdot4+1\cdot5\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 AA of order n×nn\times n and matrix BB of order n×nn\times n, multiply ABAB.
  2. If AB=IAB=I, then find the product BABA. If BA=IBA=I, then B=A1B=A^{-1} and A=B1A=B^{-1}.

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

A=[1529],B=[9521]A=\begin{bmatrix}1&5\\-2&-9\end{bmatrix},\quad B=\begin{bmatrix}-9&-5\\2&1\end{bmatrix}

Solution. Multiply ABAB and BABA. 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]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=[9521][1529]=[9(1)5(2)9(5)5(9)2(1)+1(2)2(5)+1(9)]=[1001]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}

AA and BB are inverses of each other.

AreA=[1413]A=\begin{bmatrix}1&4\\-1&-3\end{bmatrix}andB=[3411]B=\begin{bmatrix}-3&-4\\1&1\end{bmatrix}multiplicative inverses of each other?

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. Use matrix multiplication to find the inverse of the given matrix.

A=[1223]A=\begin{bmatrix}1&-2\\2&-3\end{bmatrix}

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

[1223][abcd]=[1001]\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.

[1223][abcd]=[1a2c1b2d2a3c2b3d]\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, 11. Set the entry in row 2, column 1 of the new matrix equal to the corresponding entry of the identity, which is 00.

1a2c=1R12a3c=0R2 \begin{array}{lrcl} & 1a-2c &=& 1 \quad R_1 \\[4pt] & 2a-3c &=& 0 \quad R_2 \end{array}

Using row operations, multiply and add as follows: (2)R1+R2R2(-2)R_1+R_2\to R_2. Add the equations, and solve for cc.

1a2c=10+1c=2c=2 \begin{array}{lrcl} & 1a-2c &=& 1 \\[4pt] & 0+1c &=& -2 \\[4pt] & c &=& -2 \end{array}

Back-substitute to solve for aa.

a2(2)=1a+4=1a=3 \begin{array}{lrcl} & a-2(-2) &=& 1 \\[4pt] & a+4 &=& 1 \\[4pt] & a &=& -3 \end{array}

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, 00. Set the entry in row 2, column 2 equal to the corresponding entry of the identity.

1b2d=0R12b3d=1R2 \begin{array}{lrcl} & 1b-2d &=& 0 \quad R_1 \\[4pt] & 2b-3d &=& 1 \quad R_2 \end{array}

Using row operations, multiply and add as follows: (2)R1+R2R2(-2)R_1+R_2\to R_2. Add the two equations and solve for dd.

1b2d=00+1d=1d=1 \begin{array}{lrcl} & 1b-2d &=& 0 \\[4pt] & 0+1d &=& 1 \\[4pt] & d &=& 1 \end{array}

Once more, back-substitute and solve for bb.

b2(1)=0b2=0b=2 \begin{array}{lrcl} & b-2(1) &=& 0 \\[4pt] & b-2 &=& 0 \\[4pt] & b &=& 2 \end{array} A1=[3221]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 AA is transformed into II, the augmented matrix II transforms into A1A^{-1}.

For example, given

A=[2153]A=\begin{bmatrix}2&1\\5&3\end{bmatrix}

augment AA with the identity

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

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

  1. Switch row 1 and row 2.

    [53012110]\left[\begin{array}{cc|cc}5&3&0&1\\2&1&1&0\end{array}\right]
  2. Multiply row 2 by 2-2 and add to row 1.

    [11212110]\left[\begin{array}{cc|cc}1&1&-2&1\\2&1&1&0\end{array}\right]
  3. Multiply row 1 by 2-2 and add to row 2.

    [11210152]\left[\begin{array}{cc|cc}1&1&-2&1\\0&-1&5&-2\end{array}\right]
  4. Add row 2 to row 1.

    [10310152]\left[\begin{array}{cc|cc}1&0&3&-1\\0&-1&5&-2\end{array}\right]
  5. Multiply row 2 by 1-1.

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

The matrix we have found is A1A^{-1}.

A1=[3152]A^{-1}=\begin{bmatrix}3&-1\\-5&2\end{bmatrix}

Finding the Multiplicative Inverse of 2×22\times2 Matrices Using a Formula

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

If AA is a 2×22\times2 matrix, such as

A=[abcd]A=\begin{bmatrix}a&b\\c&d\end{bmatrix}

the multiplicative inverse of AA is given by the formula

A1=1adbc[dbca]A^{-1}=\tfrac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}

where adbc0ad-bc\neq0. If adbc=0ad-bc=0, then AA has no inverse.

Example. Use the formula to find the multiplicative inverse of

A=[1223]A=\begin{bmatrix}1&-2\\2&-3\end{bmatrix}

Solution. Using the formula, we have

A1=1(1)(3)(2)(2)[3221]=13+4[3221]=[3221]A^{-1}=\tfrac{1}{(1)(-3)-(-2)(2)}\begin{bmatrix}-3&2\\-2&1\end{bmatrix}=\tfrac{1}{-3+4}\begin{bmatrix}-3&2\\-2&1\end{bmatrix}=\begin{bmatrix}-3&2\\-2&1\end{bmatrix}

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

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

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

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

    [12100121]\left[\begin{array}{cc|cc}1&-2&1&0\\0&1&-2&1\end{array}\right]
  2. Multiply row 2 by 22 and add to row 1.

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

So, we have verified our original solution.

A1=[3221]A^{-1}=\begin{bmatrix}-3&2\\-2&1\end{bmatrix}

Use the formula to find the multiplicative inverse ofA=[1123]A=\begin{bmatrix}1&-1\\2&3\end{bmatrix}, then verify your answer by augmenting with the identity matrix. Enter the second row ofA1A^{-1}as a comma-separated list of two numbers, left to right.

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

A=[3612]A=\begin{bmatrix}3&6\\1&2\end{bmatrix}

Solution. We will use the method of augmenting with the identity.

[36101201]\left[\begin{array}{cc|cc}3&6&1&0\\1&2&0&1\end{array}\right]
  1. Switch row 1 and row 2.

    [12013610]\left[\begin{array}{cc|cc}1&2&0&1\\3&6&1&0\end{array}\right]
  2. Multiply row 1 by 3-3 and add it to row 2.

    [12010013]\left[\begin{array}{cc|cc}1&2&0&1\\0&0&1&-3\end{array}\right]
  3. There is nothing further we can do. The zeros in row 2 indicate that this matrix has no inverse. (Source note: the pinned CNXML prints this step’s two augmented matrices with an internal arithmetic inconsistency — its “switch row 1 and row 2” line shows row 1 becoming [13]\begin{bmatrix}1&3\end{bmatrix} rather than [12]\begin{bmatrix}1&2\end{bmatrix}, and the matrices that follow do not reduce from either reading by the stated row operation. The two augmented matrices above are the correct row reduction of AA; the conclusion — detA=3(2)6(1)=0\det A=3(2)-6(1)=0, so AA has no inverse — is unaffected and matches the source’s own final sentence.)

Finding the Multiplicative Inverse of 3×33\times3 Matrices

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

Given a 3×33\times3 matrix

A=[231331241]A=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}

augment AA with the identity matrix

[231100331010241001]\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 AA 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×33\times3 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=IAA^{-1}=I and A1A=IA^{-1}A=I.

Example. Given the 3×33\times3 matrix AA, find the inverse.

A=[231331241]A=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix}

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

[231100331010241001]  [331010231100241001]\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]\ \overline{\to}\ \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]R2+R1=R1  [100110231100241001]-R_2+R_1=R_1\ \to\ \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]R2+R3=R3  [100110231100010101]-R_2+R_3=R_3\ \to\ \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]R3R2  [100110010101231100]R_3\leftrightarrow R_2\ \to\ \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]2R1+R3=R3  [100110010101031320]-2R_1+R_3=R_3\ \to\ \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]3R2+R3=R3  [100110010101001623]-3R_2+R_3=R_3\ \to\ \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,

A1=B=[110101623]A^{-1}=B=\begin{bmatrix}-1&1&0\\-1&0&1\\6&-2&-3\end{bmatrix}

Analysis. To prove that B=A1B=A^{-1}, let’s multiply the two matrices together to see if the product equals the identity, if AA1=IAA^{-1}=I and A1A=IA^{-1}A=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]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}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]A^{-1}A=\begin{bmatrix}-1&1&0\\-1&0&1\\6&-2&-3\end{bmatrix}\begin{bmatrix}2&3&1\\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}

Find the multiplicative inverse ofA=[217111117032]A=\begin{bmatrix}2&-17&11\\-1&11&-7\\0&3&-2\end{bmatrix}. Enter the first row ofA1A^{-1}as a comma-separated list of three numbers, left to right.

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: XX is the matrix representing the variables of the system, and BB 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=BAX=B

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

a1x+b1y=c1a2x+b2y=c2 \begin{array}{lrcl} & a_1x+b_1y &=& c_1 \\[4pt] & a_2x+b_2y &=& c_2 \end{array}

From this system, the coefficient matrix is

A=[a1b1a2b2]A=\begin{bmatrix}a_1&b_1\\a_2&b_2\end{bmatrix}

The variable matrix is

X=[xy]X=\begin{bmatrix}x\\y\end{bmatrix}

And the constant matrix is

B=[c1c2]B=\begin{bmatrix}c_1\\c_2\end{bmatrix}

Then AX=BAX=B looks like

[a1b1a2b2][xy]=[c1c2]\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, (21)2=(12)2=1\left(2^{-1}\right)2=\left(\tfrac{1}{2}\right)2=1. To solve a single linear equation ax=bax=b for xx, we would simply multiply both sides of the equation by the multiplicative inverse (reciprocal) of aa. Thus,

ax=b(1a)ax=(1a)b(a1)ax=(a1)b[(a1)a]x=(a1)b1x=(a1)bx=(a1)b \begin{array}{lrcl} & ax &=& b \\[4pt] & \left(\tfrac{1}{a}\right)ax &=& \left(\tfrac{1}{a}\right)b \\[4pt] & \left(a^{-1}\right)ax &=& \left(a^{-1}\right)b \\[4pt] & \left[\left(a^{-1}\right)a\right]x &=& \left(a^{-1}\right)b \\[4pt] & 1x &=& \left(a^{-1}\right)b \\[4pt] & x &=& \left(a^{-1}\right)b \end{array}

The only difference between 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×22\times2 system and then move on to a 3×33\times3 system.

Solving a System of Equations Using the Inverse of a Matrix. Given a system of equations, write the coefficient matrix AA, the variable matrix XX, and the constant matrix BB. Then

AX=BAX=B

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

(A1)AX=(A1)B[(A1)A]X=(A1)BIX=(A1)BX=(A1)B \begin{array}{lrcl} & \left(A^{-1}\right)AX &=& \left(A^{-1}\right)B \\[4pt] & \left[\left(A^{-1}\right)A\right]X &=& \left(A^{-1}\right)B \\[4pt] & IX &=& \left(A^{-1}\right)B \\[4pt] & X &=& \left(A^{-1}\right)B \end{array}

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. Solve the given system of equations using the inverse of a matrix.

3x+8y=54x+11y=7 \begin{array}{lrcl} & 3x+8y &=& 5 \\[4pt] & 4x+11y &=& 7 \end{array}

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

A=[38411],X=[xy],B=[57]A=\begin{bmatrix}3&8\\4&11\end{bmatrix},\quad X=\begin{bmatrix}x\\y\end{bmatrix},\quad B=\begin{bmatrix}5\\7\end{bmatrix}

Then

[38411][xy]=[57]\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 A1A^{-1}. Using the formula to calculate the inverse of a 2×22\times2 matrix, we have:

A1=1adbc[dbca]=13(11)8(4)[11843]=11[11843]A^{-1}=\tfrac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}=\tfrac{1}{3(11)-8(4)}\begin{bmatrix}11&-8\\-4&3\end{bmatrix}=\tfrac{1}{1}\begin{bmatrix}11&-8\\-4&3\end{bmatrix}

So,

A1=[11843]A^{-1}=\begin{bmatrix}11&-8\\-4&3\end{bmatrix}

Now we are ready to solve. Multiply both sides of the equation by A1A^{-1}.

(A1)AX=(A1)B\left(A^{-1}\right)AX=\left(A^{-1}\right)B[11843][38411][xy]=[11843][57]\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}[1001][xy]=[11(5)+(8)74(5)+3(7)]\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}[xy]=[11]\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}-1\\1\end{bmatrix}

The solution is (1,1)(-1,1).

Q&A. Can we solve for XX by finding the product BA1BA^{-1}?

No, recall that matrix multiplication is not commutative, so A1BBA1A^{-1}B\neq BA^{-1}. Consider our steps for solving the matrix equation.

(A1)AX=(A1)B[(A1)A]X=(A1)BIX=(A1)BX=(A1)B \begin{array}{lrcl} & \left(A^{-1}\right)AX &=& \left(A^{-1}\right)B \\[4pt] & \left[\left(A^{-1}\right)A\right]X &=& \left(A^{-1}\right)B \\[4pt] & IX &=& \left(A^{-1}\right)B \\[4pt] & X &=& \left(A^{-1}\right)B \end{array}

Notice in the first step we multiplied both sides of the equation by A1A^{-1}, but the A1A^{-1} was to the left of AA on the left side and to the left of BB on the right side. Because matrix multiplication is not commutative, order matters.

Example. Solve the following system using the inverse of a matrix.

5x+15y+56z=354x11y41z=26x3y11z=7 \begin{array}{lrcl} & 5x+15y+56z &=& 35 \\[4pt] & -4x-11y-41z &=& -26 \\[4pt] & -x-3y-11z &=& -7 \end{array}

Solution. Write the equation AX=BAX=B.

[51556411411311][xyz]=[35267]\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 AA by augmenting with the identity.

[51556100411410101311001]\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 15\tfrac{1}{5}.

[135651500411410101311001]\left[\begin{array}{ccc|ccc}1&3&\tfrac{56}{5}&\tfrac{1}{5}&0&0\\-4&-11&-41&0&1&0\\-1&-3&-11&0&0&1\end{array}\right]

Multiply row 1 by 44 and add to row 2.

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

Add row 1 to row 3.

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

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

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

Multiply row 3 by 55.

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

Multiply row 3 by 15\tfrac{1}{5} and add to row 1.

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

Multiply row 3 by 195-\tfrac{19}{5} and add to row 2.

[1002310103119001105]\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,

A1=[2313119105]A^{-1}=\begin{bmatrix}-2&-3&1\\-3&1&-19\\1&0&5\end{bmatrix}

Multiply both sides of the equation by A1A^{-1}. We want A1AX=A1BA^{-1}AX=A^{-1}B:

[2313119105][51556411411311][xyz]=[2313119105][35267]\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,

A1B=[70+78710526+13335+035]=[120]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)(1,2,0).

Solve the system{2x17y+11z=0x+11y7z=83y2z=2\begin{cases}2x-17y+11z=0\\-x+11y-7z=8\\3y-2z=-2\end{cases}using the inverse of the coefficient matrix. Enter the solution as an ordered triple(x,y,z)(x,y,z).

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][A] and [B][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. Solve the system of equations with matrix inverses using a calculator

2x+3y+z=323x+3y+z=272x+4y+z=2 \begin{array}{lrcl} & 2x+3y+z &=& 32 \\[4pt] & 3x+3y+z &=& -27 \\[4pt] & 2x+4y+z &=& -2 \end{array}

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

[A]=[231331241],[B]=[32272][A]=\begin{bmatrix}2&3&1\\3&3&1\\2&4&1\end{bmatrix},\quad [B]=\begin{bmatrix}32\\-27\\-2\end{bmatrix}

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

[A]1×[B][A]^{-1}\times[B]

Evaluate the expression.

[5934252]\begin{bmatrix}-59\\-34\\252\end{bmatrix}

Key equations

Identity matrix for a 2×22\times2 matrixI2=[1001]I_2=\begin{bmatrix}1&0\\0&1\end{bmatrix}
Identity matrix for a 3×33\times3 matrixI3=[100010001]I_3=\begin{bmatrix}1&0&0\\0&1&0\\0&0&1\end{bmatrix}
Multiplicative inverse of a 2×22\times2 matrixA1=1adbc[dbca]A^{-1}=\tfrac{1}{ad-bc}\begin{bmatrix}d&-b\\-c&a\end{bmatrix}, where adbc0ad-bc\neq0

Key concepts

  • An identity matrix has the property AI=IA=AAI=IA=A.
  • An invertible matrix has the property AA1=A1A=IAA^{-1}=A^{-1}A=I.
  • Use matrix multiplication and the identity to find the inverse of a 2×22\times2 matrix.
  • The multiplicative inverse can be found using a formula.
  • Another method of finding the inverse is by augmenting with the identity.
  • We can augment a 3×33\times3 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.
  • Write the system of equations as AX=BAX=B, and multiply both sides by the inverse of AA: A1AX=A1BA^{-1}AX=A^{-1}B.
  • We can also use a calculator to solve a system of equations with matrix inverses.

Practice

Find the inverse of a matrix

Can a2×22\times2matrix with zeros on its diagonal have a multiplicative inverse?

Find the multiplicative inverse of[3219]\begin{bmatrix}3&-2\\1&9\end{bmatrix}, if it exists. Enter the first row of the inverse as a comma-separated list of two numbers, left to right.

Find the multiplicative inverse of[193256427]\begin{bmatrix}1&9&-3\\2&5&6\\4&-2&7\end{bmatrix}, if it exists. Enter the first row of the inverse as a comma-separated list of three numbers, left to right.

Solve a system of linear equations using an inverse matrix

Solve the system{5x6y=614x+3y=2\begin{cases}5x-6y=-61\\4x+3y=-2\end{cases}using the inverse of the coefficient matrix. Enter the solution as an ordered pair(x,y)(x,y).

Solve the system{3x4y=912x+4y=6\begin{cases}-3x-4y=9\\12x+4y=-6\end{cases}using the inverse of the coefficient matrix. Enter the solution as an ordered pair(x,y)(x,y).

Solve the system{6x5yz=31x+2y+z=63x+3y+2z=13\begin{cases}6x-5y-z=31\\-x+2y+z=-6\\3x+3y+2z=13\end{cases}using the inverse of the coefficient matrix. Enter the solution as an ordered triple(x,y,z)(x,y,z).

Solve the system{3x2y+5z=215x+4y=37x2y5z=5\begin{cases}3x-2y+5z=21\\5x+4y=37\\x-2y-5z=5\end{cases}using the inverse of the coefficient matrix. Enter the solution as an ordered triple(x,y,z)(x,y,z).

Three roommates shared a package of1212ice cream bars. Micah ate twice as many bars as Joe, and Albert ate three fewer bars than Micah. Lettingmm,jj, andaabe the numbers of bars Micah, Joe, and Albert ate, solve the system{m+j+a=12m2j=0m+a=3\begin{cases}m+j+a=12\\m-2j=0\\-m+a=-3\end{cases}using the inverse of the coefficient matrix. Enter the solution as an ordered triple(m,j,a)(m,j,a).


This section is adapted from Precalculus 2e, Section 9.7: Solving Systems with Inverses by Jay Abramson and OpenStax, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: omitted a coreq-skills block the pinned CNXML prepends before the section proper (its own “Objective 1”/“Objective 2” review of evaluating 2×22\times2 and 3×33\times3 determinants, keyed to Intermediate Algebra 4.6) — the same prepended-block pattern already logged in this book’s errata for §§4.3–4.8 and §9.5; this section joins that list. Omitted the “Access these online resources” media links. The grader cannot take a matrix-shaped answer (the MathLive matrix-entry path is menu-only and untested for learners), so — following house precedent from Intermediate Algebra 4.5 and this book’s §9.5 — every retained Try It and every Practice item whose source answer is a full matrix inverse is re-posed as a row-entry fill-in (“enter the first/second row… as a comma-separated list”), with each fraction entry keyed as the cofactor-over-determinant fraction a learner’s own computation produces (entries are graded by value, so an equal reduced or unreduced spelling also passes, and the source’s factored-scalar spelling, e.g. 169[]\tfrac{1}{69}\begin{bmatrix}\cdots\end{bmatrix}, is not required). Every “show that AA and BB are inverses of each other” ask became a Yes/No multiple choice, since verifying an equality is a categorical outcome, not a number; the diagonal-zeros verbal exercise became a multiple choice for the same reason, offering the source’s own example matrix as the “yes” option. Every solved system’s variables and equations are inlined directly into the question string as {\begin{cases}\ldots\end{cases}, and every solution is keyed as an ordered pair or triple with the format stated in the question. Eight selected end-of-section exercises were adapted into interactive Practice components (one verbal, two inverse computations, five system solves including one real-world scenario), every one independently re-derived by computing exact-rational matrix inverses and products in Node rather than read off the source key. One confirmed upstream defect. The worked Example “Finding the Inverse of the Matrix, If It Exists” (A=[3612]A=\begin{bmatrix}3&6\\1&2\end{bmatrix}) prints its “switch row 1 and row 2” step and the augmented matrices that follow with an internal arithmetic inconsistency (row 1 becomes [13]\begin{bmatrix}1&3\end{bmatrix} rather than the correct swap [12]\begin{bmatrix}1&2\end{bmatrix}, and neither printed matrix follows from the other by the stated row operation) — the augmented matrices shown on this page are the correct row reduction instead, with a visible source note beside the correction; the example’s conclusion (“this matrix has no inverse,” since detA=0\det A=0) is unaffected and is the source’s own final sentence.