I know it's been answered before (at least to the case with $n$ different eigenvalues) but I didn't find a proof for the general case, and I would like some help with this question.
We are given linear transforms $S,T: V\to V$ where $V$ is some vector space.
We are given that $S$ and $T$ commute, $ST=TS$, and that they are diagonalizable:
$T=PD_1P^{-1}$ and $S=KD_2K^{-1}$, where $D_1, D_2$ are diagonal and $K,P$ are invertible.
We are asked to show that $S$ and $T$ have a common eigenspace.
My solution
Maybe I understood the question wrong, but what I tried to do is show that if $v$ is an eigenvector of $S$ then it is also an eigenvector of $T$.
let $Sv=\lambda v$.
$STv=TSv=T\lambda v=\lambda Tv$ which implies that $Tv$ is an eigenvector of $S$ with eigenvalue $\lambda$.
Why does that mean that $v$ is an eigenvalue of $T$?
Another possible way to solve this question is write:
$PD_1P^{-1}KD_2K^{-1} = KD_2K^{-1}PD_1P^{-1}$ and get that $P=K$ but I don't know how to do that either.