Fourier Series

On Orthonormal Bases we proved that for $f \in L^2(T)$ the partial sums $S_N f = \sum_{|n| \le N} \hat{f}(n) e_n$ converge to $f$ in $L^2(T)$. That's convergence of the whole function at once, measured by an integral. It says nothing about any single point.

So here's the natural next question. Take a nice function, a continuous one, and pick a point $x$. Does $S_N f(x)$ converge to $f(x)$? It feels like it should. The answer is no, and the reason is one of the prettiest uses of the Banach space machinery: we never write down the bad function. We show that the partial sums, viewed as linear functionals, have norms that run off to infinity, and the Banach–Steinhaus theorem hands us a continuous function that breaks them.

Then we see two ways out. Averaging the partial sums (Fejér's idea) fixes everything for continuous functions. And for integrable functions, the coefficients themselves always fade to $0$ (Riemann–Lebesgue), though not every sequence that fades to $0$ is a list of coefficients. Throughout, $T = [-\pi, \pi]$ with its ends glued, functions on $T$ are $2\pi$-periodic, and every integral over $T$ carries the same $\frac{1}{2\pi}$ as the inner product: $\hat{f}(n) = \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) e^{-int} \, dt$ and $\|f\|_1 = \frac{1}{2\pi} \int_{-\pi}^{\pi} |f(t)| \, dt$.

Partial Sums as an Integral

First, a name for the thing we're asking about. The coefficients make sense for any integrable $f$, since $|f(t) e^{-int}| = |f(t)|$, so the partial sums do too.

For $f \in L^1(T)$ and an integer $N \ge 0$, the Fourier partial sum of $f$ is the trigonometric polynomial $$S_N f(x) = \sum_{n=-N}^{N} \hat{f}(n) e^{inx}.$$

The trick that makes everything on this page work: write each $\hat{f}(n)$ as its integral and move the finite sum inside. What's left inside the integral is one fixed function, the same for every $f$, and it gets a name.

The Dirichlet kernel is $D_N(t) = \sum_{k=-N}^{N} e^{ikt}$, for $N \ge 0$.

Pairing $e^{ikt}$ with $e^{-ikt}$ gives $2 \cos kt$, so $D_N(t)$ is $1 + 2 \cos t + \cdots + 2 \cos Nt$. It's real and even. Before the general facts, one small kernel by hand.

Write out $D_2$, and check its values at $t = 0$ and $t = \pi$.


$D_2(t) = e^{-2it} + e^{-it} + 1 + e^{it} + e^{2it}$, and pairing the terms gives $D_2(t) = 1 + 2\cos t + 2\cos 2t$. At $t = 0$ every term is $1$, so $D_2(0) = 5$. At $t = \pi$, $\cos \pi = -1$ and $\cos 2\pi = 1$, so $D_2(\pi) = 1 - 2 + 2 = 1$. Notice that $D_2(2\pi/5) = 1 + 2\cos\frac{2\pi}{5} + 2\cos\frac{4\pi}{5} = 0$: the kernel crosses zero, and between its zeros it goes negative.

That pattern (a tall spike of height $2N + 1$ at $0$, then wiggles that dip below zero) is what the closed form below makes exact. The lemma collects the three facts we'll use over and over.

For every $N \ge 0$:

  1. $D_N(0) = 2N + 1$, and $D_N(t) = \dfrac{\sin\left((N + \frac{1}{2})t\right)}{\sin(t/2)}$ for $0 < |t| \le \pi$;
  2. $\frac{1}{2\pi} \int_{-\pi}^{\pi} D_N(t) \, dt = 1$;
  3. for every $f \in L^1(T)$ and every $x$, $$\begin{aligned} S_N f(x) &= \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) D_N(x - t) \, dt \\ &= \frac{1}{2\pi} \int_{-\pi}^{\pi} f(x - t) D_N(t) \, dt. \end{aligned}$$
Show proof

Proof. (a) At $t = 0$ all $2N + 1$ terms equal $1$. For $0 < |t| \le \pi$, multiply by $e^{it/2} - e^{-it/2}$. Each term becomes $e^{i(k + \frac{1}{2})t} - e^{i(k - \frac{1}{2})t}$, and the sum over $-N \le k \le N$ telescopes: $$\begin{aligned} &\left(e^{it/2} - e^{-it/2}\right) D_N(t) \\ &\quad = e^{i(N + \frac{1}{2})t} - e^{-i(N + \frac{1}{2})t}. \end{aligned}$$ Both sides are $2i$ times a sine: $2i \sin(t/2) \, D_N(t) = 2i \sin((N + \frac{1}{2})t)$. Since $\sin(t/2) \ne 0$ for $0 < |t| \le \pi$, divide.

(b) $\frac{1}{2\pi} \int_{-\pi}^{\pi} e^{ikt} \, dt$ is $1$ for $k = 0$ and $0$ for $k \ne 0$. Sum over $|k| \le N$.

(c) The sum is finite, so it moves inside the integral: $$\begin{aligned} S_N f(x) &= \sum_{|k| \le N} \left(\frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) e^{-ikt} \, dt\right) e^{ikx} \\ &= \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) \sum_{|k| \le N} e^{ik(x - t)} \, dt \\ &= \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) D_N(x - t) \, dt. \end{aligned}$$ For the second form, substitute $s = x - t$. The integrand is $2\pi$-periodic in $s$, so the integral over $[x - \pi, x + \pi]$ equals the integral over $[-\pi, \pi]$. $\blacksquare$

Part (c) is the picture to keep: $S_N f(x)$ is a weighted average of $f$ around $x$, with weights $D_N(x - t)$. Part (b) says the weights total $1$, which is what an average should do. But the weights aren't all positive, and that's where the trouble will come from. Watch the average get computed as the kernel slides along a plateau.

Away from the edges of the plateau the red and blue lobes mostly cancel, and $S_8 f$ sits near $f$. Near an edge, a blue lobe hangs over the side where $f = 0$ on one side and $1$ on the other, so the average gets pushed past $f$. At the edge itself, half the kernel's weight lands on each side. Here's that last effect computed exactly.

Let $f = 1$ on $[0, \pi)$ and $f = -1$ on $[-\pi, 0)$, so $f(0) = 1$. Find $S_N f(0)$.


