Find all $y<0$ such that the matrix defined for $y<0$ $$\begin{pmatrix}-3&2&y\\ 0&1&-\frac{1}{y}\\ y&0&y\end{pmatrix}$$ has rank $2$.
It seems ok, we just need a $0$ row, which could be the last row for example, if $y = 0$. However, this would mess up the condition in the second row, where $y≠0$. Im not sure what to do, any suggestions?
Could the determinant help in this case?
Edit: the post has been edited, so the answer is no longer correct, but the method is and it does not require any knowledge of eigenvalues, so I will leave it up as it generally applicable to all of these types of problems. See the other answer for the correct solution to the now edited question.
Original:
What others wrote in the comments will work, but this is the easiest way in my opinion. We can solve this problem using Gaussian elimination to bring the Matrix into upper triangular form, as we know that this preserves Rank (here it also important that $y \neq 0 $, which we already know): $$\begin{pmatrix}-3&2&y\\ \:0&1&\frac{1}{y}\\ \:y&0&y\end{pmatrix} \rightarrow \begin{pmatrix}-y&\frac{2}{3}y&\frac{1}{3}y^2\\ \:\:0&1&\frac{1}{y}\\ \:\:0&\frac{2}{3}y&y+\frac{2}{3}y^2\end{pmatrix}\rightarrow \begin{pmatrix}-y&\frac{2}{3}y&\frac{2}{3}y^2\\ \:\:0&\frac{2}{3}y&\frac{2}{3}\\ \:\:0&0&y+\frac{1}{3}y^2-\frac{2}{3}\end{pmatrix}$$ From this we can see that when $y=\frac{-3+\sqrt{17}}{2}$ or $y=\frac{-3-\sqrt{17}}{2}$ we get a matrix of rank 2.