When deducing the formula for $\sin^{-1}x+\sin^{-1}y$, we eventually obtain an expression $$\sin(A+B)=x\sqrt{1-y^2}+y\sqrt{1-x^2}=k$$ where $A=\sin^{-1}x$ and $B=\sin^{-1}y$, and then deduce $A+B=\sin^{-1}k$.
But for inverse to exist, $A$ and $B$ both must be within the range $[-\frac{\pi}{2},\frac{\pi}{2}]$, but here $A+B$ is in the range $[-\pi,\pi]$. So how can we take $\sin$ to the other side and write $A+B=\sin^{-1}k$ whence $A+B$ should have been in the range $[-\frac{\pi}{2},\frac{\pi}{2}]$?