An alternate method is to consider
the integral 0 to pi of (x - pi/2) f(Sin(x)) This integral can be shown to be zero (proof outlined below)
Thus the integral 0 to pi of x f(Sin(x)) = pi/2 times integral 0 to pi of f(Sin(x)) QED
why is integral 0 to pi of (x - pi/2) f(Sin(x)) = 0 ?
Basically because about the midpoint of the interval [0, pi], (x -pi/2) is in odd function while
f(Sin(x)) is an even function. The integral of the product of an odd function and and even function over an interval symmetrically placed about the point about which even and odd are predicated is zero.
This can be seen more explicitly by shifting the integration from 0 to pi to -pi/2 to + pi/2