Learning Outcomes
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.
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 [latex]a[/latex] is [latex]{a}^{-1}[/latex], and [latex]a{a}^{-1}={a}^{-1}a=\left(\frac{1}{a}\right)a=1[/latex]. For example, [latex]{2}^{-1}=\frac{1}{2}[/latex] and [latex]\left(\frac{1}{2}\right)2=1[/latex]. The multiplicative inverse of a matrix is similar in concept, except that the product of matrix [latex]A[/latex] and its inverse [latex]{A}^{-1}[/latex] 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 [latex]{I}_{n}[/latex] where [latex]n[/latex] represents the dimension of the matrix. The equations below are the identity matrices for a [latex]2\text{}\times \text{}2[/latex] matrix and a [latex]3\text{}\times \text{}3[/latex] matrix, respectively.
[latex]{I}_{2}=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 0\\ \hfill 0& \hfill & \hfill 1\end{array}\right][/latex]
[latex]{I}_{3}=\left[\begin{array}{rrrrr}\hfill 1& \hfill & \hfill 0& \hfill & \hfill 0\\ \hfill 0& \hfill & \hfill 1& \hfill & \hfill 0\\ \hfill 0& \hfill & \hfill 0& \hfill & \hfill 1\end{array}\right][/latex]
The identity matrix acts as a 1 in matrix algebra. For example, [latex]AI=IA=A[/latex].
A matrix that has a multiplicative inverse has the properties
[latex]\begin{array}{l}A{A}^{-1}=I\\ {A}^{-1}A=I\end{array}[/latex]
A matrix that has a multiplicative inverse is called an invertible matrix. Only a square matrix may have a multiplicative inverse, as the reversibility, [latex]A{A}^{-1}={A}^{-1}A=I[/latex], is a requirement. Not all square matrices have an inverse, but if [latex]A[/latex] is invertible, then [latex]{A}^{-1}[/latex] is unique. We will look at two methods for finding the inverse of a [latex]2\text{}\times \text{}2[/latex] matrix and a third method that can be used on both [latex]2\text{}\times \text{}2[/latex] and [latex]3\text{}\times \text{}3[/latex] matrices.
A General Note: The Identity Matrix and Multiplicative Inverse
The identity matrix, [latex]{I}_{n}[/latex], is a square matrix containing ones down the main diagonal and zeros everywhere else.
[latex]\begin{array}{c}{I}_{2}=\left[\begin{array}{rr}\hfill 1& \hfill 0\\ \hfill 0& \hfill 1\end{array}\right] &&& {I}_{3}=\left[\begin{array}{rrr}\hfill 1& \hfill 0& \hfill 0\\ \hfill 0& \hfill 1& \hfill 0\\ \hfill 0& \hfill 0& \hfill 1\end{array}\right] \\ \text{2 }\times\text{ 2} &&& \text{3 }\times\text{ 3}\end{array}[/latex]
If [latex]A[/latex] is an [latex]n\times n[/latex] matrix and [latex]B[/latex] is an [latex]n\times n[/latex] matrix such that [latex]AB=BA={I}_{n}[/latex], then [latex]B={A}^{-1}[/latex], the multiplicative inverse of a matrix [latex]A[/latex].
Example 1: Showing That the Identity Matrix Acts as a 1
Given matrix A, show that [latex]AI=IA=A[/latex].
[latex]A=\left[\begin{array}{cc}3& 4\\ -2& 5\end{array}\right][/latex]
Show Solution
Use matrix multiplication to show that the product of [latex]A[/latex] and the identity is equal to the product of the identity and A.
[latex]AI=\left[\begin{array}{rrr}\hfill 3& \hfill & \hfill 4\\ \hfill -2& \hfill & \hfill 5\end{array}\right] \cdot \left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 0\\ \hfill 0& \hfill & \hfill 1\end{array}\right]=\left[\begin{array}{rrrr}\hfill 3\cdot 1+4\cdot 0& \hfill & \hfill & \hfill 3\cdot 0+4\cdot 1\\ \hfill -2\cdot 1+5\cdot 0& \hfill & \hfill & \hfill -2\cdot 0+5\cdot 1\end{array}\right]=\left[\begin{array}{rrr}\hfill 3& \hfill & \hfill 4\\ \hfill -2& \hfill & \hfill 5\end{array}\right][/latex]
[latex]IA=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 0\\ \hfill 0& \hfill & \hfill 1\end{array}\right]\cdot \left[\begin{array}{rrr}\hfill 3& \hfill & \hfill 4\\ \hfill -2& \hfill & \hfill 5\end{array}\right]=\left[\begin{array}{rrrr}\hfill 1\cdot 3+0\cdot \left(-2\right)& \hfill & \hfill & \hfill 1\cdot 4+0\cdot 5\\ \hfill 0\cdot 3+1\cdot \left(-2\right)& \hfill & \hfill & \hfill 0\cdot 4+1\cdot 5\end{array}\right]=\left[\begin{array}{rrr}\hfill 3& \hfill & \hfill 4\\ \hfill -2& \hfill & \hfill 5\end{array}\right][/latex]
How To: Given two matrices, show that one is the multiplicative inverse of the other.
- Given matrix [latex]A[/latex] of order [latex]n\times n[/latex] and matrix [latex]B[/latex] of order [latex]n\times n[/latex] multiply [latex]AB[/latex].
- If [latex]AB=I[/latex], then find the product [latex]BA[/latex]. If [latex]BA=I[/latex], then [latex]B={A}^{-1}[/latex] and [latex]A={B}^{-1}[/latex].
Example 2: Showing That Matrix A Is the Multiplicative Inverse of Matrix B
Show that the given matrices are multiplicative inverses of each other.
[latex]A=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 5\\ \hfill -2& \hfill & \hfill -9\end{array}\right],B=\left[\begin{array}{rrr}\hfill -9& \hfill & \hfill -5\\ \hfill 2& \hfill & \hfill 1\end{array}\right][/latex]
Show Solution
Multiply [latex]AB[/latex] and [latex]BA[/latex]. If both products equal the identity, then the two matrices are inverses of each other.
[latex]\begin{align}AB&=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 5\\ \hfill -2& \hfill & \hfill -9\end{array}\right]\cdot \left[\begin{array}{rrr}\hfill -9& \hfill & \hfill -5\\ \hfill 2& \hfill & \hfill 1\end{array}\right]\hfill \\ &=\left[\begin{array}{rrr}\hfill 1\left(-9\right)+5\left(2\right)& \hfill & \hfill 1\left(-5\right)+5\left(1\right)\\ \hfill -2\left(-9\right)-9\left(2\right)& \hfill & \hfill -2\left(-5\right)-9\left(1\right)\end{array}\right]\hfill \\ &=\left[\begin{array}{ccc}1& & 0\\ 0& & 1\end{array}\right]\hfill \end{align}[/latex]
[latex]\begin{align}BA&=\left[\begin{array}{rrr}\hfill -9& \hfill & \hfill -5\\ \hfill 2& \hfill & \hfill 1\end{array}\right]\cdot \left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 5\\ \hfill -2& \hfill & \hfill -9\end{array}\right]\hfill \\ &=\left[\begin{array}{rrr}\hfill -9\left(1\right)-5\left(-2\right)& \hfill & \hfill -9\left(5\right)-5\left(-9\right)\\ \hfill 2\left(1\right)+1\left(-2\right)& \hfill & \hfill 2\left(-5\right)+1\left(-9\right)\end{array}\right]\hfill \\ &=\left[\begin{array}{ccc}1& & 0\\ 0& & 1\end{array}\right]\hfill \end{align}[/latex]
[latex]A[/latex] and [latex]B[/latex] are inverses of each other.
Try It
Show that the following two matrices are inverses of each other.
[latex]A=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 4\\ \hfill -1& \hfill & \hfill -3\end{array}\right],B=\left[\begin{array}{rrr}\hfill -3& \hfill & \hfill -4\\ \hfill 1& \hfill & \hfill 1\end{array}\right][/latex]
Show Solution
[latex]\begin{array}{l}AB=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 4\\ \hfill -1& \hfill & \hfill -3\end{array}\right]\cdot \left[\begin{array}{rrr}\hfill -3& \hfill & \hfill -4\\ \hfill 1& \hfill & \hfill 1\end{array}\right]=\left[\begin{array}{rrr}\hfill 1\left(-3\right)+4\left(1\right)& \hfill & \hfill 1\left(-4\right)+4\left(1\right)\\ \hfill -1\left(-3\right)+-3\left(1\right)& \hfill & \hfill -1\left(-4\right)+-3\left(1\right)\end{array}\right]=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 0\\ \hfill 0& \hfill & \hfill 1\end{array}\right]\hfill \\ BA=\left[\begin{array}{rrr}\hfill -3& \hfill & \hfill -4\\ \hfill 1& \hfill & \hfill 1\end{array}\right] \cdot \left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 4\\ \hfill -1& \hfill & \hfill -3\end{array}\right]=\left[\begin{array}{rrr}\hfill -3\left(1\right)+-4\left(-1\right)& \hfill & \hfill -3\left(4\right)+-4\left(-3\right)\\ \hfill 1\left(1\right)+1\left(-1\right)& \hfill & \hfill 1\left(4\right)+1\left(-3\right)\end{array}\right]=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill 0\\ \hfill 0& \hfill & \hfill 1\end{array}\right]\hfill \end{array}[/latex]
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.
[latex]A=\left[\begin{array}{rrr}\hfill 1& \hfill & \hfill -2\\ \hfill 2& \hfill & \hfill -3\end{array}\right][/latex]
Show Solution
For this method, we multiply [latex]A[/latex] by a matrix containing unknown constants and set it equal to the identity.
[latex]\left[\begin{array}{rr}\hfill 1& \hfill -2\\ \hfill 2& \hfill -3\end{array}\right]\cdot\left[\begin{array}{rr}\hfill a& \hfill b\\ \hfill c& \hfill d\end{array}\right]=\left[\begin{array}{rr}\hfill 1& \hfill 0\\ \hfill 0& \hfill 1\end{array}\right][/latex]
Find the product of the two matrices on the left side of the equal sign.
[latex]\left[\begin{array}{rr}\hfill 1& \hfill -2\\ \hfill 2& \hfill -3\end{array}\right]\cdot \left[\begin{array}{rr}\hfill a& \hfill b\\ \hfill c& \hfill d\end{array}\right]=\left[\begin{array}{rr}\hfill 1a - 2c& \hfill 1b - 2d\\ \hfill 2a - 3c& \hfill 2b - 3d\end{array}\right][/latex]
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.
[latex]\begin{align}1a - 2c&=1 && {R}_{1}\\ 2a - 3c&=0 && {R}_{2}\end{align}[/latex]
Using row operations, multiply and add as follows: [latex]\left(-2\right){R}_{1}+{R}_{2}\to {R}_{2}[/latex]. Add the equations, and solve for [latex]c[/latex].
[latex]\begin{align} -2a + 4c&=-2\\ 2a-3c&=0\\ \hline c&=-2\end{align}[/latex]
Back-substitute to solve for [latex]a[/latex].
[latex]\begin{gathered} a - 2\left(-2\right)=1\\ a+4=1\\ a=-3\end{gathered}[/latex]
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.
[latex]\begin{align} 1b - 2d&=0&& {R}_{1}\\ 2b - 3d&=1&& {R}_{2}\end{align}[/latex]
Using row operations, multiply and add as follows: [latex]\left(-2\right){R}_{1}+{R}_{2}={R}_{2}[/latex]. Add the two equations and solve for [latex]d[/latex].
[latex]\begin{align} -2b +4d&=0\\ 2b-3d&=1\\ \hline d&=1 \end{align}[/latex]
Once more, back-substitute and solve for [latex]b[/latex].
[latex]\begin{gathered} b - 2\left(1\right)=0\\ b - 2=0\\ b=2\end{gathered}[/latex]
[latex]{A}^{-1}=\left[\begin{array}{rrr}\hfill -3& \hfill & \hfill 2\\ \hfill -2& \hfill & \hfill 1\end{array}\right][/latex]
Finding the Multiplicative Inverse by Augmenting with the Identity
Another way to find the multiplicative inverse is by augmenting with the identity. When matrix [latex]A[/latex] is transformed into [latex]I[/latex], the augmented matrix [latex]I[/latex] transforms into [latex]{A}^{-1}[/latex].
For example, given
[latex]A=\left[\begin{array}{rrr}\hfill 2& 1\\ \hfill 5& 3\end{array}\right][/latex]
augment [latex]A[/latex] with the identity
[latex]\left[\left.\begin{array}{rr}\hfill 2& \hfill 1\\ \hfill 5& \hfill 3\end{array}\right\rvert\begin{array}{rr}\hfill 1& \hfill 0\\ \hfill 0& \hfill 1\end{array}\right][/latex]
Perform row operations with the goal of turning [latex]A[/latex] into the identity.
- Switch row 1 and row 2.
[latex]\left[\left.\begin{array}{rr}\hfill 5& \hfill 3\\ \hfill 2& \hfill 1\end{array}\right\rvert\begin{array}{rr}\hfill 0& \hfill 1\\ \hfill 1& \hfill 0\end{array}\right][/latex]
- Multiply row 2 by [latex]-2[/latex] and add to row 1.
[latex]\left[\left.\begin{array}{rr}\hfill 1& \hfill 1\\ \hfill 2& \hfill 1\end{array}\right\rvert\begin{array}{rr}\hfill -2& \hfill 1\\ \hfill 1& \hfill 0\end{array}\right][/latex]
- Multiply row 1 by [latex]-2[/latex] and add to row 2.
[latex]\left[\left.\begin{array}{rr}\hfill 1& \hfill 1\\ \hfill 0& \hfill -1\end{array}\right\rvert\begin{array}{rr}\hfill -2& \hfill 1\\ \hfill 5& \hfill -2\end{array}\right][/latex]
- Add row 2 to row 1.
[latex]\left[\left.\begin{array}{rr}\hfill 1& \hfill 0\\ \hfill 0& \hfill -1\end{array}\right\rvert\begin{array}{rr}\hfill 3& \hfill -1\\ \hfill 5& \hfill -2\end{array}\right][/latex]
- Multiply row 2 by [latex]-1[/latex].
[latex]\left[\left.\begin{array}{rr}\hfill 1& \hfill 0\\ \hfill 0& \hfill 1\end{array}\right\rvert\begin{array}{rr}\hfill 3& \hfill -1\\ \hfill -5& \hfill 2\end{array}\right][/latex]
The matrix we have found is [latex]{A}^{-1}[/latex].
[latex]{A}^{-1}=\left[\begin{array}{rrr}\hfill 3& -1\\ \hfill -5& 2\end{array}\right][/latex]
Finding the Multiplicative Inverse of 2×2 Matrices Using a Formula
When we need to find the multiplicative inverse of a [latex]2\times 2[/latex] matrix, we can use a special formula instead of using matrix multiplication or augmenting with the identity.
If [latex]A[/latex] is a [latex]2\times 2[/latex] matrix, such as
[latex]A=\left[\begin{array}{rrr}\hfill a& \hfill & \hfill b\\ \hfill c& \hfill & \hfill d\end{array}\right][/latex]
the multiplicative inverse of [latex]A[/latex] is given by the formula
[latex]{A}^{-1}=\frac{1}{ad-bc}\left[\begin{array}{rrr}\hfill d& \hfill & \hfill -b\\ \hfill -c& \hfill & \hfill a\end{array}\right][/latex]
where [latex]ad-bc\ne 0[/latex]. If [latex]ad-bc=0[/latex], then [latex]A[/latex] 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
[latex]A=\left[\begin{array}{cc}1& -2\\ 2& -3\end{array}\right][/latex]
Show Solution
Using the formula, we have
[latex]\begin{align}{A}^{-1}&=\frac{1}{\left(1\right)\left(-3\right)-\left(-2\right)\left(2\right)}\left[\begin{array}{cc}-3& 2\\ -2& 1\end{array}\right]\hfill \\ &=\frac{1}{-3+4}\left[\begin{array}{cc}-3& 2\\ -2& 1\end{array}\right]\hfill \\ &=\left[\begin{array}{cc}-3& 2\\ -2& 1\end{array}\right]\hfill \end{align}[/latex]
Analysis of the Solution
We can check that our formula works by using one of the other methods to calculate the inverse. Let’s augment [latex]A[/latex] with the identity.
[latex]\left[\left.\begin{array}{cc}1& -2\\ 2& -3\end{array}\right\rvert\begin{array}{cc}1& 0\\ 0& 1\end{array}\right][/latex]
Perform row operations with the goal of turning [latex]A[/latex] into the identity.
- Multiply row 1 by [latex]-2[/latex] and add to row 2.
[latex]\left[\left.\begin{array}{cc}1& -2\\ 0& 1\end{array}\right\rvert\begin{array}{cc}1& 0\\ -2& 1\end{array}\right][/latex]
- Multiply row 1 by 2 and add to row 1.
[latex]\left[\left.\begin{array}{cc}1& 0\\ 0& 1\end{array}\right\rvert\begin{array}{cc}-3& 2\\ -2& 1\end{array}\right][/latex]
So, we have verified our original solution.
[latex]{A}^{-1}=\left[\begin{array}{cc}-3& 2\\ -2& 1\end{array}\right][/latex]
Try It
Use the formula to find the inverse of matrix [latex]A[/latex]. Verify your answer by augmenting with the identity matrix.
[latex]A=\left[\begin{array}{cc}1& -1\\ 2& 3\end{array}\right][/latex]
Show Solution
[latex]{A}^{-1}=\left[\begin{array}{cc}\frac{3}{5}&\hfill \frac{1}{5}\\ -\frac{2}{5}& \frac{1}{5}\end{array}\right][/latex]
Example 5: Finding the Inverse of the Matrix, If It Exists
Find the inverse, if it exists, of the given matrix.
[latex]A=\left[\begin{array}{cc}3& 6\\ 1& 2\end{array}\right][/latex]
Show Solution
We will use the method of augmenting with the identity.
[latex]\left[\left.\begin{array}{cc}3& 6\\ 1& 3\end{array}\right\rvert\begin{array}{cc}1& 0\\ 0& 1\end{array}\right][/latex]
- Switch row 1 and row 2.
[latex]\left[\left.\begin{array}{cc}1& 3\\ 3& 6\text{ }\end{array}\right\rvert\begin{array}{cc}0& 1\\ 1& 0\end{array}\right][/latex]
- Multiply row 1 by −3 and add it to row 2.
[latex]\left[\left.\begin{array}{cc}1& 2\\ 0& 0\end{array}\right\rvert\begin{array}{cc}1& 0\\ -3& 1\end{array}\right][/latex]
- 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 [latex]2\text{}\times \text{}2[/latex] matrix to find the inverse of a [latex]3\text{}\times \text{}3[/latex] matrix. Instead, we will augment the original matrix with the identity matrix and use row operations to obtain the inverse.
Given a [latex]3\text{}\times \text{}3[/latex] matrix
[latex]A=\left[\begin{array}{ccc}2& 3& 1\\ 3& 3& 1\\ 2& 4& 1\end{array}\right][/latex]
augment [latex]A[/latex] with the identity matrix
[latex]A|I=\left[\left.\begin{array}{ccc}2& 3& 1\\ 3& 3& 1\\ 2& 4& 1\end{array}\right\rvert\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right][/latex]
To begin, we write the augmented matrix with the identity on the right and [latex]A[/latex] 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 [latex]3\times 3[/latex] matrix, find the inverse
- Write the original matrix augmented with the identity matrix on the right.
- Use elementary row operations so that the identity appears on the left.
- What is obtained on the right is the inverse of the original matrix.
- Use matrix multiplication to show that [latex]A{A}^{-1}=I[/latex] and [latex]{A}^{-1}A=I[/latex].
Example 6: Finding the Inverse of a 3 × 3 Matrix
Given the [latex]3\times 3[/latex] matrix [latex]A[/latex], find the inverse.
[latex]A=\left[\begin{array}{ccc}2& 3& 1\\ 3& 3& 1\\ 2& 4& 1\end{array}\right][/latex]
Show Solution
Augment [latex]A[/latex] with the identity matrix, and then begin row operations until the identity matrix replaces [latex]A[/latex]. The matrix on the right will be the inverse of [latex]A[/latex].
[latex]\left[\left.\begin{array}{ccc}2& 3& 1\\ 3& 3& 1\\ 2& 4& 1\end{array}\right\rvert\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right]\stackrel{\text{Interchange }{R}_{2}\text{ and }{R}_{1}}{\to }\left[\left.\begin{array}{ccc}3& 3& 1\\ 2& 3& 1\\ 2& 4& 1\end{array}\right\rvert\begin{array}{ccc}0& 1& 0\\ 1& 0& 0\\ 0& 0& 1\end{array}\right][/latex]
[latex]-{R}_{2}+{R}_{1}={R}_{1}\to \left[\left.\begin{array}{ccc}1& 0& 0\\ 2& 3& 1\\ 2& 4& 1\end{array}\right\rvert\begin{array}{rrr}\hfill -1& \hfill 1& \hfill 0\\ \hfill 1& \hfill 0& \hfill 0\\ \hfill 0& \hfill 0& \hfill 1\end{array}\right][/latex]
[latex]-{R}_{2}+{R}_{3}={R}_{3}\to \left[\left.\begin{array}{ccc}1& 0& 0\\ 2& 3& 1\\ 0& 1& 0\end{array}\right\rvert\begin{array}{rrr}\hfill -1& \hfill 1& \hfill 0\\ \hfill 1& \hfill 0& \hfill 0\\ \hfill -1& \hfill 0& \hfill 1\end{array}\right][/latex]
[latex]{R}_{3}\leftrightarrow {R}_{2}\to \left[\left.\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 2& 3& 1\end{array}\right\rvert\begin{array}{rrr}\hfill -1& \hfill 1& \hfill 0\\ \hfill -1& \hfill 0& \hfill 1\\ \hfill 1& \hfill 0& \hfill 0\end{array}\right][/latex]
[latex]-2{R}_{1}+{R}_{3}={R}_{3}\to \left[\left.\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 3& 1\end{array}\right\rvert\begin{array}{rrr}\hfill -1& \hfill 1& \hfill 0\\ \hfill -1& \hfill 0& \hfill 1\\ \hfill 3& \hfill -2& \hfill 0\end{array}\right][/latex]
[latex]-3{R}_{2}+{R}_{3}={R}_{3}\to \left[\left.\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right\rvert\begin{array}{rrr}\hfill -1& \hfill 1& \hfill 0\\ \hfill -1& \hfill 0& \hfill 1\\ \hfill 6& \hfill -2& \hfill -3\end{array}\right][/latex]
Thus,
[latex]{A}^{-1}=B=\left[\begin{array}{ccc}-1& 1& 0\\ -1& 0& 1\\ 6& -2& -3\end{array}\right][/latex]
Analysis of the Solution
To prove that [latex]B={A}^{-1}[/latex], let’s multiply the two matrices together to see if the product equals the identity, if [latex]A{A}^{-1}=I[/latex] and [latex]{A}^{-1}A=I[/latex].
[latex]\begin{align}\begin{array}{l}\hfill \\ \hfill \end{array}\hfill \\ A{A}^{-1}&=\left[\begin{array}{ccc}2& 3& 1\\ 3& 3& 1\\ 2& 4& 1\end{array}\right]\cdot\left[\begin{array}{rrr}\hfill -1& \hfill 1& \hfill 0\\ \hfill -1& \hfill 0& \hfill 1\\ \hfill 6& \hfill -2& \hfill -3\end{array}\right]\hfill \\ &=\left[\begin{array}{ccc}2\left(-1\right)+3\left(-1\right)+1\left(6\right)& 2\left(1\right)+3\left(0\right)+1\left(-2\right)& 2\left(0\right)+3\left(1\right)+1\left(-3\right)\\ 3\left(-1\right)+3\left(-1\right)+1\left(6\right)& 3\left(1\right)+3\left(0\right)+1\left(-2\right)& 3\left(0\right)+3\left(1\right)+1\left(-3\right)\\ 2\left(-1\right)+4\left(-1\right)+1\left(6\right)& 2\left(1\right)+4\left(0\right)+1\left(-2\right)& 2\left(0\right)+4\left(1\right)+1\left(-3\right)\end{array}\right]\hfill \\ &=\left[\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right] \end{align}[/latex]
[latex]\begin{align}\begin{array}{l}\hfill \\ \hfill \end{array}\hfill \\ {A}^{-1}A&=\left[\begin{array}{rrr}\hfill -1& \hfill 1& \hfill 0\\ \hfill -1& \hfill 0& \hfill 1\\ \hfill 6& \hfill -2& \hfill -3\end{array}\right]\cdot\left[\begin{array}{ccc}2& 3& 1\\ 3& 3& 1\\ 2& 4& 1\end{array}\right]\\ &=\left[\begin{array}{rrr}\hfill -1\left(2\right)+1\left(3\right)+0\left(2\right)& \hfill -1\left(3\right)+1\left(3\right)+0\left(4\right)& \hfill -1\left(1\right)+1\left(1\right)+0\left(1\right)\\ \hfill -1\left(2\right)+0\left(3\right)+1\left(2\right)& \hfill -1\left(3\right)+0\left(3\right)+1\left(4\right)& \hfill -1\left(1\right)+0\left(1\right)+1\left(1\right)\\ \hfill 6\left(2\right)+-2\left(3\right)+-3\left(2\right)& \hfill 6\left(3\right)+-2\left(3\right)+-3\left(4\right)& \hfill 6\left(1\right)+-2\left(1\right)+-3\left(1\right)\end{array}\right]\hfill \\ &=\left[\begin{array}{rrr}\hfill 1& \hfill 0& \hfill 0\\ \hfill 0& \hfill 1& \hfill 0\\ \hfill 0& \hfill 0& \hfill 1\end{array}\right]\hfill \end{align}[/latex]
Try It
Find the inverse of the [latex]3\times 3[/latex] matrix.
[latex]A=\left[\begin{array}{ccc}2& -17& 11\\ -1& 11& -7\\ 0& 3& -2\end{array}\right][/latex]
Show Solution
[latex]{A}^{-1}=\left[\begin{array}{ccc}1& 1& 2\\ 2& 4& -3\\ 3& 6& -5\end{array}\right][/latex]
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: [latex]X[/latex] is the matrix representing the variables of the system, and [latex]B[/latex] 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
[latex]AX=B[/latex]
To solve a system of linear equations using an inverse matrix, let [latex]A[/latex] be the coefficient matrix, let [latex]X[/latex] be the variable matrix, and let [latex]B[/latex] be the constant matrix. Thus, we want to solve a system [latex]AX=B[/latex]. For example, look at the following system of equations.
[latex]\begin{array}{c}{a}_{1}x+{b}_{1}y={c}_{1}\\ {a}_{2}x+{b}_{2}y={c}_{2}\end{array}[/latex]
From this system, the coefficient matrix is
[latex]A=\left[\begin{array}{cc}{a}_{1}& {b}_{1}\\ {a}_{2}& {b}_{2}\end{array}\right][/latex]
The variable matrix is
[latex]X=\left[\begin{array}{c}x\\ y\end{array}\right][/latex]
And the constant matrix is
[latex]B=\left[\begin{array}{c}{c}_{1}\\ {c}_{2}\end{array}\right][/latex]
Then [latex]AX=B[/latex] looks like
[latex]\left[\begin{array}{cc}{a}_{1}& {b}_{1}\\ {a}_{2}& {b}_{2}\end{array}\right]\text{ }\left[\begin{array}{c}x\\ y\end{array}\right]=\left[\begin{array}{c}{c}_{1}\\ {c}_{2}\end{array}\right][/latex]
Recall the discussion earlier in this section regarding multiplying a real number by its inverse, [latex]\left({2}^{-1}\right)2=\left(\frac{1}{2}\right)2=1[/latex]. To solve a single linear equation [latex]ax=b[/latex] for [latex]x[/latex], we would simply multiply both sides of the equation by the multiplicative inverse (reciprocal) of [latex]a[/latex]. Thus,
[latex]\begin{align} ax&=b\\ \left(\frac{1}{a}\right)ax&=\left(\frac{1}{a}\right)b\\ \left({a}^{-1}\right)ax&=\left({a}^{-1}\right)b\\ \left[\left({a}^{-1}\right)a\right]x&=\left({a}^{-1}\right)b\\ 1x&=\left({a}^{-1}\right)b\\ x&=\left({a}^{-1}\right)b\end{align}[/latex]
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 [latex]2\times 2[/latex] system and then move on to a [latex]3\times 3[/latex] system.
A General Note: Solving a System of Equations Using the Inverse of a Matrix
Given a system of equations, write the coefficient matrix [latex]A[/latex], the variable matrix [latex]X[/latex], and the constant matrix [latex]B[/latex]. Then
[latex]AX=B[/latex]
Multiply both sides by the inverse of [latex]A[/latex] to obtain the solution.
[latex]\begin{align} \left({A}^{-1}\right)AX&=\left({A}^{-1}\right)B\\ \hfill \left[\left({A}^{-1}\right)A\right]X&=\left({A}^{-1}\right)B\\ \hfill IX&=\left({A}^{-1}\right)B\\ \hfill X&=\left({A}^{-1}\right)B\end{align}[/latex]
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.
[latex]\begin{array}{r}\hfill 3x+8y=5\\ \hfill 4x+11y=7\end{array}[/latex]
Show Solution
Write the system in terms of a coefficient matrix, a variable matrix, and a constant matrix.
[latex]A=\left[\begin{array}{cc}3& 8\\ 4& 11\end{array}\right],X=\left[\begin{array}{c}x\\ y\end{array}\right],B=\left[\begin{array}{c}5\\ 7\end{array}\right][/latex]
Then
[latex]\left[\begin{array}{cc}3& 8\\ 4& 11\end{array}\right]\cdot\left[\begin{array}{c}x\\ y\end{array}\right]=\left[\begin{array}{c}5\\ 7\end{array}\right][/latex]
First, we need to calculate [latex]{A}^{-1}[/latex]. Using the formula to calculate the inverse of a 2 by 2 matrix, we have:
[latex]\begin{array}{l}{A}^{-1}=\frac{1}{ad-bc}\left[\begin{array}{cc}d& -b\\ -c& a\end{array}\right]\hfill \\ \text{ }=\frac{1}{3\left(11\right)-8\left(4\right)}\left[\begin{array}{cc}11& -8\\ -4& 3\end{array}\right]\hfill \\ \text{ }=\frac{1}{1}\left[\begin{array}{cc}11& -8\\ -4& 3\end{array}\right]\hfill \end{array}[/latex]
So,
[latex]{A}^{-1}=\left[\begin{array}{cc}11& -8\\ -4& \text{ }\text{ }3\end{array}\right][/latex]
Now we are ready to solve. Multiply both sides of the equation by [latex]{A}^{-1}[/latex].
[latex]\begin{array}{l}\left({A}^{-1}\right)AX=\left({A}^{-1}\right)B\hfill \\ \left[\begin{array}{rr}\hfill 11& \hfill -8\\ \hfill -4& \hfill 3\end{array}\right]\text{ }\left[\begin{array}{cc}3& 8\\ 4& 11\end{array}\right]\text{ }\left[\begin{array}{c}x\\ y\end{array}\right]=\left[\begin{array}{rr}\hfill 11& \hfill -8\\ \hfill -4& \hfill 3\end{array}\right]\text{ }\left[\begin{array}{c}5\\ 7\end{array}\right]\hfill \\ \left[\begin{array}{cc}1& 0\\ 0& 1\end{array}\right]\text{ }\left[\begin{array}{c}x\\ y\end{array}\right]=\left[\begin{array}{r}\hfill 11\left(5\right)+\left(-8\right)7\\ \hfill -4\left(5\right)+3\left(7\right)\end{array}\right]\hfill \\ \left[\begin{array}{c}x\\ y\end{array}\right]=\left[\begin{array}{r}\hfill -1\\ \hfill 1\end{array}\right]\hfill \end{array}[/latex]
The solution is [latex]\left(-1,1\right)[/latex].
Q & A
Can we solve for [latex]X[/latex] by finding the product [latex]B{A}^{-1}?[/latex]
No, recall that matrix multiplication is not commutative, so [latex]{A}^{-1}B\ne B{A}^{-1}[/latex]. Consider our steps for solving the matrix equation.
[latex]\begin{align} \left({A}^{-1}\right)AX&=\left({A}^{-1}\right)B\\ \left[\left({A}^{-1}\right)A\right]X&=\left({A}^{-1}\right)B\\ IX&=\left({A}^{-1}\right)B\\ X&=\left({A}^{-1}\right)B\end{align}[/latex]
Notice in the first step we multiplied both sides of the equation by [latex]{A}^{-1}[/latex], but the [latex]{A}^{-1}[/latex] was to the left of [latex]A[/latex] on the left side and to the left of [latex]B[/latex] 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.
[latex]\begin{gathered} 5x+15y+56z=35\\ -4x - 11y - 41z=-26\\ -x - 3y - 11z=-7\end{gathered}[/latex]
Show Solution
Write the equation [latex]AX=B[/latex].
[latex]\left[\begin{array}{ccc}5& 15& 56\\ -4& -11& -41\\ -1& -3& -11\end{array}\right]\cdot\left[\begin{array}{c}x\\ y\\ z\end{array}\right]=\left[\begin{array}{r}\hfill 35\\ \hfill -26\\ \hfill -7\end{array}\right][/latex]
First, we will find the inverse of [latex]A[/latex] by augmenting with the identity.
[latex]\left[\left.\begin{array}{rrr}\hfill 5& \hfill 15& \hfill 56\\ \hfill -4& \hfill -11& \hfill -41\\ \hfill -1& \hfill -3& \hfill -11\end{array}\right\rvert\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right][/latex]
Multiply row 1 by [latex]\frac{1}{5}[/latex].
[latex]\left[\left.\begin{array}{ccc}1& 3& \frac{56}{5}\\ -4& -11& -41\\ \hfill-1& -3& -11\end{array}\right\rvert\begin{array}{ccc}\frac{1}{5}& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right][/latex]
Multiply row 1 by 4 and add to row 2.
[latex]\left[\left.\begin{array}{ccc}1& 3& \frac{56}{5}\\ 0& 1& \frac{19}{5}\\ \hfill-1& -3& -11\end{array}\right\rvert\begin{array}{ccc}\frac{1}{5}& 0& 0\\ \frac{4}{5}& 1& 0\\ 0& 0& 1\end{array}\right][/latex]
Add row 1 to row 3.
[latex]\left[\left.\begin{array}{ccc}1& 3& \frac{56}{5}\\ 0& 1& \frac{19}{5}\\ \hfill0& 0& \frac{1}{5}\end{array}\right\rvert\begin{array}{ccc}\frac{1}{5}& 0& 0\\ \frac{4}{5}& 1& 0\\ \frac{1}{5}& 0& 1\end{array}\right][/latex]
Multiply row 2 by −3 and add to row 1.
[latex]\left[\left.\begin{array}{ccc}1& 0& -\frac{1}{5}\\ 0& 1& \frac{19}{5}\\ \hfill0& 0& \frac{1}{5}\end{array}\right\rvert\begin{array}{ccc}-\frac{11}{5}& -3& 0\\ \frac{4}{5}& 1& 0\\ \frac{1}{5}& 0& 1\end{array}\right][/latex]
Multiply row 3 by 5.
[latex]\left[\left.\begin{array}{ccc}1& 0& -\frac{1}{5}\\ 0& 1& \frac{19}{5}\\ \hfill0& 0& 1\end{array}\right\rvert\begin{array}{ccc}-\frac{11}{5}& -3& 0\\ \frac{4}{5}& 1& 0\\ 1& 0& 5\end{array}\right][/latex]
Multiply row 3 by [latex]\frac{1}{5}[/latex] and add to row 1.
[latex]\left[\left.\begin{array}{ccc}1& 0& 0\\ 0& 1& \frac{19}{5}\\ \hfill0& 0& 1\end{array}\right\rvert\begin{array}{ccc}-2& -3& 1\\ \frac{4}{5}& 1& 0\\ 1& 0& 5\end{array}\right][/latex]
Multiply row 3 by [latex]-\frac{19}{5}[/latex] and add to row 2.
[latex]\left[\left.\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\\hfill 0& 0& 1\end{array}\right\rvert\begin{array}{ccc}-2& -3& 1\\ -3& 1& -19\\ 1& 0& 5\end{array}\right][/latex]
So,
[latex]{A}^{-1}=\left[\begin{array}{ccc}-2& -3& 1\\ -3& 1& -19\\ 1& 0& 5\end{array}\right][/latex]
Multiply both sides of the equation by [latex]{A}^{-1}[/latex]. We want [latex]{A}^{-1}AX={A}^{-1}B:[/latex]
[latex]\left[\begin{array}{rrr}\hfill -2& \hfill -3& \hfill 1\\ \hfill -3& \hfill 1& \hfill -19\\ \hfill 1& \hfill 0& \hfill 5\end{array}\right]\cdot\left[\begin{array}{rrr}\hfill 5& \hfill 15& \hfill 56\\ \hfill -4& \hfill -11& \hfill -41\\ \hfill -1& \hfill -3& \hfill -11\end{array}\right]\cdot\left[\begin{array}{c}x\\ y\\ z\end{array}\right]=\left[\begin{array}{rrr}\hfill -2& \hfill -3& \hfill 1\\ \hfill -3& \hfill 1& \hfill -19\\ \hfill 1& \hfill 0& \hfill 5\end{array}\right]\cdot\left[\begin{array}{r}\hfill 35\\ \hfill -26\\ \hfill -7\end{array}\right][/latex]
Thus,
[latex]{A}^{-1}B=\left[\begin{array}{r}\hfill -70+78 - 7\\ \hfill -105 - 26+133\\ \hfill 35+0 - 35\end{array}\right]=\left[\begin{array}{c}1\\ 2\\ 0\end{array}\right][/latex]
The solution is [latex]\left(1,2,0\right)[/latex].
Try It
Solve the system using the inverse of the coefficient matrix.
[latex]\begin{align}2x - 17y+11z&=0 \\ -x+11y - 7z&=8 \\ 3y - 2z&=-2 \end{align}[/latex]
Show Solution
[latex]X=\left[\begin{array}{c}4\\ 38\\ 58\end{array}\right][/latex]
How To: Given a system of equations, solve with matrix inverses using a calculator.
- Save the coefficient matrix and the constant matrix as matrix variables [latex]\left[A\right][/latex] and [latex]\left[B\right][/latex].
- Enter the multiplication into the calculator, calling up each matrix variable as needed.
- 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
[latex]\begin{array}{l}2x+3y+z=32\hfill \\ 3x+3y+z=-27\hfill \\ 2x+4y+z=-2\hfill \end{array}[/latex]
Show Solution
On the matrix page of the calculator, enter the coefficient matrix as the matrix variable [latex]\left[A\right][/latex], and enter the constant matrix as the matrix variable [latex]\left[B\right][/latex].
[latex]\left[A\right]=\left[\begin{array}{ccc}2& 3& 1\\ 3& 3& 1\\ 2& 4& 1\end{array}\right],\text{ }\left[B\right]=\left[\begin{array}{c}32\\ -27\\ -2\end{array}\right][/latex]
On the home screen of the calculator, type in the multiplication to solve for [latex]X[/latex], calling up each matrix variable as needed.
[latex]{\left[A\right]}^{-1}\times \left[B\right][/latex]
Evaluate the expression.
[latex]\left[\begin{array}{c}-59\\ -34\\ 252\end{array}\right][/latex]
Key Equations
Identity matrix for a [latex]2\text{}\times \text{}2[/latex] matrix |
[latex]{I}_{2}=\left[\begin{array}{cc}1& 0\\ 0& 1\end{array}\right][/latex] |
Identity matrix for a [latex]\text{3}\text{}\times \text{}3[/latex] matrix |
[latex]{I}_{3}=\left[\begin{array}{ccc}1& 0& 0\\ 0& 1& 0\\ 0& 0& 1\end{array}\right][/latex] |
Multiplicative inverse of a [latex]2\text{}\times \text{}2[/latex] matrix |
[latex]{A}^{-1}=\frac{1}{ad-bc}\left[\begin{array}{cc}d& -b\\ -c& a\end{array}\right],\text{ where }ad-bc\ne 0[/latex] |
Key Concepts
- An identity matrix has the property [latex]AI=IA=A[/latex].
- An invertible matrix has the property [latex]A{A}^{-1}={A}^{-1}A=I[/latex].
- Use matrix multiplication and the identity to find the inverse of a [latex]2\times 2[/latex] 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 [latex]3\times 3[/latex] 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 [latex]AX=B[/latex], and multiply both sides by the inverse of [latex]A:{A}^{-1}AX={A}^{-1}B[/latex].
- We can also use a calculator to solve a system of equations with matrix inverses.
Glossary
- identity matrix
- a square matrix containing ones down the main diagonal and zeros everywhere else; it acts as a 1 in matrix algebra
- multiplicative inverse of a matrix
- a matrix that, when multiplied by the original, equals the identity matrix
Candela Citations
CC licensed content, Specific attribution