Learning

open
close

Solving Systems with Inverses

June 23, 2024 | by Bloom Code Studio

Learning Objectives

In this section, you will:

  • 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%, 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 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 aπ‘Ž is aβˆ’1,π‘Žβˆ’1, and aaβˆ’1=aβˆ’1a=(1a)a=1.π‘Žπ‘Žβˆ’1=π‘Žβˆ’1π‘Ž=(1π‘Ž)π‘Ž=1. For example, 2βˆ’1=122βˆ’1=12 and (12)2=1.(12)2=1. The multiplicative inverse of a matrix is similar in concept, except that the product of matrix A𝐴 and its inverse Aβˆ’1π΄βˆ’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 In𝐼𝑛 where n𝑛 represents the dimension of the matrix. Observe the following equations.

I2=[1001]𝐼2=[1001]

I3=⎑⎣⎒100010001⎀⎦βŽ₯𝐼3=[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

AAβˆ’1=IAβˆ’1A=Iπ΄π΄βˆ’1=πΌπ΄βˆ’1𝐴=𝐼

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βˆ’1A=I,π΄π΄βˆ’1=π΄βˆ’1𝐴=𝐼, is a requirement. Not all square matrices have an inverse, but if A𝐴 is invertible, then Aβˆ’1π΄βˆ’1 is unique. We will look at two methods for finding the inverse of a 2Γ—22Γ—2 matrix and a third method that can be used on both 2Γ—22Γ—2 and 3Γ—33Γ—3 matrices.

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]I3=⎑⎣⎒100010001⎀⎦βŽ₯       2Γ—2                3Γ—3𝐼2=[1001]𝐼3=[100010001]       2Γ—2                3Γ—3

If A𝐴 is an nΓ—n𝑛×𝑛 matrix and B𝐡 is an nΓ—n𝑛×𝑛 matrix such that AB=BA=In,𝐴𝐡=𝐡𝐴=𝐼𝑛, then B=Aβˆ’1,𝐡=π΄βˆ’1, the multiplicative inverse of a matrix A.𝐴.

EXAMPLE 1

Showing That the Identity Matrix Acts as a 1

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

A=[3βˆ’245]𝐴=[34βˆ’25]

Solution

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

AI=[3βˆ’245][1001]=[3β‹…1+4β‹…0βˆ’2β‹…1+5β‹…03β‹…0+4β‹…1βˆ’2β‹…0+5β‹…1]=[3βˆ’245]𝐴𝐼=[34βˆ’25][1001]=[3β‹…1+4β‹…03β‹…0+4β‹…1βˆ’2β‹…1+5β‹…0βˆ’2β‹…0+5β‹…1]=[34βˆ’25]

IA=[1001][3βˆ’245]=[1β‹…3+0β‹…(βˆ’2)0β‹…3+1β‹…(βˆ’2)1β‹…4+0β‹…50β‹…4+1β‹…5]=[3βˆ’245]𝐼𝐴=[1001][34βˆ’25]=[1β‹…3+0β‹…(βˆ’2)1β‹…4+0β‹…50β‹…3+1β‹…(βˆ’2)0β‹…4+1β‹…5]=[34βˆ’25]

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𝐡=π΄βˆ’1Β andΒ A=Bβˆ’1.𝐴=π΅βˆ’1.

EXAMPLE 2

Showing That Matrix A Is the Multiplicative Inverse of Matrix B

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

A=[1βˆ’25βˆ’9],B=[βˆ’92βˆ’51]𝐴=[15βˆ’2βˆ’9],𝐡=[βˆ’9βˆ’521]

Solution

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

AB=[1βˆ’25βˆ’9]β‹…[βˆ’92βˆ’51]=[1(βˆ’9)+5(2)βˆ’2(βˆ’9)βˆ’9(2)1(βˆ’5)+5(1)βˆ’2(βˆ’5)βˆ’9(1)]=[1001]𝐴𝐡=[15βˆ’2βˆ’9]Β·[βˆ’9βˆ’521]=[1(βˆ’9)+5(2)1(βˆ’5)+5(1)βˆ’2(βˆ’9)βˆ’9(2)βˆ’2(βˆ’5)βˆ’9(1)]=[1001]

