Suppose X has density f(X) on range [a,b]. The density is 0 outside of this range. Suppose Y=g(X), where the function g is one-to-one and differentiable on the range [a,b] of possible outcomes of X. How do we compute the density of Y? This is done by the change of variables formula described below: