If every subspace of a vector space V is invariant under a linear transformation T then T is a scalar transformation I got the following problem
Let $V$ be a vector space over field $\mathbb{F}$ and let $T:V \to V$ be a linear transformation such that every subspace of $V$ is invariant under $T$, Show that there exist a scalar $\alpha \in \mathbb{F}$ such that $T = \alpha I$ (meaning $T$ is a scalar transformation)
I tried to show it but I got that the matrix for $T$ in some basis $B$ is a diagonal matrix where each entry on the main diagonal is some eigenvalue $\lambda _i$, How do I show that all the eigenvalues are equal to each other?

For each vector $v \in V$, there exists $\alpha_v$ such that $Tv=\alpha_v v$ (because $Tv \in span({v})$). Suppose there are vectors $u,v \in V$ such that $\alpha_u \neq \alpha_v$. Then $$T(u+v)=Tu+Tv \Rightarrow \alpha_{u+v} (u+v)=\alpha_u u +\alpha_v v \Rightarrow (\alpha_{u+v}-\alpha_u)u+(\alpha_{u+v}-\alpha_v)v=0$$ which means $(u,v)$ is linearly dependent (since both coefficients cannot be zero simultaneously, by assumption). Therefore, either $\alpha_u=\alpha_v$, and $T$ is a scalar transformation, or $V$ has a dimension of at most 1, which also implies $Tx=\alpha x$, with constant $\alpha$.
Hence, $T=\alpha I, \alpha \in \mathbb{F}$
