5. Inverses and Determinants

Computing Inverses

Computing Inverses

students, imagine trying to “undo” a process step by step. If you multiply by $2$, the undo step is dividing by $2$. If you rotate a phone screen, the undo step is rotating it back. In linear algebra, the same idea shows up with matrices 🔄. A matrix inverse is the matrix that reverses the effect of another matrix.

In this lesson, you will learn how to compute inverses, when they exist, and why they matter. By the end, you should be able to:

  • explain what a matrix inverse means and the key vocabulary,
  • compute inverses of $2 \times 2$ matrices and understand how larger cases are handled,
  • connect inverses to determinants and the bigger topic of Inverses and Determinants,
  • use examples to check whether a matrix really has an inverse.

What an inverse matrix means

For a square matrix $A$, its inverse is written as $A^{-1}$. The defining property is

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

where $I$ is the identity matrix. The identity matrix works like the number $1$ in multiplication: multiplying by it does not change anything.

This idea is important because matrices often represent transformations. For example, a matrix might stretch, shear, rotate, or reflect a shape. If the transformation can be undone exactly, then the matrix has an inverse. If it cannot be undone, no inverse exists.

A matrix with an inverse is called invertible or nonsingular. A matrix without an inverse is called singular.

Here is the key connection to real life: if a map tells you how to convert one set of coordinates into another, the inverse map takes you back 🗺️. That is the same logic used with matrices.

When an inverse exists

Not every square matrix has an inverse. A necessary and sufficient test is that the determinant is not zero:

$$\det(A) \neq 0$$

If

$$\det(A)=0,$$

then the matrix is singular and has no inverse.

Why does this happen? A determinant measures whether a transformation “collapses” space. If a matrix squashes a whole line or plane into a lower-dimensional shape, then information is lost. Once information is lost, there is no unique way to reverse the transformation.

For example, suppose two different input vectors end up at the same output vector after multiplying by a matrix. Then the reverse process would not know which original vector to recover. That means an inverse cannot exist.

So when computing inverses, it is smart to check the determinant first. If the determinant is $0$, stop right there. If it is not $0$, then an inverse exists and can be computed.

Computing the inverse of a $2 \times 2$ matrix

The easiest inverse formula is for a $2 \times 2$ matrix. Suppose

$$A=\begin{pmatrix}a & b\\ c & d\end{pmatrix}.$$

Its determinant is

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

If $ad-bc \neq 0$, then the inverse is

$$A^{-1}=\frac{1}{ad-bc}\begin{pmatrix}d & -b\\ -c & a\end{pmatrix}.$$

This formula is one of the most useful tools in the topic of inverses and determinants.

Example 1

Let

$$A=\begin{pmatrix}2 & 1\\ 5 & 3\end{pmatrix}.$$

First compute the determinant:

$$\det(A)=2\cdot 3-1\cdot 5=6-5=1.$$

Since $\det(A)\neq 0$, the inverse exists. Use the formula:

$$A^{-1}=\frac{1}{1}\begin{pmatrix}3 & -1\\ -5 & 2\end{pmatrix}=\begin{pmatrix}3 & -1\\ -5 & 2\end{pmatrix}.$$

To check, multiply:

$$\begin{pmatrix}2 & 1\\ 5 & 3\end{pmatrix}\begin{pmatrix}3 & -1\\ -5 & 2\end{pmatrix}=\begin{pmatrix}1 & 0\\ 0 & 1\end{pmatrix}=I.$$

That confirms the answer ✅.

Example 2

Let

$$B=\begin{pmatrix}4 & 2\\ 6 & 3\end{pmatrix}.$$

Compute the determinant:

$$\det(B)=4\cdot 3-2\cdot 6=12-12=0.$$

Because $\det(B)=0$, the matrix has no inverse. Even though it is square, it is singular.

This example shows why determinants matter so much. A square matrix is not automatically invertible.

How to compute inverses with row operations

For larger matrices, the formula for a $2 \times 2$ matrix is no longer enough. A standard method is row reduction. The goal is to transform the matrix into the identity matrix while performing the same row operations on $I$. If this works, the matrix on the right becomes the inverse.

Start with the augmented matrix

$$\left[A\mid I\right].$$

