College Algebra

Matrix Inverses

Last updated: March 2026 · Advanced
Before you start

You should be comfortable with:

Real-world applications
Electrical

Voltage drop, wire sizing, load balancing

The inverse of a matrix AA is a matrix A1A^{-1} such that:

AA1=A1A=IAA^{-1} = A^{-1}A = I

where II is the identity matrix. The inverse “undoes” the effect of AA, just as dividing by 5 undoes multiplying by 5 in ordinary arithmetic. Not every matrix has an inverse — only square matrices with a nonzero determinant are invertible.

Matrix inverses provide a powerful method for solving systems of linear equations: if AX=BAX = B, then X=A1BX = A^{-1}B. This approach is especially useful when you need to solve multiple systems with the same coefficient matrix but different constant vectors.

When Does an Inverse Exist?

A square matrix AA is invertible (also called nonsingular) if and only if det(A)0\det(A) \neq 0.

If det(A)=0\det(A) = 0, the matrix is singular and has no inverse. Attempting to compute the inverse of a singular matrix will produce a division by zero or a row of all zeros during the computation.

ConditionMatrix is…Inverse exists?
det(A)0\det(A) \neq 0Invertible / NonsingularYes
det(A)=0\det(A) = 0SingularNo

The 2x2 Inverse Formula

For a 2×22 \times 2 matrix, there is a direct formula:

A=[abcd]    A1=1adbc[dbca]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} \implies A^{-1} = \frac{1}{ad - bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}

The steps: swap the diagonal entries, negate the off-diagonal entries, and divide everything by the determinant.

Example 1: Finding a 2x2 Inverse

Find A1A^{-1} where A=[3152]A = \begin{bmatrix} 3 & 1 \\ 5 & 2 \end{bmatrix}.

Step 1 — Compute the determinant:

det(A)=3(2)1(5)=65=1\det(A) = 3(2) - 1(5) = 6 - 5 = 1

Since det(A)=10\det(A) = 1 \neq 0, the inverse exists.

Step 2 — Apply the formula:

A1=11[2153]=[2153]A^{-1} = \frac{1}{1} \begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix} = \begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix}

Step 3 — Verify by multiplying AA1AA^{-1}:

[3152][2153]=[653+310105+6]=[1001]=I\begin{bmatrix} 3 & 1 \\ 5 & 2 \end{bmatrix} \begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix} = \begin{bmatrix} 6-5 & -3+3 \\ 10-10 & -5+6 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I

The product is the identity matrix, confirming the inverse is correct.

Example 2: A 2x2 Matrix with No Inverse

Find A1A^{-1} where A=[4623]A = \begin{bmatrix} 4 & 6 \\ 2 & 3 \end{bmatrix}.

det(A)=4(3)6(2)=1212=0\det(A) = 4(3) - 6(2) = 12 - 12 = 0

Since det(A)=0\det(A) = 0, the matrix is singular and has no inverse. The formula would require dividing by zero. The rows are proportional (R1=2R2R_1 = 2R_2), which is why the matrix is singular.

Finding Larger Inverses: The Augmented Matrix Method

For 3×33 \times 3 and larger matrices, the 2x2 formula does not generalize cleanly. Instead, use the augmented matrix method (also called the Gauss-Jordan method):

  1. Form the augmented matrix [AI][A \mid I], placing the identity matrix to the right of AA
  2. Apply row operations to transform the left side into II
  3. When the left side becomes II, the right side is A1A^{-1}

If at any point you get a row of all zeros on the left side, the matrix is singular and has no inverse.

Example 3: Finding a 3x3 Inverse

Find A1A^{-1} where A=[110011101]A = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end{bmatrix}.

Step 1 — Form [AI][A \mid I]:

