Solution:
Concept: If two square matrices satisfy A B = k I AB = kI A B = k I with k ≠ 0 k \neq 0 k = 0 , then ( 1 k A ) B = I \left(\dfrac{1}{k}A\right)B = I ( k 1 A ) B = I . For square matrices a one-sided inverse is the inverse, so B − 1 = 1 k A B^{-1} = \dfrac{1}{k}A B − 1 = k 1 A ; a system whose coefficient matrix is B B B can then be solved as X = B − 1 C X = B^{-1}C X = B − 1 C without finding any cofactors.
Step 1 — Multiply the two matrices.
Each element of A B AB A B is a row of A A A times a column of B B B : multiply matching elements and add. We show the three products in every position, then their sums.
A B = [ − 5 1 3 7 1 − 5 1 − 1 1 ] [ 1 1 2 3 2 1 2 1 3 ] = [ − 5 + 3 + 6 − 5 + 2 + 3 − 10 + 1 + 9 7 + 3 − 10 7 + 2 − 5 14 + 1 − 15 1 − 3 + 2 1 − 2 + 1 2 − 1 + 3 ] = [ 4 0 0 0 4 0 0 0 4 ] = 4 I \begin{aligned}
AB &= \begin{bmatrix} -5 & 1 & 3 \\ 7 & 1 & -5 \\ 1 & -1 & 1 \end{bmatrix}\begin{bmatrix} 1 & 1 & 2 \\ 3 & 2 & 1 \\ 2 & 1 & 3 \end{bmatrix} \\
&= \begin{bmatrix} -5 + 3 + 6 & -5 + 2 + 3 & -10 + 1 + 9 \\ 7 + 3 - 10 & 7 + 2 - 5 & 14 + 1 - 15 \\ 1 - 3 + 2 & 1 - 2 + 1 & 2 - 1 + 3 \end{bmatrix} \\
&= \begin{bmatrix} 4 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 4 \end{bmatrix} \\
&= 4I
\end{aligned} A B = − 5 7 1 1 1 − 1 3 − 5 1 1 3 2 1 2 1 2 1 3 = − 5 + 3 + 6 7 + 3 − 10 1 − 3 + 2 − 5 + 2 + 3 7 + 2 − 5 1 − 2 + 1 − 10 + 1 + 9 14 + 1 − 15 2 − 1 + 3 = 4 0 0 0 4 0 0 0 4 = 4 I
So A B AB A B is 4 4 4 times the identity matrix.
Step 2 — Use the product to write B − 1 B^{-1} B − 1 .
Since A B = 4 I AB = 4I A B = 4 I , dividing both sides by 4 4 4 gives ( 1 4 A ) B = I \left(\dfrac{1}{4}A\right)B = I ( 4 1 A ) B = I . So 1 4 A \dfrac{1}{4}A 4 1 A is the inverse of B B B .
B − 1 = 1 4 [ − 5 1 3 7 1 − 5 1 − 1 1 ] B^{-1} = \dfrac{1}{4}\begin{bmatrix} -5 & 1 & 3 \\ 7 & 1 & -5 \\ 1 & -1 & 1 \end{bmatrix} B − 1 = 4 1 − 5 7 1 1 1 − 1 3 − 5 1
Step 3 — Write the system in matrix form.
The coefficients of x + y + 2 z = 1 x + y + 2z = 1 x + y + 2 z = 1 , 3 x + 2 y + z = 7 3x + 2y + z = 7 3 x + 2 y + z = 7 and 2 x + y + 3 z = 2 2x + y + 3z = 2 2 x + y + 3 z = 2 , row by row, are exactly the rows of B B B . So the system is B X = C BX = C B X = C , where C = [ 1 7 2 ] C = \begin{bmatrix} 1 \\ 7 \\ 2 \end{bmatrix} C = 1 7 2 .
[ 1 1 2 3 2 1 2 1 3 ] [ x y z ] = [ 1 7 2 ] \begin{bmatrix} 1 & 1 & 2 \\ 3 & 2 & 1 \\ 2 & 1 & 3 \end{bmatrix}\begin{bmatrix} x \\ y \\ z \end{bmatrix} = \begin{bmatrix} 1 \\ 7 \\ 2 \end{bmatrix} 1 3 2 1 2 1 2 1 3 x y z = 1 7 2
Step 4 — Solve using X = B − 1 C X = B^{-1}C X = B − 1 C .
Multiplying both sides on the left by B − 1 B^{-1} B − 1 gives X = B − 1 C X = B^{-1}C X = B − 1 C . We multiply each row of A A A by the column C C C and then divide by 4 4 4 .
[ x y z ] = B − 1 [ 1 7 2 ] = 1 4 [ − 5 1 3 7 1 − 5 1 − 1 1 ] [ 1 7 2 ] = 1 4 [ − 5 ( 1 ) + 1 ( 7 ) + 3 ( 2 ) 7 ( 1 ) + 1 ( 7 ) − 5 ( 2 ) 1 ( 1 ) − 1 ( 7 ) + 1 ( 2 ) ] = 1 4 [ − 5 + 7 + 6 7 + 7 − 10 1 − 7 + 2 ] = 1 4 [ 8 4 − 4 ] = [ 2 1 − 1 ] \begin{aligned}
\begin{bmatrix} x \\ y \\ z \end{bmatrix} &= B^{-1}\begin{bmatrix} 1 \\ 7 \\ 2 \end{bmatrix} \\
&= \dfrac{1}{4}\begin{bmatrix} -5 & 1 & 3 \\ 7 & 1 & -5 \\ 1 & -1 & 1 \end{bmatrix}\begin{bmatrix} 1 \\ 7 \\ 2 \end{bmatrix} \\
&= \dfrac{1}{4}\begin{bmatrix} -5(1) + 1(7) + 3(2) \\ 7(1) + 1(7) - 5(2) \\ 1(1) - 1(7) + 1(2) \end{bmatrix} \\
&= \dfrac{1}{4}\begin{bmatrix} -5 + 7 + 6 \\ 7 + 7 - 10 \\ 1 - 7 + 2 \end{bmatrix} \\
&= \dfrac{1}{4}\begin{bmatrix} 8 \\ 4 \\ -4 \end{bmatrix} \\
&= \begin{bmatrix} 2 \\ 1 \\ -1 \end{bmatrix}
\end{aligned} x y z = B − 1 1 7 2 = 4 1 − 5 7 1 1 1 − 1 3 − 5 1 1 7 2 = 4 1 − 5 ( 1 ) + 1 ( 7 ) + 3 ( 2 ) 7 ( 1 ) + 1 ( 7 ) − 5 ( 2 ) 1 ( 1 ) − 1 ( 7 ) + 1 ( 2 ) = 4 1 − 5 + 7 + 6 7 + 7 − 10 1 − 7 + 2 = 4 1 8 4 − 4 = 2 1 − 1
Step 5 — Check the answer in the original equations.
We put the values back into each equation (left side first). Each left side must equal its right side.
1 ( 2 ) + 1 ( 1 ) + 2 ( − 1 ) = 1 3 ( 2 ) + 2 ( 1 ) + 1 ( − 1 ) = 7 2 ( 2 ) + 1 ( 1 ) + 3 ( − 1 ) = 2 \begin{aligned}
1(2) + 1(1) + 2(-1) &= 1 \\
3(2) + 2(1) + 1(-1) &= 7 \\
2(2) + 1(1) + 3(-1) &= 2
\end{aligned} 1 ( 2 ) + 1 ( 1 ) + 2 ( − 1 ) 3 ( 2 ) + 2 ( 1 ) + 1 ( − 1 ) 2 ( 2 ) + 1 ( 1 ) + 3 ( − 1 ) = 1 = 7 = 2
All the equations are satisfied, so the solution is correct.
Watch out: The system's coefficient matrix is B B B , not A A A . So the inverse we need is B − 1 B^{-1} B − 1 , and it equals 1 4 A \dfrac{1}{4}A 4 1 A .
Therefore, A B = 4 I AB = 4I A B = 4 I , and the solution is x = 2 x = 2 x = 2 , y = 1 y = 1 y = 1 and z = − 1 z = -1 z = − 1 .