$\hat{f}(0) = 0$, and for $n \ne 0$, $$\begin{aligned} \hat{f}(n) &= \frac{1}{2\pi}\left(\int_0^\pi e^{-int} \, dt - \int_{-\pi}^0 e^{-int} \, dt\right) \\ &= \frac{1}{2\pi} \cdot \frac{2(1 - (-1)^n)}{in} = \frac{1 - (-1)^n}{i\pi n}. \end{aligned}$$ So $\hat{f}(-n) = -\hat{f}(n)$, and the terms of $S_N f(0) = \sum_{|n| \le N} \hat{f}(n)$ cancel in pairs: $S_N f(0) = 0$ for every $N$. The partial sums converge at $0$, but to $0$, the midpoint of the jump, not to $f(0) = 1$.

That's no contradiction with anything: $f$ isn't continuous at $0$, and changing $f(0)$ doesn't change a single coefficient. One more property of the kernel, the one the whole page turns on, is yours to prove.

Show that for every $N \ge 1$ the Dirichlet kernel takes a negative value somewhere on $T$.

Show proof

Proof. Take $t = \frac{3\pi}{2N + 1}$. Since $N \ge 1$, $0 < t \le \pi$, so the closed form applies: the numerator is $\sin\left(\frac{2N + 1}{2} \cdot \frac{3\pi}{2N + 1}\right) = \sin\frac{3\pi}{2} = -1$, and the denominator is $\sin\frac{t}{2}$ with $0 < \frac{t}{2} \le \frac{\pi}{2}$, so it's positive. Hence $D_N(t) = -1 / \sin(t/2) < 0$. $\blacksquare$

Now compute a few values yourself. The closed form and the cosine sum must agree, so use whichever is quicker, and check with the other.

Loading practice engine...

Before the theory gets heavy, go poking at single points. Pick a function, drag $x$, and watch the sequence $S_0 f(x), S_1 f(x), \ldots$ underneath. Try the jumps, and try just beside them.

Partial Sums at a Point

Everything there behaves at continuous points: the dots settle on $f(x)$. The overshoot beside a jump is real, though (it's called the Gibbs phenomenon), and it never shrinks as $N$ grows. It only gets squeezed closer to the jump. Keep that in mind; Fejér will fix it.

How Big $D_N$ Gets

Here's why the size of the kernel matters. Take $f$ continuous with $|f| \le 1$. By part (c) of the lemma at $x = 0$ (and $D_N$ even), $$\begin{aligned} |S_N f(0)| &= \left|\frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) D_N(t) \, dt\right| \\ &\le \frac{1}{2\pi} \int_{-\pi}^{\pi} |D_N(t)| \, dt = \|D_N\|_1. \end{aligned}$$ So if $\|D_N\|_1$ stayed bounded, every bounded $f$ would have bounded partial sums at $0$. Part (b) says the signed integral is $1$. The absolute integral is another story, even for $N = 1$.

Compute $\|D_1\|_1$.


$D_1(t) = 1 + 2\cos t$ is positive for $|t| < \frac{2\pi}{3}$ and negative for $\frac{2\pi}{3} < |t| \le \pi$. By evenness, $$\begin{aligned} \int_{-\pi}^{\pi} |D_1| \, dt &= 2\int_0^{2\pi/3} (1 + 2\cos t) \, dt \\ &\quad - 2\int_{2\pi/3}^{\pi} (1 + 2\cos t) \, dt \\ &= 2\left(\tfrac{2\pi}{3} + \sqrt{3}\right) - 2\left(\tfrac{\pi}{3} - \sqrt{3}\right) \\ &= \tfrac{2\pi}{3} + 4\sqrt{3}. \end{aligned}$$ Dividing by $2\pi$, $\|D_1\|_1 = \frac{1}{3} + \frac{2\sqrt{3}}{\pi} \approx 1.44$. Already more than $1$: the negative lobe counts against the signed integral and for the absolute one.

$D_N$ spends most of its effort cancelling itself out. Relatable.

For larger $N$ the lobes multiply, and each one contributes. Comparing $\sin(t/2)$ with $t/2$ turns that into a clean lower bound.

For every $N \ge 1$, $$\|D_N\|_1 \ge \frac{4}{\pi^2} \sum_{k=1}^{N} \frac{1}{k}.$$ In particular $\|D_N\|_1 \ge \frac{4}{\pi^2} \log(N + 1) \to \infty$.

Show proof

Proof. For $0 < |t| \le \pi$, $|\sin(t/2)| \le |t|/2$, so by the closed form $|D_N(t)| \ge \frac{|\sin((N + \frac{1}{2})t)|}{|t|/2}$. Using evenness and then $u = (N + \frac{1}{2})t$, $$\begin{aligned} \|D_N\|_1 &\ge \frac{1}{2\pi} \cdot 2 \int_0^\pi \frac{2 |\sin((N + \frac{1}{2})t)|}{t} \, dt \\ &= \frac{2}{\pi} \int_0^{(N + \frac{1}{2})\pi} \frac{|\sin u|}{u} \, du \\ &\ge \frac{2}{\pi} \sum_{k=1}^{N} \int_{(k-1)\pi}^{k\pi} \frac{|\sin u|}{u} \, du. \end{aligned}$$ On $[(k - 1)\pi, k\pi]$ we have $\frac{1}{u} \ge \frac{1}{k\pi}$, and $\int_{(k-1)\pi}^{k\pi} |\sin u| \, du = 2$. So each integral is at least $\frac{2}{k\pi}$, and $$\|D_N\|_1 \ge \frac{2}{\pi} \sum_{k=1}^{N} \frac{2}{k\pi} = \frac{4}{\pi^2} \sum_{k=1}^{N} \frac{1}{k}.$$ Finally $\sum_{k=1}^{N} \frac{1}{k} \ge \int_1^{N+1} \frac{dx}{x} = \log(N + 1)$, since $\frac{1}{k} \ge \frac{1}{x}$ on $[k, k + 1]$. $\blacksquare$

So the absolute area grows without bound, but only logarithmically. The spike gets taller like $N$; the norm creeps up like $\log N$. Here's the race.

The bound is honest but not sharp: the true $\|D_N\|_1$ runs about $1.27$ above $\frac{4}{\pi^2}\log N$ for large $N$, so it's the growth rate that matters, not the constant. Feel how slow a logarithm is.

Dirichlet Kernel

The operator norm of a linear functional $\Lambda$ is $\sup\{|\Lambda f| : \|f\| \le 1\}$, and a linear map is bounded exactly when it's continuous.

Now package "the value of the partial sum at $0$" as a functional on the continuous functions, and compute its norm. The estimate at the start of this section already gives $\|D_N\|_1$ as an upper bound. The point of the next proposition is that nothing smaller works.

Give $C(T)$ the norm $\|f\|_\infty = \sup_{t} |f(t)|$, and define $\Lambda_N \colon C(T) \to \mathbb{C}$ by $\Lambda_N f = S_N f(0)$. Then $\Lambda_N$ is a bounded linear functional, and $$\|\Lambda_N\| = \|D_N\|_1.$$

Show proof

Proof. Linearity is linearity of the integral. By the lemma and evenness of $D_N$, $\Lambda_N f = \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) D_N(t) \, dt$, so $|\Lambda_N f| \le \|f\|_\infty \|D_N\|_1$ and $\|\Lambda_N\| \le \|D_N\|_1$.

