From the free course College Algebra on Lykke

7.7 Solving Systems with Inverses

Key concepts: Identity matrices · Multiplicative inverses of matrices · Matrix multiplication · Solving systems of linear equations with inverse matrices · Augmented matrices · Row reduction · The 2×2 matrix inverse formula · Conditions for a matrix to be invertible · Using unknown constants to find an inverse · Using a calculator for matrix operations

By the end of this section the student can: Find the inverse of a matrix; Solve a system of linear equations using an inverse matrix

7.7 Solving Systems with Inverses

A matrix inverse reverses matrix multiplication in the same way that a reciprocal reverses multiplication by a nonzero number: multiplying a number by its reciprocal gives $1$, while multiplying a matrix by its inverse gives an identity matrix. This idea turns a system of linear equations into one matrix multiplication.

Identity Matrices

The identity matrix is the matrix version of the number $1$. The identity matrix of size $n$, written $I_n$, is a square matrix with ones on the main diagonal and zeros elsewhere.

$$ I_2= \begin{bmatrix} 1&0\ 0&1 \end{bmatrix}, \qquad I_3= \begin{bmatrix} 1&0&0\ 0&1&0\ 0&0&1 \end{bmatrix} $$

When matrix dimensions are compatible, multiplying by the identity matrix does not change a matrix:

$$ AI_n=A \qquad\text{and}\qquad I_nA=A. $$

The identity matrix must have the same number of rows and columns as the square matrix being multiplied.

Multiplicative Inverses of Matrices

A square matrix $B$ is the multiplicative inverse of a square matrix $A$ when both products equal the identity matrix:

$$ AB=I \qquad\text{and}\qquad BA=I. $$

The inverse of $A$ is written $A^{-1}$. Thus,

$$ AA^{-1}=I \qquad\text{and}\qquad A^{-1}A=I. $$

A common misconception is that checking only one product is always enough. To verify that two matrices are inverses, compute both products and show that each equals the appropriate identity matrix. For square matrices of the same size, both products must produce the identity.

Verifying an Inverse

Verify that

$$ A= \begin{bmatrix} 1&-2\ 2&-3 \end{bmatrix} \qquad\text{and}\qquad B= \begin{bmatrix} -3&2\ -2&1 \end{bmatrix} $$

are inverses.

First compute $AB$:

$$ AB= \begin{bmatrix} 1&-2\ 2&-3 \end{bmatrix} \begin{bmatrix} -3&2\ -2&1 \end{bmatrix} $$

Multiply each row of the first matrix by each column of the second:

$$ AB= \begin{bmatrix} (1)(-3)+(-2)(-2)&(1)(2)+(-2)(1)\ (2)(-3)+(-3)(-2)&(2)(2)+(-3)(1) \end{bmatrix} $$

$$ AB= \begin{bmatrix} -3+4&2-2\ -6+6&4-3 \end{bmatrix}

\begin{bmatrix} 1&0\ 0&1 \end{bmatrix} =I_2. $$

Now compute $BA$:

$$ BA= \begin{bmatrix} -3&2\ -2&1 \end{bmatrix} \begin{bmatrix} 1&-2\ 2&-3 \end{bmatrix} $$

$$ BA= \begin{bmatrix} (-3)(1)+(2)(2)&(-3)(-2)+(2)(-3)\ (-2)(1)+(1)(2)&(-2)(-2)+(1)(-3) \end{bmatrix} $$

$$ BA= \begin{bmatrix} -3+4&6-6\ -2+2&4-3 \end{bmatrix}

\begin{bmatrix} 1&0\ 0&1 \end{bmatrix} =I_2. $$

Therefore, $B=A^{-1}$.

Matrix Multiplication and Dimensions

Matrix multiplication is possible only when the number of columns in the first matrix equals the number of rows in the second matrix. If $A$ has dimensions $m\times n$ and $B$ has dimensions $n\times p$, then the product $AB$ exists and has dimensions $m\times p$.

For example, a $2\times3$ matrix can multiply a $3\times1$ matrix:

$$ (2\times3)(3\times1)=(2\times1). $$

However, a $2\times3$ matrix cannot multiply another $2\times3$ matrix because the inner dimensions $3$ and $2$ do not match.

Matrix multiplication is also generally not commutative:

$$ AB\ne BA. $$

That is why inverse verification requires attention to the order of the factors.

