Matrix Inverse Method for Linear Systems
On this page
Direct answer
The matrix inverse method solves AX = B as X = A⁻¹B when the coefficient matrix is nonsingular, which takes one determinant, one adjoint and one multiplication. If |A| = 0 the inverse route fails, and the system has either no solution or infinitely many, decided by comparing rank(A) with rank([A | B]). Non-square systems have no inverse at all, so row reduction with free parameters handles them.
What you must remember
- Square method (NCERT Class 12): when |A| ≠ 0, X = A⁻¹B = (adj A/|A|)B, giving exactly one solution.
- 2×2 inverse shortcut: [[a, b], [c, d]]⁻¹ = (1/(ad − bc))[[d, −b], [−c, a]]; swap the diagonal, negate the off-diagonal, and divide by the determinant.
- Singular square case: |A| = 0 means the system is inconsistent or has infinitely many solutions; it can never have exactly one.
- Rectangular systems: two equations in three unknowns have rank at most 2 < 3, so if consistent they have infinitely many solutions with 3 − rank free variables.
- Homogeneous systems: AX = 0 with |A| ≠ 0 forces X = 0, so nontrivial solutions require |A| = 0.
- Verification habit: substitute the answer into every original equation, because an adjoint arithmetic slip is the most common error here.
- Cramer connection: x = |A₁|/|A| is the same computation organised column by column, using cofactors either way.
One inverse computation, start to verified finish
Solve x + y + z = 6, x − y + z = 2 and 2x + y − z = 1. The coefficient matrix has a nonzero determinant, so the inverse route applies.
- Compute the determinant. For A = [[1, 1, 1], [1, −1, 1], [2, 1, −1]], |A| = 1(1 − 1) − 1(−1 − 2) + 1(1 + 2) = 6.
- Build the cofactors. The cofactor matrix is [[0, 3, 3], [2, −3, 1], [2, 0, −2]].
- Transpose to the adjoint. adj A = [[0, 2, 2], [3, −3, 0], [3, 1, −2]].
- Multiply. X = (1/6)·adj A·(6, 2, 1)ᵀ = (1/6)(6, 12, 18)ᵀ = (1, 2, 3)ᵀ.
- Verify. 1 + 2 + 3 = 6, 1 − 2 + 3 = 2 and 2 + 2 − 3 = 1, so all three equations hold.
Now take x + y + z = 6 with 2x − y + z = 3 alone. Subtracting gives −x + 2y = 3, and with y = s the solutions are x = 2s − 3 and z = 9 − 3s. This is a one-parameter family, exactly as the rank count predicts.
Where students slip
The errors cluster in the adjoint, the order of multiplication and the singular case. Each one is easy to make under time pressure, and each has a single check.
- Trap: using the cofactor matrix as the adjoint without transposing. Correct: adj A is the transpose of the cofactor matrix, and substituting the answer back catches any slip.
- Trap: declaring a singular system inconsistent. Correct: |A| = 0 also allows infinitely many solutions, and only rank(A) against rank([A | B]) separates the cases.
- Trap: writing X = BA⁻¹. Correct: X = A⁻¹B requires pre-multiplying by A⁻¹; post-multiplying is undefined here, so examiners include it as a distractor.
- Trap: expecting a unique solution for a rectangular system. Correct: with more unknowns than equations, uniqueness is structurally impossible, so expect free parameters.
Frequently asked questions
When can a system be solved as X = A⁻¹B?
A system can be solved as X = A⁻¹B exactly when its coefficient matrix is square and nonsingular. The solution is then unique and equals (adj A/|A|)B, so no other check is needed for existence.
What happens when |A| = 0 in a square system?
The inverse does not exist. The system is then either inconsistent or has infinitely many solutions, decided by comparing rank(A) with rank([A | B]).
How many solutions can two equations in three unknowns have?
If the two equations are consistent, they have infinitely many solutions with at least one free parameter, because the rank cannot reach 3. They can also be inconsistent when the equations contradict each other.
How does the inverse method handle AX = 0?
For a nonsingular A, X = A⁻¹·0 = 0, so a homogeneous system has only the trivial solution. Nontrivial solutions of a homogeneous system require |A| = 0, which is where the parameter values are found.
Why must the cofactor matrix be transposed to get the inverse?
The adjoint is defined as the transpose of the cofactor matrix, which makes A(adj A) = |A|I. Dividing that adjoint by |A| then gives A⁻¹.