It is well known that the set $\mathcal{D}_n(\mathbb{C})$ of all complex, diagonalizable, $n \times n$ matrices is dense in $\mathcal{M}_n(\mathbb{C})$, the set of all complex $n \times n$ matrices. And that two diagonalizable matrices which commute are simultaneously diagonalizable.
The exercise, which I am having difficulty to solve, is the following.
Let $A,B \in \mathcal{M}_n(\mathbb{C})$. Suppose $AB = BA$ and let $\varepsilon >0$. Show that there exists two simultaneously diagonalizable complex, $n \times n $ matrices, $C$ and $D$ such that $\| A - C \| \leq \varepsilon $ and $\| B - D \| \leq \varepsilon$.
I have managed to find a solution when $A$ (or $B$) is diagonalizable... But I really cannot find the answer in the general case.
Anyone able to help me out ?