Finding an Inverse by Matrix Multiplication

One method for finding $A^{-1}$ is to multiply $A$ by a matrix of unknown constants and require the result to equal the identity matrix. For a $2\times2$ matrix, let

$$ A^{-1}= \begin{bmatrix} a&b\ c&d \end{bmatrix}. $$

Then solve the resulting equations for $a$, $b$, $c$, and $d$.

Worked Example: Unknown Constants

Find the inverse of

$$ A= \begin{bmatrix} 1&-2\ 2&-3 \end{bmatrix} $$

by matrix multiplication.

Let

Require $AA^{-1}=I_2$:

$$ \begin{bmatrix} 1&-2\ 2&-3 \end{bmatrix} \begin{bmatrix} a&b\ c&d \end{bmatrix}

\begin{bmatrix} 1&0\ 0&1 \end{bmatrix}. $$

Multiply the matrices:

$$ \begin{bmatrix} a-2c&b-2d\ 2a-3c&2b-3d \end{bmatrix}

\begin{bmatrix} 1&0\ 0&1 \end{bmatrix}. $$

Equating corresponding entries gives two independent systems:

$$ a-2c=1, \qquad 2a-3c=0, $$

and

$$ b-2d=0, \qquad 2b-3d=1. $$

Solve for $a$ and $c$. Multiply the first equation by $2$:

$$ 2a-4c=2. $$

Subtract the second equation:

$$ (2a-4c)-(2a-3c)=2-0, $$

$$ -c=2, $$

$$ c=-2. $$

Substitute into $a-2c=1$:

$$ a-2(-2)=1, $$

$$ a+4=1, $$

$$ a=-3. $$

Solve for $b$ and $d$. From $b-2d=0$,

$$ b=2d. $$

Substitute into $2b-3d=1$:

$$ 2(2d)-3d=1, $$

$$ 4d-3d=1, $$

$$ d=1. $$

Then

$$ b=2(1)=2. $$

Therefore,

$$ A^{-1}= \begin{bmatrix} -3&2\ -2&1 \end{bmatrix}. $$

This method works, but it creates several equations. Row reduction provides a more organized method.

Finding an Inverse with an Augmented Matrix

The second method forms the augmented matrix

$$ [A\mid I]. $$

The goal is to use elementary row operations to transform the left side, $A$, into the identity matrix:

$$ [A\mid I]\longrightarrow[I\mid A^{-1}]. $$

The row operations applied to the left side are applied simultaneously to the right side. This method is the matrix-inverse version of the row-reduction process used for solving systems.

Worked Example: The Augmented-Matrix Method

Find the inverse of

Start with $[A\mid I_2]$:

$$ \left[ \begin{array}{cc|cc} 1&-2&1&0\ 2&-3&0&1 \end{array} \right]. $$

Use the row operation $R_2\leftarrow R_2-2R_1$:

$$ \left[ \begin{array}{cc|cc} 1&-2&1&0\ 2&-3&0&1 \end{array} \right] \longrightarrow \left[ \begin{array}{cc|cc} 1&-2&1&0\ 0&1&-2&1 \end{array} \right]. $$

Now use $R_1\leftarrow R_1+2R_2$:

The left side is now $I_2$, so the right side is the inverse:

For a larger matrix, the same procedure applies. For example, begin with a $3\times3$ matrix $A$ by writing

$$ \left[ \begin{array}{ccc|ccc} a_{11}&a_{12}&a_{13}&1&0&0\ a_{21}&a_{22}&a_{23}&0&1&0\ a_{31}&a_{32}&a_{33}&0&0&1 \end{array} \right]. $$

Continue row reduction until the left side becomes $I_3$. If this succeeds, the right side is $A^{-1}$. If the left side produces a row of zeros before becoming the identity matrix, then $A$ has no inverse.

The $2\times2$ Inverse Formula

For

$$ A= \begin{bmatrix} a&b\ c&d \end{bmatrix}, $$

the determinant is

$$ \det(A)=ad-bc. $$

If $ad-bc\ne0$, then

$$ A^{-1}

\frac{1}{ad-bc} \begin{bmatrix} d&-b\ -c&a \end{bmatrix}. $$

A matrix has an inverse only if it is square and its determinant is nonzero.

Worked Example: Applying the Formula

For

calculate the determinant:

