Skip to main content

Section 3.4 \(L^2([a,b])\)

In this section we define an inner product on \(C^0([a,b])\) (and hence a norm and a metric) in terms of integrals.
Unlike in Section 3.1 and Section 3.2, however, the resulting space is not complete!

Proof.

It is enough to find a sequence \(\seq fn\) in \(\big(C^0([a,b]),\scp\blank\blank_{L^2([a,b])}\big)\) which is Cauchy in this space but not convergent.
Suppose for simplicity that \([a,b]=[-1,1]\text{,}\) and consider the functions \(f_n \in C^0([-1,1])\) defined by
\begin{equation*} f_n(t) = \begin{cases} 0 \amp \text{if } {-1} \le t \le 0, \\ nt \amp \text{if } 0 \lt t \le 1/n, \\ 1 \amp \text{if } 1/n \lt t \le 1 \end{cases} \end{equation*}
shown in Figure 3.1 below.
Figure 3.1. The functions \(f_n \in C^0([-1,1])\) in the proof of Lemma 3.11.
For \(m,n \in \N\) with \(n \gt m\text{,}\) Part b of Exercise 3.4.2 gives
\begin{equation*} \n{f_m-f_n}_{L^2([-1,1])} \le \sqrt{\frac 1m}. \end{equation*}
Since the right hand side vanishes as \(m \to \infty\text{,}\) we conclude that \(\seq fn\) is Cauchy in \(\big(C^0([-1,1]),\scp\blank\blank_{L^2([-1,1])}\big)\text{.}\) We claim that it is not convergent in this space.
Suppose for contradiction that there exists a limit \(f \in C^0([-1,1])\) with
\begin{equation} \n{f_n-f}_{L^2([-1,1])} \to 0 \text{ as } n \to \infty \text{.}\tag{3.5} \end{equation}
Looking at the graph of \(f_n\text{,}\) we intuitively would expect \(f\) to be a discontinuous function, which would be a contradiction. The challenge is to use the limited information (3.5) to make this rigorous, and for this we use Lemma 3.9.
Since \(f_n(t)=0\) for all \(t \in [-1,0]\) and all \(n \in \N\text{,}\) we have
\begin{align*} \int_{-1}^0 (f(t))^2 \, dt \amp = \int_{-1}^0 (f(t)-f_n(t))^2 \, dt\\ \amp \le \int_{-1}^1 (f(t)-f_n(t))^2 \, dt\\ \amp = \n{f-f_n}_{L^2([-1,1])}^2\\ \amp \to 0 \end{align*}
as \(n \to \infty\) by (3.5). By Lemma 3.9, we conclude that
\begin{equation} f(t)=0 \text{ for } t \in [-1,0]\text{.}\tag{3.6} \end{equation}
Similarly, for any \(d \in (0,1)\text{,}\) we can fix \(N \in \N\) large enough that \(f_n(t)=1\) for all \(t \in [d,1]\) and \(n \ge N\text{.}\) For \(n \ge N\) we can therefore estimate
\begin{align*} \int_d^1 (f(t)-1)^2 \, dt \amp = \int_d^1 (f(t)-f_n(t))^2 \, dt\\ \amp \le \int_{-1}^1 (f(t)-f_n(t))^2 \, dt\\ \amp = \n{f-f_n}_{L^2([-1,1])}^2\text{.} \end{align*}
Sending \(n \to \infty\) and applying Lemma 3.9, we deduce that \(f(t)=1\) for \(t \in [d,1]\text{.}\) Since \(d \in (0,1)\) was arbitrary, we conclude that \(f(t)=1\) for \(t \in (0,1]\text{.}\) Combining with (3.6), we see that \(f\) is not continuous at \(0\text{,}\) which is a contradiction.
While we have only given an example for special \([a,b]=[-1,1]\text{,}\) the general case follows by a similar argument. Alternatively, one can use the isometry defined in Exercise 3.4.4.
Since \(\big(C^0([a,b]),\scp\blank\blank_{L^2([a,b])}\big)\) is not complete, it makes sense to talk about its completion, which exists thanks to Theorem 2.12.

Definition 3.12.

