Let $S$ and $T$ be two matrices. Assume that $ST$ is invertible. I want to prove that $S$ and $T$ are invertible.
I managed to prove that $T$ is invertible. Here is my proof. Assume $T(X)=0$. Then $X=I X=(ST)^{-1}(ST)X=(ST)^{-1}S(0)=0$. So $T$ is invertible.
How to prove that $S$ is also invertible ?
I am assuming that $s$ and $T$ are square matrices. To see that $S$ is invertible, assume that $x$ is a vector of appropriate size and that $xS=0$. Then by your previous argument, $x=xI=x(ST)(ST)^{-1}=(0)T(ST)^{-1}=0$.