$$ ad-bc=(1)(-3)-(-2)(2). $$

$$ ad-bc=-3+4=1. $$

Because the determinant is nonzero,

$$ A^{-1}

\frac{1}{1} \begin{bmatrix} -3&-(-2)\ -2&1 \end{bmatrix}

\begin{bmatrix} -3&2\ -2&1 \end{bmatrix}. $$

The determinant test is essential: if $ad-bc=0$, division by the determinant is impossible, and the matrix has no inverse.

Solving a System Using an Inverse Matrix

A system with the same number of equations and variables can be written as

$$ AX=B, $$

where $A$ is the coefficient matrix, $X$ is the variable matrix, and $B$ is the constant matrix. For example,

$$ \begin{cases} x-2y=5\ 2x-3y=7 \end{cases} $$

becomes

$$ \begin{bmatrix} 1&-2\ 2&-3 \end{bmatrix} \begin{bmatrix} x\ y \end{bmatrix}

\begin{bmatrix} 5\ 7 \end{bmatrix}. $$

If $A$ has an inverse, multiply both sides on the left by $A^{-1}$:

$$ A^{-1}AX=A^{-1}B. $$

Since

$$ A^{-1}A=I, $$

we obtain

$$ IX=A^{-1}B, $$

and therefore

$$ X=A^{-1}B. $$

Worked Example: Solving $AX=B$

Use

to solve

Compute $X=A^{-1}B$:

$$ \begin{bmatrix} x\ y \end{bmatrix}

\begin{bmatrix} -3&2\ -2&1 \end{bmatrix} \begin{bmatrix} 5\ 7 \end{bmatrix}. $$

Multiply:

$$ \begin{bmatrix} x\ y \end{bmatrix}

\begin{bmatrix} (-3)(5)+(2)(7)\ (-2)(5)+(1)(7) \end{bmatrix}

\begin{bmatrix} -15+14\ -10+7 \end{bmatrix}

\begin{bmatrix} -1\ -3 \end{bmatrix}. $$

Thus,

$$ x=-1, \qquad y=-3. $$

Check in the original equations:

$$ x-2y=-1-2(-3)=-1+6=5, $$

$$ 2x-3y=2(-1)-3(-3)=-2+9=7. $$

The solution is

$$ \boxed{(x,y)=(-1,-3)}. $$

Using a Calculator

A calculator can enter the coefficient matrix $A$, enter the constant matrix $B$, find $A^{-1}$, and evaluate the product

$$ A^{-1}B. $$

The essential mathematical procedure remains the same: enter the matrices with correct dimensions, calculate the inverse of the coefficient matrix, and multiply that inverse by the constants. A calculator can perform the arithmetic, but it cannot fix a matrix entered with incorrect entries or dimensions.

Practice Problems

  1. Find the inverse of

$$ \begin{bmatrix} 2&1\ 1&1 \end{bmatrix} $$

using the $2\times2$ inverse formula.

  1. Use an inverse matrix to solve

$$ \begin{cases} 2x+y=7\ x+y=5 \end{cases}. $$

  1. Determine whether

$$ \begin{bmatrix} 1&2\ 2&4 \end{bmatrix} $$

has an inverse.

Answers

$$ \det(A)=(2)(1)-(1)(1)=1, $$

so

$$ A^{-1}= \begin{bmatrix} 1&-1\ -1&2 \end{bmatrix}. $$

$$ A^{-1}= \begin{bmatrix} 1&-1\ -1&2 \end{bmatrix}, \qquad B= \begin{bmatrix} 7\ 5 \end{bmatrix}. $$

Therefore,

$$ X=A^{-1}B

\begin{bmatrix} 1&-1\ -1&2 \end{bmatrix} \begin{bmatrix} 7\ 5 \end{bmatrix}

\begin{bmatrix} 2\ 3 \end{bmatrix}, $$

so

$$ \boxed{x=2,\ y=3}. $$

$$ \det(A)=(1)(4)-(2)(2)=4-4=0. $$

The matrix has no inverse.

Content adapted from OpenStax College Algebra 2e by Jay Abramson et al., licensed CC BY 4.0.

Source Materials

Study College Algebra on Lykke

This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.

Add the free extensionSign in to open every section

All sections of College Algebra · Browse more course pages

7.7 Solving Systems with Inverses — College Algebra | Lykke