Let's say we want to compute the expectancy (E(X)) of the following joint distribution:
$f(x,y)=3x,$
$_{0<y<x<1}$
I could derive some approach for solving this problem, depicted below:
A) $∫_0^x ∫_y^1 3x dxdy== x-\frac{x^4}{4}$
B) $∫_y^1∫_0^x3x^2 dydx=-\frac{3}{4}(y^4-1)$
C) $∫_0^1 ∫_0^1 3x^2 dxdy=∫_0^1 ∫_0^1 3x^2 dydx=1$
D) $∫_0^1 ∫_y^1 3x^2 dxdy=\frac{3}{4}$
All of the above seem right but I can't tell which one is the real answer and why the others are false, the book I'm reading used the D approach.
Any hint or answer would be appreciated.

The probability density function is: $f_{X,Y}(x,y) = 3x\,\mathbf 1_{0\leq y\leq x\leq 1}$
Let's look at the suggested answers.
The bound variable for the inner integral appears in the bounds of the outer integral, and in the answer. That's clearly not right.
Likewise. Once you have evaluated the inner integral its bound variable (in this case, $y$) should no longer appear in the expression.
This has the opposite problem. This is integrating outside the support; the interval here is $\{(x,y):x\in[0;1], y\in[0,1]\}$, which allows $x<y$.
This is correct. This is integrating over the interval, $0\leq y\leq 1$ and $y\leq x\leq 1$. The inner integral's bounds depend only on the variable for the outer integral, and the outer integrals bounds do not depend on either variable.
This is also correct. This is integrating over $0\leq x\leq 1$ and $0\leq y\leq x$, which is the same interval as for $(D)$, just with a change of order of integration.