By making the substitution $x=\pi -t$ show that; $$\int_{0}^{\pi} xf(\sin x)dx = \frac{1}{2}\pi \int_{0}^{\pi} f(\sin x)dx$$ where $f(\sin x) $ is a given function of $\sin x$.
I get $dx = -dt$ and that $\sin (\pi -t) = \sin t$ which gives me;
$$\int_{0}^{\pi} xf(\sin x)dx =\int_{0}^{\pi} tf(\sin t)dt - \pi \int_{0}^{\pi} f(\sin t)dt$$
Clearly I am missing a minus sign somewhere so where have I gone wrong?(note; the integral in t is equal to the integral in x, they're just variables)