Let D be the n × n diagonal matrix with diagonal entries Dii = di (i = 1, ...., n), which are distinct; ie di = dj ⇒ i = j. Let A be a real n × n matrix commuting with D, so AD = DA. Show that A must be diagonal. Is this true if some of the diagonal entries of D are equal ? Explain.