Let $X\sim\text{Uniform} [0,1]$ and let $$Y=\frac{1}{X}-X.$$
Find the pdf of $Y$.
$f(x)=1$ if $0≤x≤1$, $0$ otherwise
$Y$ is a decreasing function. Thus, the pdf should be: $$f_y(y)=-f_x(g^-1(y)).|\frac{d}{dy}(g^-1(y))|$$ But how to find: $g^-1(y)$? ie. how to solve $y=(1/x)-x$ for $x$ to produce the inverse to $g(x)$?
Any advice much appreciated!