By making the substitution $x=\pi-t$, show that $$
\int_0^\pi x\mathrm f(\sin x)\,\mathrm dx
=\frac12\pi\int_0^\pi \mathrm f(\sin x)\,\mathrm dx,
$$ where $\mathrm f(\sin x)$ is a given function of $\sin x$.
Evaluate the following integrals:
(i) $\displaystyle\int_0^\pi\frac{x\sin x}{3+\sin^2x}\,\mathrm dx$;
(ii) $\displaystyle\int_0^{2\pi}\frac{x\sin x}{3+\sin^2x}\,\mathrm dx$;
(iii) $\displaystyle\int_0^\pi\frac{x|\sin2x|}{3+\sin^2x}\,\mathrm dx$.