Suppose we have $X$, a $\operatorname{Uniform}(0, 1)$ random variable which follows with the probability density function $f_X (x)$. Let $Y = \min\{X, 1 − X \}$. It wasn't asked but I want to find the pdf of $Y$.
I think I know how to deal with other transformations but the min here is really bothering me (since $\min(X)=X$ when $X$ is less then $0.5$ maybe I tried to investigate two cases for $Y$ ( $Y$ less then or equal to $0.5$ and greater then $0.5$) but I'm stuck.