Pretty sure this is correct. I did skip a few steps but it's all correct as far as I know.
I = 2\int_{0}^{a}xf(x)\\\\ \int_{0}^{r}f(x) = \int_{0}^{r}f(r-x)\\\\\therefore I = 2\int_{0}^{a}(a-x)f(a-x)\\\\ I = 2\int_{0}^{a}af(a-x)\, - 2\int_{0}^{a}xf(a-x)\\\\ I = 2\int_{0}^{a}af(a-x)\, - I\\...