The question that is being asked is: If $x = \tan{\frac{u}{2}}$, express $\sin(u)$ and $\cos(u)$ in terms of $x$. But my question isn't about how to do this, but how they treated the $\arctan(x)$ operation. In particular how did the solution manage to express $u = 2\arctan(x)$ ? The solution was presented as such:
Because either way you want to interpret
$$x = \tan{\frac{u}{2}} \text{or}\ \frac{\tan{u}}{2}$$
you still have to take the operation over the whole thing, unless there is something I'm missing about the treatment of $\arctan(x)$ that is idiosyncratic. Also from all I've read it is supposed to be $\tan{\frac{u}{2}}$, which makes things more confusing.

It is $x=\tan\left(\frac u2\right)$. So$$x=\tan\left(\frac u2\right)\iff\arctan(x)=\frac u2\iff2\arctan(x)=u.$$