My Lie algebra theory is quite rusty, and I have problems in proving the following or giving a counterexample.
Let $L$ be a non-abelian Lie subalgebra of $\mathfrak{gl}_n$ such that the bilinear form given by $b(x,y) = tr(xy)$ is nondegenerate. Then any matrix in the center of $L$ is diagonal.
Certainly the result is false if you omit the "non-abelian", but I've not been able to prove it nor to find a counterexample for non-abelian subalgebras.
Any help? Thanks in advance.