Problem
Let $X$ be a $\operatorname{Uniform}(0,1)$ random variable, and let $Y=e^{-X}$.
Find the CDF of $Y$.
Find the PDF of $Y$.
Find $\mathbb E[Y]$.
My problem
If I solve for the range of $y$ I get $\left(1, \frac 1e \right)$, but because $Y$ is not an increasing function, my second bound is smaller than my first. I am really confused as to how I would be able to solve for the CDF and PDF in this case... Any help would be greatly appreciated.