Originally Posted by

**Jimmy_W** I'm a little confused about similar matrices.

Are the the following matrices similar?

$\displaystyle A = \begin{bmatrix} 1 & 2 & 1 \\ 0 & -2 & 1 \\ 1 & 0 & 2 \end{bmatrix} \ \$ $\displaystyle \ B = \begin{bmatrix} 1 & 0 & 3\\ 1 & 0 & 1 \\ 2 & 1 & 1\end{bmatrix} $

Now I know that similar matrices share a variety of properties....some of which I've already calculated.

$\displaystyle For A \ \Rightarrow \ $ Rank = 2, Determinant = 0, Trace = 1, Char. Polynomial = $\displaystyle \lambda^3 - \lambda^2 - 5 \lambda $

$\displaystyle For B \ \Rightarrow \ $ Rank = 3, Determinant = 2, Trace = 2, Char. Polynomial = $\displaystyle -2 + \lambda^3 - 2 \lambda^2 - 6 \lambda $

From this I would say that these two aren't similar, however, I have read other posts on this forum that make me think that the above properties aren't enough to safely conclude that the are or are not similar.

I am aware that if 2 matrices, A and B, are similar then there is a matrix P such that $\displaystyle B = P^{-1} AP $.

How then, do I calculate P?

Thanks in advance for any help