Illustration for How to Find the Inverse of a Matrix Step by Step (2×2 and 3×3) - DigiToolkit

How to Find the Inverse of a Matrix Step by Step (2×2 and 3×3)

Learn how to find the inverse of a matrix step by step for 2×2 and 3×3 matrices, with fully worked examples, common mistakes and a free calculator link.

Quick Answer: To find the inverse of a matrix, check that its determinant is not zero. For a 2×2 matrix swap the diagonal, change the signs of the other two entries and divide by the determinant. For 3×3, use cofactors, transpose and divide. Worked Indian-context examples included.

Key takeaways:

  • An inverse exists only for a square matrix with a non-zero determinant.
  • For 2×2: swap a and d, change signs of b and c, divide by ad – bc.
  • For 3×3: find cofactors, transpose to get the adjoint, then divide by the determinant.
  • Always verify by checking that A times its inverse gives the identity matrix.
  • A zero determinant means the matrix is singular and has no inverse.

Why students struggle with the inverse of a matrix

The inverse of a matrix is one of the most tested topics in Class 12 maths. It appears in the NCERT chapters on Matrices and Determinants, in board exams, and again in JEE and engineering entrance papers. Many students lose marks not because the idea is hard, but because the arithmetic has many small steps.

This guide shows how to calculate the inverse of a matrix step by step, first for a 2 x 2 matrix and then for a 3 x 3 matrix. Each method is followed by a fully worked example. When you want to check your final answer, you can use an inverse matrix calculator and compare it with your own working.

Basic ideas you need first

A matrix is a rectangular grid of numbers. A square matrix has the same number of rows and columns. Only square matrices can have an inverse.

  • Identity matrix (I): a square matrix with 1 on the main diagonal and 0 elsewhere. Multiplying by I changes nothing.
  • Determinant (det A or |A|): a single number worked out from the matrix. It tells you if an inverse exists.
  • Inverse (A^-1): the matrix that gives A x A^-1 = I.
  • Singular matrix: a matrix whose determinant is zero. It has no inverse.
  • Adjoint (adj A): the transpose of the cofactor matrix. You need it for the standard method.

Key takeaway: Always find the determinant first. If it is zero, stop. The inverse does not exist, and any further working would be wasted effort.

The method for a 2 x 2 matrix

For a matrix A = [[a, b], [c, d]], follow these steps.

  1. Find the determinant: ad – bc.
  2. If the determinant is zero, say “inverse does not exist” and stop.
  3. Swap a and d. Change the signs of b and c.
  4. Divide every entry by the determinant.

In short: A^-1 = (1 / (ad - bc)) x [[d, -b], [-c, a]].

Worked example 1: A 2 x 2 matrix

Find the inverse of A = [[4, 7], [2, 6]].

Step 1: Determinant. ad – bc = (4)(6) – (7)(2) = 24 – 14 = 10. This is not zero, so the inverse exists.

Step 2: Swap and change signs. Swap 4 and 6 on the diagonal. Change 7 to -7 and 2 to -2. We get [[6, -7], [-2, 4]].

Step 3: Divide by 10. A^-1 = (1/10) x [[6, -7], [-2, 4]] = [[0.6, -0.7], [-0.2, 0.4]].

Step 4: Check. Multiply A by A^-1. First row, first column: 4(0.6) + 7(-0.2) = 2.4 – 1.4 = 1. First row, second column: 4(-0.7) + 7(0.4) = -2.8 + 2.8 = 0. Second row, first column: 2(0.6) + 6(-0.2) = 1.2 – 1.2 = 0. Second row, second column: 2(-0.7) + 6(0.4) = -1.4 + 2.4 = 1. The result is the identity matrix, so the answer is correct.

The method for a 3 x 3 matrix (adjoint method)

For a 3 x 3 matrix, the standard school method uses cofactors. The formula is A^-1 = (1 / det A) x adj A.

  1. Find det A by expanding along any row or column.
  2. If det A = 0, stop.
  3. Find the cofactor of every entry. The cofactor of the entry in row i and column j is (-1)^(i+j) times the minor, where the minor is the determinant left after removing that row and column.
  4. Write the cofactors as a matrix, and take its transpose. That gives adj A.
  5. Divide adj A by det A.

The sign pattern for cofactors is: + – + on the first row, – + – on the second row, and + – + on the third row.

Worked example 2: A 3 x 3 matrix

Find the inverse of A = [[1, 2, 3], [0, 1, 4], [5, 6, 0]].

Step 1: Determinant. Expand along the first row.
det A = 1(1 x 0 – 4 x 6) – 2(0 x 0 – 4 x 5) + 3(0 x 6 – 1 x 5)
det A = 1(-24) – 2(-20) + 3(-5) = -24 + 40 – 15 = 1.

Step 2: Cofactors.

Entry Minor Sign Cofactor
C11 1(0) – 4(6) = -24 + -24
C12 0(0) – 4(5) = -20 – 20
C13 0(6) – 1(5) = -5 + -5
C21 2(0) – 3(6) = -18 – 18
C22 1(0) – 3(5) = -15 + -15
C23 1(6) – 2(5) = -4 – 4
C31 2(4) – 3(1) = 5 + 5
C32 1(4) – 3(0) = 4 – -4
C33 1(1) – 2(0) = 1 + 1

Step 3: Cofactor matrix. [[-24, 20, -5], [18, -15, 4], [5, -4, 1]].

Step 4: Transpose to get the adjoint. Rows become columns: adj A = [[-24, 18, 5], [20, -15, -4], [-5, 4, 1]].

