Suppose we are given cartesian coordinates $x=r\cos\varphi$ and $y=r\sin\varphi$.
In polar coordinates these become $r=\sqrt{x^2+y^2}$ and $$\varphi=\arctan(\frac{y}{x}).$$ My question is why do we have to find $\varphi$ using arctan? If $x=r\cos\varphi$ and $y=r\sin\varphi$ then doesn't $$\varphi=\arccos(\frac{x}{r})$$ and $$\varphi=\arcsin(\frac{y}{r})?$$ These three numbers are not always the same, so how do we know when we can use $\arccos$ or $\arcsin$ instead of $\arctan$?
The truth is that you need a function which is usually found in the programming languages under the name $\text{atan2}(y, x)$ and that operates on the four quadrants, hence takes into account the signs of $x$ and $y$.
I don't know of an equivalent in mathematical notation, except maybe $\angle(x+iy)$ or $\arg(x+iy)$ borrowed from the complex numbers