I need to calculate $E[XY]$ for $(X,Y) \sim N(\mu_{1},\mu_{2},\sigma_{1}^{2}, \sigma_{2}^{2}, \rho)$ by using integration and then determine the correlation coefficient afterwards.
Now, when $X \sim N(\mu_{1},\sigma_{1}^{2})$ and $Y \sim N(\mu_{2}, \sigma_{2}^{2})$, the probability density function is given by $$f(x,y)= \\ \frac{1}{2\pi \sigma_{1} \sigma_{2} \sqrt{1-\rho^{2}}}\exp \left( - \frac{1}{2(1-\rho^{2})} \left[ \frac{(x-\mu_{1})^{2}}{\sigma_{1}^{2}}+ \frac{(y-\mu_{2})^{2}}{\sigma_{2}^{2}} - \frac{2 \rho (x-\mu_{1})(y-\mu_{2})}{\sigma_{1}\sigma_{2}}\right]\right) $$
But, I don't know how to calculate $E[XY]$ as an integral, short of setting up $$\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}xyf(x,y)dydx. \,\,\,(*)$$
Somebody told me that this integral is equal to $$ \int_{-\infty}^{\infty} x \left[\int_{-\infty}^{\infty} y f(y \vert x) dy\right]f(x)dx,$$ where $f(y|x)$ is normal density with mean $=\int_{-\infty}^{\infty}yf(y\vert x)dy = \mu_{2}$, but I don't know what this means or how to get from $(*)$ to this last integral above.
Could someone please explain this to me in an answer?