For the other direction, let $$f_k = \frac{D_N}{|D_N| + 1/k}, \qquad k = 1, 2, \ldots$$ Each $f_k$ is continuous and $2\pi$-periodic (the denominator is at least $\frac{1}{k}$), and $|f_k| < 1$, so $\|f_k\|_\infty \le 1$. Now $f_k D_N = \frac{D_N^2}{|D_N| + 1/k}$ increases to $|D_N|$ at every $t$ (where $D_N(t) = 0$ both sides are $0$), and $0 \le f_k D_N \le |D_N|$, which is integrable. By dominated convergence, $$\begin{aligned} \Lambda_N f_k &= \frac{1}{2\pi} \int_{-\pi}^{\pi} \frac{D_N^2}{|D_N| + 1/k} \, dt \\ &\longrightarrow \frac{1}{2\pi} \int_{-\pi}^{\pi} |D_N| \, dt = \|D_N\|_1. \end{aligned}$$ So $\|\Lambda_N\| \ge \|D_N\|_1$. $\blacksquare$

The $f_k$ are smoothed-out copies of "the sign of $D_N$": they're as close as a continuous function of size $1$ can get to agreeing with $D_N$ in sign everywhere. Here they are sharpening.

Now you be the worst input. Steps aren't continuous, but rounding a step's corners changes $\Lambda_N$ by as little as you like, so the best step tells you $\|\Lambda_N\|$ too.

Worst Input

Notice what happened when $N$ went from $3$ to $6$: the best value went up. That's the lemma in action, and it's worth saying carefully what it does and doesn't give you.

Don't let "each $\Lambda_N$ is bounded" turn into "the $\Lambda_N$ are bounded." Each one has a finite norm, $\|D_N\|_1$, but those norms aren't bounded by any single number. Bounded one at a time and bounded uniformly are different statements, and the gap between them is exactly where the next theorem lives.

A Continuous Function Whose Fourier Series Diverges

We have a family of bounded linear functionals $\Lambda_N$ on $C(T)$ whose norms go to infinity. Two facts turn that into a bad function. First, $C(T)$ with $\|\cdot\|_\infty$ is a Banach space: a uniformly Cauchy sequence of continuous $2\pi$-periodic functions converges uniformly, and a uniform limit of continuous $2\pi$-periodic functions is continuous and $2\pi$-periodic. Second, the Banach–Steinhaus theorem: if $X$ is a Banach space and $\{\Lambda_\alpha\}$ is a family of bounded linear maps from $X$ to a normed space, then either $\sup_\alpha \|\Lambda_\alpha\| < \infty$, or the set of $x \in X$ with $\sup_\alpha \|\Lambda_\alpha x\| = \infty$ is a dense $G_\delta$ in $X$.

Banach–Steinhaus comes from Baire's category theorem (a countable intersection of dense open sets in a complete metric space is dense). Both are proved on Baire Category & Its Consequences, the page before this one in the course, which isn't written yet.

A dense $G_\delta$ set is a countable intersection of open sets that is dense. By Baire's theorem it's "most" of the space, in a precise sense, and in particular it's not empty. Put the two facts together.

The set of $f \in C(T)$ with $$\sup_N |S_N f(0)| = \infty$$ is a dense $G_\delta$ in $(C(T), \|\cdot\|_\infty)$. In particular, there is a continuous $2\pi$-periodic $f$ whose Fourier series diverges at $0$.

Show proof

Proof. $C(T)$ is a Banach space, and each $\Lambda_N f = S_N f(0)$ is a bounded linear functional on it with $\|\Lambda_N\| = \|D_N\|_1$, by the proposition. By the lemma on $\|D_N\|_1$, $\sup_N \|\Lambda_N\| = \infty$, so the first alternative of Banach–Steinhaus fails. The second one says exactly that $\{f : \sup_N |\Lambda_N f| = \infty\}$ is a dense $G_\delta$. A dense set in a nonempty space is nonempty, so some $f$ has $\sup_N |S_N f(0)| = \infty$. An unbounded sequence doesn't converge, so the Fourier series of that $f$ diverges at $0$. $\blacksquare$

Every continuous function deserves a Fourier series that converges. Most don't get one.

Notice what the proof didn't do: it never built $f$. Paul du Bois-Reymond wrote down an explicit continuous function with a divergent Fourier series in 1873, and it's a page of careful estimates. Banach–Steinhaus gets existence in a paragraph, and gets more: the bad functions are dense. Every continuous function has a bad one as close as you like in the sup norm. Nothing is special about $0$, either. Translating $f$ moves the bad point anywhere.

Let $f \in C(T)$ have $\sup_N |S_N f(0)| = \infty$ (the theorem says such $f$ exist), and let $x_0 \in T$. Find a continuous $g$ whose Fourier series diverges at $x_0$.


Take $g(t) = f(t - x_0)$, which is continuous and $2\pi$-periodic. Substituting $s = t - x_0$ and using periodicity, $$\begin{aligned} \hat{g}(n) &= \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t - x_0) e^{-int} \, dt \\ &= e^{-inx_0} \, \frac{1}{2\pi} \int_{-\pi}^{\pi} f(s) e^{-ins} \, ds = e^{-inx_0} \hat{f}(n). \end{aligned}$$ So $S_N g(x_0) = \sum_{|n| \le N} e^{-inx_0} \hat{f}(n) e^{inx_0} = S_N f(0)$, which is unbounded in $N$.

