I am trying to solve part (b) of this question, but I am having trouble with something. With some help, I have been able to solve the following:
$$ \begin{align*} \max_{a \neq 0, b \neq 0}\operatorname{Cor}(a^\top X_1, b^\top X_2) &= \max_{a \neq 0, b \neq 0} \frac{a^\top \Sigma_{12} b}{\sqrt{a^\top \Sigma_{11} a} \sqrt{b^\top \Sigma_{22} b}} \\ &= \max_{a \neq 0, b \neq 0} \frac{a^\top \Sigma_{11}^{1/2}\Sigma_{11}^{-1/2} \Sigma_{12} \Sigma_{22}^{1/2}\Sigma_{22}^{-1/2} b}{\sqrt{a^\top \Sigma_{11}^{1/2}\Sigma_{11}^{1/2} a} \sqrt{b^\top \Sigma_{22}^{1/2} \Sigma_{22}^{1/2} b}} \\ &= \max_{u \neq 0, v \neq 0} \frac{u^\top M v}{\sqrt{u^\top u}\sqrt{v^\top v}} \end{align*} $$ using $u = \Sigma_{11}^{1/2} a$ and $v = \Sigma_{22}^{1/2}b$.
However, I don't know how I have to get to the square of this. Surely just squaring the outcome will not help, because then you also have the square of the correlation. Can someone help me with this?
Thanks in advance.