Definition (similar matrix)

Two $n\times n$ matrices $A,B$ are similar if there exists an invertible matrix $P$ such that $$ B = P\inv A P. $$