One bad point per function, anywhere you like. The Spicy Bonus pushes this to a single continuous $f$ whose Fourier series diverges on a dense, uncountable set of points. How much worse can it get?

How bad can it get? For continuous $f$, or any $f \in L^2(T)$, $S_N f(x) \to f(x)$ for almost every $x$. That's Carleson's theorem (1966), one of the deepest results in analysis, and it's far beyond this course. For $f \in L^1(T)$ even that fails: Kolmogorov built an integrable $f$ whose Fourier series diverges almost everywhere. So the bad set for a continuous $f$ can be dense and uncountable, but always has measure zero.

Fejér's Rescue

The partial sums average $f$ against $D_N$, and the negative lobes of $D_N$ are the problem. Fejér's fix is to average the partial sums themselves. A sequence that wobbles can still have averages that settle down, and here the averaging turns the bad kernel into a good one.

For $f \in L^1(T)$ and $N \ge 0$, the Fejér mean of $f$ is $$\sigma_N f = \frac{S_0 f + S_1 f + \cdots + S_N f}{N + 1}.$$

Count how often each coefficient shows up. The term $\hat{f}(k) e_k$ is in $S_n f$ exactly when $n \ge |k|$, which is $N + 1 - |k|$ of the $N + 1$ partial sums. So $$\sigma_N f = \sum_{|k| \le N} \left(1 - \frac{|k|}{N + 1}\right) \hat{f}(k) e_k :$$ the same coefficients, tapered linearly to $0$ at frequency $N + 1$. That's easy to compute with.

Find $\sigma_2 f$ for $f(t) = 3 + 4\cos t + 6\sin 2t$.


The constant has $k = 0$ and keeps weight $1$. The $\cos t$ term lives at $k = \pm 1$, with weight $1 - \frac{1}{3} = \frac{2}{3}$. The $\sin 2t$ term lives at $k = \pm 2$, with weight $1 - \frac{2}{3} = \frac{1}{3}$. Weights act on $e_k$ and $e_{-k}$ alike, so they act on $\cos$ and $\sin$ directly: $$\sigma_2 f(t) = 3 + \tfrac{8}{3} \cos t + 2 \sin 2t.$$ Check one way: $S_0 f = 3$, $S_1 f = 3 + 4\cos t$, $S_2 f = f$, and their average is $3 + \frac{8}{3}\cos t + 2 \sin 2t$.

Just as $S_N f$ was an integral against $D_N$, $\sigma_N f$ is an integral against the average of the kernels.

The Fejér kernel is $K_N = \frac{1}{N + 1}(D_0 + D_1 + \cdots + D_N)$, for $N \ge 0$.

By the same count as above, $K_N(t) = \sum_{|k| \le N} \left(1 - \frac{|k|}{N + 1}\right) e^{ikt}$. The smallest case already shows the difference.

Compare $K_1$ with $D_1$.


$K_1 = \frac{1}{2}(D_0 + D_1)$, which is $\frac{1}{2}(1 + 1 + 2\cos t) = 1 + \cos t$. Both kernels average to $1$ and peak at $0$ ($D_1(0) = 3$, $K_1(0) = 2$), but $D_1 = 1 + 2\cos t$ dips to $-1$ at $t = \pi$, while $K_1 = 1 + \cos t = 2\cos^2(t/2)$ never goes below $0$.

Fejér's whole trick is averaging your mistakes until nobody can see them.

That's not luck: $K_N$ is a square for every $N$. The lemma records it, along with the two other things a good averaging kernel needs.

For every $N \ge 0$:

  1. $K_N(0) = N + 1$, and $K_N(t) = \dfrac{1}{N + 1} \left(\dfrac{\sin((N + 1)t/2)}{\sin(t/2)}\right)^2$ for $0 < |t| \le \pi$; in particular $K_N \ge 0$;
  2. $\frac{1}{2\pi} \int_{-\pi}^{\pi} K_N(t) \, dt = 1$;
  3. if $0 < \delta \le \pi$, then $K_N(t) \le \dfrac{1}{(N + 1) \sin^2(\delta/2)}$ for $\delta \le |t| \le \pi$;
  4. for every $f \in L^1(T)$ and every $x$, $\sigma_N f(x) = \frac{1}{2\pi} \int_{-\pi}^{\pi} f(x - t) K_N(t) \, dt$.
Show proof

Proof. (a) $K_N(0) = \frac{1}{N + 1} \sum_{n=0}^{N} (2n + 1)$, and the odd numbers up to $2N + 1$ add to $(N + 1)^2$, so $K_N(0) = N + 1$. For $0 < |t| \le \pi$, multiply the closed form of each $D_n$ by $\sin^2(t/2)$ and use $2 \sin A \sin B = \cos(A - B) - \cos(A + B)$: $$\begin{aligned} \sin^2(t/2) \, D_n(t) &= \sin\left((n + \tfrac{1}{2})t\right) \sin(t/2) \\ &= \tfrac{1}{2}\left(\cos nt - \cos(n + 1)t\right). \end{aligned}$$ Summing over $0 \le n \le N$ telescopes to $\frac{1}{2}(1 - \cos(N + 1)t) = \sin^2((N + 1)t/2)$. Divide by $(N + 1)\sin^2(t/2) > 0$.

(b) Each $D_n$ averages to $1$, so their average does.

(c) For $\delta \le |t| \le \pi$, $\sin^2(t/2) \ge \sin^2(\delta/2)$, since $\sin$ increases on $[0, \frac{\pi}{2}]$, and the numerator in (a) is at most $1$.

(d) Average the formulas $S_n f(x) = \frac{1}{2\pi} \int f(x - t) D_n(t) \, dt$ over $0 \le n \le N$. $\blacksquare$

Positive, total mass $1$, and the mass piles up at $0$: (c) says the part of $K_N$ outside any window $|t| < \delta$ shrinks like $\frac{1}{N}$. An average against such a kernel is a genuine local average of $f$, and a continuous $f$ has no choice but to be close to its local averages.

(Fejér) If $f \in C(T)$, then $\sigma_N f \to f$ uniformly on $T$.

Show proof

