$$ \text{Let} \qquad M=\begin{bmatrix} x(x^2-1)&x \\ 3&1\end{bmatrix} \quad.$$
I have to determine the values of $x$ for which $M^{-1}$ does not exist.
When $x=0$ and $x=2$ the determinant is $0$, so no inverse exists.
From doing the equation I keep getting that that $x=-2$ but when I substitute this into $x$ my determinant does not equal $0$ so therefore an inverse exists.
My question is: Am I doing something wrong with $-2$, and are there any other numbers that I can substitute into $x$ which would make the inverse not exist?