I have a Matrix whose eigenvectors are needed to be calculated and then I have to calculate the Projector out of it.
But due to some unavoidable(atleast up to now), I am not able to carry out the procedure.
(* Matrix definition *)
QEG = {{-(Exp[-I k]/Sqrt[2]), -((I Exp[-I k])/Sqrt[2])}, {-((I Exp[I k])/Sqrt[
2]), -(Exp[I k]/Sqrt[2])}};
(* Matrix eigenvectors*)
EvQ = Eigenvectors[QEG];
(* Eigenvectors Normalization*)
NomQ = Simplify[Normalize[EvQ], Assumptions -> Element[k, Reals]];
(* Projectors*)
Projector1 = Simplify[KroneckerProduct[NomQ[[1]], Conjugate[NomQ[[1]]]],
Assumptions -> Element[k, Reals]] // MatrixForm
Projector2 = Simplify[KroneckerProduct[NomQ[[2]], Conjugate[NomQ[[2]]]],
Assumptions -> Element[k, Reals]] // MatrixForm
But the result for NomQ
comes with Abs
and the result of Projector1/2
comes with Conjugate
. Couldn't seem to simplify it.
I went through enlightening answer(s) where they used ComplexExpand
, it didn't work here, unfortunately, only made it worse.
NomQ = Assuming[Element[k, Reals], Normalize /@ EvQ // ComplexExpand[#, TargetFunctions -> {Re, Im}] & // Simplify]
$\endgroup$Projector1
still has those hangingConjugate
. Can I use this expression to replace them? It seems bit numerically expensive $\endgroup$(Projector1 = Assuming[Element[k, Reals], KroneckerProduct[NomQ[[1]], Conjugate[NomQ[[1]]]]] // ComplexExpand[#, TargetFunctions -> {Re, Im}] & // Simplify) // MatrixForm
Note that theMatrixForm
formatting wrapper is isolated from the definition ofProjector1
by the use of parentheses. $\endgroup$