I need to find the moment generating function of $G = Y - X$ where $Y$ ~ exp($\frac{1}{2}$) and $X$ ~ exp(1). X and Y are independent.
I read in another topic that $m_{Y-X}(r) = \frac{m_Y(r)}{m_X(r)}$ but I couldn't find a proof.
I started as follows but I guess the last step is incorrect:
$m_G(r)=E[e^{rG}] = E[e^{r(Y-X)}] =E[e^{rY}e^{-rX}] = E[e^{rY}]E[e^{-rX}]=m_Y(r) m_X(-r)$.
Can somebody explain what is the correct answer and maybe give a proof?