Suppose $A$ is a square diagonal matrix. Suppose $B$ is a square diagonalizable matrix (i.e. there is a basis $\beta$ for $V = \mathbb{R}^n$ with respect to which the linear transformation represented by $B$ is representable by a diagonal matrix). Can we find a basis for $V$ wrt which both $A$ and $B$ are diagonal? If so, how?
If $B$ represents some lin. transf. $T$ with resp. to the standard basis for $V$, and $B$ is diagonalizable, then there is a basis $\beta$ for $V$ with respect to which $T$ is representable by $kI$ (some diagonal matrix). If $A$ is diagonalizable to begin with (wrt standard basis), will it also be diagonal wrt $B$ in general? I want to say no. How can I prove that a basis $B'$ exists with respect to which both $A$ and $B$ are diagonal?