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.
| 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).
- Compute det(A). If det(A) = 0, the matrix is singular and has no inverse.
- Compute the cofactor matrix C, where Cᵢⱼ = (−1)ⁱ⁺ʲ · Mᵢⱼ.
- Transpose C to get the adjugate: adj(A) = Cᵀ.
- Divide by the determinant: A⁻¹ = adj(A) / det(A).
- Multiply: X = A⁻¹ · B to get the solution vector.
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:
- Matrix Inversion Method — Full Notes — Theory, cofactors, adjugate, and worked examples
- Matrix Inversion Formula Reference — Full formula reference with variable definitions
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.