The space \(L^2([a,b])\) is the completion of the inner product space \(\big(C^0([a,b]),\scp\blank\blank_{L^2([a,b])}\big)\text{.}\) Following common practice, we abuse notation and write \(\scp\blank\blank_{L^2([a,b])}\) for the inner product on this completion.

Convention 3.13.

To avoid the explosion of brackets in definition Definition 3.12, we can instead write “\(L^2([a,b])\) is the completion of \(C^0([a,b])\) with respect to the inner product \(\scp\blank\blank_{L^2([a,b])}\)”.
Recalling how we constructed completions in the proof of Theorem 2.12, we see that elements of \(L^2([a,b])\) can be thought of as equivalence classes of Cauchy sequences in \(\big(C^0([a,b]),\scp\blank\blank_{L^2([a,b])}\big)\text{.}\) In particular, they are not obviously functions in the ordinary sense of the word. At the same time, according to Remark 2.8 we can identify \(C^0([a,b])\) with a proper subset of \(L^2([a,b])\text{.}\) An analogy would be that, while it makes no sense to talk about the ‘denominator in lowest terms’ of a real number, this makes perfect sense for rational numbers, which are of course also real numbers.
Students taking Measure theory & integration will learn that elements of \(L^2([a,b])\) can be viewed as equivalence classes of ‘measurable’ functions.

Exercises Exercises

1. \(L^2\) inner product on \(C^0\).

2. (PS7) Calculating and estimating \(L^2\) norms.

For any \(c \in (0,1]\text{,}\) let \(g_c \in C^0([0,1])\) be the function defined in Exercise 3.3.1,
\begin{equation*} g_c(t) = \begin{cases} 0 \amp \text{if } {-1} \le t \le 0, \\ t/c \amp \text{if } 0 \lt t \le c, \\ 1 \amp \text{if } c \lt t \le 1 \end{cases}\text{.} \end{equation*}
(a)
Calculate the \(L^2\) norm
\begin{equation*} \n{g_c}_{L^2([-1,1])} = \sqrt{\scp{g_c}{g_c}_{L^2([-1,1])}}\text{.} \end{equation*}
Hint.
To avoid having to write too many square roots, it is convenient to first calculate \(\n{g_c}_{L^2([-1,1])}^2\) and then take a square root.
(b)
For \(c,d \in (0,1]\) with \(c \le d\text{,}\) conclude from Part c of Exercise 3.3.1 that
\begin{equation*} \n{g_c-g_d}_{L^2([-1,1])} \le \sqrt d\text{.} \end{equation*}

3. (PS8) \(L^2\) convergence is not pointwise convergence.

Consider the sequence of functions \(\seq fn\) in \(C^0([0,1]) \subset L^2([0,1])\) defined by \(f_n(t)=t^n\text{.}\)
(a)
Calculate the pointwise limit of \(\seq fn\text{.}\) That is, find a function \(f \maps [0,1] \to \R\) such that, for all \(t \in [0,1]\text{,}\) \(f_n(t) \to f(t)\) as \(n \to \infty\text{.}\)
(b)
Show that, as a sequence in \(L^2([0,1])\text{,}\) \(f_n \to 0\) as \(n \to \infty\text{.}\)
(c)
How does this not contradict the uniqueness of limits (Theorem 1.34)?

4. \(L^2\) on different intervals.

Let \(a,b \in \R\) with \(a \lt b\text{,}\) and define a mapping \(\Phi \maps C^0([0,1]) \to C^0([a,b])\) by
\begin{equation*} \Phi(f)(t) = \frac 1{\sqrt{b-a}} f\Big(\frac{t-a}{b-a}\Big)\text{.} \end{equation*}
(a)
Show that, for all \(f \in C^0([0,1])\text{,}\)
\begin{equation*} \n{\Phi(f)}_{L^2([a,b])} = \n{f}_{L^2([0,1])}\text{.} \end{equation*}
(b)
Show that \(\Phi\) is therefore an isometry between \(\big(C^0([0,1]),\scp\blank\blank_{L^2([0,1])}\big)\) and \(\big(C^0([a,b]),\scp\blank\blank_{L^2([a,b])}\big)\text{.}\)
(c)
Conclude that \(\Phi\) has a continuous extension \(\hat \Phi \maps L^2([0,1]) \to L^2([a,b])\text{.}\)