I am new to functions and domains and I am not sure that I can assume following because I think that the range of first function is $[0, 1]$ and the range of second is $(-\infty, \infty)$.
The original question: Find $f(x)$ if $f( \cos^2(x) ) = \cos^2(x)$