I was trying to prove the identity: $$\int_{0}^{\pi} {xf(\sin(x))} dx = \frac{\pi}{2} \int_{0}^{\pi} {f(\sin(x))}$$ Firstly, I substitute $x=\pi - t$. Then: $dx=-dt$ and substitute that into the integral, I get: $$I=-\int_{\pi}^{0} \pi f(\sin(\pi - t)) - tf(\sin(\pi-t))dt.$$ After that I get: $$I +\int_{0}^{\pi} tf(\sin(t)) dt=\int_{0}^{\pi} \pi f(\sin(t)) dt $$ So, can I factorize the LHS of the equation to let it become 2I, and I can prove the expression, if it can be factorized, why? The variables are different.
Thank you very much for your reply