I have 3 Matrices : $A , B$ and $J.$ I know matrices $A$ and $J. J$ is the real jordan normal form of $A.$ The relationship between the three matrices is given by $BAB^{-1} =J.$
How can I find the matrix $B.$
For example,
$A= \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 1 &-1 & 1 \end{bmatrix}$
$J= \begin{bmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{bmatrix}$
$BAB^{-1}=J$ can be written as $BA-JB=0$. That's as far as I got.
Thanks for your help.
$BA - JB = 0$ can be considered as a $9 \times 9$ system of linear equations in the entries of $B$. Solve that system.