Let $V$ be a vector space over $\mathbb F$, and Let $T,S:V\to V$ be linear transformation. Let us assume that both $S,T$ are diagonalizable.
Prove that there exists a mutual basis $B$ for which $S,T$ are both diagonal iff $ST=TS$
$$$$ Well, one direction was pretty simple:
If we assume there exists a mutual basis $v_1,\dots,v_n$ for which both $S,T$ are diagonalizable and that $\lambda_i, \mu_i$ are the eigenvalues respectively, then:
$$(ST)v_i = S(Tv_i) = S(\mu_i v_i) = \lambda_i \mu_i v_i$$
The same goes for $TS$ and this is how we prove that $ST=TS$.
$$$$ I got stuck proving the other direction.
We need to prove that there exists a basis $v_1,\dots,v_n$ for which both $S,T$ are diagonalizable. I started by taking a diagonal basis $b_1,\dots, b_n$ for $T$, and showd that $Sb_i$ is an eigenvector of $T$ for each $i$. The same can be shown for a diagonal asis for $S$. But I'm not sure if this is the right direction and how to continue from here.
Thanks.