(i) Show that, for $n>0$,
$$
\int_0^{\pi/4}\tan^n x\sec^2x\,\mathrm{d}x
=\frac{1}{n+1}
$$
and
$$
\int_0^{\pi/4}\sec^n x\tan x\,\mathrm{d}x
=\frac{(\sqrt2)^n-1}{n}.
$$
(ii) Evaluate the following integrals:
$$
\int_0^{\pi/4}x\sec^4x\tan x\,\mathrm{d}x
\qquad\text{and}\qquad
\int_0^{\pi/4}x^2\sec^2x\tan x\,\mathrm{d}x.
$$