I'm trying to prove that if $V$ is a vector space and a linear operator $A: V \rightarrow V$ commutes with all $B \in \mathcal{L}(V,V)$ then $A= \lambda I$ and I need help. Here is what I have so far.
Since $A$ and $B$ commute then all the eigenspaces of $A$ are invariant under $B$. So $\forall v \in E_\lambda, A \in E_\lambda$. Thus, $ABv= \lambda Bv$ and since the two operators commute, it follows that $BAv= \lambda Bv= B(\lambda v)$. Hence, $Av=\lambda v$. Therefore we want to show that this is true for all $v \in V$ i.e, $E_\lambda=V$.
I tried playing around with some different options of $B$ such as a projection operator onto an arbitrary subspace or an automorphism, but I'm having trouble formalizing it into a proof and need help.