# A basic doubt over diagonalization of a matrix

Suppose, we have a matrix $A$ which is diagonalizable i.e. there exist an invertible matrix $B$ such that $B^{-1}AB = D$ where $D$ is a diagonal matrix. Is $B$ unique ? I don't think so.

• No, it is not. For instance $2B$ will do as well. Given $B$, try to characterize all the matrices that diagonalize $A$ using $B$ and all the matrices that commute with $A$. Oct 26, 2013 at 17:54
• Consider what happens if $A$ is already diagonal. Then $B$ can be any diagonal matrix, and $B^{-1}AB=D$ will be diagonal. So in this case $B$ is not unique Oct 26, 2013 at 17:55
• The only thing which is unique are the eigenvalues and their associated eigenspaces. How you order them or how you choose their bases stuffed in $D$ and $B$ does not matter :) Oct 26, 2013 at 20:09
• For the equality $PIP^{-1}=I$ to hold, is $P$ unique? Oct 26, 2013 at 20:28

(The only exception is if $A$ is a $1\times 1$ matrix over $\mathbb F_2$. Then $B$ is unique for the trivial reason that in that case $I$ is the only possible invertible matrix of the right size).