Let $l \leq m$ are positive integers and $A$ and $B$ are two $l \times m$ matrices over a field $\mathbb{F}.$ If $\text{rank}(A)=\text{rank}(B)=l$ then I have to show that there is an $m \times m$ invertible matrix $P$ over $\mathbb{F}$ such that $AP = B.$
I have no idea how to start it. I need some help. Thanks.
The reduced row echelon form of $A^T$ must be $\displaystyle R = \begin{pmatrix}I_{l\ \times\ l} \\ 0_{m - l\ \times\ l}\end{pmatrix}$, because the columns of $A^T$ are linearly independent. The same is true of $B^T$. Thus there are invertible matrices $P_A$ and $P_B$ such that $$P_A A^T = R \text{ and }P_B B^T = R,$$ so $$AP_A^T = BP_B^T,$$ whence $$A(P_A^T)(P_B^T)^{-1} = B$$ so you can take $P = (P_A^T)(P_B^T)^{-1}$.