BA=[βˆ’92βˆ’51]β‹…[1βˆ’25βˆ’9]=[βˆ’9(1)βˆ’5(βˆ’2)2(1)+1(βˆ’2)βˆ’9(5)βˆ’5(βˆ’9)2(5)+1(βˆ’9)]=[1001]𝐡𝐴=[βˆ’9βˆ’521]Β·[15βˆ’2βˆ’9]=[βˆ’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.

TRY IT #1

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

A=[1βˆ’14βˆ’3],B=[βˆ’31βˆ’41]𝐴=[14βˆ’1βˆ’3],𝐡=[βˆ’3βˆ’411]

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 3

Finding the Multiplicative Inverse Using Matrix Multiplication

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

A=[12βˆ’2βˆ’3]𝐴=[1βˆ’22βˆ’3]

Solution

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

[12βˆ’2βˆ’3]  [acbd]=[1001][1βˆ’22βˆ’3]  [π‘Žπ‘π‘π‘‘]=[1001]

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

[12βˆ’2βˆ’3]  [acbd]=[1aβˆ’2c2aβˆ’3c1bβˆ’2d2bβˆ’3d][1βˆ’22βˆ’3]  [π‘Žπ‘π‘π‘‘]=[1π‘Žβˆ’2𝑐1π‘βˆ’2𝑑2π‘Žβˆ’3𝑐2π‘βˆ’3𝑑]

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   R12aβˆ’3c=0   R21π‘Žβˆ’2𝑐=1   π‘…12π‘Žβˆ’3𝑐=0   π‘…2

Using row operations, multiply and add as follows: (βˆ’2)R1+R2β†’R2.(βˆ’2)𝑅1+𝑅2→𝑅2. Add the equations, and solve for c.𝑐.

1aβˆ’2c=10+1c=βˆ’2c=βˆ’21π‘Žβˆ’2𝑐=10+1𝑐=βˆ’2𝑐=βˆ’2

Back-substitute to solve for a.π‘Ž.

aβˆ’2(βˆ’2)=1a+4=1a=βˆ’3π‘Žβˆ’2(βˆ’2)=1π‘Ž+4=1π‘Ž=βˆ’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=02bβˆ’3d=1R1R21π‘βˆ’2𝑑=0𝑅12π‘βˆ’3𝑑=1𝑅2

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

1bβˆ’2d=00+1d=1d=11π‘βˆ’2𝑑=00+1𝑑=1𝑑=1

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

bβˆ’2(1)=0bβˆ’2=0b=2π‘βˆ’2(1)=0π‘βˆ’2=0𝑏=2

Aβˆ’1=[βˆ’3βˆ’221]π΄βˆ’1=[βˆ’32βˆ’21]

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 Aβˆ’1.π΄βˆ’1.

For example, given

A=[2513]𝐴=[2153]

augment A𝐴 with the identity

[2513∣∣∣1001][2153|1001]

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

  1. Switch row 1 and row 2.[5231∣∣∣0110][5321|0110]
  2. Multiply row 2 byΒ βˆ’2βˆ’2Β and add to row 1.[1211βˆ£βˆ£βˆ£βˆ’2110][1121|βˆ’2110]
  3. Multiply row 1 byΒ βˆ’2βˆ’2Β and add to row 2.[101βˆ’1βˆ£βˆ£βˆ£βˆ’251βˆ’2][110βˆ’1|βˆ’215βˆ’2]
  4. Add row 2 to row 1.[100βˆ’1∣∣∣35βˆ’1βˆ’2][100βˆ’1|3βˆ’15βˆ’2]
  5. Multiply row 2 byΒ βˆ’1.βˆ’1.[1001∣∣∣3βˆ’5βˆ’12][1001|3βˆ’1βˆ’52]

The matrix we have found is Aβˆ’1.π΄βˆ’1.

Aβˆ’1=[3βˆ’5βˆ’12]π΄βˆ’1=[3βˆ’1βˆ’52]

Finding the Multiplicative Inverse of 2Γ—2 Matrices Using a Formula

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

If A𝐴 is a 2Γ—22Γ—2 matrix, such as

A=[acbd]𝐴=[π‘Žπ‘π‘π‘‘]

the multiplicative inverse of A𝐴 is given by the formula

Aβˆ’1=1adβˆ’bc[dβˆ’cβˆ’ba]π΄βˆ’1=1π‘Žπ‘‘βˆ’π‘π‘[π‘‘βˆ’π‘βˆ’π‘π‘Ž]

where adβˆ’bcβ‰ 0.π‘Žπ‘‘βˆ’π‘π‘β‰ 0. If adβˆ’bc=0,π‘Žπ‘‘βˆ’π‘π‘=0, then A𝐴 has no inverse.

EXAMPLE 4

Using the Formula to Find the Multiplicative Inverse of Matrix A

Use the formula to find the multiplicative inverse of

A=[12βˆ’2βˆ’3]𝐴=[1βˆ’22βˆ’3]

Solution

Using the formula, we have

Aβˆ’1=1(1)(βˆ’3)βˆ’(βˆ’2)(2)[βˆ’3βˆ’221]=1βˆ’3+4[βˆ’3βˆ’221]=[βˆ’3βˆ’221]π΄βˆ’1=1(1)(βˆ’3)βˆ’(βˆ’2)(2)[βˆ’32βˆ’21]=1βˆ’3+4[βˆ’32βˆ’21]=[βˆ’32βˆ’21]

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.

[12βˆ’2βˆ’3∣∣∣1001][1βˆ’22βˆ’3|1001]

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

  1. Multiply row 1 byΒ βˆ’2βˆ’2Β and add to row 2.[10βˆ’21∣∣∣1βˆ’201][1βˆ’201|10βˆ’21]
  2. Multiply row 2 by 2 and add to row 1.[1001βˆ£βˆ£βˆ£βˆ’3βˆ’221][1001|βˆ’32βˆ’21]

So, we have verified our original solution.

Aβˆ’1=[βˆ’3βˆ’221]π΄βˆ’1=[βˆ’32βˆ’21]

TRY IT #2

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

A=[12βˆ’13]𝐴=[1βˆ’123]

EXAMPLE 5

Finding the Inverse of the Matrix, If It Exists

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

A=[3162]𝐴=[3612]

Solution

We will use the method of augmenting with the identity.

[3162∣∣∣1001][3612|1001]

  1. Switch row 1 and row 2.[1332∣∣∣0110][1332|0110]
  2. Multiply row 1 by βˆ’3 and add it to row 2.[1020∣∣∣1βˆ’301][1200|10βˆ’31]
  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Γ—22Γ—2 matrix to find the inverse of a 3Γ—33Γ—3 matrix. Instead, we will augment the original matrix with the identity matrix and use row operations to obtain the inverse.

Given a 3Γ—33Γ—3 matrix

A=⎑⎣⎒232334111⎀⎦βŽ₯𝐴=[231331241]

augment A𝐴 with the identity matrix

A∣∣∣∣I=⎑⎣⎒232334111 βˆ£βˆ£βˆ£βˆ£ 100010001⎀⎦βŽ₯𝐴|𝐼=[231331241 | 100010001]

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Γ—33Γ—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π΄π΄βˆ’1=𝐼 andΒ Aβˆ’1A=I.π΄βˆ’1𝐴=𝐼.

EXAMPLE 6

Finding the Inverse of a 3 Γ— 3 Matrix

Given the 3Γ—33Γ—3 matrix A,𝐴, find the inverse.

A=⎑⎣⎒232334111⎀⎦βŽ₯𝐴=[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.𝐴.

⎑⎣⎒232334111∣∣∣∣100010001⎀⎦βŽ₯β†’Interchange R2and R1⎑⎣⎒322334111∣∣∣∣010100001⎀⎦βŽ₯[231331241|100010001]β†’Interchange π‘…2and π‘…1[331231241|010100001]

βˆ’R2+R1=R1β†’βŽ‘βŽ£βŽ’122034011βˆ£βˆ£βˆ£βˆ£βˆ’110100001⎀⎦βŽ₯βˆ’π‘…2+𝑅1=𝑅1β†’[100231241|βˆ’110100001]

βˆ’R2+R3=R3β†’βŽ‘βŽ£βŽ’120031010βˆ£βˆ£βˆ£βˆ£βˆ’11βˆ’1100001⎀⎦βŽ₯βˆ’π‘…2+𝑅3=𝑅3β†’[100231010|βˆ’110100βˆ’101]

R3↔ R2β†’βŽ‘βŽ£βŽ’102013001βˆ£βˆ£βˆ£βˆ£βˆ’1βˆ’11100010⎀⎦βŽ₯𝑅3↔ π‘…2β†’[100010231|βˆ’110βˆ’101100]

βˆ’2R1+R3=R3β†’βŽ‘βŽ£βŽ’100013001βˆ£βˆ£βˆ£βˆ£βˆ’1βˆ’1310βˆ’2010⎀⎦βŽ₯βˆ’2𝑅1+𝑅3=𝑅3β†’[100010031|βˆ’110βˆ’1013βˆ’20]

βˆ’3R2+R3=R3β†’βŽ‘βŽ£βŽ’100010001βˆ£βˆ£βˆ£βˆ£βˆ’1βˆ’1610βˆ’201βˆ’3⎀⎦βŽ₯βˆ’3𝑅2+𝑅3=𝑅3β†’[100010001|βˆ’110βˆ’1016βˆ’2βˆ’3]

Thus,

Aβˆ’1=B=βŽ‘βŽ£βŽ’βˆ’1βˆ’1610βˆ’201βˆ’3⎀⎦βŽ₯π΄βˆ’1=𝐡=[βˆ’110βˆ’1016βˆ’2βˆ’3]

Analysis

To prove that B=Aβˆ’1,𝐡=π΄βˆ’1, let’s multiply the two matrices together to see if the product equals the identity, if AAβˆ’1=Iπ΄π΄βˆ’1=𝐼 and Aβˆ’1A=I.π΄βˆ’1𝐴=𝐼.

AAβˆ’1=⎑⎣⎒232334111⎀⎦βŽ₯  βŽ‘βŽ£βŽ’βˆ’1βˆ’1610βˆ’201βˆ’3⎀⎦βŽ₯=⎑⎣⎒2(βˆ’1)+3(βˆ’1)+1(6)3(βˆ’1)+3(βˆ’1)+1(6)2(βˆ’1)+4(βˆ’1)+1(6)2(1)+3(0)+1(βˆ’2)3(1)+3(0)+1(βˆ’2)2(1)+4(0)+1(βˆ’2)2(0)+3(1)+1(βˆ’3)3(0)+3(1)+1(βˆ’3)2(0)+4(1)+1(βˆ’3)⎀⎦βŽ₯=⎑⎣⎒100010001⎀⎦βŽ₯π΄π΄βˆ’1=[231331241]  [βˆ’110βˆ’1016βˆ’2βˆ’3]=[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]

Aβˆ’1A=βŽ‘βŽ£βŽ’βˆ’1βˆ’1610βˆ’201βˆ’3⎀⎦βŽ₯  βŽ‘⎣⎒232334111⎀⎦βŽ₯=βŽ‘βŽ£βŽ’βˆ’1(2)+1(3)+0(2)βˆ’1(2)+0(3)+1(2)6(2)+βˆ’2(3)+βˆ’3(2)βˆ’1(3)+1(3)+0(4)βˆ’1(3)+0(3)+1(4)6(3)+βˆ’2(3)+βˆ’3(4)βˆ’1(1)+1(1)+0(1)βˆ’1(1)+0(1)+1(1)6(1)+βˆ’2(1)+βˆ’3(1)⎀⎦βŽ₯=⎑⎣⎒100010001⎀⎦βŽ₯π΄βˆ’1𝐴=[βˆ’110βˆ’1016βˆ’2βˆ’3]  [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]

TRY IT #3

Find the inverse of the 3Γ—33Γ—3 matrix.

A=⎑⎣⎒2βˆ’10βˆ’1711311βˆ’7βˆ’2⎀⎦βŽ₯𝐴=[2βˆ’1711βˆ’111βˆ’703βˆ’2]

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=c1a2x+b2y=c2π‘Ž1π‘₯+𝑏1𝑦=𝑐1π‘Ž2π‘₯+𝑏2𝑦=𝑐2

From this system, the coefficient matrix is

A=[a1a2b1b2]𝐴=[π‘Ž1𝑏1π‘Ž2𝑏2]

The variable matrix is

X=[xy]𝑋=[π‘₯𝑦]

And the constant matrix is

B=[c1c2]𝐡=[𝑐1𝑐2]

Then AX=B𝐴𝑋=𝐡 looks like

[a1a2b1b2]  [xy]=[c1c2][π‘Ž1𝑏1π‘Ž2𝑏2]  [π‘₯𝑦]=[𝑐1𝑐2]

Recall the discussion earlier in this section regarding multiplying a real number by its inverse, (2βˆ’1)2=(12)2=1.(2βˆ’1)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(aβˆ’1  )ax=(aβˆ’1)b[(aβˆ’1)a]x=(aβˆ’1)b           1x=(aβˆ’1)b             x=(aβˆ’1)b π‘Žπ‘₯=𝑏 (1π‘Ž)π‘Žπ‘₯=(1π‘Ž)𝑏(π‘Žβˆ’1  )π‘Žπ‘₯=(π‘Žβˆ’1)𝑏[(π‘Žβˆ’1)π‘Ž]π‘₯=(π‘Žβˆ’1)𝑏           1π‘₯=(π‘Žβˆ’1)𝑏             π‘₯=(π‘Žβˆ’1)𝑏

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Γ—22Γ—2 system and then move on to a 3Γ—33Γ—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.

(Aβˆ’1)AX=(Aβˆ’1)B[(Aβˆ’1)A]X=(Aβˆ’1)BIX=(Aβˆ’1)BX=(Aβˆ’1)B(π΄βˆ’1)𝐴𝑋=(π΄βˆ’1)𝐡[(π΄βˆ’1)𝐴]𝑋=(π΄βˆ’1)𝐡𝐼𝑋=(π΄βˆ’1)𝐡𝑋=(π΄βˆ’1)𝐡

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

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=73π‘₯+8𝑦=54π‘₯+11𝑦=7

Solution

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

A=[34811],X=[xy],B=[57]𝐴=[38411],𝑋=[π‘₯𝑦],𝐡=[57]

Then

[34811]  [xy]=[57][38411]  [π‘₯𝑦]=[57]

First, we need to calculate Aβˆ’1.π΄βˆ’1. Using the formula to calculate the inverse of a 2 by 2 matrix, we have:

Aβˆ’1=1adβˆ’bc[dβˆ’cβˆ’ba]     =13(11)βˆ’8(4)[11βˆ’4βˆ’83]     =11[11βˆ’4βˆ’83]π΄βˆ’1=1π‘Žπ‘‘βˆ’π‘π‘[π‘‘βˆ’π‘βˆ’π‘π‘Ž]     =13(11)βˆ’8(4)[11βˆ’8βˆ’43]     =11[11βˆ’8βˆ’43]

So,

Aβˆ’1=[11βˆ’4βˆ’8​​3]π΄βˆ’1=[11βˆ’8βˆ’4​​3]

Now we are ready to solve. Multiply both sides of the equation by Aβˆ’1.π΄βˆ’1.

(Aβˆ’1)AX=(Aβˆ’1)B[11βˆ’4βˆ’83]  [34811]  [xy]=[11βˆ’4βˆ’83]  [57][1001]  [xy]=[11(5)+(βˆ’8)7βˆ’4(5)+3(7)][xy]=[βˆ’11](π΄βˆ’1)𝐴𝑋=(π΄βˆ’1)𝐡[11βˆ’8βˆ’43]  [38411]  [π‘₯𝑦]=[11βˆ’8βˆ’43]  [57][1001]  [π‘₯𝑦]=[11(5)+(βˆ’8)7βˆ’4(5)+3(7)][π‘₯𝑦]=[βˆ’11]

The solution is (βˆ’1,1).(βˆ’1,1).

Q&A

Can we solve for X𝑋 by finding the product BAβˆ’1?π΅π΄βˆ’1?

No, recall that matrix multiplication is not commutative, so Aβˆ’1Bβ‰ BAβˆ’1.π΄βˆ’1π΅β‰ π΅π΄βˆ’1. Consider our steps for solving the matrix equation.

(Aβˆ’1)AX=(Aβˆ’1)B[(Aβˆ’1)A]X=(Aβˆ’1)BIX=(Aβˆ’1)BX=(Aβˆ’1)B(π΄βˆ’1)𝐴𝑋=(π΄βˆ’1)𝐡[(π΄βˆ’1)𝐴]𝑋=(π΄βˆ’1)𝐡𝐼𝑋=(π΄βˆ’1)𝐡𝑋=(π΄βˆ’1)𝐡

Notice in the first step we multiplied both sides of the equation byΒ Aβˆ’1,π΄βˆ’1,Β but theΒ Aβˆ’1π΄βˆ’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 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=35βˆ’4xβˆ’11yβˆ’41z=βˆ’26βˆ’xβˆ’3yβˆ’11z=βˆ’75π‘₯+15𝑦+56𝑧=35βˆ’4π‘₯βˆ’11π‘¦βˆ’41𝑧=βˆ’26βˆ’π‘₯βˆ’3π‘¦βˆ’11𝑧=βˆ’7

Solution

Write the equation AX=B.𝐴𝑋=𝐡.

⎑⎣⎒5βˆ’4βˆ’115βˆ’11βˆ’356βˆ’41βˆ’11⎀⎦βŽ₯  βŽ‘⎣⎒xyz⎀⎦βŽ₯=⎑⎣⎒35βˆ’26βˆ’7⎀⎦βŽ₯[51556βˆ’4βˆ’11βˆ’41βˆ’1βˆ’3βˆ’11]  [π‘₯𝑦𝑧]=[35βˆ’26βˆ’7]

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

⎑⎣⎒5βˆ’4βˆ’115βˆ’11βˆ’356βˆ’41βˆ’11∣∣∣∣100010001⎀⎦βŽ₯[51556βˆ’4βˆ’11βˆ’41βˆ’1βˆ’3βˆ’11|100010001]

Multiply row 1 by 15.15.

⎑⎣⎒1βˆ’4βˆ’13βˆ’11βˆ’3565βˆ’41βˆ’11∣∣∣∣∣1500010001⎀⎦βŽ₯[13565βˆ’4βˆ’11βˆ’41βˆ’1βˆ’3βˆ’11|1500010001]

Multiply row 1 by 4 and add to row 2.

⎑⎣⎒⎒10βˆ’131βˆ’3565195βˆ’11∣∣∣∣∣15450010001⎀⎦βŽ₯βŽ₯[1356501195βˆ’1βˆ’3βˆ’11|15004510001]

Add row 1 to row 3.

⎑⎣⎒⎒⎒10031056519515∣∣∣∣∣154515010001⎀⎦βŽ₯βŽ₯βŽ₯[13565011950015|150045101501]

Multiply row 2 by βˆ’3 and add to row 1.

⎑⎣⎒⎒100010βˆ’1519515βˆ£βˆ£βˆ£βˆ£βˆ£βˆ’1154515βˆ’310001⎀⎦βŽ₯βŽ₯[10βˆ’15011950015|βˆ’115βˆ’3045101501]

Multiply row 3 by 5.

⎑⎣⎒⎒100010βˆ’151951βˆ£βˆ£βˆ£βˆ£βˆ£βˆ’115451βˆ’310005⎀⎦βŽ₯βŽ₯[10βˆ’1501195001|βˆ’115βˆ’304510105]

Multiply row 3 by 1515 and add to row 1.

⎑⎣⎒10001001951βˆ£βˆ£βˆ£βˆ£βˆ£βˆ’2451βˆ’310105⎀⎦βŽ₯[10001195001|βˆ’2βˆ’314510105]

Multiply row 3 by βˆ’195βˆ’195 and add to row 2.

⎑⎣⎒100010001βˆ£βˆ£βˆ£βˆ£βˆ’2βˆ’31βˆ’3101βˆ’195⎀⎦βŽ₯[100010001|βˆ’2βˆ’31βˆ’31βˆ’19105]

So,

Aβˆ’1=βŽ‘βŽ£βŽ’βˆ’2βˆ’31βˆ’3101βˆ’195⎀⎦βŽ₯π΄βˆ’1=[βˆ’2βˆ’31βˆ’31βˆ’19105]

Multiply both sides of the equation by Aβˆ’1.π΄βˆ’1. We want Aβˆ’1AX=Aβˆ’1B:π΄βˆ’1𝐴𝑋=π΄βˆ’1𝐡:

βŽ‘βŽ£βŽ’βˆ’2βˆ’31βˆ’3101βˆ’195⎀⎦βŽ₯  βŽ‘⎣⎒5βˆ’4βˆ’115βˆ’11βˆ’356βˆ’41βˆ’11⎀⎦βŽ₯  βŽ‘⎣⎒xyz⎀⎦βŽ₯=βŽ‘βŽ£βŽ’βˆ’2βˆ’31βˆ’3101βˆ’195⎀⎦βŽ₯  βŽ‘⎣⎒35βˆ’26βˆ’7⎀⎦βŽ₯[βˆ’2βˆ’31βˆ’31βˆ’19105]  [51556βˆ’4βˆ’11βˆ’41βˆ’1βˆ’3βˆ’11]  [π‘₯𝑦𝑧]=[βˆ’2βˆ’31βˆ’31βˆ’19105]  [35βˆ’26βˆ’7]

Thus,

Aβˆ’1B=βŽ‘βŽ£βŽ’βˆ’70+78βˆ’7βˆ’105βˆ’26+13335+0βˆ’35⎀⎦βŽ₯=⎑⎣⎒120⎀⎦βŽ₯π΄βˆ’1𝐡=[βˆ’70+78βˆ’7βˆ’105βˆ’26+13335+0βˆ’35]=[120]

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

TRY IT #4

Solve the system using the inverse of the coefficient matrix.

 2xβˆ’17y+11z=0 βˆ’x+11yβˆ’7z=8              3yβˆ’2z=βˆ’2 2π‘₯βˆ’17𝑦+11𝑧=0 βˆ’π‘₯+11π‘¦βˆ’7𝑧=8              3π‘¦βˆ’2𝑧=βˆ’2

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 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=βˆ’22π‘₯+3𝑦+𝑧=323π‘₯+3𝑦+𝑧=βˆ’272π‘₯+4𝑦+𝑧=βˆ’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]=⎑⎣⎒232334111⎀⎦βŽ₯, [B]=⎑⎣⎒32βˆ’27βˆ’2⎀⎦βŽ₯[𝐴]=[231331241], [𝐡]=[32βˆ’27βˆ’2]

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][𝐴]βˆ’1Γ—[𝐡]

Evaluate the expression.

βŽ‘βŽ£βŽ’βˆ’59βˆ’34252⎀⎦βŽ₯[βˆ’59βˆ’34252]

RELATED POSTS

View all

view all