Let $A$ and $B$, be two $n\times n$ matrices such that $A=P^{-1}BP$ for some invertible matrix $P$. Show that both $A$ and $B$ have the same minimal polynomial.
I'm not sure how to approach this. The only method I know to find minimal polynomial of a matrix is to estimate from its characteristic polynomial using the fact that characteristic polynomial and minimal polynomial must have same roots. Any hints/suggestions?