The Domain of $f(x)$ is $(0,1)$.
When finding the domain of $f(\ln(x))$ We can say: $0<\ln x<1$ and apply the inverse $\ln$ function $\exp$.
We get $e^0 < e^{\ln(x)} < e^1$ which leads to $1<x<e$.
When trying to apply the same method on $f(\cos(x))$ we get : $\cos^{-1}0 < x < \cos^{-1}1$ which leads to $\frac{\pi}{2} < x < 0$ .
I know that this is flawed because the domain of $f(\cos(x))$ while : $0 < \cos(x) < 1$ should be: $-\frac{\pi}{2} < x < \frac{\pi}{2}$ (neglecting periodicity).
Where is the flaw in this method for the use on $\cos$ function?