Home / Articles / Linear Algebra
Linear Algebra · 4 min read

Matrix Inverse: Methods and Applications

Learn how to find a matrix inverse using the 2x2 formula, the adjoint method and Gauss-Jordan elimination, with worked examples and real uses.

The inverse of a matrix plays the same role as the reciprocal of a number: it "undoes" multiplication. If you can find \( A^{-1} \), you can solve the system \( A\mathbf{x} = \mathbf{b} \) in a single step. In this guide you will learn when an inverse exists, three ways to calculate it, and where inverses are used in practice.

What Is an Inverse Matrix?

A square matrix \( A \) of order \( n \) is invertible (or non-singular) if there is a matrix \( A^{-1} \) such that

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

where \( I \) is the \( n \times n \) identity matrix. Only square matrices can have inverses, and not every square matrix has one.

When Does an Inverse Exist?

The key test is the determinant:

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

Equivalent conditions include: the rows are linearly independent, the rank of \( A \) is \( n \), and \( A\mathbf{x} = \mathbf{0} \) has only the trivial solution.

Method 1: The 2 × 2 Formula

For

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

In words: swap the diagonal entries, change the signs of the off-diagonal entries, and divide by the determinant.

Worked Example 1: Inverting a 2 × 2 Matrix and Solving a System

Question: Solve

$$ \begin{aligned} 4x + 7y &= 1 \\ 2x + 6y &= -2 \end{aligned} $$

using the inverse matrix.

Step 1: Write in matrix form.

$$ A = \begin{bmatrix} 4 & 7 \\ 2 & 6 \end{bmatrix}, \quad \mathbf{x} = \begin{bmatrix} x \\ y \end{bmatrix}, \quad \mathbf{b} = \begin{bmatrix} 1 \\ -2 \end{bmatrix} $$

Step 2: Find the determinant. \( \det A = (4)(6) - (7)(2) = 24 - 14 = 10 \). Since it is not zero, the inverse exists.

Step 3: Apply the formula.

$$ A^{-1} = \frac{1}{10}\begin{bmatrix} 6 & -7 \\ -2 & 4 \end{bmatrix} $$

Step 4: Multiply \( A^{-1}\mathbf{b} \).

$$ \mathbf{x} = \frac{1}{10}\begin{bmatrix} 6(1) + (-7)(-2) \\ -2(1) + 4(-2) \end{bmatrix} = \frac{1}{10}\begin{bmatrix} 20 \\ -10 \end{bmatrix} = \begin{bmatrix} 2 \\ -1 \end{bmatrix} $$

Step 5: Check. \( 4(2) + 7(-1) = 1 \) and \( 2(2) + 6(-1) = -2 \). So \( x = 2,\; y = -1 \).

Method 2: The Adjoint (Adjugate) Method

For any invertible square matrix,

$$ A^{-1} = \frac{1}{\det A}\,\operatorname{adj}(A) $$

where \( \operatorname{adj}(A) \) is the transpose of the matrix of cofactors. The cofactor of entry \( a_{ij} \) is \( C_{ij} = (-1)^{i+j}M_{ij} \), with \( M_{ij} \) the minor obtained by deleting row \( i \) and column \( j \).

This method is popular in Matric and FSc exams for 3 × 3 matrices, but it requires nine 2 × 2 determinants, so it becomes slow for larger matrices.

Method 3: Gauss–Jordan Elimination

The most efficient general method is to write \( [\,A \mid I\,] \) and use row operations until the left side becomes \( I \). The right side is then \( A^{-1} \):

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

If a row of zeros appears on the left, the matrix is singular.

Worked Example 2: A 3 × 3 Inverse by Gauss–Jordan

Question: Find the inverse of

$$ A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix} $$

Step 0: Check invertibility. Expanding along row 1: \( \det A = 1(0 - 24) - 2(0 - 20) + 3(0 - 5) = -24 + 40 - 15 = 1 \neq 0 \).

