My task is basically to show that if $E$ is any measurable set in $\mathbb{R}$, $m(E) < \infty$ and $\{a_n\}$ is any sequence of real numbers then $\lim_{n\to \infty} \int_E \cos^2(nx + a_n) dx = \frac{1}{2}m(E)$
Usually for such limits, my class has relied on the use of theorems such as monotone or dominated convergence, but the issue here is that $\lim_{n \to \infty} \cos^2(nx + a_n)$ does not converge. Does anyone have any hints for getting started?
$$\cos^2(nx+a_n)=\frac12+\frac12\cos(2nx+2a_n),$$ and the first term yields the desired RHS.
The other term makes a vanishing integral as the cosine cancels out on whole periods, and the contribution of the incomplete intervals is of order $O(n^{-1})$.