I need to find the vector that minimizes this matrix equation;
$$\bar{v}.M_1.v-(\bar{v}.M_2.v)^2 $$
$v$ is a normalized complex vector and $\bar{v}$ is the complex conjugate but I can arrange parameters in such a way that it can be all real. $M_1$ and $M_2$ are Hermitian matrices and therefore the function I am asking is eventually a real number.
My idea was to rewrite the vector in terms of coefficients and then calculate the product and I get a quartic polynomial but solving it in higher dimensions is a mess.
So I thought maybe it is possible to use some matrix techniques which always simplifies things. Approximations are also accepted.
Also is there calculus techniques such that I can take derivative of this function and find the optimum vector?
If you didn't have normalization, this would be exactly solvable in the n=3 case by Sums of Squares methods.
In general this is hard, but there exist approximation algorithms with $1 - Cn^{-2}$ approximation ratios for quartic optimization with quadratic constraints (exactly what you have here).
As far as an explicit form for this problem, I'll write $A=M_1$, $B=M_2$, and $x=v$. The Lagrangian becomes $$L(x,\lambda)=x^* A x - (x^* B x)^2 + \lambda(1 - x^* x)$$ Taking the derivative says that at optimality $$ Ax - 2B x x^* B x - \lambda x=0\text{, or } (A - 2Bxx^*B - \lambda I)x = 0 $$ and, necessarily, $x^*x=1$. As far as I can tell this isn't easily solved.