I end up with the equations;
$$u=u_1' \cos(a)+u_2' \cos(b)$$ $$u_1' \sin(a)=u_2' \sin(b)$$ $$u^2=u_1'^2+u_2'^2$$
I have to show that $$a+b=\frac{\pi}{2}$$
$x'$ isn't the derivative of $x$, it's a convenient way not to mix variables in physics.
I have no approach. Tried substituting the trigonometrics as $x,y$ etc but it became more confusing and I couldn't do any trig identities easily.
Disclaimer
I did some changes in variable names, for brevity. Namely $u_1' = x, u_2' = y$
Solution
$$ u = x \cos a + y \cos b \\ x \sin a = y \sin b \\ u^2 = x^2 + y^2 $$ Square first equation and use second equation $$ u^2 = x^2(1 - \sin^2 a) + y^2 (1 - \sin^2 b) + 2xy \cos a \cos b = x^2 + y^2 - 2x^2 \sin^2 a + 2xy \cos a \cos b $$ Now use third equation, so $$ x \sin^2 a = y \cos a \cos b \implies y \sin a \sin b = y \cos a \cos b \implies \tan a = \cot b \ = \tan (\pi/2 - b) $$ Within the range of periodicity it means that $$ a + b = \frac \pi 2 $$