Many problems reduce to a system of linear equations, for example
2x+3yx−y=8=−1.
The inverse matrix method solves such a system by writing it as a single matrix equation and then undoing the coefficient matrix with its inverse — the matrix analogue of dividing.
Writing the system as AX=B
Collect the coefficients, the unknowns and the constants:
A=(213−1),X=(xy),B=(8−1),
so the whole system becomes AX=B.
The idea
For numbers, ax=b gives x=a−1b provided a=0. The same works for matrices: if A is invertible, multiply AX=B on the left by A−1:
A−1(AX)=A−1B⇒IX=A−1B⇒X=A−1B.
X=A−1B
Multiplying on the left matters — matrix products do not commute, so BA−1 would be wrong.
When it works
The inverse A−1 exists only when detA=0, so:
detA=0: the system is consistent with the unique solution X=A−1B.
detA=0: no inverse; the system is either inconsistent (no solution) or has infinitely many — handle it by another method.
Worked steps
For the system above, detA=(2)(−1)−(3)(1)=−5=0, and
The inverse matrix method rewrites the system as Ax=b, then solves by x=A−1b. Here A−1=−3−2−4212213, and the solution is x=0, y=−5, z=−3.
The core idea: a system of linear equations can be written as a single matrix equation Ax=b. If A is invertible, multiplying both sides by A−1 gives x=A−1b — a clean, one-shot solution. No substitution, no elimination; just compute the inverse and multiply.
Here the coefficient matrix A is exactly the 3×3 matrix given. The constant vector b comes from the right-hand sides: 10, 8, 7. So the system is:
120−2−1−20−11xyz=1087
We need A−1 first.
1. Find the determinant of A
For a 3×3 matrix, expand along a row with zeros to save work. Row 1 has a zero in column 3, so expand along row 1:
detA=1⋅det(−1−2−11)−(−2)⋅det(20−11)+0⋅(…)
Compute each 2×2 determinant:
First: (−1)(1)−(−1)(−2)=−1−2=−3
Second: (2)(1)−(−1)(0)=2−0=2
So:
detA=1(−3)+2(2)=−3+4=1
Note
detA=1 means the inverse will have integer entries — no fractions to simplify later.
2. Find the matrix of cofactors
For each entry aij, the cofactor is Cij=(−1)i+jMij, where Mij is the minor (determinant of the matrix after removing row i, column j).
Let’s compute systematically:
C11=+det(−1−2−11)=−3
C12=−det(20−11)=−(2)=−2
C13=+det(20−1−2)=(−4−0)=−4
C21=−det(−2−201)=−[(−2)(1)−(0)(−2)]=−(−2)=2
C22=+det(1001)=1
C23=−det(10−2−2)=−[(−2)−0]=2
C31=+det(−2−10−1)=(2−0)=2
C32=−det(120−1)=−[(−1)−0]=1
C33=+det(12−2−1)=(−1+4)=3
So the cofactor matrix is:
C=−322−211−423
3. Transpose to get the adjugate
The adjugate (or adjoint) is the transpose of the cofactor matrix: