While trying to learn regression equations, I came across this puzzling procedure:
How does one get from $x*e^{-x(1+y)}$ to $e^{-x}$? I initially assumed that $\int x*e^{-x(1+y)} dy $ would do the trick, but unless I've horribly forgotten how to do basic integration, I'm not coming up with the right answer.

I suspect one of the following two things has gone wrong:
-You need to integrate from y=0 to y=infinity since f is defined for y>0.
-You're getting the reverse chain rule wrong; the derivative of the exponent is -x with respect to y.
$$ \int_{y=0}^{\infty} xe^{-x(1+y)} dy = \left[ -e^{-x(1+y)} \right] _{0}^{\infty} = 0 - \left( -e^{-x} \right) = e^{-x} $$