Then use elementary row operations to turn the left side into $I$. If you succeed, the right side becomes $A^{-1}$.

The allowed row operations are:

  • swap two rows,
  • multiply a row by a nonzero number,
  • add a multiple of one row to another row.

These operations do not change whether the system is equivalent; they simply rewrite it in a cleaner form.

Example 3

Find the inverse of

$$A=\begin{pmatrix}1 & 2\\ 3 & 5\end{pmatrix}$$

using row operations.

Set up the augmented matrix:

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

Now eliminate the $3$ below the first pivot:

$$R_2 \to R_2-3R_1$$

which gives

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

Make the second pivot $1$ by multiplying row $2$ by $-1$:

$$R_2 \to -R_2$$

so

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

Now remove the $2$ above that pivot:

$$R_1 \to R_1-2R_2$$

giving

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

The left side is now $I$, so the inverse is

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

Check it if you want by multiplying $A$ and $A^{-1}$ to get $I$.

Why inverse computation matters

Computing inverses is not just a technical skill. It helps solve matrix equations. If

$$AX=B,$$

and $A$ is invertible, then multiplying both sides by $A^{-1}$ gives

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

This is similar to solving ordinary equations. If $3x=12$, you divide by $3$ to get $x=4$. For matrices, multiplying by the inverse plays the same role.

Inverses are also used in systems of linear equations, computer graphics, engineering models, and data transformations. In each case, the inverse helps reverse or untangle a process.

For example, imagine a game that transforms a character’s coordinates before rendering. If the game engine needs to map the screen location back to the original world location, it uses the inverse transformation 🎮.

Connection to determinants and the bigger topic

The topic of Inverses and Determinants is tightly linked because determinants tell you whether an inverse exists. In practice, the determinant acts as a quick screening tool.

  • If $\det(A)\neq 0$, then $A$ is invertible.
  • If $\det(A)=0$, then $A$ is singular and has no inverse.

This connection also helps explain geometry. A determinant describes scale and orientation changes. If the determinant is zero, the transformation destroys dimension, so it cannot be reversed.

There is also a useful pattern for $2 \times 2$ matrices: the inverse formula uses the determinant directly in the denominator. That is why you must never divide by zero. The determinant is the number that tells you whether the inverse formula is valid.

Common mistakes to avoid

When computing inverses, students often make predictable errors. students, watch for these:

  • forgetting that only square matrices can have inverses,
  • trying to invert a matrix with $\det(A)=0$,
  • mixing up the order of entries in the $2 \times 2$ inverse formula,
  • not applying the same row operations to both sides of the augmented matrix,
  • stopping before the left side becomes exactly $I$.

A good habit is to check your result by multiplication. If

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

then your inverse is correct.

Conclusion

Computing inverses is one of the central skills in linear algebra. The idea is simple: an inverse undoes a matrix transformation. For a $2 \times 2$ matrix, you can use a direct formula when the determinant is nonzero. For larger matrices, row reduction gives a systematic method. Determinants decide whether an inverse exists, so they are a key part of the story.

students, if you remember only one idea, remember this: a matrix is invertible exactly when it has enough information to be fully reversed. That is why inverses and determinants belong together in the same topic ⭐.

Study Notes

  • A matrix inverse $A^{-1}$ satisfies $AA^{-1}=I$ and $A^{-1}A=I$.
  • Only square matrices can have inverses.
  • A matrix is invertible if and only if $\det(A)\neq 0$.
  • If $\det(A)=0$, the matrix is singular and has no inverse.
  • For $A=\begin{pmatrix}a & b\\ c & d\end{pmatrix}$, the inverse is

$$A^{-1}=\frac{1}{ad-bc}\begin{pmatrix}d & -b\\ -c & a\end{pmatrix}$$

when $ad-bc\neq 0$.

  • To compute inverses of larger matrices, use row reduction on $\left[A\mid I\right]$.
  • If the left side row-reduces to $I$, the right side becomes $A^{-1}$.
  • Checking by multiplication is a reliable way to verify an inverse.
  • Inverses are useful for solving matrix equations like $AX=B$ by writing $X=A^{-1}B$.
  • Determinants and inverses are connected because the determinant tells whether an inverse exists.

Practice Quiz

5 questions to test your understanding

Computing Inverses — Linear Algebra | A-Warded