I would like to evaluate
$$\int \cos(n\arccos(\sin(x)) dx$$
with $x \in [-1, 1],$ and I used a calculator do to so. At the very beginning, the calculator simplifies
$$\int \cos(n\arccos(\sin(x)) dx = \int \cos(nx) dx.$$
This looks like $\arccos(\sin(x)) = x$, but I don't see where this comes from.