(i) Using $u=\tan x$, find $\int\sec^2x\tan^2x\,\mathrm dx$. [2]
For $n\geqslant0$, let $$I_n=\int_0^{\pi/4}\sec^nx\tan^2x\,\mathrm dx.$$
(ii) Using $\dfrac{\mathrm d}{\mathrm dx}(\sec x)=\tan x\sec x$, show that, for $n\geqslant2$, $$(n+1)I_n=2^{(n-2)/2}+(n-2)I_{n-2}.$$ [5]
(iii) Hence find the exact mean value of $\sec^4x\tan^2x$ on $0\leqslant x\leqslant\pi/4$. [3]