Let $V$ be a vector space with dimension $n\in\mathbb{N}$ and $T:V→V$ a linear transformation such that $T\circ T(x)$ is invertible. Prove that $T$ is also invertible.
I'm thinking to use the Theorem that states: If $T:V→W$ is an invertible linear transformation with inverse $T^{-1}:W→V$, then $T^{-1}$ is a linear transformation.
Any tips on how I should go about this problem?
Hint:
For any maps $f:X\to Y$, $g:Y\to Z$,