Geometry of Hilbert Spaces

Definition. If M\mathcal{M} is a subset of the Hilbert space H\mathscr{H}, then the orthogonal complement of M\mathcal{M}, denoted M⊥\mathcal{M}^{\perp},is the set of vectors in H\mathscr{H} orthogonal every vector in M\mathcal{M}.

Remark. M⊥\mathcal{M}^{\perp} is a closed subspaces of H\mathscr{H}.

Proof. Let xx,yy ∈M⊥\in \mathscr{M}^{\perp}, ∀z∈M\forall z \in \mathcal{M}, <z,x>=<z,y>=0<{z},{x}> = <{z},{y}> = 0. Then,

<z,x+y>=<z,x>+<z,y>=0+0=0.<{z},{x+y}> = <{z},{x}> + <{z},{y}> = 0+0 = 0.

This implies x+y∈M⊥x+y \in \mathscr{M}^{\perp}. And ∀λ∈C\forall \lambda \in \mathbb{C}, <λz,x>=0<{\lambda z},{x}> = 0, then λz∈M⊥\lambda z \in \mathscr{M}^{\perp}. Hence, M⊥\mathscr{M}^{\perp} is a subspace of H\mathscr{H}.

Next, we only need to show M⊥\mathscr{M}^{\perp} is closed. For x∈Mx \in \mathcal{M}, we can define a linear functional φx(z):=<z,x>\varphi_x(z) := <{z},{x}>, themM⊥=⋂x∈MKerφx\mathscr{M}^{\perp} = \bigcap_{x \in \mathcal{M}} \textbf{Ker}{\varphi_{x}} is a closed subset of H\mathscr{H}. ◻

Theorem. If M\mathcal{M} is a closed subspace of the Hilbert space H\mathscr{H} and f∈Hf \in \mathscr{H}, then there exist unique vectors g∈Mg \in \mathcal{M} and h∈M⊥h \in \mathscr{M}^{\perp} such that

f=g+h.f = g + h.

Proof. Set K={f−k:k∈M}\mathscr{K} = \{f - k: k \in \mathcal{M}\}, then K\mathscr{K} is a nonempty, closed and convex subset of H\mathscr{H}.
Hence, there exists the unique element h∈Kh \in \mathscr{K} with the smallest norm. Consider k∈Mk \in \mathcal{M}, then h−<h,k>k∈Kh - <{h},{k}>k \in \mathscr{K}, and hence

∥h∥2≤∥h−<h,k>k∥2=∥h∥2−<h,k>‾<h,k>−<h,k><h,k>‾+<h,k><h,k>‾∥k∥2.\begin{aligned} {\|{h}\|}^2 &\le {\|{h - <{h},{k}>k}{}\|}^2 \\ &= \|{h}{}\|^2 - \overline{<{h},{k}>} <{h},{k}> - <{h},{k}>\overline{<{h},{k}>} + <{h},{k}>\overline{<{h},{k}>}{\|{k}{}\|}^2. \end{aligned}

Therefore, we have ∣<h,k>∣2≤0|{<{h},{k}>}|^2 \le 0, which implies <h,k>=0<{h},{k}> = 0, h∈M⊥h\in \mathscr{M}^{\perp}. Since h∈Kh \in \mathscr{K}, then ∃g∈M\exists g \in \mathcal{M}, such that f=g+hf = g+h.

Uniqueness: If f=g1+h1=g2+h2f = g_1 + h_1 = g_2 + h_2, with g1,g2∈Mg_1, g_2 \in \mathcal{M}, and h1,h2∈M⊥h_1, h_2 \in \mathscr{M}^{\perp}. Then g1−g2=h1−h2∈M⋂M⊥g_1 - g_2 = h_1 - h_2 \in \mathcal{M} \bigcap \mathscr{M}^{\perp}. This means that (g1−g2)⊥(g1−g2)(g_1 - g_2) \perp (g_1 - g_2), and (h1−h2)⊥(h1−h2)(h_1 - h_2) \perp (h_1 - h_2). <g1−g2,g1−g2>=<h1−h2,h1−h2>=∥g1−g2∥2=∥h1−h2∥2=0.<{g_1 - g_2},{g_1 - g_2}> = <{h_1 - h_2}, {h_1 - h_2}> = \|{g_1 - g_2}{}\|^2 = \|{h_1 - h_2}{}\|^2 = 0.
Then g1=g2g_1 = g_2 and h1=h2h_1 = h_2. ◻