Proof. A continuous $2\pi$-periodic function is uniformly continuous (it's continuous on the compact interval $[-2\pi, 2\pi]$, and periodicity covers the rest). Let $\varepsilon > 0$, and choose $0 < \delta \le \pi$ with $|f(x - t) - f(x)| < \varepsilon$ for all $x$ whenever $|t| < \delta$.

By (b) and (d) of the lemma, $$\sigma_N f(x) - f(x) = \frac{1}{2\pi} \int_{-\pi}^{\pi} (f(x - t) - f(x)) K_N(t) \, dt.$$ Since $K_N \ge 0$, the absolute value moves inside without changing $K_N$: $$\begin{aligned} |\sigma_N f(x) - f(x)| &\le \frac{1}{2\pi} \int_{|t| < \delta} \varepsilon \, K_N(t) \, dt \\ &\quad + \frac{1}{2\pi} \int_{\delta \le |t| \le \pi} 2\|f\|_\infty K_N(t) \, dt \\ &\le \varepsilon + \frac{2\|f\|_\infty}{(N + 1)\sin^2(\delta/2)}, \end{aligned}$$ using (b) on the first piece and (c) on the second. The right side doesn't depend on $x$, and it's less than $2\varepsilon$ once $N$ is large. So $\sup_x |\sigma_N f(x) - f(x)| \to 0$. $\blacksquare$

Read the proof again with $D_N$ in place of $K_N$ and watch it break: the absolute value can't move inside without turning $D_N$ into $|D_N|$, whose integral is $\|D_N\|_1 \to \infty$. Positivity is the whole difference. You can see it in the overshoot.

The red partial sums peak near $1.18$ at every $N$; the green Fejér means never pass $1$. Positivity buys safety, but not speed. Compare the two on a few functions, smooth ones included.

Sum Methods

The no-overshoot property is worth proving once, since it's the whole reason the green curves behave.

Show that $\|K_N\|_1 = 1$, and that $\|\sigma_N f\|_\infty \le \|f\|_\infty$ for every $f \in C(T)$. Then show that $\|D_N\|_1$ can't be replaced by $1$ in the same way: give an $f \in C(T)$ with $\|f\|_\infty \le 1$ and $|S_1 f(0)| > 1$.

Show proof

Proof. Since $K_N \ge 0$, $\|K_N\|_1 = \frac{1}{2\pi} \int K_N = 1$. Then for every $x$, $|\sigma_N f(x)| \le \frac{1}{2\pi} \int |f(x - t)| K_N(t) \, dt$, which is at most $\|f\|_\infty \cdot 1$.

For $S_1$: $S_1 f(0) = \frac{1}{2\pi} \int f(t) D_1(t) \, dt$ with $D_1 = 1 + 2\cos t$. Take the even continuous $f$ that is $1$ on $|t| \le \frac{2\pi}{3}$, $-1$ on $\frac{2\pi}{3} + \frac{1}{10} \le |t| \le \pi$, and linear on the two ramps in between. Then $f(-\pi) = f(\pi)$, so $f \in C(T)$, and $|f| \le 1$.

Off the ramps, $f$ has the sign of $D_1$, so $f D_1 = |D_1|$. On a ramp, $|D_1(t)| \le \frac{1}{5}$: $D_1(\pm\frac{2\pi}{3}) = 0$ and $|D_1'| = |2\sin t| \le 2$, so $|D_1(t)| \le 2 \cdot \frac{1}{10}$. There $|f D_1 - |D_1|| \le 2|D_1| \le \frac{2}{5}$. The two ramps have total length $\frac{1}{5}$, so $$\begin{aligned} S_1 f(0) &\ge \|D_1\|_1 - \frac{1}{2\pi} \cdot \frac{1}{5} \cdot \frac{2}{5} \\ &= \frac{1}{3} + \frac{2\sqrt{3}}{\pi} - \frac{1}{25\pi} \approx 1.436 - 0.013 > 1. \end{aligned}$$ $\blacksquare$

Fejér's theorem also settles a debt. The basis theorem on Orthonormal Bases borrowed Stone–Weierstrass for exactly one fact, and now we can pay it back with our own hands.

To prove that $\{e_n\}$ is an orthonormal basis of $L^2(T)$, that page needed every continuous $2\pi$-periodic function to be a uniform limit of trigonometric polynomials, and promised a direct proof with Fejér's kernel. Here it is.

The trigonometric polynomials are dense in $(C(T), \|\cdot\|_\infty)$ and in $L^1(T)$.

Show proof

Proof. Each $\sigma_N f$ is a trigonometric polynomial, so Fejér's theorem gives the first claim. For the second, let $f \in L^1(T)$ and $\varepsilon > 0$. Lebesgue measure on $(-\pi, \pi)$ satisfies the hypotheses of the density of $C_c$ in $L^p$, so there is $g \in C_c((-\pi, \pi))$ with $\|f - g\|_1 < \varepsilon$. Since $g$ vanishes near $\pm\pi$, its $2\pi$-periodic extension is in $C(T)$. By the first claim there is a trigonometric polynomial $p$ with $\|g - p\|_\infty < \varepsilon$, and $\|g - p\|_1 \le \|g - p\|_\infty$. So $\|f - p\|_1 < 2\varepsilon$. $\blacksquare$

The second half is the one the rest of the page runs on. Before that, some Fejér means to compute. Remember the taper: frequency $k$ gets weight $1 - \frac{|k|}{N + 1}$, and anything past $N$ is gone.

Loading practice engine...

The Riemann–Lebesgue Lemma

Now leave pointwise convergence and look at the coefficients themselves. For $f \in L^2(T)$, Bessel's inequality makes $\sum |\hat{f}(n)|^2$ finite, so $\hat{f}(n) \to 0$. An $L^1$ function can be far too spiky for that argument. Look at one with a jump first.

Let $f = \chi_{[0, \pi]}$. Find $\hat{f}(n)$ and how fast it goes to $0$.


$\hat{f}(0) = \frac{1}{2\pi} \cdot \pi = \frac{1}{2}$, and for $n \ne 0$, $$\begin{aligned} \hat{f}(n) &= \frac{1}{2\pi} \int_0^\pi e^{-int} \, dt \\ &= \frac{1 - e^{-in\pi}}{2\pi i n} = \frac{1 - (-1)^n}{2\pi i n}. \end{aligned}$$ So $\hat{f}(n) = 0$ for even $n \ne 0$, and $|\hat{f}(n)| = \frac{1}{\pi |n|}$ for odd $n$. It goes to $0$, but only like $\frac{1}{n}$: not fast enough to be summable.

The integral $\int f(t) e^{-int} \, dt$ goes to $0$ because $e^{-int}$ wiggles faster and faster, and against a fixed $f$ the wiggles cancel. A step function is the easy case; the lemma says every integrable $f$ is.

(Riemann–Lebesgue) If $f \in L^1(T)$, then $\hat{f}(n) \to 0$ as $n \to \pm\infty$.

Show proof

Proof. For any $g \in L^1(T)$ and any $n$, $|\hat{g}(n)| \le \frac{1}{2\pi} \int |g(t)| \, |e^{-int}| \, dt = \|g\|_1$.

Let $\varepsilon > 0$. By the corollary there is a trigonometric polynomial $p = \sum_{|k| \le m} c_k e_k$ with $\|f - p\|_1 < \varepsilon$. Then for every $n$, $$|\hat{f}(n) - \hat{p}(n)| \le \|f - p\|_1 < \varepsilon,$$ (That is the first paragraph applied to $f - p$.) By orthogonality, $\hat{p}(n) = 0$ whenever $|n| > m$. So $|\hat{f}(n)| < \varepsilon$ for every $|n| > m$. $\blacksquare$

That's the standard approximation argument: prove it for a dense class where it's trivial, then pass to the limit with a uniform bound. Watch the cancellation happen on an interval with lopsided ends.

The bars sit under $\frac{1}{\pi n}$, the same rate as the example. Try to fight the cancellation yourself. You can make one coefficient big, but you can't keep all of them big.

Cancel the Wave

Here's the lemma in the form it usually shows up on a prelim, on a set instead of a function.

If $A \subseteq [0, 2\pi]$ is measurable, prove that $$\begin{aligned} \lim_{n \to \infty} \int_A \cos nx \, dx &= 0, \\ \lim_{n \to \infty} \int_A \sin nx \, dx &= 0. \end{aligned}$$

Show proof

Proof. Move $A$ onto $[-\pi, \pi]$ by periodicity: let $f(t) = \chi_A(t)$ for $0 \le t \le \pi$ and $f(t) = \chi_A(t + 2\pi)$ for $-\pi \le t < 0$. Then $f \in L^1(T)$, and since $e^{-inx}$ is $2\pi$-periodic, shifting the part of $A$ in $(\pi, 2\pi]$ down by $2\pi$ changes nothing (the single point $2\pi$, if it is in $A$, has measure zero): $$\int_A e^{-inx} \, dx = \int_{-\pi}^{\pi} f(t) e^{-int} \, dt = 2\pi \hat{f}(n).$$ By Riemann–Lebesgue this tends to $0$. Its real part is $\int_A \cos nx \, dx$ and its imaginary part is $-\int_A \sin nx \, dx$, so both tend to $0$. $\blacksquare$

A warning before the next exercise. Riemann–Lebesgue is about $e^{-int}$, which averages to $0$ over a period. A fast oscillation that doesn't average to $0$, like $|\sin nt|$, doesn't integrate to $0$ against $f$; it integrates to its average times $\int f$. Same proof, one new idea.

Let $f \in L^1(T)$, and let $g$ be bounded, measurable, and $2\pi$-periodic. Prove that $$\lim_{N \to \infty} \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) \, g(Nt) \, dt = \hat{f}(0) \, \hat{g}(0),$$ where $N$ runs through the positive integers. Deduce that $\lim_{N \to \infty} \int_0^\pi |\sin Nt| \, dt = 2$, while Riemann–Lebesgue alone would wrongly suggest $0$.

