Matrix Inversion Method Calculator

Enter the coefficients of a 2×2 or 3×3 system of linear equations and solve using matrix inversion. The calculator shows the cofactor matrix, adjugate, inverse A⁻¹, and the final product X = A⁻¹·B step by step.

Number of variables:(matrix inversion requires computing cofactors; limited to 3×3)
x₁x₂x₃= b

Notes

How Matrix Inversion Works

For the system Ax = b, if A is invertible (det(A) ≠ 0), the solution is x = A⁻¹b. The inverse is computed using the adjugate: A⁻¹ = adj(A) / det(A).

  1. Compute det(A). If det(A) = 0, the matrix is singular and has no inverse.
  2. Compute the cofactor matrix C, where Cᵢⱼ = (−1)ⁱ⁺ʲ · Mᵢⱼ.
  3. Transpose C to get the adjugate: adj(A) = Cᵀ.
  4. Divide by the determinant: A⁻¹ = adj(A) / det(A).
  5. Multiply: X = A⁻¹ · B to get the solution vector.
Matrix inversion is limited to square matrices with det(A) ≠ 0. This calculator supports 2×2 and 3×3 systems only, since cofactor expansion for larger matrices becomes impractical.

Worked Example — 2×2

System: 3x₁ + x₂ = 7, x₁ + 2x₂ = 4

Worked Example — 3×3

System: x₁ + 2x₂ + 3x₃ = 14, x₁ + x₂ + x₃ = 6, 2x₁ + x₂ + x₃ = 8

Compute cofactors, transpose to get adj(A), divide by det(A) = −1 to get A⁻¹, then X = A⁻¹·B:

Solution: x₁ = 2, x₂ = 0, x₃ = 4. Verify: 2+0+12 = 14 ✓, 2+0+4 = 6 ✓, 4+0+4 = 8 ✓

Frequently Asked Questions

What is the matrix inversion method?

The matrix inversion method solves the system Ax = b by computing the inverse of A and multiplying: x = A⁻¹b. The inverse exists only when det(A) ≠ 0.

What is the adjugate matrix?

The adjugate (or adjoint) of A is the transpose of the cofactor matrix: adj(A) = Cᵀ. It is used to compute the inverse: A⁻¹ = adj(A) / det(A).

Why is matrix inversion limited to 3×3 here?

Computing cofactors requires calculating (n−1)×(n−1) determinants for every entry. For 4×4 matrices this means 16 determinants of 3×3 matrices, becoming unwieldy. Gaussian elimination is more practical for larger systems.

What happens if det(A) = 0?

If det(A) = 0, the matrix A is singular and has no inverse. The system either has no solution (inconsistent) or infinitely many solutions (dependent). Use Gaussian elimination to determine which case applies.