Corollory. If M\mathcal{M} is a subspace of the Hilbert space H\mathscr{H}, then M⊥⊥=M‾\mathcal{M}^{\perp \perp} = \overline{\mathcal{M}}.

Proof. Obvious that M⊂M⊥⊥\mathcal{M} \subset \mathcal{M}^{\perp \perp}(By definition of M⊥\mathscr{M}^{\perp}). Hence, M‾⊂M⊥⊥\overline{\mathcal{M}} \subset \mathcal{M}^{\perp \perp}.
Iff∈M⊥⊥f \in \mathcal{M}^{\perp \perp}, then f=g+hf = g + h, where g∈M‾g \in \overline{\mathcal{M}}, and h∈M⊥h \in \mathscr{M}^{\perp}. Since f∈M⊥⊥f \in \mathcal{M}^{\perp \perp}, we have

0=<f,h>=<g+h,h>=<h,h>=∥h∥2.0 = <{f},{h}> = <{g+h},{h}> = <{h},{h}> = \|{h}{}\|^2.

Therefore, h=0h = 0, hence, f∈M‾f \in \overline{M}. ◻

Theorem. If φ\varphi is a bounded linear functional on H\mathscr{H}, then there
exists a unique g∈Hg \in \mathscr{H} such that φ(f)=<f,g>\varphi(f) = <{f},{g}> for f∈Hf \in \mathscr{H}.

Proof. Let K=Kerφ={f∈H:φ(f)=0}\mathscr{K} = \textbf{Ker} \varphi = \{f \in \mathscr{H} : \varphi(f) = 0\}. Since φ\varphi is continuous, K\mathscr{K} is a closed subspace of H\mathscr{H}. If K=H\mathscr{K} = \mathscr{H}, then φ(f)=<f,0>\varphi(f) = <{f},{0}>, ∀f∈H\forall f \in \mathscr{H}.

If K⊊H\mathscr{K} \subsetneq \mathscr{H}, then ∃h∈K⊥\exists h \in \mathscr{K}^{\perp} with ∥h∥=1\|{h}{}\| = 1. Since h∉Kh \notin \mathscr{K}, then φ(h)≠0\varphi(h) \neq 0.

Since

φ(f−φ(f)φ(h)h)=φ(f)−φ(f)φ(h)φ(h)=0,∀f∈H.\varphi(f - \frac{\varphi(f)}{\varphi(h)} h) = \varphi(f) - \frac{\varphi(f)}{\varphi(h)}\varphi(h) = 0, \quad \forall f \in \mathscr{H}.

Then ∀f∈H\forall f \in \mathscr{H}, f−φ(f)φ(h)h∈Kf - \frac{\varphi(f)}{\varphi(h)} h \in \mathscr{K}. Therefore, for
f∈Hf\in \mathscr{H}, we have

φ(f)=φ(f)<h,h>=<φ(f)φ(h)h,φ(h)‾h>=<φ(f)φ(h)h,φ(h)‾h>+<f−φ(f)φ(h)h,φ(h)‾h>=<f,φ(h)‾h>.\begin{aligned} \varphi(f) &= \varphi(f)<{h},{h}> = <{\frac{\varphi(f)}{\varphi(h)} h },{\overline{\varphi(h)} h }> \\ &= <{\frac{\varphi(f)}{\varphi(h)} h },{\overline{\varphi(h)} h }> + <{f - \frac{\varphi(f)}{\varphi(h)} h},{\overline{\varphi(h)} h}> \\ &= <{f},{\overline{\varphi(h)}h}>. \end{aligned}

