My book offers a different proof for the following question and after some consideration I reckon my attempt is incorrect, but I cannot pinpoint why.
Let A,B be square matrices of the same size. Show that the eigenvalues of AB and BA are equal.
I wrote $det(AB - \lambda I) = det(AB) - det(\lambda I) = det(BA) - det(\lambda I) = det(BA - \lambda I)$ ergo the characteristic polynomials are equal.
I ask: flaw in reasoning is where? Thanks.