Step 1: Set up the augmented matrix.

$$ \left[\begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 5 & 6 & 0 & 0 & 0 & 1 \end{array}\right] $$

Step 2: \( R_3 \to R_3 - 5R_1 \) gives row 3 \( = [\,0 \;\; -4 \;\; -15 \mid -5 \;\; 0 \;\; 1\,] \).

Step 3: \( R_3 \to R_3 + 4R_2 \) gives row 3 \( = [\,0 \;\; 0 \;\; 1 \mid -5 \;\; 4 \;\; 1\,] \).

Step 4: Clear column 3 above the pivot.

  • \( R_2 \to R_2 - 4R_3 \): \( [\,0 \;\; 1 \;\; 0 \mid 20 \;\; -15 \;\; -4\,] \)
  • \( R_1 \to R_1 - 3R_3 \): \( [\,1 \;\; 2 \;\; 0 \mid 16 \;\; -12 \;\; -3\,] \)

Step 5: \( R_1 \to R_1 - 2R_2 \): \( [\,1 \;\; 0 \;\; 0 \mid -24 \;\; 18 \;\; 5\,] \).

The left side is now \( I \), so

$$ A^{-1} = \begin{bmatrix} -24 & 18 & 5 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix} $$

Step 6: Check one row and column. Row 1 of \( A \) times column 1 of \( A^{-1} \): \( 1(-24) + 2(20) + 3(-5) = 1 \). Row 1 times column 2: \( 1(18) + 2(-15) + 3(4) = 0 \). These match the identity matrix, as every other entry does.

Useful Properties

  • \( (A^{-1})^{-1} = A \)
  • \( (AB)^{-1} = B^{-1}A^{-1} \) (note the reversed order)
  • \( (A^{T})^{-1} = (A^{-1})^{T} \)
  • \( (kA)^{-1} = \frac{1}{k}A^{-1} \) for \( k \neq 0 \)
  • \( \det(A^{-1}) = \dfrac{1}{\det A} \)

Applications of the Matrix Inverse

  • Solving linear systems: \( \mathbf{x} = A^{-1}\mathbf{b} \), especially useful when the same \( A \) is used with many different \( \mathbf{b} \) vectors.
  • Cryptography: the Hill cipher encrypts text with a matrix and decrypts with its inverse.
  • Computer graphics: inverse transformation matrices undo rotations and scalings, or convert screen coordinates back to world coordinates.
  • Economics: the Leontief input–output model uses \( (I - A)^{-1} \) to find the production needed to meet demand.
  • Statistics: least-squares regression uses \( (X^{T}X)^{-1}X^{T}\mathbf{y} \).

Common Mistakes

  • Forgetting to check that \( \det A \neq 0 \) before starting.
  • In the 2 × 2 formula, changing the signs of the diagonal instead of the off-diagonal entries.
  • Writing \( (AB)^{-1} = A^{-1}B^{-1} \); the order must be reversed.
  • In the adjoint method, forgetting to transpose the cofactor matrix.
  • Applying a row operation to the left half of \( [\,A \mid I\,] \) but not the right half.

Key Takeaways

  • A square matrix has an inverse exactly when its determinant is non-zero.
  • Use the quick formula for 2 × 2 matrices and Gauss–Jordan elimination for larger ones.
  • The adjoint method works for any size but is mainly practical for 3 × 3 matrices.
  • Always verify your answer by checking that \( AA^{-1} = I \).
  • Inverses are used in solving systems, cryptography, graphics, economics and statistics.

Want help with matrix inverses or a full linear algebra assignment? Message Amathify on WhatsApp or use the "Ask a Question" form, and our experts and PhD scholars will send you a detailed step-by-step solution.

Stuck on a problem or assignment?

Our experts and PhD scholars solve maths, physics and chemistry — step by step.

WhatsApp usAsk a question

Related articles