Uniqueness: If <f,g1>=<f,g2><{f},{g_1}> = <{f},{g_2}>
∀f∈H\forall f \in \mathscr{H}, then <g1−g2,g1−g2>=0<{g_1 - g_2},{g_1 - g_2}> = 0,
g1=g2g_1 = g_2. ◻

Theorem. If {fα}α∈Λ\{f_{\alpha}\}_{\alpha \in \Lambda} is an orthogonal subset of Hilbert space H\mathscr{H}, then ∑α∈Λfα\sum_{\alpha \in \Lambda} f_{\alpha} converges if and only if ∑α∈Λ∥fα∥2<+∞\sum_{\alpha \in \Lambda} \|{f_{\alpha}}{}\|^2 < +\infty. And in this case, we have

∥∑α∈Λfα∥2=∑α∈Λ∥fα∥2.\|{\sum_{\alpha \in \Lambda} f_{\alpha}}{}\|^2 = \sum_{\alpha \in \Lambda}\|{f_{\alpha}}{}\|^2.

Back to the definition of arbitrary sum:

Definition. Let {fα}α∈A\{f_{\alpha}\}_{\alpha \in A} be a set of vectors in the Banache space XX. Let F={F⊂A:F is finite}\mathscr{F} = \{F \subset A : F \text{ is finite}\}. If we define F1≤F2F_1 \le F_2 for F1⊂F2F_1 \subset F_2, then F\mathscr{F} is a directed set(also means the partial ordered set). For each F∈FF \in \mathscr{F}, let gF=∑α∈Ffαg_F = \sum_{\alpha \in F} f_{\alpha}. If the net {gF}F∈F\{g_F\}_{F \in \mathscr{F}} converges to some gg in XX, then the sum ∑α∈Afα\sum_{\alpha \in A} f_{\alpha} is said to converge and we write g=∑α∈Afαg = \sum_{\alpha \in A}f_{\alpha}.

Proof. Consider a finite subset F⊂ΛF \subset \Lambda, then, we have

∥∑α∈Ffα∥2=∑α∈F∥fα∥2.\|{\sum_{\alpha \in F} f_{\alpha}}{}\|^2 = \sum_{\alpha \in F} \|{f_{\alpha}}{}\|^2.

Let F\mathscr{F} denote the collection of finite subsets of Λ\Lambda. If ∑α∈Λfα\sum_{\alpha \in \Lambda} f_{\alpha} converges, then

∥∑α∈Λfα∥2=∥lim⁡F∈F∑α∈Ffα∥2=lim⁡F∈F∥∑α∈Ffα∥2=lim⁡F∈F∑α∈F∥fα∥2=∑α∈Λ∥fα∥2.\begin{aligned} \|{\sum_{\alpha \in \Lambda} f_{\alpha}}{}\|^2 &= \|{\lim_{F \in \mathscr{F}} \sum_{\alpha \in F} f_{\alpha}}{}\|^2 = \lim_{F \in \mathscr{F}} \|{\sum_{\alpha \in F} f_{\alpha}}{}\|^2 \\ &= \lim_{F \in \mathscr{F}}\sum_{\alpha \in F} \|{f_{\alpha}}{}\|^2 = \sum_{\alpha \in \Lambda} \|{f_{\alpha}}{}\|^2. \end{aligned}

Hence, if ∑α∈Λfα\sum_{\alpha \in \Lambda} f_{\alpha} convergers, then ∑α∈Λ∥fα∥2<∞\sum_{\alpha \in \Lambda} \|{f_{\alpha}}{}\|^2 < \infty.

Conversely, if ∑α∈Λ∥fα∥2<∞\sum_{\alpha \in \Lambda} \|{f_{\alpha}}{}\|^2 < \infty. ∀ε>0\forall \varepsilon > 0, ∃F0∈F\exists F_0 \in \mathscr{F} such that F≥F0F \ge F_0 implies ∑α∈F∥fα∥2−∑α∈F0∥fα∥2<ε2\sum_{\alpha \in F} \|{f_{\alpha}}{}\|^2 - \sum_{\alpha \in F_0} \|{f_{\alpha}}{}\|^2 < \varepsilon^2.
Thus, for F1,F2∈FF_1,F_2 \in \mathscr{F} such that F1,F2≥F0F_1, F_2 \ge F_0, we have

