# bivariate situation

That follows directly from the integral or sum or better yet if you express the expectation as $\int dF_{X_1,X_2}$