Let
Show that D {\displaystyle {}D} commutes with all n × n {\displaystyle {}n\times n} -matrices M {\displaystyle {}M} if and only if all its diagonal entries coincide.