Guided Proof Prove that if $A$ and $B$ are diagonal matrices (of the same size), then $A B=B A$
Getting Started: To prove that the matrices $A B$ and $B A$ are equal, you need to show that their corresponding entries are equal.
(i) Begin your proof by letting $A=\left[a_{i j}\right]$ and $B=\left[b_{i j}\right]$ be two diagonal $n \times n$ matrices.
(ii) The ijth entry of the product $A B$ is $c_{i j}=\sum_{k=1}^{n} a_{i k} b_{k j}$
(iii) Evaluate the entries $c_{i j}$ for the two cases $i \neq j$ and $i=j$
(iv) Repeat this analysis for the product $B A$