$X\in \text{Mat}_n (\mathbb{R} )$ and $|X|\neq 0$. $X$ has column vectors $X_1,X_2,\ldots ,X_n$. $Y$ is a matrix that consists of column vectors $X_2,X_3,\ldots ,X_n,0$. Let $A=YX^{-1}$ and $B=X^{-1}Y$. Find rank $A$ and rank $B$.
It's clear from $|AB|=|A||B|$ that $A$ and $B$ rank must be $<n$. How could I get definite answer here?
Hint: Use $\text{rank}\left(MN\right)\leq \min\left(\text{rank}(M),\text{rank}(N)\right)$.