Matrix similarity
In linear algebra, two n-by-n matrices A and B are called similar if there exists an invertible n-by-n matrix P such that B = P − 1 A P . {\displaystyle B=P^{-1}AP.} Two matrices are similar if and only if they represent the same linear map under two possibly different bases, with P being the change-of-basis matrix.