I know that matrix multiplication is not commutative: $ AB \neq BA$.
Still, it may be possible that $\operatorname {rank} (AB) = \operatorname {rank} (BA)$. But it seems to be not true.
How can it be proved that $ \operatorname {rank} (AB) \neq \operatorname {rank} (BA)$?
(Usually it's not a big deal to prove a negative statement since it only take to find one example when the equality is not satisfied.)
Let $A=\pmatrix{0&1\\0&0}$ and let $B=\pmatrix{1&0\\0&0}$. These are matrices of simple geometric transformations.
If $v$ is a point in the plane, viewed as a vector, then $Bv$ is the projection of $v$ on the $x$-axis.
And if $w$ is a point in the plane, then $Aw$ is projection onto the $y$-axis, followed by reflection in the line $y=x$.
Now look at $A(Bv)$. We have (i) projected $v$ onto the $x$-axis, and then (ii) projected the result onto the $y$-axis, then reflected in the line $y=x$. Before the reflection, we are already at $(0,0)$, so $AB$ kills every vector.
Look next at $B(Av)$. If the $y$-component of $v$ is non-zero, $Av$ is a non-zero point on the $x$ axis, and the projection $B$ does nothing to $Av$. Thus $B(Av)$ is not the $0$-vector for "most" $v$.