Let $X$ and $Y$ be jointly absolutely continuous random variables. Suppose $f_{X,Y}(x,y)=g(x)h(y)$. Prove that $X$ and $Y$ are independent.
So I want to show that $f_X(x)=g(x)$ and that $f_Y(y)=h(y)$
And I have that $$\int_{-\infty}^\infty f_{X,Y}(x,y)dy=f_X(x)=\int_{-\infty}^\infty g(x)h(y)dy=g(x)\int_{-\infty}^\infty h(y)dy$$
and similarly $$f_Y(y)=\int_{-\infty}^\infty f_{X,Y}(x,y)dx=h(y)\int_{-\infty}^\infty g(x)dx$$
But to say $$\int_{-\infty}^\infty g(x)dx=1$$ I would have to know that $g(x)$ is the density function already.