Given the joint density function of $(X,Y)$ is $$f(x,y)=\begin{cases} \frac{1}{8}(y^2-x^2)e^{-y} \quad \text{ if } -y<x<y \text{ , } 0<y<\infty \\ 0 \quad \quad \quad \quad \quad \quad \text{ otherwise } \end{cases}$$
What is the marginal density function of $X$?
I can compute $f_X(x)=\frac{1}{4}(x+1)e^{-x}$ by integrating $dy$ from $0$ to $\infty$, but the answer states we have to consider for both $x>0$ and $x<0$ by symmetry. As I am new to joint distribution, I don't understand it very well. Thank you in advance!
