I want to prove that $r(AB) = r(BA)$, where $r$ is a rank. $A$ is a square matrix and $B$ is an invertible matrix.
Can I use this?
$r(AB) \le min \{r(A), r(B)\} = r(A)$, and from the other side
$r(A) = r(BB^{-1}ABB^{-1}) \le min \{r(BB^{-1}), r(AB), r(B^{-1})\} = r(AB)$
hence $\;$ $r(AB) = r(A)$, and
$r(BA) \le min \{r(B), r(A)\} = r(A)$, and from the other side
$r(A) = r(B^{-1}BAB^{-1}B) \le min \{r(B^{-1}), r(BA), r(B^{-1}B))\} = r(BA)$
hence $\;$ $r(BA) = r(A)$,
and we proved that $r(AB)=r(BA)$.
Is this proof correct? Thank you.