Two square matrices M , N ∈ Mat n ( K ) {\displaystyle {}M,N\in \operatorname {Mat} _{n}(K)} are called similar, if there exists an invertible matrix B {\displaystyle {}B} with M = B N B − 1 {\displaystyle {}M=BNB^{-1}} .