Show proof

Proof. One wave. Since $g$ is $2\pi$-periodic, $t \mapsto g(Nt)$ is $\frac{2\pi}{N}$-periodic. Split $[-\pi, \pi]$ into the $N$ intervals $J_j = \left[-\pi + \frac{2\pi j}{N}, -\pi + \frac{2\pi (j + 1)}{N}\right]$, $0 \le j \le N - 1$, and on $J_j$ write $t = s + \frac{2\pi j}{N}$ with $s \in J_0$. Then $g(Nt) = g(Ns + 2\pi j) = g(Ns)$ and $e^{ikt} = e^{iks} e^{2\pi i k j/N}$, so for any integer $k$ $$\begin{aligned} &\int_{-\pi}^{\pi} e^{ikt} g(Nt) \, dt \\ &\quad = \left(\sum_{j=0}^{N-1} e^{2\pi i k j/N}\right) \int_{J_0} e^{iks} g(Ns) \, ds. \end{aligned}$$ If $0 < |k| < N$, then $\omega = e^{2\pi i k/N} \ne 1$ and $\omega^N = 1$, so the geometric sum is $\frac{1 - \omega^N}{1 - \omega} = 0$. If $k = 0$, substituting $u = Ns$ gives $N \int_{J_0} g(Ns) \, ds = \int_{-N\pi}^{-N\pi + 2\pi} g(u) \, du = \int_{-\pi}^{\pi} g$, so $\frac{1}{2\pi} \int_{-\pi}^{\pi} g(Nt) \, dt = \hat{g}(0)$.

Trigonometric polynomials. If $p = \sum_{|k| \le m} c_k e_k$ and $N > m$, the previous step gives $\frac{1}{2\pi} \int p(t) g(Nt) \, dt = c_0 \hat{g}(0) = \hat{p}(0) \hat{g}(0)$ exactly.

All of $L^1(T)$. Let $\varepsilon > 0$ and pick $p$ with $\|f - p\|_1 < \varepsilon$ (the corollary). For $N > m$, $$\begin{aligned} &\left|\frac{1}{2\pi} \int f(t) g(Nt) \, dt - \hat{f}(0)\hat{g}(0)\right| \\ &\quad \le \left|\frac{1}{2\pi} \int (f - p)(t) g(Nt) \, dt\right| \\ &\qquad + |\hat{p}(0) - \hat{f}(0)| \, |\hat{g}(0)| \\ &\quad \le 2\|g\|_\infty \varepsilon, \end{aligned}$$ using $|\hat{g}(0)| \le \|g\|_\infty$ and $|\hat{p}(0) - \hat{f}(0)| \le \|f - p\|_1$. So the limit is $\hat{f}(0)\hat{g}(0)$.

