Show that, for any integer $m$,
$$
\int_0^{2\pi}\mathrm e^x\cos mx\,\mathrm dx
=\frac{1}{m^2+1}(\mathrm e^{2\pi}-1).
$$
(i) Expand $\cos(A+B)+\cos(A-B)$. Hence show that
$$
\int_0^{2\pi}\mathrm e^x\cos x\cos6x\,\mathrm dx
=\frac{19}{650}(\mathrm e^{2\pi}-1).
$$
(ii) Evaluate
$$
\int_0^{2\pi}\mathrm e^x\sin2x\sin4x\cos x\,\mathrm dx.
$$