is cos x one to one?
Since cosine is not a one-to-one function, the domain must be limited to 0 to pi, which is called the restricted cosine function. The inverse cosine function is written as cos^-1(x) or arccos(x). Inverse functions swap x- and y-values, so the range of inverse cosine is 0 to pi and the domain is -1 to 1.