The example. Take $f = \chi_{[0, \pi]}$, so $\hat{f}(0) = \frac{1}{2}$, and $g = |\sin|$, so $\hat{g}(0) = \frac{1}{2\pi} \int_{-\pi}^{\pi} |\sin t| \, dt = \frac{2}{\pi}$. Then $\int_0^\pi |\sin Nt| \, dt = 2\pi \cdot \frac{1}{2\pi} \int f(t) g(Nt) \, dt$, and this tends to $2\pi \cdot \frac{1}{2} \cdot \frac{2}{\pi} = 2$. (In fact it equals $2$ for every $N$.) $\blacksquare$

So the recipe for $\lim \int_a^b f(t) \, g(nt) \, dt$ (with $[a, b] \subseteq [-\pi, \pi]$, applying the exercise to $f\chi_{[a, b]}$) is: the average of $g$ over a period, times $\int_a^b f$. For $g = \cos$ or $\sin$ the average is $0$, and that's Riemann–Lebesgue. Try it.

Loading practice engine...

Coefficients Don't Fill $c_0(\mathbb{Z})$

Riemann–Lebesgue says $\hat{f}$ always lands in $c_0(\mathbb{Z})$, the two-sided version of $c_0$ from Bounded Operators: the sequences $(c_n)_{n \in \mathbb{Z}}$ with $c_n \to 0$ as $n \to \pm\infty$, normed by $\|c\|_\infty = \sup_n |c_n|$. It's a Banach space for the same reason $c_0$ is. Two questions: does $\hat{f}$ determine $f$, and does every sequence in $c_0(\mathbb{Z})$ come from some $f$? The first answer is yes, almost everywhere.

A corollary of Lusin's theorem: a measurable $h$ with $|h| \le 1$ is an almost-everywhere limit of functions $g_j \in C_c$ with $|g_j| \le 1$.

If $f \in L^1(T)$ and $\hat{f}(n) = 0$ for every $n \in \mathbb{Z}$, then $f = 0$ almost everywhere. Consequently, if $\hat{f} = \hat{g}$ for $f, g \in L^1(T)$, then $f = g$ almost everywhere.

Show proof

Proof. Step 1: against continuous functions. For a trigonometric polynomial $p = \sum_{|k| \le m} c_k e_k$, $$\begin{aligned} \frac{1}{2\pi} \int_{-\pi}^{\pi} f p \, dt &= \sum_{|k| \le m} c_k \, \frac{1}{2\pi} \int_{-\pi}^{\pi} f(t) e^{ikt} \, dt \\ &= \sum_{|k| \le m} c_k \hat{f}(-k) = 0. \end{aligned}$$ Given $g \in C(T)$, the corollary gives trigonometric polynomials $p_j$ with $\|g - p_j\|_\infty \to 0$, and $\left|\frac{1}{2\pi} \int f(g - p_j)\right| \le \|f\|_1 \|g - p_j\|_\infty \to 0$. So $\int_{-\pi}^{\pi} f g \, dt = 0$ for every $g \in C(T)$.

Step 2: against $\overline{f}/|f|$. Let $h = \overline{f}/|f|$ where $f \ne 0$ and $h = 0$ elsewhere. It is measurable with $|h| \le 1$. Lebesgue measure on $(-\pi, \pi)$ satisfies the hypotheses of Lusin's theorem, so the corollary above gives $g_j \in C_c((-\pi, \pi))$ with $|g_j| \le 1$ and $g_j \to h$ almost everywhere. Each $g_j$ vanishes near $\pm\pi$, so it extends to an element of $C(T)$, and Step 1 gives $\int f g_j = 0$. Since $|f g_j| \le |f| \in L^1$, dominated convergence gives $$\begin{aligned} \int_{-\pi}^{\pi} |f| \, dt &= \int_{-\pi}^{\pi} f h \, dt \\ &= \lim_j \int_{-\pi}^{\pi} f g_j \, dt = 0. \end{aligned}$$ So $f = 0$ almost everywhere. For the last sentence, apply this to $f - g$. $\blacksquare$

"Almost everywhere" is the best possible: changing $f$ on a null set changes no integral, so no coefficient. For continuous functions, though, almost everywhere is everywhere, and that gives a clean convergence test.

Let $f \in C(T)$ with $\sum_{n \in \mathbb{Z}} |\hat{f}(n)| < \infty$. Prove that $S_N f \to f$ uniformly on $T$.

Show proof

Proof. Since $|\hat{f}(n) e^{inx}| = |\hat{f}(n)|$ and $\sum |\hat{f}(n)| < \infty$, the Weierstrass M-test says $S_N f$ converges uniformly to some $g$, which is continuous as a uniform limit of continuous functions. Uniform convergence lets the limit pass through the integral: for each $k$, once $N \ge |k|$, $\widehat{S_N f}(k) = \hat{f}(k)$, so $$\hat{g}(k) = \lim_N \frac{1}{2\pi} \int S_N f(t) e^{-ikt} \, dt = \hat{f}(k).$$ By uniqueness, $g = f$ almost everywhere. Two continuous functions that agree almost everywhere agree everywhere (the set where they differ is open, and a nonempty open set has positive measure). So $S_N f \to f$ uniformly. $\blacksquare$

Now the second question. The map $\Lambda f = \hat{f}$ from $L^1(T)$ to $c_0(\mathbb{Z})$ is linear, bounded (we saw $|\hat{f}(n)| \le \|f\|_1$), and, by uniqueness, injective. If it were also onto, it would be a bounded linear bijection between Banach spaces. The bounded inverse theorem (another consequence of Baire, proved on Baire Category & Its Consequences) would then make the inverse bounded too. The Dirichlet kernels say it can't be.

The map $\Lambda \colon L^1(T) \to c_0(\mathbb{Z})$, $\Lambda f = \hat{f}$, is a bounded, injective linear map with $\|\Lambda\| = 1$, and it is not onto. There are sequences tending to $0$ at both ends that are not the Fourier coefficients of any integrable function.

Show proof

Proof. Riemann–Lebesgue puts $\hat{f}$ in $c_0(\mathbb{Z})$, and $\Lambda$ is linear. Since $|\hat{f}(n)| \le \|f\|_1$ for every $n$, $\|\Lambda f\|_\infty \le \|f\|_1$, so $\|\Lambda\| \le 1$; for $f = 1$, $\|f\|_1 = 1$ and $\hat{f}(0) = 1$, so $\|\Lambda\| = 1$. Uniqueness makes $\Lambda$ injective.

