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 , and the second bond has an annual return of . In order to receive an 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 is , and . For example, and . The multiplicative inverse of a matrix is similar in concept, except that the product of matrix and its inverse 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 , where represents the dimension of the matrix. Observe the following equations.
The identity matrix acts as a in matrix algebra. For example, .
A matrix that has a multiplicative inverse has the properties
A matrix that has a multiplicative inverse is called an invertible matrix. Only a square matrix may have a multiplicative inverse, as the reversibility, , is a requirement. Not all square matrices have an inverse, but if is invertible, then is unique. We will look at two methods for finding the inverse of a matrix and a third method that can be used on both and matrices.
The Identity Matrix and Multiplicative Inverse. The identity matrix, , is a square matrix containing ones down the main diagonal and zeros everywhere else.
If is an matrix and is an matrix such that , then , the multiplicative inverse of a matrix .
Example. Given matrix , show that .
Solution. Use matrix multiplication to show that the product of and the identity is equal to the product of the identity and .
How To: given two matrices, show that one is the multiplicative inverse of the other.
- Given matrix of order and matrix of order , multiply .
- If , then find the product . If , then and .
Example. Show that the given matrices are multiplicative inverses of each other.
Solution. Multiply and . If both products equal the identity, then the two matrices are inverses of each other.
and are inverses of each other.
Areandmultiplicative inverses of each other?
Compute the product; if it equals the identity matrix, computetoo and check that it also equals the identity.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.
Solution. For this method, we multiply by a matrix containing unknown constants and set it equal to the identity.
Find the product of the two matrices on the left side of the equal sign.
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, . Set the entry in row 2, column 1 of the new matrix equal to the corresponding entry of the identity, which is .
Using row operations, multiply and add as follows: . Add the equations, and solve for .
Back-substitute to solve for .
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, . Set the entry in row 2, column 2 equal to the corresponding entry of the identity.
Using row operations, multiply and add as follows: . Add the two equations and solve for .
Once more, back-substitute and solve for .
Finding the Multiplicative Inverse by Augmenting with the Identity
Another way to find the multiplicative inverse is by augmenting with the identity. When matrix is transformed into , the augmented matrix transforms into .
For example, given
augment with the identity
Perform row operations with the goal of turning into the identity.
Switch row 1 and row 2.
Multiply row 2 by and add to row 1.
Multiply row 1 by and add to row 2.
Add row 2 to row 1.
Multiply row 2 by .
The matrix we have found is .
Finding the Multiplicative Inverse of Matrices Using a Formula
When we need to find the multiplicative inverse of a matrix, we can use a special formula instead of using matrix multiplication or augmenting with the identity.
If is a matrix, such as
the multiplicative inverse of is given by the formula
where . If , then has no inverse.
Example. Use the formula to find the multiplicative inverse of
Solution. Using the formula, we have
Analysis. We can check that our formula works by using one of the other methods to calculate the inverse. Let’s augment with the identity.
Perform row operations with the goal of turning into the identity.
Multiply row 1 by and add to row 2.
Multiply row 2 by and add to row 1.
So, we have verified our original solution.
Use the formula to find the multiplicative inverse of, then verify your answer by augmenting with the identity matrix. Enter the second row ofas a comma-separated list of two numbers, left to right.
Computefirst, then apply.Example. Find the inverse, if it exists, of the given matrix.
Solution. We will use the method of augmenting with the identity.
Switch row 1 and row 2.
Multiply row 1 by and add it to row 2.
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 rather than , 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 ; the conclusion — , so has no inverse — is unaffected and matches the source’s own final sentence.)
Finding the Multiplicative Inverse of Matrices
Unfortunately, we do not have a formula similar to the one for a matrix to find the inverse of a matrix. Instead, we will augment the original matrix with the identity matrix and use row operations to obtain the inverse.
Given a matrix
augment with the identity matrix
To begin, we write the augmented matrix with the identity on the right and 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 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 and .
Example. Given the matrix , find the inverse.
Solution. Augment with the identity matrix, and then begin row operations until the identity matrix replaces . The matrix on the right will be the inverse of .
Thus,
Analysis. To prove that , let’s multiply the two matrices together to see if the product equals the identity, if and .
Find the multiplicative inverse of. Enter the first row ofas a comma-separated list of three numbers, left to right.
Augmentwith the identity matrix and use row operations until the identity appears on the left; the matrix that appears on the right is.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: is the matrix representing the variables of the system, and 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
To solve a system of linear equations using an inverse matrix, let be the coefficient matrix, let be the variable matrix, and let be the constant matrix. Thus, we want to solve a system . For example, look at the following system of equations.
From this system, the coefficient matrix is
The variable matrix is
And the constant matrix is
Then looks like
Recall the discussion earlier in this section regarding multiplying a real number by its inverse, . To solve a single linear equation for , we would simply multiply both sides of the equation by the multiplicative inverse (reciprocal) of . Thus,
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 system and then move on to a system.
Solving a System of Equations Using the Inverse of a Matrix. Given a system of equations, write the coefficient matrix , the variable matrix , and the constant matrix . Then
Multiply both sides by the inverse of to obtain the solution.
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.
Solution. Write the system in terms of a coefficient matrix, a variable matrix, and a constant matrix.
Then
First, we need to calculate . Using the formula to calculate the inverse of a matrix, we have:
So,
Now we are ready to solve. Multiply both sides of the equation by .
The solution is .
Q&A. Can we solve for by finding the product ?
No, recall that matrix multiplication is not commutative, so . Consider our steps for solving the matrix equation.
Notice in the first step we multiplied both sides of the equation by , but the was to the left of on the left side and to the left of on the right side. Because matrix multiplication is not commutative, order matters.
Example. Solve the following system using the inverse of a matrix.
Solution. Write the equation .
First, we will find the inverse of by augmenting with the identity.
Multiply row 1 by .
Multiply row 1 by and add to row 2.
Add row 1 to row 3.
Multiply row 2 by and add to row 1.
Multiply row 3 by .
Multiply row 3 by and add to row 1.
Multiply row 3 by and add to row 2.
So,
Multiply both sides of the equation by . We want :
Thus,
The solution is .
Solve the systemusing the inverse of the coefficient matrix. Enter the solution as an ordered triple.
Write the system as, find(the same coefficient matrix you inverted in the previous problem), then compute.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 and .
- 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. Solve the system of equations with matrix inverses using a calculator
Solution. On the matrix page of the calculator, enter the coefficient matrix as the matrix variable , and enter the constant matrix as the matrix variable .
On the home screen of the calculator, type in the multiplication to solve for , calling up each matrix variable as needed.
Evaluate the expression.
Key equations
| Identity matrix for a matrix | |
|---|---|
| Identity matrix for a matrix | |
| Multiplicative inverse of a matrix | , where |
Key concepts
- An identity matrix has the property .
- An invertible matrix has the property .
- Use matrix multiplication and the identity to find the inverse of a 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 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 , and multiply both sides by the inverse of : .
- We can also use a calculator to solve a system of equations with matrix inverses.
Practice
Find the inverse of a matrix
Can amatrix with zeros on its diagonal have a multiplicative inverse?
Test the formulaon a specific matrix with— it does not forceby itself.Find the multiplicative inverse of, if it exists. Enter the first row of the inverse as a comma-separated list of two numbers, left to right.
Compute, then apply.Find the multiplicative inverse of, if it exists. Enter the first row of the inverse as a comma-separated list of three numbers, left to right.
Augment the matrix with the identity and use row operations until the identity appears on the left; the matrix that appears on the right is the inverse.Solve a system of linear equations using an inverse matrix
Solve the systemusing the inverse of the coefficient matrix. Enter the solution as an ordered pair.
Write the system as, findwith theinverse formula, then compute.Solve the systemusing the inverse of the coefficient matrix. Enter the solution as an ordered pair.
Write the system as, findwith theinverse formula, then compute.Solve the systemusing the inverse of the coefficient matrix. Enter the solution as an ordered triple.
Write the system as, findby augmenting with the identity matrix, then compute.Solve the systemusing the inverse of the coefficient matrix. Enter the solution as an ordered triple.
Write the system as, findby augmenting with the identity matrix, then compute.Three roommates shared a package ofice cream bars. Micah ate twice as many bars as Joe, and Albert ate three fewer bars than Micah. Letting,, andbe the numbers of bars Micah, Joe, and Albert ate, solve the systemusing the inverse of the coefficient matrix. Enter the solution as an ordered triple.
Write the system aswith, find, then compute.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 and 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. , is not required). Every “show that and 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 , 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” () prints its “switch row 1 and row 2” step and the augmented matrices that follow with an internal arithmetic inconsistency (row 1 becomes rather than the correct swap , 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 ) is unaffected and is the source’s own final sentence.