If are similar matrices, there is a method for finding in a finite number of elemental transformations using the concept ofequivalence of matrices.

Another way is to use the fact that have the same Jordan canonical form, etc. All of this would depend on your previous theoretical knowledge.

Fernando Revilla