6. (10) Let $A, B \in M_{n \times n}(\mathbb{R})$. Prove that if A is similar to B, then the characteristic polynomials of $A$ and of $B$ are the same.
6. (10) Let $A, B \in M_{n \times n}(\mathbb{R})$. Prove that if A is similar to B, then the characteristic polynomials of $A$ and of $B$ are the same.