Whenever a matrix \(A\) satisfies a polynomial equation, you can find its inverse (if it exists) by rearranging the equation to the form \(A . P(A) = kI\), where \(P(A)\) is some polynomial in \(A\) and \(k\) is a non-zero scalar. Then, \(A^{-1} = \frac{1}{k}P(A)\). The inverse exists if and only if the constant term in the polynomial is non-zero.