Step 1: Understanding the Concept:
A square matrix \(A\) has an inverse only when \(|A| \ne 0\). When it exists, the inverse is found with the adjoint (the transpose of the cofactor matrix).
Step 2: Key Formula or Approach:
\[ A^{-1} = \frac{1}{|A|}\,\operatorname{adj}A \]
where \(\operatorname{adj}A\) is the transpose of the matrix of cofactors \(C_{ij} = (-1)^{i+j} M_{ij}\).
Step 3: Find the determinant of \(A\).
\[ A = \begin{pmatrix} 0 & 1 & 2 \\ 1 & 2 & 3 \\ 3 & 1 & 1 \end{pmatrix} \]
Expand along the first row.
\[ |A| = 0\,(2\cdot 1 - 3\cdot 1) - 1\,(1\cdot 1 - 3\cdot 3) + 2\,(1\cdot 1 - 2\cdot 3) \]
\[ |A| = 0 - 1(1 - 9) + 2(1 - 6) = 8 - 10 = -2 \]
Since \(|A| = -2 \ne 0\), the inverse exists.
Step 4: Find all nine cofactors.
\[ C_{11} = +(2\cdot 1 - 3\cdot 1) = -1, \quad C_{12} = -(1\cdot 1 - 3\cdot 3) = 8, \quad C_{13} = +(1\cdot 1 - 2\cdot 3) = -5 \]
\[ C_{21} = -(1\cdot 1 - 2\cdot 1) = 1, \quad C_{22} = +(0\cdot 1 - 2\cdot 3) = -6, \quad C_{23} = -(0\cdot 1 - 1\cdot 3) = 3 \]
\[ C_{31} = +(1\cdot 3 - 2\cdot 2) = -1, \quad C_{32} = -(0\cdot 3 - 2\cdot 1) = 2, \quad C_{33} = +(0\cdot 2 - 1\cdot 1) = -1 \]
Step 5: Write the adjoint.
The cofactor matrix is \(\begin{pmatrix} -1 & 8 & -5 \\ 1 & -6 & 3 \\ -1 & 2 & -1 \end{pmatrix}\). The adjoint is its transpose:
\[ \operatorname{adj}A = \begin{pmatrix} -1 & 1 & -1 \\ 8 & -6 & 2 \\ -5 & 3 & -1 \end{pmatrix} \]
Step 6: Divide by the determinant.
\[ A^{-1} = \frac{1}{-2} \begin{pmatrix} -1 & 1 & -1 \\ 8 & -6 & 2 \\ -5 & 3 & -1 \end{pmatrix} = \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} \]
Step 7: Quick check.
Multiply the first row of \(A\) by the first column of \(A^{-1}\): \(0\cdot\frac{1}{2} + 1\cdot(-4) + 2\cdot\frac{5}{2} = -4 + 5 = 1\). Multiply the first row of \(A\) by the second column: \(0 + 3 - 3 = 0\). These match the identity matrix.
Final Answer:
The inverse of \(A\) is
\[ \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}} \]