Question:medium

Find the inverse of the following matrix :
\( A = \begin{pmatrix} 0 & 1 & 2 \\ 1 & 2 & 3 \\ 3 & 1 & 1 \end{pmatrix} \)

Show Hint

Find \(|A|=-2\), then the cofactors, then use \(A^{-1}=\frac{1}{|A|}\operatorname{adj}A\).
Result: \(A^{-1}=\begin{pmatrix} \frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \\ -4 & 3 & -1 \\ \frac{5}{2} & -\frac{3}{2} & \frac{1}{2} \end{pmatrix}\).
Updated On: Nov 19, 2026
Show Solution

Solution and Explanation

Step 1: Plan the method.
Instead of the adjoint formula, we row-reduce the augmented matrix $[A \mid I]$ until the left block becomes $I$. The right block is then $A^{-1}$. We use only elementary row operations.

Step 2: Write the augmented matrix.
\[ \left(\begin{array}{ccc|ccc} 0 & 1 & 2 & 1 & 0 & 0 \\ 1 & 2 & 3 & 0 & 1 & 0 \\ 3 & 1 & 1 & 0 & 0 & 1 \end{array}\right) \]

Step 3: Get a non-zero pivot in the first row.
The top-left entry is 0, so swap $R_1$ and $R_2$.
\[ \left(\begin{array}{ccc|ccc} 1 & 2 & 3 & 0 & 1 & 0 \\ 0 & 1 & 2 & 1 & 0 & 0 \\ 3 & 1 & 1 & 0 & 0 & 1 \end{array}\right) \]

Step 4: Clear the first column.
Apply $R_3 \to R_3 - 3R_1$.
\[ \left(\begin{array}{ccc|ccc} 1 & 2 & 3 & 0 & 1 & 0 \\ 0 & 1 & 2 & 1 & 0 & 0 \\ 0 & -5 & -8 & 0 & -3 & 1 \end{array}\right) \]

Step 5: Clear the second column.
Apply $R_1 \to R_1 - 2R_2$ and $R_3 \to R_3 + 5R_2$.
\[ \left(\begin{array}{ccc|ccc} 1 & 0 & -1 & -2 & 1 & 0 \\ 0 & 1 & 2 & 1 & 0 & 0 \\ 0 & 0 & 2 & 5 & -3 & 1 \end{array}\right) \]

Step 6: Make the last pivot 1.
Apply $R_3 \to \frac{1}{2}R_3$.
\[ \left(\begin{array}{ccc|ccc} 1 & 0 & -1 & -2 & 1 & 0 \\ 0 & 1 & 2 & 1 & 0 & 0 \\ 0 & 0 & 1 & \frac{5}{2} & -\frac{3}{2} & \frac{1}{2} \end{array}\right) \]

Step 7: Clear the third column.
Apply $R_1 \to R_1 + R_3$ and $R_2 \to R_2 - 2R_3$.
For $R_1$: $-2 + \frac{5}{2} = \frac{1}{2}$, $1 - \frac{3}{2} = -\frac{1}{2}$, $0 + \frac{1}{2} = \frac{1}{2}$.
For $R_2$: $1 - 5 = -4$, $0 + 3 = 3$, $0 - 1 = -1$.
\[ \left(\begin{array}{ccc|ccc} 1 & 0 & 0 & \frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \\ 0 & 1 & 0 & -4 & 3 & -1 \\ 0 & 0 & 1 & \frac{5}{2} & -\frac{3}{2} & \frac{1}{2} \end{array}\right) \]

Step 8: Read off the inverse.
The left block is now $I$, so the right block is $A^{-1}$. The reduction never got stuck because $|A| = -2$ is non-zero.

Final Answer:
\[ \boxed{A^{-1} = \begin{pmatrix} \frac{1}{2} & -\frac{1}{2} & \frac{1}{2} \\ -4 & 3 & -1 \\ \frac{5}{2} & -\frac{3}{2} & \frac{1}{2} \end{pmatrix}} \]
Was this answer helpful?
0