Put . For every except the finitely many roots of , is invertible and is similar to , since . Hence
Both sides are polynomials in . Agreement for infinitely many makes them identical, so evaluating at proves Characteristic polynomials of AB and BA:
Their minimal polynomials need not agree. For
we have , , and . The two minimal polynomials are respectively and , although both characteristic polynomials are .
For any , the identity gives
Taking makes the right-hand side zero. Every annihilating polynomial is divisible by the minimal polynomial, so
If is diagonalizable, has only simple roots. Therefore each nonzero eigenvalue of has only size-one Jordan blocks, and the zero-eigenvalue blocks have size at most two. Squaring kills the latter nilpotent blocks, so is diagonalizable, as is .
By their common characteristic polynomial, and have the same eigenvalues counted with algebraic multiplicity. Squaring produces the same multiset of squared eigenvalues, including combined multiplicities if two eigenvalues have the same square. The two diagonalizable squares therefore have the same diagonal normal form up to permutation. This proves similarity of squared matrix products with one diagonalizable product:
It does not imply that and themselves are conjugate: the possible size-two nilpotent blocks at zero are exactly what squaring removes.