Step 5: Divide by det A. Since det A = 1, the inverse is the same as the adjoint: A^-1 = [[-24, 18, 5], [20, -15, -4], [-5, 4, 1]].

Check one entry. Row 1 of A times column 1 of A^-1 is 1(-24) + 2(20) + 3(-5) = -24 + 40 – 15 = 1. Row 1 of A times column 2 is 1(18) + 2(-15) + 3(4) = 18 – 30 + 12 = 0. Both are what the identity matrix needs.

Doing this by hand takes a while, so a matrix calculator is useful for confirming that your cofactors and signs are right.

Worked example 3: A matrix with no inverse

A kirana shop in Jaipur records two days of sales. On day one, 2 kg of tea and 4 kg of sugar sold. On day two, 1 kg of tea and 2 kg of sugar sold. Can we find the price of each from the total bills using the inverse method? The matrix is A = [[2, 4], [1, 2]].

Determinant: (2)(2) – (4)(1) = 4 – 4 = 0.

Answer: The determinant is zero, so A is singular and has no inverse. In plain words, day two is just half of day one, so it gives no new information. You cannot separate the two prices from these records. You need a second day with a different mix, for example 3 kg tea and 1 kg sugar. This is the practical meaning of a zero determinant: the equations are not independent.

The row operation method in brief

There is another way to find an inverse. Write A next to the identity matrix, like [A | I]. Then use row operations until the left side becomes I. The right side is then A^-1. This method, called Gauss-Jordan elimination, is faster for larger matrices and is how computers do it. Most Class 12 boards ask for the adjoint method, so learn that first.

Benefits of knowing how to find an inverse

The inverse lets you solve a whole system of linear equations at once. If AX = B, then X = A^-1 B. This is a very useful idea in economics, engineering and computer graphics. In exams, the inverse method often carries four to six marks, and a clear step-by-step solution earns most of them even if there is a small slip at the end. The skill also trains careful, orderly working, which helps in every other maths topic. And since many software tools use the same ideas, knowing the steps helps you trust and check their results.

Challenges and limitations

The main challenge is the volume of arithmetic. A 3 x 3 inverse needs nine minors, nine signs and a transpose. A single sign slip spoils the whole answer. For 4 x 4 and larger matrices, the adjoint method is too slow by hand.

There is another limit. Not every matrix has an inverse, and matrices that are almost singular can give large rounding errors on computers. For school problems this is rarely an issue, but it is good to know.

Common mistakes to avoid

  1. Forgetting to check the determinant. If it is zero, no inverse exists. Check this before any other step.
  2. Wrong signs in the 2 x 2 formula. Swap a and d, but only change the signs of b and c. The diagonal entries keep their signs.
  3. Skipping the transpose. The adjoint is the transpose of the cofactor matrix. Leaving it out gives a wrong matrix with the right-looking numbers.
  4. Missing the checkerboard sign pattern. The cofactor signs alternate + – + across rows. Write the pattern beside your work.
  5. Dividing only some entries. Divide every entry of the adjoint by the determinant, not just the first row.
  6. Not verifying the answer. Multiplying A by A^-1 takes two minutes and catches almost every error.

Best practices and expert recommendations

  1. Use a fixed layout. Write determinant, cofactors, adjoint, then inverse, in that order, every time. Examiners also like this layout.
  2. Choose the easiest row for expansion. If a row has a zero, expand along it. That cuts the number of terms.
  3. Keep fractions until the end. Convert to decimals only at the final step to avoid rounding errors.
  4. Check with one or two entries. You do not always need full multiplication. Checking a couple of entries quickly shows if the pattern is right.
  5. Practise from NCERT first. The Class 12 NCERT chapters on Matrices and Determinants on ncert.nic.in have well-graded questions, and CBSE sample papers on cbse.gov.in show the exam pattern.
  6. Use tools as a second opinion. After solving by hand, confirm with a calculator. If you also need to multiply matrices to verify, a matrix multiplication calculator helps check that A x A^-1 gives I.

Try it yourself

Take the matrix [[5, 3], [2, 1]] and find its inverse by hand. The determinant is 5 – 6 = -1, so the inverse is -1 times [[1, -3], [-2, 5]], which is [[-1, 3], [2, -5]]. Now enter the same matrix in the free online inverse matrix calculator and see if the numbers agree. Then try your own 3 x 3 example.

Conclusion

To find the inverse of a matrix, check that the determinant is not zero, then use the swap-and-sign rule for 2 x 2 matrices or the cofactor, transpose and divide method for 3 x 3 matrices. Always verify by multiplying back to the identity matrix. With steady practice and a clear layout, even long inverse problems become manageable.

FAQs

How do I know if a matrix has an inverse?
Find its determinant. If the determinant is not zero, the matrix is non-singular and has an inverse. If it is zero, the matrix is singular and no inverse exists.

What is the formula for the inverse of a 2×2 matrix?
For A = [[a, b], [c, d]], the inverse is 1 / (ad – bc) times [[d, -b], [-c, a]]. This works only when ad – bc is not zero.

What is the adjoint of a matrix?
The adjoint is the transpose of the cofactor matrix. You divide it by the determinant to get the inverse.

Can a non-square matrix have an inverse?
No. Only square matrices can have a standard inverse. Rectangular matrices may have pseudo-inverses, but those are beyond school maths.

Is the inverse method asked in CBSE Class 12 exams?
Yes. The adjoint method and solving linear equations using the inverse are regular exam topics in the Matrices and Determinants chapters.

Leave a Reply

Your email address will not be published. Required fields are marked *