Let $A \in M_{m\times n}(\mathbb{R})$ and $B \in M_{n\times p}(\mathbb{R})$.
Prove that if $\operatorname{rank}(A)=n$ then $\operatorname{rank}(AB)=\operatorname{rank}(B)$.
I tried to start with definitions finding that $n \le m$, but didn't know what to do with $AB$.
Please help, thank you!
It is not hard to see that $\operatorname{rank}(B)\geq \operatorname{rank}(AB)$. Now, we can use Sylvester rank inequality $\operatorname{rank}(AB)+n\geq \operatorname{rank}(A)+\operatorname{rank}(B)$. One can see that $\operatorname{rank}(AB)+n\geq n+\operatorname{rank}(B)$. We can conclude that $\operatorname{rank}(AB)=\operatorname{rank}(B)$.