I've been stuck on this question for a while now and my exam is coming up so,any hints/comments etc. would be greatly appreciated.
Question:
Find the moment generating function of the probability density function with parameter $\theta > 0$,
$$f(x)= \frac 1 {\theta^2} xe^{-x/\theta}$$
I've tried the Gamma function and Integration by Parts but I'm still stuck.
The answer key gives this answer (I've attached a photo), but I'm not sure how they got to last step...
Thanks so much.
First let's write $x= \theta y$ to save digital trees, $$ \int_0^{\infty} e^{xt} \frac{1}{\theta^2}xe^{-x/\theta} \, dx = \int_0^\infty e^{\theta t y}ye^{-y} \, dy = \int_0^{\infty} y e^{-(1-t\theta)y} \, dy. $$ Now we do the integration by parts: we have $$ \int_0^{\infty} y e^{-ay} \, dy = \left[ -\frac{1}{a}ye^{-ay} \right]_0^{\infty}+\frac{1}{a}\int_0^{\infty} e^{-ay} \, dy. $$ The first term evaluates to $0$ (easy enough to see), and the second can be integrated directly to give $$ \int_0^{\infty} y e^{-ay} \, dy = \frac{1}{a^2}. $$ Now, in our case $a=(1-\theta t)$, which gives you your answer.