∥∑α∈F1fα−∑α∈F2fα∥2=∑α∈F1\F2∥fα∥2+∑α∈F2\F1∥fα∥2≤∑α∈F1∪F2∥fα∥2−∑α∈F0∥fα∥2<ε2.\begin{aligned} \|{\sum_{\alpha \in F_1} f_{\alpha} - \sum_{\alpha \in F_2} f_{\alpha}}{}\|^2 &= \sum_{\alpha \in F_1 \backslash F_2} \|{f_{\alpha}}{}\|^2 + \sum_{\alpha \in F_2 \backslash F_1 } \|{f_{\alpha}}{}\|^2 \\ &\le \sum_{\alpha \in F_1 \cup F_2} \|{f_{\alpha}}{}\|^2 - \sum_{\alpha \in F_0} \|{f_{\alpha}}{}\|^2 < \varepsilon^2. \end{aligned}

Hence, the net {∑α∈Ffα}F∈F\{\sum_{\alpha \in F} f_{\alpha}\}_{F \in \mathscr{F}} is Cauchy in H\mathscr{H}, which is convergence. ◻

Corollary. If {eα}α∈A\{e_{\alpha}\}_{\alpha \in A} is an orthonormal subset of the Hilbert space H\mathscr{H} and M\mathcal{M} is the smallest closed subspace of H\mathscr{H} containing the set {eα:α∈A}\{e_{\alpha} : \alpha \in A\}, then

M={∑α∈Aλαeα:λα∈C,∑α∈A∣λα∣2<∞}.\mathcal{M} = \left\{\sum_{\alpha \in A} \lambda_{\alpha} e_{\alpha }: \lambda_{\alpha} \in \mathbb{C} , \sum_{\alpha \in A} |{\lambda_{\alpha}}|^2 < \infty\right\}.

Proof. Let N={∑α∈Aλαeα:λα∈C,∑α∈A∣λα∣2<∞}\mathcal{N} = \left\{\sum_{\alpha \in A} \lambda_{\alpha} e_{\alpha }: \lambda_{\alpha} \in \mathbb{C} , \sum_{\alpha \in A} |{\lambda_{\alpha}}|^2 < \infty\right\}. We have N⊂M\mathcal{N} \subset \mathcal{M}.
Then, we only need to show N\mathcal{N} is a closed subspace of H\mathscr{H} containing the set {eα}α∈A\{e_{\alpha}\}_{\alpha \in A}.

Step 1. We prove that N\mathcal{N} is a closed subspace of H\mathscr{H} containing the set {eα:α∈A}\{e_{\alpha} : \alpha \in A\}.

Assume {λα}α∈A,{μα}α∈A\{\lambda_{\alpha}\}_{\alpha \in A}, \{\mu_{\alpha}\}_{\alpha \in A} satisfy ∑α∈A∣λα∣2<∞\sum_{\alpha \in A} |{\lambda_{\alpha}}|^2 < \infty and ∑α∈A∣μα∣2<∞\sum_{\alpha \in A } |{\mu_{\alpha}}|^2 < \infty, then

∑α∈A∣λα+μα∣2≤∑α∈A2(∣λα∣2+∣μα∣2)=2∑α∈A∣λα∣2+2∑α∈A∣μα∣2<∞.\begin{aligned} \sum_{\alpha \in A} |{\lambda_{\alpha}+ \mu_{\alpha}}|^2 &\le \sum_{\alpha \in A} 2(|{\lambda_{\alpha}}|^2 + |{\mu_{\alpha}}|^2)\\ &= 2\sum_{\alpha \in A} |{\lambda_{\alpha}}|^2 + 2 \sum_{\alpha \in A} |{\mu_{\alpha}}|^2 < \infty. \end{aligned}

