Matrix Calc. › Inverse matrix calculator with steps

Inverse matrix calculator with steps

The determinant, the cofactors, the adjugate and the division — in the order they are taught, with the numbers filled in.

What an inverse actually is

The inverse of a square matrix A is the matrix A⁻¹ such that

A · A⁻¹ = A⁻¹ · A = I

where I is the identity matrix — ones on the diagonal, zeros elsewhere. It is the matrix equivalent of dividing, and it only exists when det(A) ≠ 0.

If the determinant is zero, stop. The matrix is singular, no inverse exists, and any page that gives you one has made an error. This is the first thing to compute, and it is the reason the determinant leads the working below.

2×2: the formula to memorise

For

A = ⎡ a  b ⎤
    ⎣ c  d ⎦

the inverse is

A⁻¹ = 1/(ad − bc) · ⎡  d  −b ⎤
                     ⎣ −c   a ⎦

Swap the diagonal entries, negate the other two, and divide everything by the determinant. Three moves, in that order.

A worked example

A = ⎡ 4  7 ⎤
    ⎣ 2  6 ⎦

Step 1 — determinant
  ad − bc = 4·6 − 7·2 = 24 − 14 = 10

Step 2 — swap the diagonal, negate the off-diagonal
  ⎡  6  −7 ⎤
  ⎣ −2   4 ⎦

Step 3 — divide by the determinant
  A⁻¹ = 1/10 · ⎡  6  −7 ⎤  =  ⎡  0.6  −0.7 ⎤
               ⎣ −2   4 ⎦     ⎣ −0.2   0.4 ⎦

Verify it, which costs one multiplication and catches every arithmetic slip:

⎡ 4  7 ⎤ ⎡  0.6  −0.7 ⎤   ⎡ 2.4 − 1.4   −2.8 + 2.8 ⎤   ⎡ 1  0 ⎤
⎣ 2  6 ⎦ ⎣ −0.2   0.4 ⎦ = ⎣ 1.2 − 1.2   −1.4 + 2.4 ⎦ = ⎣ 0  1 ⎦

3×3: the same idea, more arithmetic

There are two honest routes, and the right one depends on what you were asked to show.

Adjugate method

  • Compute the determinant. If it is zero, there is no inverse.
  • Build the cofactor matrix: for each entry, delete its row and column, take the determinant of what remains, and apply the (−1)^(i+j) sign pattern.
  • Transpose it. The transpose of the cofactor matrix is the adjugate.
  • Divide the adjugate by the determinant.

Gauss–Jordan elimination

Write [A | I] and row-reduce until the left half is the identity. The right half is then A⁻¹. This is usually faster for 3×3 and larger, and it is the method that generalises to any size.

Both give the same answer. If they disagree, the determinant is the first place to check, because a single wrong cofactor sign propagates through the whole matrix.

Common slips

  • Forgetting to divide by the determinant. The adjugate alone is not the inverse, and it is the single most common lost mark.
  • Signs in the cofactor matrix. The pattern alternates like a checkerboard starting with + at the top left.
  • Writing an inverse when the determinant is zero. A singular matrix has none. Say so.

Questions

Does it show the determinant and the adjugate separately?

Yes. The determinant, the cofactor matrix, the adjugate and the final division are each shown, so you can see which stage produced a value.

What happens if the matrix has no inverse?

It tells you the determinant is zero and stops. A singular matrix has no inverse, and the working says so rather than producing a matrix.

Can I invert a matrix with variables?

Yes — entries may be expressions, and the arithmetic is carried through symbolically.

How large can the matrix be?

Up to 10×10, using reduction rather than the adjugate at that size. The result is the same; the working shown is the one a person would actually do.

Solve one now.

Free, offline, and every step written out.