$\displaystyle E[X f(X)] = \int_{-\infty}^{+\infty} x f(x) \, g(x) \, dx$ where g(x) is the pdf of X.