πŸŽ‰ 75% of content is free forever β€” Unlock Premium from $10/mo β†’
CW
NEWSLIVESearch All Content
πŸ’Ό Servicesℹ️ Aboutβœ‰οΈ ContactView Pricing Plansfrom $10

Inverse of a Matrix

CBSE Class 12 MathsDeterminants🟒 Free Lesson

Why the determinant decides everything

The formula for the inverse places the determinant in the denominator, so a zero determinant is not one failure mode among many β€” it is the only one. Read the same fact through row operations: reducing a matrix to echelon form multiplies the determinant by non-zero factors, and reaching a row of zeros means the original rows were linearly dependent. Dependent rows mean the transformation squashes the plane (or space) onto a lower-dimensional slice, and once two different inputs land on the same output there is no way to send that output back to a unique input. That is the whole geometric content of singularity. Three algebraic consequences follow immediately and are worth memorising together: the product of a matrix and its inverse has determinant 1, the inverse of an inverse returns you to the start, and the inverse of a product reverses the order of the factors.

Steps to Find Inverse

  1. Compute
  2. If , the inverse does not exist
  3. Find the cofactor of each element
  4. Form the cofactor matrix
  5. Take the transpose to get the adjoint
  6. Compute

The order matters in step 5: the cofactor matrix is built element by element, and only its transpose becomes the adjoint. Skipping the transpose produces the wrong matrix for every non-symmetric input, and the error survives the multiplication check only if you also skip that check.

The cofactor sign pattern

Each cofactor carries a sign determined by the parity of the sum of its row and column index. For a 3 Γ— 3 matrix the checkerboard of signs is fixed, and you can read it off the pattern below.

Position(1,1)(1,2)(1,3)
Signplusminusplus
Position(2,1)(2,2)(2,3)
Signminusplusminus
Position(3,1)(3,2)(3,3)
Signplusminusplus

For the 2 Γ— 2 case this reduces to a single rule: the two diagonal entries swap places and the two off-diagonal entries change sign. Applying that rule to the matrix in the worked example below gives the cofactor matrix with 5 and 1 on the diagonal and βˆ’3 and βˆ’2 off it, whose transpose is the adjoint that appears in step 3.

Example: Find Inverse

Find the inverse of .

The two-by-two shortcut

For a 2 Γ— 2 matrix the whole six-step procedure collapses into a two-line rule that every candidate should be able to quote without hesitation. If has entries a, b on the top row and c, d on the bottom row, then its adjoint is the matrix with d and a swapped onto the opposite diagonal corners and b and c negated, and the determinant is ad βˆ’ bc.

Run the shortcut on the matrix from the worked example: a = 1, b = 2, c = 3, d = 5, so ad βˆ’ bc = βˆ’1, and scaling the swapped matrix by one over βˆ’1 returns exactly the inverse computed above. The shortcut is derived rather than magic β€” it is the cofactor calculation for a 2 Γ— 2 carried out once, in general β€” and it also explains why a 2 Γ— 2 matrix is singular precisely when ad equals bc, which is the statement that its two rows are proportional.

Properties of Inverse

The reversal of order in the product rule is forced by the order in which the matrices act. Applying AB means first B then A, so undoing it must undo A first and B second. Numerically the rule is easy to falsify: take A with entries 1, 0, 0, 1 and B with entries 1, 1, 0, 1, multiply both ways, and the two products differ, which settles the question in thirty seconds.

Solving System of Equations

For the system , the solution is (when is invertible).

The advantage of the matrix method shows up when the right-hand side changes but the coefficient matrix does not. Computing the inverse once costs a fixed amount of work, after which each new constant vector only requires a single matrix–vector multiplication. That is exactly the situation in network flow problems and in small circuit analyses, where the same resistive network is re-solved for several different sources.

When the inverse fails: singular systems

A singular coefficient matrix does not automatically mean the system has no solutions. It means the method breaks, and what replaces it depends on the augmented matrix. Form the augmented matrix with the constant column attached, reduce it to echelon form, and compare the rank of the coefficient part with the rank of the whole thing. Equal ranks give infinitely many solutions, with free parameters equal to the number of columns minus the common rank. Unequal ranks give no solution at all, because a row of zeros in the coefficient part lines up with a non-zero entry in the constant part. Both outcomes are common in board questions, and writing the rank comparison down is what earns the method marks.

Checking the inverse numerically

Two independent computer checks remove almost all of the risk from this topic. The first works in floating point and is fast enough to run during an exam sketch; the second works exactly, so a printed fraction is a proof rather than an approximation.

python
import numpy as np

A = np.array([[1, 2], [3, 5]], dtype=float)

print(round(np.linalg.det(A)))        # -1
A_inv = np.linalg.inv(A)
print(np.round(A_inv))                # [[-5.  2.]
                                      #  [ 3. -1.]]
print(np.round(A @ A_inv))            # identity matrix
python
import sympy as sp

A = sp.Matrix([[1, 2], [3, 5]])
print(A.det())                        # -1
print(A.adjugate())                   # Matrix([[5, -2], [-3, 1]])
print(A.inv())                        # Matrix([[-5, 2], [3, -1]])

B = sp.Matrix([[1, 2], [2, 4]])
print(B.det())                        # 0
print(B.rank())                       # 1: rows proportional, inverse impossible

The adjugate call is the useful one while you are learning, because it prints the matrix that sits between the cofactor step and the final division. Comparing it against your own hand-written adjoint catches the missing-transpose error, which is the most frequent slip in this chapter.

Common Mistakes

Forgetting to transpose the cofactor matrix before calling it the adjoint.

Fix: Build the cofactor matrix, transpose it explicitly, and only then divide by the determinant; or use the two-by-two shortcut, which already includes the transpose.

Dividing by the determinant before checking that it is non-zero.

Fix: Compute the determinant first and stop immediately if it equals zero; a singular matrix has no inverse, and continuing produces division-by-zero nonsense.

Writing (AB) inverse as A inverse times B inverse.

Fix: Reverse the order: (AB) inverse equals B inverse times A inverse, because the matrix B acts first and must therefore be undone last.

Key Takeaways

  • A square matrix is invertible exactly when its determinant is non-zero; a zero determinant means the rows are linearly dependent and no unique inverse exists.
  • The inverse equals one over the determinant times the adjoint, and the adjoint is the transpose of the cofactor matrix, not the cofactor matrix itself.
  • For a 2 Γ— 2 matrix, swap the diagonal entries, negate the off-diagonal entries, and divide by ad βˆ’ bc.
  • The matrix method solves AX = B as X = A inverse times B, which pays off when the same coefficient matrix meets several different constant vectors.
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-15

β€”
β˜†β˜†β˜†β˜†β˜†
0 ratings

Rate & Feedback

Need Expert CBSE Class 12 Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement