If $X$ and $Y$ are independent and exponentially distributed, which is the pdf of $Z$? Where $Z$ is given by \begin{equation} Z = \frac{X}{1+Y} \end{equation}
I read answer to this post: $X,Y$ are independent exponentially distributed then what is the distribution of $X/(1+Y)$
Why the following calculations to solve the proposed questions lead to different results, compared with the answer given in the thread linked above? \begin{equation} p(z) = \int_0^{\infty} e^{-z(1+y)*\lambda_1} e^{-y*\lambda_2} dy = \frac{\lambda_2^2 e^{-z \lambda_1}}{(\lambda_1+\lambda_2 *z)} \end{equation}
I don't understand the difference or my mistake.
[EDIT] The other thread linked above didn't fully answer to my question because I would calculate the z pdf without walking through the P(z) and then differentiate.
Papoulis's book "Probability, random variables and stochastic processes" section 6 didn't use the method proposed and in contrary achieves the z's pdf as I tried in my calculations.
I achieved that results with Mathematica as follows
ClearAll[ff, Ctr, Cjr, z, x, y]
ff = Assuming[Ctr > 0 && Cjr > 0 && z > 0, Integrate[(1/Ctr*Cjr) * Exp[-(z (1 + y))/Ctr] Exp[-y/Cjr], {y,
0, \[Infinity]}]]
In other words, I'm asking another way to calculate the z's pdf.
Hopefully it helps.