Solve the equation $x^{3}-3 x=\sqrt{x+2}$
In the solution of this author wrote -
Let $-2 \leq x \leq 2 .$ Now Setting $x=2 \cos a, 0 \leq a \leq \pi$....
But here i did not understand the reason behind taking $ 0 \leq a \leq \pi$,i mean if we can take $a$ to be any real number since domain of $\cos x$ is real numbers then why we are restricting to $ 0 \leq a \leq \pi$ ?


Note that for
$$0 \leq a \leq \pi \implies -1\le \cos a \le 1 \implies -2\le 2\cos a \le 2$$
which suffices to cover by a bijection the whole range for $x=2\cos a$.
Note that the assumption is due to these facts