This implies ∑α∈Aλαeα+∑α∈Aμαeα=∑α∈A(λα+μα)eα∈N\sum_{\alpha \in A} \lambda_{\alpha}e_{\alpha} + \sum_{\alpha \in A} \mu_{\alpha}e_{\alpha} = \sum_{\alpha \in A}(\lambda_{\alpha} + \mu_{\alpha})e_{\alpha} \in \mathcal{N}. and it is easy to verify that ∑α∈Aaλαeα∈N\sum_{\alpha \in A} a \lambda_{\alpha}e_{\alpha} \in \mathcal{N} for all a∈Ca \in \mathbb{C} and eα∈N,∀α∈Ae_{\alpha} \in \mathcal{N}, \forall \alpha \in A.

Step 2. We prove that N\mathcal{N} is closed and N⊂M\mathcal{N} \subset \mathcal{M}.

Note that N=ℓ2(A)\mathcal{N} = \ell^2(A) actually. Then N\mathcal{N} is closed. ◻

Definition. A subset {eα}α∈A\{e_{\alpha}\}_{\alpha \in A} of the Hilbert space H\mathscr{H} is said to be an orthonormal basis if it is orthonormal and the smallest closed subspace containing it is H\mathscr{H}.

Corollary. If {eα}α∈A\{e_{\alpha}\}_{\alpha \in A} is an orthonormal basis for the Hilbert space H\mathscr{H} and f∈Hf \in \mathscr{H}, then there is a unique Fourier coefficients {λα}α∈A\{\lambda_{\alpha}\}_{\alpha \in A} contained in C\mathbb{C} such that f=∑α∈Aλαeαf = \sum_{\alpha \in A} \lambda _{\alpha}e_{\alpha}. Moreover, λα=<f,eα>\lambda_{\alpha} = <{f},{e_{\alpha}}> for α∈A\alpha \in A.

Proof. By Corollary above we have

H={∑α∈Aλαeα:λα∈C,∑α∈A∣λα∣2<∞}.\mathscr{H} = \left\{\sum_{\alpha \in A} \lambda_{\alpha} e_{\alpha} : \lambda_{\alpha} \in \mathbb{C}, \sum_{\alpha \in A} |{\lambda_{\alpha}}|^2 < \infty\right\}.

Hence, ∀f∈H\forall f \in \mathscr{H}, there is {λα}\{\lambda_{\alpha}\}, with ∑α∈A∣λα∣2<∞\sum_{\alpha \in A} |{\lambda_{\alpha}}|^2 < \infty, such that f=∑α∈Aλαeαf = \sum_{\alpha \in A} \lambda_{\alpha}e_{\alpha}. Then, we only need to show the uniqueness.

If f=∑α∈Aλαeα=∑α∈Aμαeαf = \sum_{\alpha \in A} \lambda_{\alpha} e_{\alpha} = \sum_{\alpha \in A}\mu_{\alpha}e_{\alpha}. Then 0=∑α∈A(λα−μα)eα0 = \sum_{\alpha \in A}(\lambda_{\alpha} - \mu_{\alpha})e_{\alpha}.
Hence for each β∈A\beta \in A,

Hence, λβ=μβ\lambda_{\beta} = \mu_{\beta}, ∀β∈A\forall \beta \in A​.

Finally for each β∈A\beta \in A,

<f,eβ>=∑α∈Aλα<eα,eβ>=λβ.<{f},{e_{\beta}}> = \sum_{\alpha \in A}\lambda_{\alpha}<{e_{\alpha}},{e_{\beta}}> = \lambda_{\beta}.

Theorem. Every Hilbert space(≠{0}\neq \{0\}) possesses an orthonormal basis.

Proof. Since H≠{0}\mathscr{H} \neq \{0\}, then H\mathscr{H} has at least one orthonormal set. Assume, F\mathcal{F} denoted by the collection of all orthonormal subsets of H\mathscr{H}. And define the ordered on F\mathcal{F}, for F1,F2∈FF_1, F_2 \in \mathcal{F}, F1≤F2F_1 \le F_2 if F1⊂F2F_1 \subset F_2. Then (F,≤)(\mathcal{F}, \le) is a partial ordered set.

