The characteristic polynomial of a square matrix is the polynomial \(p(\lambda)=\operatorname{det}(\lambda I-\) \(A\) ).
a) If two square matrices are similar, show that they have the same characteristic polynomials.
b) Conversely, if two matrices have the same characteristic polynomials, are they similar? Proof or counterexample.