$$mt1 = \pmatrix{a& b& c\\b& d& e\\c& e&h}$$
For $mt1^T.mt2.mt1$ = d
, where mt1 is an orthogonal matrix, mt2 is a real symmetric matrix and d is a diagonal matrix with eigenvalues of mt2 on the diagonal. How to find mt1 such that it is orthogonal and contains three variables using Mathematica. Any suggestion is appreciated!
mt1
is found viaEigensystem
. This in turn can be parametrized by the coefficients of the characteristic polynomial ofmt2
. These are found asIn[362]:= coeffs = Rest[Reverse[CoefficientList[-CharacteristicPolynomial[m, t], t]]] Out[362]= {-a - d - h, -b^2 - c^2 + a d - e^2 + a h + d h, c^2 d - 2 b c e + a e^2 + b^2 h - a d h}
$\endgroup$d
values in this way. $\endgroup$