Let A\mathcal{A} is a total ordered subset of F\mathcal{F}, let G=⋃F∈AFG = \bigcup_{F \in \mathcal{A}}F.

We prove GG is an orthonormal subsets of H\mathscr{H}, hence it is an upper bound of A\mathcal{A}

∀f,g∈G\forall f, g \in G, there is F1,F2∈AF_1, F_2 \in \mathcal{A}, such that f∈F1f \in F_1 and g∈F2g \in F_2. Since, A\mathcal{A} is total ordered, then F1⋃F2∈{F1,F2}=max⁡{F1,F2}F_1 \bigcup F_2 \in \{F_1, F_2\} = \max\{F_1, F_2\}. W.L.A.G F1≤F2F_1 \le F_2, hence, f,g∈F2f, g \in F_2, and note that F2F_2 is an orthonormal subset, then f⊥gf \perp g.

By Zorn’s lemma, there is a maximal element of F\mathcal{F}, denoted by B={eα:α∈A}B = \{e_{\alpha}: \alpha \in A\}.

Next, we prove BB is an orthonormal basis of H\mathscr{H}.

Let K=Span‾B\mathscr{K} = \overline{\textbf{Span}}B, and if K⊊H\mathscr{K} \subsetneq \mathscr{H}, choose x∈H∖Kx \in \mathscr{H} \setminus \mathscr{K}.

Let h=x−∑α∈A<x,eα>eαh = x - \sum_{\alpha \in A}<{x},{e_{\alpha}}>e_{\alpha}. Then, h≠0h \neq 0 and h∉Kh \notin \mathscr{K} (Since <h,eβ>=0<{h},{e_{\beta}}> = 0 ∀β∈A\forall \beta \in A).

Hence, let G~=G⋃{h/∥h}\widetilde{G} = G\bigcup \{h/\|{h}{}\}, then G~\widetilde{G} is an orthonormal subsets of H\mathscr{H} containing GG, which contradicts with GG is maximal.

Thus, K=H\mathscr{K} = \mathscr{H}, GG is an orthonormal basis of H\mathscr{H}. ◻

Theorem. If {eα}α∈A\{e_{\alpha}\}_{\alpha \in A} and {fβ}β∈B\{f_{\beta}\}_{\beta \in B} are orthonormal basis for the Hilbert space H\mathscr{H}, then #A=#B\# A = \# B.

Proof. If #A<#B\# A < \#B, then, there is a injective map τ\tau from AA into a proper subset CC of BB.

Then, C={τ(eα)}α∈AC = \{\tau(e_{\alpha})\}_{\alpha \in A}, and CC is an orthonormal subset of H\mathscr{H}. Let K=Span‾C\mathcal{K} = \overline{\textbf{Span} }C. Then, K⊊H\mathcal{K} \subsetneq \mathscr{H}, and choose x∈H∖Kx \in \mathscr{H} \setminus \mathcal{K}.

For each γ∈A\gamma \in A,

τ(eγ)=∑α∈A<τ(eγ),eα>eα.\tau(e_{\gamma}) = \sum_{\alpha \in A} <{\tau(e_{\gamma})},{e_{\alpha}}>e_{\alpha}.

Then τ\tau can extend to a linear map on H\mathscr{H}. τ:H→K\tau : \mathscr{H} \to \mathcal{K} is one-to-one and onto by define

τ(x)=∑γ∈A<x,eγ>τ(eγ),∀x∈H.\tau(x) = \sum_{\gamma \in A}<{x},{e_{\gamma}}>\tau(e_{\gamma}), \quad \forall x \in \mathscr{H}.

τ\tau is continuous.

If the claim holds, we have τ−1\tau^{-1} is continuous. Then Span‾A=Span‾C\overline{\textbf{Span}}A = \overline{\textbf{Span}}C, K=H\mathcal{K} = \mathscr{H}. This is contradiction!

