I have this proof of the Cantor-Lebesgue theorem that was given to me by my professor, but I don't understand a step of it.
The statement is:
Let $E\subset\Bbb{R}$ , measurable, $\infty>m(E)>0$.
Let $ f(x) =$ $\sum_{i=1}^{\infty}$ $a_n\cos(nx) + b_n\sin(nx)$ with $a_n,b_n$ $\in$$\Bbb{R}$
and we suppose that $\forall x\in E$, the series which define $f(x)$ converge.
Then $a_n$, $b_n$ $\to$ 0 for $n\to +\infty$.
$Proof$:
Let $f_n(x)= a_n\cos(nx) + b_n\sin(nx)$.
Firstly, we see that exist $r_n$, $\theta_n$ such that $a_n = r_n\cos(\theta_n)$, $b_n=r_n\sin(\theta_n)$, in fact if $a_n=0$ and $b_n=0$, $r_n=0$ and $\theta_n=0$ are good.
If $a_n\neq 0$ or $b_n\neq 0$, we can write:
$$a_n =\sqrt{a_n^2 \,+\, b_n^2 }\cdot\frac{a_n}{\sqrt{a_n^2 \,+\, b_n^2 }},\quad b_n =\sqrt{a_n^2 \,+\, b_n^2 }\cdot\frac{b_n}{\sqrt{a_n^2 \,+\, b_n^2 }}$$
so $r_n$ = $\sqrt{a_n^2 \,+\, b_n^2 }$, $\,$ $\cos(\theta_n)$ = $\frac{a_n}{\sqrt{a_n^2 \,+\, b_n^2 }}$, $\,$ $\sin(\theta_n)$ = $\frac{b_n}{\sqrt{a_n^2 \,+\, b_n^2 }}$
(it's well known that with this definition such $\theta_n$ exist).
Now, if we substitute in the definition of $f_n$ and we apply the trigonometric formula of subtraction of angles for the $\cos(x)$ function, we obtain:
$$f_n(x)=r_n\cdot\cos(nx-\theta_n)$$
Now, given that $f(x)$ converge for all $x$ in $E$, then the principal term of the series ( $f_n(x)$ ) vanished for $n$ that tends to +$\infty$.
If $a_n$ or $b_n$ don't go to zero, then $r_n$ don't go to zero, then necessarily $\cos(nx-\theta_n)$ goes to zero $\forall x \in E$, and so even $\cos^2(nx-\theta_n)$ goes to $0$.
Now, $\cos^2(nx-\theta_n) \to 0$, $|\cos^2(nx-\theta_n)|I_E(x) \le I_E(x)$ ( $I_E(x)$ is the indicator function of E), and $I_E(x) \in L^1(E)$ imply, by dominated convergence, that $$\lim_{n\to\infty} \int_{E} \cos^2(nx-\theta_n) = 0$$
We can write also $\forall n$: $$\int_{E} \cos^2(nx-\theta_n) = \int_{E} {1\over 2} + \int_{E} {\cos(2nx-2\theta_n)\over2}$$
Now, if we take the limit in $n$, we obtain $0 = {m(E) \over 2}$, and this is wrong because $m(E)>0$.
I have written this in my notes, but I don't understand why the second integral at the RHS vanished, because ${\cos(2nx-2\theta_n)\over2}$ should converge to $-{1\over2}$.
Maybe have I misunderstood what the professor said, or can this proof be saved?
Thanks to everyone will read this.
I don't know why you think ${cos(2nx-2\theta_n)\over2}$ should converge to $-{1\over2}$. For typical $x$ that quantity oscillates as $n\to\infty$.
Write $$cos(2nx-2\theta_n)=\cos(2nx)\cos(2\theta_n)+\sin(2nx)\sin(2\theta_n).$$
Since the sine and cosine of $2\theta_n$ are bounded the Riemann-Lebesgue Lemma (applied to $\chi_E$) shows that the integral tends to $0$ as $n\to\infty$.