Suppose $\Lambda$ were onto. Then it is a bounded linear bijection from the Banach space $L^1(T)$ onto the Banach space $c_0(\mathbb{Z})$, and the bounded inverse theorem gives $M < \infty$ with $$\|f\|_1 \le M \, \|\hat{f}\|_\infty \quad \text{for every } f \in L^1(T).$$ Test this on $f = D_N$. Its coefficients are $\hat{D}_N(k) = 1$ for $|k| \le N$ and $0$ for $|k| > N$, so $\|\hat{D}_N\|_\infty = 1$, and the bound says $\|D_N\|_1 \le M$ for every $N$. But $\|D_N\|_1 \to \infty$ by the lemma on $\|D_N\|_1$. This contradiction shows $\Lambda$ is not onto. $\blacksquare$

Like the divergence theorem, this one is an existence proof: it says a sequence in $c_0(\mathbb{Z})$ misses the range without naming one. Here's the size of the contradiction in actual numbers.

How big would $M$ have to be in $\|f\|_1 \le M \|\hat{f}\|_\infty$, just to cover $D_1, D_{10}, D_{100}, D_{1000}$?


Each has $\|\hat{D}_N\|_\infty = 1$, so $M \ge \|D_N\|_1$ for each. Numerically, $\|D_1\|_1 \approx 1.44$, $\|D_{10}\|_1 \approx 2.22$, $\|D_{100}\|_1 \approx 3.14$, and $\|D_{1000}\|_1 \approx 4.07$. Each tenfold increase in $N$ adds about $\frac{4}{\pi^2} \log 10 \approx 0.93$. Slowly, but forever: no finite $M$ survives every $N$.

Same kernels, side by side: the coefficients never get bigger, the function's $L^1$ norm never stops growing.

So deciding whether a given sequence is a coefficient sequence takes some care. Two tools decide most cases: if it doesn't tend to $0$ at both ends, Riemann–Lebesgue rules it out; if it's in $\ell^2(\mathbb{Z})$, Riesz–Fischer hands you an $f \in L^2(T) \subseteq L^1(T)$. Check both ends.

Loading practice engine...

Mixed Practice

Every question so far came right after its idea, which is a hint. Down here the hint is gone. First, true or false: a claim about anything on this page, some of them the kind that sounds right and isn't. Decide, then read why.

Loading practice engine...

Next, the proofs. Each one below is a step from a proof on this page with a blank in it, and the wrong fills are the steps that look right and aren't.

Loading practice engine...

Then the mixed set. Every question type on this page except true or false goes into one hat, and each click draws a new one at random. Flip the switch to type your answer; the types that need their answer choices will say so.

Loading practice engine...

Last, the Spicy Bonus. The divergence theorem found one bad point for most continuous functions. Run it at countably many points at once, and Baire's theorem gives a single continuous function that misbehaves on a big set.

🌶️ SPICY BONUS 🌶️

Think of $T$ as a circle (with the arc-length metric, so it's a compact metric space with no isolated points). For $f \in C(T)$, let $E_f = \{x \in T : \sup_N |S_N f(x)| = \infty\}$.

  1. Show that for every $x \in T$, the set $G_x = \{f \in C(T) : \sup_N |S_N f(x)| = \infty\}$ is a dense $G_\delta$ in $(C(T), \|\cdot\|_\infty)$.
  2. Show that some $f \in C(T)$ has $E_f$ a dense $G_\delta$ subset of $T$.
  3. Show that for that $f$, $E_f$ is uncountable.
Show proof

Proof. (a) Let $(\tau_x f)(t) = f(t + x)$. Then $\tau_x$ is a linear map of $C(T)$ onto itself with $\|\tau_x f\|_\infty = \|f\|_\infty$, and substituting $t \mapsto t - x$ gives $\widehat{\tau_x f}(n) = e^{inx} \hat{f}(n)$, so $S_N(\tau_x f)(0)$ is $\sum_{|n| \le N} \hat{f}(n) e^{inx} = S_N f(x)$. Hence $\Lambda_N^x f = S_N f(x)$ is $\Lambda_N \circ \tau_x$, and since $\tau_x$ maps the unit ball onto itself, $\|\Lambda_N^x\| = \|\Lambda_N\| = \|D_N\|_1 \to \infty$. Banach–Steinhaus says $G_x$ is a dense $G_\delta$.

(b) Let $x_1, x_2, \ldots$ list the points $2\pi q$ with $q$ rational in $(-\frac{1}{2}, \frac{1}{2}]$; they are dense in $T$. Write each $G_{x_i} = \bigcap_{M} V_{i, M}$ with $V_{i, M}$ open. Each $V_{i, M}$ contains the dense set $G_{x_i}$, so it is open and dense. The family $\{V_{i, M}\}_{i, M \ge 1}$ is countable, so by Baire's theorem in the complete space $C(T)$ its intersection $G = \bigcap_i G_{x_i}$ is dense, in particular nonempty. Pick $f \in G$.

Then every $x_i$ is in $E_f$, so $E_f$ is dense. And $$E_f = \bigcap_{M=1}^{\infty} \bigcup_{N=0}^{\infty} \{x \in T : |S_N f(x)| > M\}.$$ Each $S_N f$ is a trigonometric polynomial, hence continuous, so each set $\{|S_N f| > M\}$ is open, and so is each union over $N$. So $E_f$ is a $G_\delta$.

(c) Write $E_f = \bigcap_M U_M$ with each $U_M$ open; each $U_M$ contains $E_f$, so it is dense. Suppose $E_f$ were countable, say $E_f = \{y_1, y_2, \ldots\}$. Each $U_M \setminus \{y_j\}$ is open (points are closed) and dense: a nonempty open $W \subseteq T$ meets $U_M$ in a nonempty open set, which has more than one point because $T$ has no isolated points, so it still meets $U_M \setminus \{y_j\}$. The countably many open dense sets $U_M \setminus \{y_j\}$ have intersection $E_f \setminus \{y_1, y_2, \ldots\} = \emptyset$. But $T$ is compact, hence complete, and Baire's theorem says that intersection is dense. Contradiction, so $E_f$ is uncountable. $\blacksquare$