Solution:
Key idea: If the product A B AB A B equals k I kI k I for some number k ≠ 0 k \neq 0 k = 0 , then 1 k B \dfrac{1}{k}B k 1 B is the inverse of A A A .
A system with coefficient matrix A A A and constant column D D D then has the solution X = A − 1 D X = A^{-1}D X = A − 1 D .
Step 1 — Find A B AB A B .
We multiply each row of A A A by each column of B B B and add the products.
A B = [ ( 1 ) ( 2 ) + ( − 1 ) ( − 4 ) + ( 0 ) ( 2 ) ( 1 ) ( 2 ) + ( − 1 ) ( 2 ) + ( 0 ) ( − 1 ) ( 1 ) ( − 4 ) + ( − 1 ) ( − 4 ) + ( 0 ) ( 5 ) ( 2 ) ( 2 ) + ( 3 ) ( − 4 ) + ( 4 ) ( 2 ) ( 2 ) ( 2 ) + ( 3 ) ( 2 ) + ( 4 ) ( − 1 ) ( 2 ) ( − 4 ) + ( 3 ) ( − 4 ) + ( 4 ) ( 5 ) ( 0 ) ( 2 ) + ( 1 ) ( − 4 ) + ( 2 ) ( 2 ) ( 0 ) ( 2 ) + ( 1 ) ( 2 ) + ( 2 ) ( − 1 ) ( 0 ) ( − 4 ) + ( 1 ) ( − 4 ) + ( 2 ) ( 5 ) ] AB = \begin{bmatrix} (1)(2) + (-1)(-4) + (0)(2) & (1)(2) + (-1)(2) + (0)(-1) & (1)(-4) + (-1)(-4) + (0)(5) \\ (2)(2) + (3)(-4) + (4)(2) & (2)(2) + (3)(2) + (4)(-1) & (2)(-4) + (3)(-4) + (4)(5) \\ (0)(2) + (1)(-4) + (2)(2) & (0)(2) + (1)(2) + (2)(-1) & (0)(-4) + (1)(-4) + (2)(5) \end{bmatrix} A B = ( 1 ) ( 2 ) + ( − 1 ) ( − 4 ) + ( 0 ) ( 2 ) ( 2 ) ( 2 ) + ( 3 ) ( − 4 ) + ( 4 ) ( 2 ) ( 0 ) ( 2 ) + ( 1 ) ( − 4 ) + ( 2 ) ( 2 ) ( 1 ) ( 2 ) + ( − 1 ) ( 2 ) + ( 0 ) ( − 1 ) ( 2 ) ( 2 ) + ( 3 ) ( 2 ) + ( 4 ) ( − 1 ) ( 0 ) ( 2 ) + ( 1 ) ( 2 ) + ( 2 ) ( − 1 ) ( 1 ) ( − 4 ) + ( − 1 ) ( − 4 ) + ( 0 ) ( 5 ) ( 2 ) ( − 4 ) + ( 3 ) ( − 4 ) + ( 4 ) ( 5 ) ( 0 ) ( − 4 ) + ( 1 ) ( − 4 ) + ( 2 ) ( 5 )
A B = [ 6 0 0 0 6 0 0 0 6 ] AB = \begin{bmatrix} 6 & 0 & 0 \\ 0 & 6 & 0 \\ 0 & 0 & 6 \end{bmatrix} A B = 6 0 0 0 6 0 0 0 6
So A B = 6 I AB = 6I A B = 6 I , where I I I is the 3 × 3 3 \times 3 3 × 3 identity matrix.
Step 2 — Write down A − 1 A^{-1} A − 1 .
Dividing both sides by 6 6 6 gives
A ( 1 6 B ) = I A\left(\dfrac{1}{6}B\right) = I A ( 6 1 B ) = I
So 1 6 B \dfrac{1}{6}B 6 1 B is the inverse of A A A .
A − 1 = 1 6 B A^{-1} = \dfrac{1}{6}B A − 1 = 6 1 B
Step 3 — Write the system in matrix form.
The equations x − y = 3 x - y = 3 x − y = 3 , 2 x + 3 y + 4 z = 17 2x + 3y + 4z = 17 2 x + 3 y + 4 z = 17 and y + 2 z = 7 y + 2z = 7 y + 2 z = 7 have coefficient rows ( 1 , − 1 , 0 ) (1, -1, 0) ( 1 , − 1 , 0 ) , ( 2 , 3 , 4 ) (2, 3, 4) ( 2 , 3 , 4 ) and ( 0 , 1 , 2 ) (0, 1, 2) ( 0 , 1 , 2 ) , which are exactly the rows of A A A . So the system is A X = D AX = D A X = D with
X = [ x y z ] , D = [ 3 17 7 ] X = \begin{bmatrix} x \\ y \\ z \end{bmatrix}, \quad D = \begin{bmatrix} 3 \\ 17 \\ 7 \end{bmatrix} X = x y z , D = 3 17 7
Step 4 — Find X = A − 1 D X = A^{-1}D X = A − 1 D .
We replace A − 1 A^{-1} A − 1 by 1 6 B \dfrac{1}{6}B 6 1 B and multiply each row of B B B by the column D D D .
X = 1 6 [ 2 2 − 4 − 4 2 − 4 2 − 1 5 ] [ 3 17 7 ] X = \dfrac{1}{6}\begin{bmatrix} 2 & 2 & -4 \\ -4 & 2 & -4 \\ 2 & -1 & 5 \end{bmatrix}\begin{bmatrix} 3 \\ 17 \\ 7 \end{bmatrix} X = 6 1 2 − 4 2 2 2 − 1 − 4 − 4 5 3 17 7
X = 1 6 [ ( 2 ) ( 3 ) + ( 2 ) ( 17 ) + ( − 4 ) ( 7 ) ( − 4 ) ( 3 ) + ( 2 ) ( 17 ) + ( − 4 ) ( 7 ) ( 2 ) ( 3 ) + ( − 1 ) ( 17 ) + ( 5 ) ( 7 ) ] X = \dfrac{1}{6}\begin{bmatrix} (2)(3) + (2)(17) + (-4)(7) \\ (-4)(3) + (2)(17) + (-4)(7) \\ (2)(3) + (-1)(17) + (5)(7) \end{bmatrix} X = 6 1 ( 2 ) ( 3 ) + ( 2 ) ( 17 ) + ( − 4 ) ( 7 ) ( − 4 ) ( 3 ) + ( 2 ) ( 17 ) + ( − 4 ) ( 7 ) ( 2 ) ( 3 ) + ( − 1 ) ( 17 ) + ( 5 ) ( 7 )
X = 1 6 [ 12 − 6 24 ] X = \dfrac{1}{6}\begin{bmatrix} 12 \\ -6 \\ 24 \end{bmatrix} X = 6 1 12 − 6 24
X = [ 2 − 1 4 ] X = \begin{bmatrix} 2 \\ -1 \\ 4 \end{bmatrix} X = 2 − 1 4
Step 5 — Check in the second equation.
We put the values into the left side of the second equation.
2 ( 2 ) + 3 ( − 1 ) + 4 ( 4 ) = 17 2(2) + 3(-1) + 4(4) = 17 2 ( 2 ) + 3 ( − 1 ) + 4 ( 4 ) = 17
This matches the right side, as required.
Therefore, x = 2 x = 2 x = 2 , y = − 1 y = -1 y = − 1 and z = 4 z = 4 z = 4 .