I apologize if this is trivial but I am stuck.
Given the bijective function $f:(0,2\pi) \to (-2,2)$ with $$ f(x)=\cot\left(\frac{x}{2}\right)\sqrt{1-\cos(x)} $$ where $\cot$ is the cotangent, how can I find an inverse $g:(-2,2)\to (0,2\pi)$? Is there an explicit formula?