Let $X$ be a random variable and let $a$ be a constant such that
$f_X(a-y) = f_X(a+y)$ for all $y$. Prove then that $E(X) = a$.
the hint Iam given is to show that $E(X) - a = \int_{-\infty}^{\infty+} (x-a)f_X(x)dx = 0$ but i still don't know how to show it, can someone help me?