Let Z = X + Y. The linearity of $\mathsf E$ implies that $\mathsf E [Z] = \mathsf E [X] + \mathsf E [Y]$. The left-hand side should be $\int (x+y)p_{x+y}(x+y)d(x+y)$. The right-hand side should be $\int x p_{x}(x) dx + \int y p_{y}(y) dy$.
Then how to make left-hand side equals to right-hand side? (Prove these two integrals are equal)
(I know this question is stupid. If I write left-hand side like $\int (x+y) p(x,y)dxdy$ , this problem may be solved already. But I still want to ask, if I just rewrite the left-hand side formula like the above one, is this rewriting wrong? Or can I prove these two integral equal?)
Update 1:
I see one comment from https://math.stackexchange.com/questions/1810365/proof-of-linearity-for-expectation-given-random-variables-are-dependent
\begin{align}\mathsf E(X+Y)&=\int_\Bbb R z~f_{X+Y}(z)\mathsf d z\\&=\iint_{\Bbb R^2} z~f_{X+Y,Y}(z,y)\mathsf d z\mathsf d y\\&= \iint_{\Bbb R^2} z~f_{X,Y}(z-y,y)\mathsf d z\mathsf d y\\&=\iint_{\Bbb R^2} (x+y)~f_{X,Y}(x,y)\mathsf d x\mathsf d y\\&\vdots\\&=\mathsf E(X)+\mathsf E(Y)\end{align}
Can someone explain this? Especially second step suddenly introduce one more variable becoming 2 dimensional integral and the third step replace $~f_{X+Y,Y}(z,y)$ to $~f_{X,Y}(z-y,y)$. I am quite confused of the change of dz -> dzdy -> dxdy, which seems like change freely...
Because in my point of view I may write \begin{align}\mathsf E(X+Y)&=\int_\Bbb R (x+y)~f_{X+Y}(x+y)\mathsf d(x+y)\\&= \int_\Bbb R (x+y)~f_{X+Y}(x+y)\mathsf (dx+dy) \\&= \int_\Bbb R ~f_{X+Y}(x+y) (xdx+ydx+xdy+ydy)\\&\vdots \end{align}
I believe this one must be wrong, but I don't know which part of these steps is wrong...
Update 2:
Thank you all for your explanation about why I should not write $d(x+y) = dx + dy$. I understand that $dx$ should be interpreted jointly with $\int$ rather than separately.
But in practice, I remember I saw some problem is solved by playing around $\int f(x) d g(x)$ by rewrite the $dg(x)$ part. (I am not sure, but I saw something like $\int f(x) d g(x) = \int f(x) g^{\prime}(x) dx$ is done.)
I guess this is a bit out of the scope for the original question, but if it is possible, can anyone explain to me why this kind of rewriting happens? And is there any rule for this kind of rewriting?
Thank you all again for your patience.