Hence, #A≥#B\#A \ge \#B, by symmetry #B≥#A\#B \ge \#A. #A=#B\#A = \#B.

Finally, we prove the claim

Assume x∈Hx \in \mathscr{H}, ∥x∥=1\|{x}\| = 1. Then,

∥τ(x)∥2=∥∑γ∈A<x,eγ>τ(eγ)∥2=∑γ∈A∣<x,eγ>∣2=∥x∥2.\|{\tau(x)}{}\|^2 = \|{\sum_{\gamma \in A} <{x},{e_{\gamma}}> \tau(e_{\gamma})}{}\|^2 = \sum_{\gamma \in A}|{<{x},{e_{\gamma}}>}|^2 = \|{x}{}\|^2.

Hence, τ\tau is continuous. We complete the proof. ◻

Theorem. If H\mathscr{H} is a Hilbert space, then the dimension of H\mathscr{H}, denoted dim⁡H\dim \mathscr{H}, is the cardinality of any orthonormal basis for H\mathscr{H}.

Theorem. Two Hilbert spaces are isomorphic if and only if their dimensions are equal.

Example. Cn\mathbb{C}^n with inner product z=(z1,z2,⋯ ,zn)z = (z_1, z_2, \cdots, z_n), w=(w1,w2,⋯ ,wn)∈Cnw = (w_1, w_2,\cdots, w_n) \in \mathbb{C}^n, then

<z,w>=∑k=1nzkwk‾.<{z},{w}> = \sum_{k=1}^{n}z_k \overline{w_k}.

and {ek=(0,⋯ ,0,1,0,⋯ ,0)}k=1n\{e_k = (0,\cdots, 0, 1, 0, \cdots, 0)\}_{k = 1}^{n} is the orthonormal basis of Cn\mathbb{C}^n. Then dim⁡Cn=n\dim \mathbb{C}^n = n.

Theorem. ℓ2(Z+)\ell^2(\mathbb{Z}^+) with inner product f,g∈ℓ2(Z+)f, g \in \ell^2(\mathbb{Z}^+), then

<f,g>=∑n=1∞f(n)g(n)‾.<{f},{g}> = \sum_{n = 1}^{\infty} f(n)\overline{g(n)}.

and consider {en}n∈Z+\{e_n\}_{n \in \mathbb{Z}^+}, where en(m)=δn,me_n(m) = \delta_{n,m}. Which is an orthonormal basis of ℓ2(Z+)\ell^2(\mathbb{Z}^+). Hence, dim⁡ℓ2(Z+)=ℵ0\dim \ell^2(\mathbb{Z}^+) = \aleph_0.

Theorem. In the Hilbert space L2([0,1])L^2([0,1]), the set {e2πinx}n∈Z\{e^{2\pi i n x}\}_{n \in \mathbb{Z}} is orthonormal since

∫01e2πi(m−n)xdx={1,m=n0,m≠n\begin{aligned} \int_{0}^{1} e^{2\pi i (m-n) x}dx =\left\{\begin{matrix} 1,& m=n\\ 0,& m\neq n \end{matrix}\right. \end{aligned}

By Stone-Weierstrass theorem,Span‾∥⋅∥∞{e2πinx}n∈Z=C([0,1])\overline{\textbf{Span}}^{\|{\cdot}{}\|_{\infty}}\{e^{2\pi i n x}\}_{n \in \mathbb{Z}} = C([0,1]).
Hence,

Span‾∥⋅∥2{e2πinx}n∈Z=C([0,1])‾∥⋅∥2=L2([0,1]).\overline{\textbf{Span}}^{\|{\cdot}{}\|_{2}}\{e^{2\pi i n x}\}_{n \in \mathbb{Z}} = \overline{C([0,1])}^{\|{\cdot}{}\|_2} = L^2([0,1]).

{e2πinx}n∈Z\{e^{2\pi i n x}\}_{n \in \mathbb{Z}} is an orthonormal of L2([0,1])L^2([0,1]), and dim⁡L2([0,1])=ℵ0\dim L^2([0,1]) = \aleph_0.