## Solving a System Using an Inverse

### Learning Outcomes

• Solve a 2×2 system using an inverse.
• Solve a 3×3 systems using an inverse.
• Solve a system with a calculator.

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.

$\begin{array}{c}{a}_{1}x+{b}_{1}y={c}_{1}\\ {a}_{2}x+{b}_{2}y={c}_{2}\end{array}$

From this system, the coefficient matrix is

$A=\left[\begin{array}{cc}{a}_{1}& {b}_{1}\\ {a}_{2}& {b}_{2}\end{array}\right]$

The variable matrix is

$X=\left[\begin{array}{c}x\\ y\end{array}\right]$

And the constant matrix is

$B=\left[\begin{array}{c}{c}_{1}\\ {c}_{2}\end{array}\right]$

Then $AX=B$ looks like

$\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]$

Recall the discussion earlier in this section regarding multiplying a real number by its inverse, $\left({2}^{-1}\right)2=\left(\frac{1}{2}\right)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,

$\begin{array}{c}\text{ }ax=b\\ \text{ }\left(\frac{1}{a}\right)ax=\left(\frac{1}{a}\right)b\\ \left({a}^{-1}\text{ }\right)ax=\left({a}^{-1}\right)b\\ \left[\left({a}^{-1}\right)a\right]x=\left({a}^{-1}\right)b\\ \text{ }1x=\left({a}^{-1}\right)b\\ \text{ }x=\left({a}^{-1}\right)b\end{array}$

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 $2\times 2$ system and then move on to a $3\times 3$ system.

### A General Note: 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.

$\begin{array}{r}\hfill \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{array}$

### 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: Solving a 2 × 2 System Using the Inverse of a Matrix

Solve the given system of equations using the inverse of a matrix.

$\begin{array}{r}\hfill 3x+8y=5\\ \hfill 4x+11y=7\end{array}$

### Q & A

Can we solve for $X$ by finding the product $B{A}^{-1}?$

No, recall that matrix multiplication is not commutative, so ${A}^{-1}B\ne B{A}^{-1}$. Consider our steps for solving the matrix equation.

$\begin{array}{r}\hfill \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{array}$

Notice in the first step we multiplied both sides of the equation by ${A}^{-1}$, but the ${A}^{-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: Solving a 3 × 3 System Using the Inverse of a Matrix

Solve the following system using the inverse of a matrix.

$\begin{array}{r}\hfill 5x+15y+56z=35\\ \hfill -4x - 11y - 41z=-26\\ \hfill -x - 3y - 11z=-7\end{array}$

### Try It

Solve the system using the inverse of the coefficient matrix.

$\begin{array}{l}\text{ }2x - 17y+11z=0\hfill \\ \text{ }-x+11y - 7z=8\hfill \\ \text{ }3y - 2z=-2\hfill \end{array}$

### 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 $\left[A\right]$ and $\left[B\right]$.
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: Using a Calculator to Solve a System of Equations with Matrix Inverses

Solve the system of equations with matrix inverses using a calculator

$\begin{array}{l}2x+3y+z=32\hfill \\ 3x+3y+z=-27\hfill \\ 2x+4y+z=-2\hfill \end{array}$

## Contribute!

Did you have an idea for improving this content? We’d love your input.