How can I prove $AB = BA$

100 Views Asked by At

Let $A$ and $B$ be $n \times n$ matrix, each with $n$ distinct Eigenvalues. Prove that $A$ and $B$ have same $n$ eigenvalues iff $AB = BA$.