Let $A,B$ be the two $3 \times 3$ matrices
$$A=\begin{bmatrix} 3 & 2 &-5\\2 &6&-10\\1 &2 & -3 \end{bmatrix}$$
$$B= \begin{bmatrix} 6 &20 &-34\\6 &32&-51\\4 &20 &-32 \end{bmatrix} $$
Suppose that there is a Non Singular matrix $P$ that $P^{-1}AP=B$. Find $P$
My idea is using Eigen Values we get Diagonilization of Matrices $A$ and $B$ as:
$$A=RD_AR^{-1}$$
$$B=QD_BQ^{-1}$$
Then we get:
$$QD_BQ^{-1}=P^{-1}RD_AR^{-1}P$$
But i feel this is very tedious procedure?
Let $$P=\begin{bmatrix} a & b& c \\ u & v& w\\ x & y & z \end{bmatrix}$$ $$PB=AP.$$ Then set up 9 linear simultaneous homogeneous equations for $a,b,...y,z$ as $$C_{9 \times 9} X_{9\times 1} =O_{9\times 1}$$ many solutions will exist for $X$, from a vector $X$, one can then determine a matrix $P$. The matric $P$ will be non-unique. The matrix $C$ will have its $\det|C|=0$ as zero, otherwise $X=O.$