I have two random variables
$Y \sim \operatorname{Beta}(a, 1 - a)$
$Z \sim \operatorname{Exp}(1)$
If $Y$ and $Z$ are independent, why is the distribution of $X = YZ \sim \operatorname{Gamma}(a, 1)$?
$f_X(x) = \int_0^\infty|\frac{1}{y}|f_Y(y)f_Z(\frac xy)dy$
$f_X(x) = \int_0^\infty \frac{1}{y}\frac{1}{\Gamma(\alpha)\Gamma(1-\alpha)}y^{\alpha-1}(1-y)^{-\alpha}e^{-\frac{x}{y}}dy$
but I can't derive more than it.
How can I proof $YZ \sim \operatorname{Gamma}(a, 1)$ ?
Here is a very familiar approach; nothing special about it.
Joint pdf of $(Y,Z)$ is $$f_{Y,Z}(y,z)=\frac{e^{-z}y^{a-1}(1-y)^{-a}}{\Gamma(a)\Gamma(1-a)}\mathbf1_{0<y<1,z>0}\quad,\,0<a<1$$
You can use a change of variables $(Y,Z)\to (U,V)$ such that $U=YZ$ and $V=Z$.
So the preimages are $z=v$ and $y=u/v$, and $0<y<1,z>0\implies 0<u<v$.
Absolute value of jacobian of transformation is $1/v$.
This gives the joint pdf of $(U,V)$:
$$f_{U,V}(u,v)=\frac{e^{-v}u^{a-1}(v-u)^{-a}}{\Gamma(a)\Gamma(1-a)}\mathbf1_{0<u<v}$$
Therefore, marginal pdf of $U$ is $$f_U(u)=\frac{u^{a-1}}{\Gamma(a)\Gamma(1-a)}\int_u^\infty e^{-v}(v-u)^{-a}\,dv\,\mathbf1_{u>0}$$
Substitute $v-u=t$, which converts the integral to a Gamma function, ultimately giving the answer $$f_U(u)=\frac{1}{\Gamma(a)}e^{-u}u^{a-1}\mathbf1_{u>0}$$