[110100011010101001]\left[\begin{array}{ccc|ccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 & 1 & 0 \\ 1 & 0 & 1 & 0 & 0 & 1 \end{array}\right]

Step 2 — Eliminate below the first pivot. R3R1R3R_3 - R_1 \to R_3:

[110100011010011101]\left[\begin{array}{ccc|ccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 & 1 & 0 \\ 0 & -1 & 1 & -1 & 0 & 1 \end{array}\right]

Step 3 — Eliminate below the second pivot. R3+R2R3R_3 + R_2 \to R_3:

[110100011010002111]\left[\begin{array}{ccc|ccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 & 1 & 0 \\ 0 & 0 & 2 & -1 & 1 & 1 \end{array}\right]

Step 4 — Scale Row 3. 12R3R3\frac{1}{2}R_3 \to R_3:

[110100011010001121212]\left[\begin{array}{ccc|ccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 1 & 0 & 1 & 0 \\ 0 & 0 & 1 & -\frac{1}{2} & \frac{1}{2} & \frac{1}{2} \end{array}\right]

Step 5 — Back-eliminate to get II on the left. R2R3R2R_2 - R_3 \to R_2:

[110100010121212001121212]\left[\begin{array}{ccc|ccc} 1 & 1 & 0 & 1 & 0 & 0 \\ 0 & 1 & 0 & \frac{1}{2} & \frac{1}{2} & -\frac{1}{2} \\ 0 & 0 & 1 & -\frac{1}{2} & \frac{1}{2} & \frac{1}{2} \end{array}\right]

R1R2R1R_1 - R_2 \to R_1:

[100121212010121212001121212]\left[\begin{array}{ccc|ccc} 1 & 0 & 0 & \frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \\ 0 & 1 & 0 & \frac{1}{2} & \frac{1}{2} & -\frac{1}{2} \\ 0 & 0 & 1 & -\frac{1}{2} & \frac{1}{2} & \frac{1}{2} \end{array}\right]

The left side is II, so the right side is A1A^{-1}:

A1=[121212121212121212]A^{-1} = \begin{bmatrix} \frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & \frac{1}{2} & -\frac{1}{2} \\ -\frac{1}{2} & \frac{1}{2} & \frac{1}{2} \end{bmatrix}

Verification: You can verify AA1=IAA^{-1} = I by performing the matrix multiplication. For example, row 1 of AA times column 1 of A1A^{-1}: 1(12)+1(12)+0(12)=11(\frac{1}{2}) + 1(\frac{1}{2}) + 0(-\frac{1}{2}) = 1. Row 1 times column 2: 1(12)+1(12)+0(12)=01(-\frac{1}{2}) + 1(\frac{1}{2}) + 0(\frac{1}{2}) = 0. Each entry of the product checks out.

Solving Systems Using the Inverse: X=A1BX = A^{-1}B

A system of linear equations can be written in matrix form as AX=BAX = B, where AA is the coefficient matrix, XX is the variable vector, and BB is the constant vector.

If AA is invertible, multiply both sides on the left by A1A^{-1}:

A1(AX)=A1BA^{-1}(AX) = A^{-1}B

(A1A)X=A1B(A^{-1}A)X = A^{-1}B

IX=A1BIX = A^{-1}B

X=A1BX = A^{-1}B

Example 4: Solving a System with the Inverse

Solve the system using the inverse of AA:

x+y=5x + y = 5

5x+2y=135x + 2y = 13

Step 1 — Write in matrix form AX=BAX = B:

[1152][xy]=[513]\begin{bmatrix} 1 & 1 \\ 5 & 2 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 5 \\ 13 \end{bmatrix}

Step 2 — Find A1A^{-1}:

det(A)=1(2)1(5)=3\det(A) = 1(2) - 1(5) = -3

A1=13[2151]=[23135313]A^{-1} = \frac{1}{-3} \begin{bmatrix} 2 & -1 \\ -5 & 1 \end{bmatrix} = \begin{bmatrix} -\frac{2}{3} & \frac{1}{3} \\ \frac{5}{3} & -\frac{1}{3} \end{bmatrix}

Step 3 — Compute X=A1BX = A^{-1}B:

X=[23135313][513]=[103+133253133]=[14]X = \begin{bmatrix} -\frac{2}{3} & \frac{1}{3} \\ \frac{5}{3} & -\frac{1}{3} \end{bmatrix} \begin{bmatrix} 5 \\ 13 \end{bmatrix} = \begin{bmatrix} -\frac{10}{3} + \frac{13}{3} \\ \frac{25}{3} - \frac{13}{3} \end{bmatrix} = \begin{bmatrix} 1 \\ 4 \end{bmatrix}

Answer: x=1x = 1, y=4y = 4

Verification: 1+4=51 + 4 = 5 and 5(1)+2(4)=5+8=135(1) + 2(4) = 5 + 8 = 13.

Example 5: Solving Multiple Systems with the Same Coefficient Matrix

The real power of the inverse method appears when you need to solve multiple systems with the same AA but different BB vectors. Once you compute A1A^{-1}, each new system is just a single matrix multiplication.

Using A1A^{-1} from Example 4, solve AX=[311]AX = \begin{bmatrix} 3 \\ 11 \end{bmatrix}:

X=[23135313][311]=[2+1135113]=[5343]X = \begin{bmatrix} -\frac{2}{3} & \frac{1}{3} \\ \frac{5}{3} & -\frac{1}{3} \end{bmatrix} \begin{bmatrix} 3 \\ 11 \end{bmatrix} = \begin{bmatrix} -2 + \frac{11}{3} \\ 5 - \frac{11}{3} \end{bmatrix} = \begin{bmatrix} \frac{5}{3} \\ \frac{4}{3} \end{bmatrix}

No row reduction needed — just one multiplication.

Real-World Application: Engineering — Structural Load Distribution

A structural engineer analyzing forces at three joints of a truss writes the equilibrium equations:

F1+F2=1000F_1 + F_2 = 1000

F2+F3=800F_2 + F_3 = 800

F1+F3=900F_1 + F_3 = 900

In matrix form:

[110011101][F1F2F3]=[1000800900]\begin{bmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end{bmatrix} \begin{bmatrix} F_1 \\ F_2 \\ F_3 \end{bmatrix} = \begin{bmatrix} 1000 \\ 800 \\ 900 \end{bmatrix}

Using the inverse from Example 3:

[F1F2F3]=[121212121212121212][1000800900]\begin{bmatrix} F_1 \\ F_2 \\ F_3 \end{bmatrix} = \begin{bmatrix} \frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \\ \frac{1}{2} & \frac{1}{2} & -\frac{1}{2} \\ -\frac{1}{2} & \frac{1}{2} & \frac{1}{2} \end{bmatrix} \begin{bmatrix} 1000 \\ 800 \\ 900 \end{bmatrix}

=[500400+450500+400450500+400+450]=[550450350]= \begin{bmatrix} 500 - 400 + 450 \\ 500 + 400 - 450 \\ -500 + 400 + 450 \end{bmatrix} = \begin{bmatrix} 550 \\ 450 \\ 350 \end{bmatrix}

The forces are F1=550F_1 = 550 N, F2=450F_2 = 450 N, F3=350F_3 = 350 N. If the loading conditions change (different right-hand side), the engineer simply multiplies the same inverse by the new vector — no need to re-solve the entire system.

Common Mistakes

  1. Forgetting to check the determinant first. Always verify det(A)0\det(A) \neq 0 before attempting to find the inverse. If the determinant is zero, the inverse does not exist.
  2. Wrong sign pattern in the 2x2 formula. The formula swaps the diagonal entries and negates the off-diagonal entries. Negating the diagonals instead is a common error.
  3. Multiplying in the wrong order. The solution is X=A1BX = A^{-1}B, not X=BA1X = BA^{-1}. Matrix multiplication is not commutative, so the order matters.
  4. Arithmetic errors in the augmented matrix method. Row operations on a 3×63 \times 6 augmented matrix involve many entries. Work methodically and double-check each row operation.

Practice Problems

Problem 1: Find the inverse of A=[2314]A = \begin{bmatrix} 2 & 3 \\ 1 & 4 \end{bmatrix}.

det(A)=2(4)3(1)=83=5\det(A) = 2(4) - 3(1) = 8 - 3 = 5

A1=15[4312]=[45351525]A^{-1} = \frac{1}{5} \begin{bmatrix} 4 & -3 \\ -1 & 2 \end{bmatrix} = \begin{bmatrix} \frac{4}{5} & -\frac{3}{5} \\ -\frac{1}{5} & \frac{2}{5} \end{bmatrix}

Answer: A1=[45351525]A^{-1} = \begin{bmatrix} \frac{4}{5} & -\frac{3}{5} \\ -\frac{1}{5} & \frac{2}{5} \end{bmatrix}

Problem 2: Does A=[3612]A = \begin{bmatrix} 3 & 6 \\ 1 & 2 \end{bmatrix} have an inverse? Explain.

det(A)=3(2)6(1)=66=0\det(A) = 3(2) - 6(1) = 6 - 6 = 0

Since det(A)=0\det(A) = 0, the matrix is singular and does not have an inverse. Row 1 is 3 times Row 2.

Problem 3: Use the inverse to solve 2x+3y=112x + 3y = 11, x+4y=13x + 4y = 13.

From Problem 1, A1=[45351525]A^{-1} = \begin{bmatrix} \frac{4}{5} & -\frac{3}{5} \\ -\frac{1}{5} & \frac{2}{5} \end{bmatrix}.

X=A1B=[45351525][1113]=[445395115+265]=[13]X = A^{-1}B = \begin{bmatrix} \frac{4}{5} & -\frac{3}{5} \\ -\frac{1}{5} & \frac{2}{5} \end{bmatrix} \begin{bmatrix} 11 \\ 13 \end{bmatrix} = \begin{bmatrix} \frac{44}{5} - \frac{39}{5} \\ -\frac{11}{5} + \frac{26}{5} \end{bmatrix} = \begin{bmatrix} 1 \\ 3 \end{bmatrix}

Answer: x=1x = 1, y=3y = 3

Verification: 2(1)+3(3)=2+9=112(1) + 3(3) = 2 + 9 = 11 and 1+4(3)=1+12=131 + 4(3) = 1 + 12 = 13.

Problem 4: Verify that [2153]\begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix} is the inverse of [3152]\begin{bmatrix} 3 & 1 \\ 5 & 2 \end{bmatrix}.

Multiply:

[3152][2153]=[653+310105+6]=[1001]=I\begin{bmatrix} 3 & 1 \\ 5 & 2 \end{bmatrix} \begin{bmatrix} 2 & -1 \\ -5 & 3 \end{bmatrix} = \begin{bmatrix} 6-5 & -3+3 \\ 10-10 & -5+6 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I

Since AB=IAB = I, the matrices are indeed inverses of each other.

Problem 5: Using the same coefficient matrix, solve the system 2x+3y=72x + 3y = 7, x+4y=9x + 4y = 9.

Using A1=[45351525]A^{-1} = \begin{bmatrix} \frac{4}{5} & -\frac{3}{5} \\ -\frac{1}{5} & \frac{2}{5} \end{bmatrix} from Problem 1:

X=A1B=[45351525][79]=[28527575+185]=[15115]X = A^{-1}B = \begin{bmatrix} \frac{4}{5} & -\frac{3}{5} \\ -\frac{1}{5} & \frac{2}{5} \end{bmatrix} \begin{bmatrix} 7 \\ 9 \end{bmatrix} = \begin{bmatrix} \frac{28}{5} - \frac{27}{5} \\ -\frac{7}{5} + \frac{18}{5} \end{bmatrix} = \begin{bmatrix} \frac{1}{5} \\ \frac{11}{5} \end{bmatrix}

Answer: x=15x = \frac{1}{5}, y=115y = \frac{11}{5}

Verification: 2(15)+3(115)=25+335=355=72\left(\frac{1}{5}\right) + 3\left(\frac{11}{5}\right) = \frac{2}{5} + \frac{33}{5} = \frac{35}{5} = 7 and 15+4(115)=15+445=455=9\frac{1}{5} + 4\left(\frac{11}{5}\right) = \frac{1}{5} + \frac{44}{5} = \frac{45}{5} = 9.

Key Takeaways

  • The inverse of AA is the matrix A1A^{-1} satisfying AA1=A1A=IAA^{-1} = A^{-1}A = I
  • A matrix is invertible if and only if det(A)0\det(A) \neq 0
  • The 2x2 inverse formula swaps the diagonal, negates the off-diagonal, and divides by the determinant
  • For larger matrices, use the augmented matrix method: row reduce [AI][A \mid I] to [IA1][I \mid A^{-1}]
  • To solve a system AX=BAX = B, compute X=A1BX = A^{-1}B — this is especially efficient when solving multiple systems with the same coefficient matrix
  • If det(A)=0\det(A) = 0, the inverse does not exist and the system AX=BAX = B does not have a unique solution

Return to College Algebra for more topics in this section.

Last updated: March 29, 2026