I am working with two random variables: $X\sim \text{Exp}(2\lambda)$ and $Y$, which has the following density function $$f_Y(x)=\frac{1}{\pi\sqrt{x(2-x)}},$$ where $0<x<2$. I'm trying to find the density function of the variable $Z=XY$, knowing that $X$ and $Y$ are independent. I have found out that: $$f_Z(x)=\frac{2\lambda}{\pi}\int_0^2\frac{e^{-2\lambda x/b}}{b^{3/2}\sqrt{2-b}}\,db.$$ However, I don't know how to integrate this.
By the way, WolframAlpha gives the density function of a Gamma distribution of shape $1/2$ and rate $\lambda$, that is $$Z\sim \Gamma(1/2,\,\lambda).$$
Another way of solving it is through your integral and some variable changes. Let $$ I_1 = \int_0^2 \frac{e^{-2\lambda x/b}}{b^{3/2}\sqrt{2-b}}db $$ such that $f_Z(x) = 2\lambda /\pi I_1$. Let $a = 2/b-1$ such that $da = -2/b^2db$. Moreover, when $b=2\implies a = 0$ and $b\to 2\implies a \to \infty$. Also, $2/b = a+1$. Therefore $$ \begin{aligned} I_1 &= \int_0^2 \frac{e^{-2\lambda x/b}}{b^{3/2}\sqrt{b(2/b-1)}}db \\ &= \int_0^2 \frac{e^{-2\lambda x/b}}{b^{2}\sqrt{2/b-1}}db \\ &= \int_{\infty}^0 -\frac{1}{2} \frac{e^{-\lambda x(a+1)}}{\sqrt{a}}da \\ &= \frac{1}{2}e^{-\lambda x} \int_0^{\infty} e^{-\lambda x a} a^{1-1/2}da\\ &= \frac{1}{2}e^{-\lambda x} I_2 \end{aligned} $$ Note however that $I_2$ is the kernel of a gamma function over $a$ with parameters $\beta = \lambda x$ and $\alpha = 1/2$, and such it integrates to the integration constant $\Gamma(\alpha) /(\beta^\alpha) = \Gamma(1/2) / (\lambda x)^{1/2}$. Thus $$ \begin{aligned} I_1 &= \frac{1}{2}e^{-\lambda x} I_2 \\ &= \frac{1}{2}e^{-\lambda x}\frac{\Gamma(1/2)}{(\lambda x)^{1/2}}. \end{aligned} $$ Then $$ \begin{aligned} f_Z(x) &= \frac{2\lambda}{\pi}I_1 \\ &= \frac{2\lambda}{\pi} \frac{1}{2}e^{-\lambda x}\frac{\Gamma(1/2)}{(\lambda x)^{1/2}}\\ &= \frac{\lambda^{1/2} e^{-\lambda x}x^{1-1/2}}{ \sqrt{\pi}} \\ &= \frac{\lambda^{\tau} e^{-\lambda x}x^{1-\tau}}{ \Gamma(\tau)} \end{aligned} $$ with $\tau = 1/2$, where we used the fact that $\Gamma(1/2) = \sqrt{\pi}$. Thus, $Z\sim Gamma(\tau, \lambda)$.