I've been trying to come up with an easy example of an application of the uniform boundedness principle (or Banach-Steinhaus theorem). I was thinking of something like the following, which is unfortunately a non-example:
Non-example:
Consider the Banach space $(B(X), \|\cdot\|_\infty)$, i.e. the space of bounded functions with the sup norm. Let's choose $X=\mathbb R$ and let $\mu$ be a measure that is finite on compact sets, like for example the Lebesgue measure. Define $$ T_t : (B(X), \|\cdot\|_\infty) \to \mathbb R$$ as $$ f \mapsto \int_{[-t,t]} f d \mu$$
Then $T_t$ is linear and bounded: If $\|f\|_\infty = 1$ then $\|T_t f\| = |T_t f| = \int_{[-t,t]} f d \mu \leq 2t$ so that the operator norm $\|T_t\| \leq 2t < \infty$. The condition that fails that prevents me from applying Banach-Steinhaus is that the family $\{T_t\}_{t \in \mathbb R}$ is not pointwise bounded: For $f$ with $\|f\|_\infty$ we have $\sup_{t \in \mathbb R} \|T_t\| \geq \sup_{t \in \mathbb R} 2 t = \infty$.
My non-example was supposed to conclude that the integral operator is continuous on the whole space. Of course it's not on $\mathbb R$ for bounded functions but you see what I'm trying to do. Although one might consider showing that the integral is a continuous operator by applying Banach-Steinhaus "cracking nuts with a sledge hammer", this one is for educational purposes so it's acceptable.
Can someone either modify my example so that it works or show me an equally easy example? Thanks a lot for your help.
Here's another slightly more important example:
We can use Banach-Steinhaus to show that even though we have convergence in $L^2$ for Fourier series of $f \in C(\mathbb T)$, convergence does not hold pointwise. This we can show by showing that there exists an $f \in C(\mathbb T)$ such that the Fourier series of $f$ diverges at $0$.
For this we need the following three facts (proofs omitted):
Fact 1: If $D_n = \sum_{k=-n}^n e^{2 \pi i k}$ is the $n$-th Dirichlet kernel then $$ D_n \ast f(x) = \sum_{k=-n}^n \hat{f}_k e^{ik 2 \pi x}$$ that is, the convolution with the Dirichlet kernel gives us the $n$-th partial sum of the Fourier series of $f$.
Fact 2: $$ \int_0^1 \left | D_n(x) \right | dx \xrightarrow{n \to \infty} \infty$$
Fact 3: The map $T_n: f \mapsto D_n \ast f (0)$ is a bounded linear operator with norm $\|T_n\| = \int_0^1 \left | D_n(x) \right | dx$.
Now all the prerequisites for Banach-Steinhaus are fulfilled:
(i) $(C(\mathbb T), \|\cdot\|_{L^2})$ is a Banach space, $\mathbb R$ is a normed space
(ii) $\{T_n\}$ is a family of bounded linear operators: for each $n$, $T_n$ is bounded by $\|T_n\|$ (Fact 3)
Now if $\{T_n\}$ was pointwise bounded, i.e., for a given $f$, $\sup_{n \in \mathbb N} \|T_n f \| < \infty $ then we could apply Banach-Steinhaus to get $\sup_{n \in \mathbb N} \| T_n \| < \infty$ but that would be a contradiction to $\| T_n \| = \int_0^1 |D_n(x) | dx$ and $ \int_0^1 \left | D_n(x) \right | dx \xrightarrow{n \to \infty} \infty$. Hence $\{T_n\}$ cannot be pointwise bounded that is, there exist an $f$ such that $T_nf$ diverges for $n \to \infty$.