I am trying to find the pdf of $Y=\cos(X)$ where $X$ is a random variable distributed uniformly in $[-\pi/2,\pi/2]$.
I tried to use the change of variable theorem but there is a detail in $[-\pi/2,\pi/2]$ since the cosine it's not monotone, and since $\cos(\pi/2)=0=\cos(\pi/2)$. I don't have a way to see the interval that corresponds to $Y$.
Thank you for helping!