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 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 system and then move on to a system.
A General Note: 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 7: Solving a 2 × 2 System Using the Inverse of a Matrix
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 2 by 2 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 8: Solving a 3 × 3 System Using the Inverse of a Matrix
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 4 and add to row 2.
Add row 1 to row 3.
Multiply row 2 by −3 and add to row 1.
Multiply row 3 by 5.
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 .
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 9: Using a Calculator to Solve a System of Equations with Matrix Inverses
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.
Candela Citations
- Precalculus. Authored by: OpenStax College. Provided by: OpenStax. Located at: http://cnx.org/contents/fd53eae1-fa23-47c7-bb1b-972349835c3c@5.175:1/Preface. License: CC BY: Attribution