We need to solve the following least square problem $$\min_x (Y-Ax)^TW(Y-Ax)$$ $$s.t. x^TA^TAx=1$$ $$c^Tx=0$$ in a closed form, where $Y \in \mathbb{R}^{n\times 1}$, $A \in \mathbb{R}^{n\times n}$, $W \in \mathbb{R}^{n\times n}$, and $c \in \mathbb{R}^{n\times 1}$ are given.
Indeed we try to solve this optimization problem by employing Lagrange multipliers and obtaining the following equations $$A^TWAx+{\alpha}A^TAx=A^TWY-{\frac{1}{2}}{\beta}c$$ $$x^TA^TAx=1$$ $$c^Tx=0$$ where ${\alpha}$ and ${\beta}$ are Lagrange multipliers. However, we failed to solve these equations analytically.
So, can the above optimization problem be solved analytically? If not, what method should be used to deal with this optimization problem? Can anyone help us? Thanks a lot!