The distribution of a function

To find the density of $Y = g(X)$, write its CDF $P(g(X) \le y)$ as a probability about $X$ and differentiate; putting $g$ into the density alone gives the wrong answer.

From Probability.