I'm working on integration by substitution and can't seem to get a hang on the following detail:
How would one use the substitution $\displaystyle u = \pi - x$ to show the following equality:
$\int_{0}^{\pi }{x\cdot \sin \left( x \right)dx}=\; \frac{\pi }{2}\int_{0}^{\pi }{\sin \left( x \right)dx}$
My approach so far with substitution has been to find a part of the integrand to substitute for "$\displaystyle u$" and then differentiate it to get a substitution of $\displaystyle du$ for the integral $\displaystyle dx$ (and then integrate in terms of $u$); however, in using the above substitution, I cannot see how to approach this to isolate "$\displaystyle x$" from "$\displaystyle \sin(x)$" in terms of $\displaystyle u$ and $\displaystyle du$...maybe I'm missing something obvious, but can't see it.
Thanks a bunch if anyone has any insight.