Let matrices $A$ and $B$ be symmetric and positive definite, and of the same size. How do we solve the quadratic matrix equation $XAX = B$?
I was wondering about this, because I can't just use $X = B^\frac{1}{2}A^\frac{1}{2}$, as $B^\frac{1}{2}A^\frac{1}{2} \neq A^\frac{1}{2}B^\frac{1}{2}$.
In broader context, I am trying to maximize $2 \operatorname{Tr} (C)$ with the constraint $A - C B C^\top \succeq 0$. So $X$ would be the Lagrange multiplier.