25/05/2018, 16:02

Solving Systems with Inverses

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

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.

We know that the multiplicative inverse of a real number  a  is   a −1 ,  and  a a −1 = a −1 a=( 1 a )a=1.  For example,   2 −1 = 1 2   and  ( 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. [link] and [link] are the identity matrices for a  2×2  matrix and a  3×3  matrix, respectively.

I 2 =[ 1 0 0 1 ]
I 3 =[ 1 0 0 0 1 0 0 0 1 ]

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

A A −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,  A A −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 =[ 1 0 0 1 ] I 3 =[ 1 0 0 0 1 0 0 0 1 ]         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.

Showing That the Identity Matrix Acts as a 1

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

A=[    3 4 −2 5 ]

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 4 −2 5 ]     [ 1 0 0 1 ]=[ 3⋅1+4⋅0 3⋅0+4⋅1 −2⋅1+5⋅0 −2⋅0+5⋅1 ]=[ 3 4 −2 5 ]
AI=[ 1 0 0 1 ]     [ 3 4 −2 5 ]=[ 1⋅3+0⋅(−2) 1⋅4+0⋅5 0⋅3+1⋅(−2) 0⋅4+1⋅5 ]=[ 3 4 −2 5 ]
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 .
Showing That Matrix A Is the Multiplicative Inverse of Matrix B

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

A=[ 1 5 −2 −9 ],B=[ −9 −5 2 1 ]

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

AB=[ 1 5 −2 −9 ]·[ −9 −5 2 1 ]         =[ 1(−9)+5(2) 1(−5)+5(1) −2(−9)−9(2) −2(−5)−9(1) ]         =[ 1 0 0 1 ]
BA=[ −9 −5 2 1 ]·[ 1 5 −2 −9 ]         =[ −9(1)−5(−2) −9(5)−5(−9) 2(1)+1(−2) 2(−5)+1(−9) ]         =[ 1 0 0 1 ]

A  and B are inverses of each other.

Try It

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

A=[ 1 4 −1 −3 ],B=[ −3 −4 1 1 ]
AB=[ 1 4 −1 −3 ] [ −3 −4 1 1 ]=[ 1(−3)+4(1) 1(−4)+4(1) −1(−3)+−3(1) −1(−4)+−3(1) ]=[ 1 0 0 1 ] BA=[ −3 −4 1 1 ] [ 1 4 −1 −3 ]=[ −3(1)+−4(−1) −3(4)+−4(−3) 1(1)+1(−1) 1(4)+1(−3) ]=[ 1 0 0 1 ]

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.

Finding the Multiplicative Inverse Using Matrix Multiplication

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

A=[ 1 −2 2 −3 ]

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

[ 1 −2 2 −3 ]   [ a b c d ]=[ 1 0 0 1 ]

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

[ 1 −2 2 −3 ]   [ a b c d ]=[ 1a−2c 1b−2d 2a−3c 2b−3d ]

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      R 1 2a−3c=0     R 2

Using row operations, multiply and add as follows:  (−2) R 1 + R 2 → 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 R 1 2b−3d=1 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 =[ −3 2 −2 1 ]

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 .

For example, given

A=[ 2 1 5 3 ]

augment  A  with the identity

[ 2 1 5 3   |  1 0 0 1 ]

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

  1. Switch row 1 and row 2.
    [ 5 3 2 1   |  0 1 1 0 ]
  2. Multiply row 2 by  −2  and add to row 1.
    [ 1 1 2 1   |  −2 1 1 0 ]
  3. Multiply row 1 by  −2  and add to row 2.
    [ 1 1 0 −1   |  −2 1 5 −2 ]
  4. Add row 2 to row 1.
    [ 1 0 0 −1   |  3 −1 5 −2 ]
  5. Multiply row 2 by  −1.
    [ 1 0 0 1   |  3 −1 −5 2 ]

The matrix we have found is   A −1 .

A −1 =[ 3 −1 −5 2 ]

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=[ a b c d ]

the multiplicative inverse of  A  is given by the formula

A −1 = 1 ad−bc [ d −b −c a ]

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

Using the Formula to Find the Multiplicative Inverse of Matrix A

Use the formula to find the multiplicative inverse of

A=[ 1 −2 2 −3 ]

Using the formula, we have

A −1 = 1 (1)(−3)−(−2)(2) [ −3 2 −2 1 ]           = 1 −3+4 [ −3 2 −2 1 ]           =[ −3 2 −2 1 ]
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.

[ 1 −2 2 −3    |    1 0 0 1 ]

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

  1. Multiply row 1 by  −2  and add to row 2.
    [ 1 −2 0 1    |    1 0 −2 1 ]
  2. Multiply row 1 by 2 and add to row 1.
    [ 1 0 0 1    |    −3 2 −2 1 ]

So, we have verified our original solution.

A −1 =[ −3 2 −2 1 ]
Try It

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

A=[ 1 −1 2   3 ]

A −1 =[ 3 5 1 5 − 2 5 1 5 ]

Finding the Inverse of the Matrix, If It Exists

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

A=[ 3 6 1 2 ]

We will use the method of augmenting with the identity.

[ 3 6 1 3    |     1 0 0 1 ]
  1. Switch row 1 and row 2.
    [ 1 3 3 6 ​ ​  ​​|     0 1 1 0 ]
  2. Multiply row 1 by −3 and add it to row 2.
    [ 1 2 0 0    |     1 0 −3 1 ]
  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=[ 2 3 1 3 3 1 2 4 1 ]

augment  A  with the identity matrix

A|I=[ 2 3 1 3 3 1 2 4 1   |    1 0 0 0 1 0 0 0 1 ]

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  A A −1 =I  and   A −1 A=I.
Finding the Inverse of a 3 × 3 Matrix

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

A=[ 2 3 1 3 3 1 2 4 1 ]

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. 

[ 2 3 1 3 3 1 2 4 1    | 1 0 0 0 1 0   0 0 1 ] → Interchange  R 2  and  R 1 [ 3 3 1 2 3 1 2 4 1    | 0 1 0 1 0 0    0 0 1 ]
− R 2 + R 1 = R 1 →[ 1 0 0 2 3 1 2 4 1    |   −1 1 0 1 0 0 0 0 1 ]
− R 2 + R 3 = R 3 →[ 1 0 0 2 3 1 0 1 0    |   −1 1 0 1 0 0 −1 0 1 ]
R 3  ↔  R 2 →[ 1 0 0 0 1 0 2 3 1    |   −1 1 0 −1 0 1 1 0 0 ]
−2 R 1 + R 3 = R 3 →[ 1 0 0 0 1 0 0 3 1    |   −1 1 0 −1 0 1 3 −2 0 ]
−3 R 2 + R 3 = R 3 →[ 1 0 0 0 1 0 0 0 1    |   −1 1 0 −1 0 1 6 −2 −3 ]

Thus,

A −1 =B=[ −1  1  0 −1   0   1   6 −2 −3  ]
Analysis

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

A A −1 =[ 2 3 1 3 3 1 2 4 1 ]   [ −1 1 0 −1 0 1 6 −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) ]               =[ 1 0 0 0 1 0 0 0 1 ]
A −1 A=[ −1 1 0 −1 0 1 6 −2 −3 ]   [ 2 3 1
0