An elegant way to solve $\frac {\sqrt3 - 1}{\sin x} + \frac {\sqrt3 + 1}{\cos x} = 4\sqrt2 $ The question  is to find $x\in\left(0,\frac{\pi}{2}\right)$:
$$\frac {\sqrt3 - 1}{\sin x}  + \frac {\sqrt3  + 1}{\cos x} = 4\sqrt2 $$
What I did was to take the $\cos x$  fraction    to the right and try to simplify ;
But it looked very messy and trying to write $\sin x$  in terms of $\cos x$ didn't help. 
Is there a more simple (elegant) way to do this. 

Another approach is to write the equation as
$(\sqrt{3} - 1) \cos x +(\sqrt{3} + 1) \sin x = 4 \sqrt2 \sin x \cos x$
then rearranging gives
$\frac{\sqrt{3} - 1}{2 \sqrt{2}} \cos x +\frac{\sqrt{3} + 1}{2 \sqrt{2}} \sin x = 2  \sin x \cos x$.
Now note that $(\frac{\sqrt{3} - 1}{2 \sqrt{2}})^2 +(\frac{\sqrt{3} + 1}{2 \sqrt{2}})^2 = \frac{1}{8} ((3 -2 \sqrt{3} + 1) + (3 +2 \sqrt{3} + 1) = 1$ so that we can write $\frac{\sqrt{3} - 1}{2 \sqrt{2}}$ as the $\sin$ of some angle, say $\alpha$, and identify $\frac{\sqrt{3} + 1}{2 \sqrt{2}}$ as $\cos \alpha$.
Then you have to solve $\sin(\alpha + x) = \sin(2x)$, with $\tan \alpha = \frac{\sqrt{3} - 1}{\sqrt{3} + 1}$.
