Let $$I_n=\int_{\pi/4}^{\pi/2}\cot^nx\,\mathrm dx,\qquad n\ge0.$$
(i) By considering $\dfrac{\mathrm d}{\mathrm dx}(\cot^{n+1}x)$, or otherwise, show that $$I_{n+2}=\frac1{n+1}-I_n.$$ [5]
The curve $C$ has equation $y=\cot x$, for $\frac{\pi}{4}\le x\le\frac{\pi}{2}$.
(ii) Find, in an exact form, the $y$-coordinate of the centroid of the region enclosed by $C$, the line $x=\frac{\pi}{4}$ and the $x$-axis. [6]