Given a (continuous) bivariate random vector $(X,Y)$ with a probability density:
$$f_{XY}(x,y)=\left\{ \begin{array}{l}\tfrac{1}{y}e^{-(y+\tfrac{x}{y})} & \text{if }x>0 \text{ and } y>0 \\ 0 & \text{otherwise}\end{array} \right.$$
Find the marginal density $f_X(x)$ and $f_Y(y)$ and show whether $X$ and $Y$ are stochastically independent.
In my attempt, I tried to calculate the marginal densities as follows:
$$\begin{align*}f_Y(y) &= \int_{-\infty}^{\infty}f_{XY}(x,y)\mathrm{d}x \\ &= \int_{0}^{\infty}\tfrac{1}{y}e^{-(y+\tfrac{x}{y})}\mathrm{d}x\\ &= -\lim_{N \to \infty} \left[ e^{-(y+\tfrac{x}{y})} \right]_0^N \\ &= -\lim_{N \to \infty} (e^{-(y+\tfrac{N}{y})}-e^{-(y+\tfrac{0}{y})})\\ &= e^{-y}-0 = \frac{1}{e^y} \end{align*}$$ $\\$ $$\begin{align*}f_X(x) &= \int_{-\infty}^{\infty}f_{XY}(x,y)\mathrm{d}y \\ &= \int_{0}^{\infty}\tfrac{1}{y}e^{-(y+\tfrac{x}{y})}\mathrm{d}y\\ \end{align*}$$
But I get stuck at solving this last integrals. How should this be solved?
Thanks in advance.
homeworktag. Also, could you please check to make sure that you have copied the problem correctly? If $X$ and $Y$ are stochastically independent, then you should be able to write $f_{X,Y}(x,y)$ as $g(x)h(y)$ and this does not seem obviously so. – Dilip Sarwate Jan 11 at 2:01