I'm triyng to do this exercize :
$$n \in \mathbb{N^*}, \ D_1,D_2,P \ \in \mathbb{M}_n(\mathbb{C})\ \text{with} \ D_1,D_2 \ \text{diagonals} \ \text{and} \ P \ \text{an invertible matrix}. \\\text{Let} \ A=PD_1P^{-1}, B=PD_2P^{-1}. \text{Are A and B commutative} ? $$
How is it possible to answer this without knowing more information on the matrices ?
Thanks you