Let f:[−π,π]:→Rf: [-\pi, \pi]: \rightarrow \mathbb{R} be a real function. As ff itself can be complicated, we want to decompose it into a linear combination of simpler functions.

Example. A typical family of simple functions are polynomials:

{1,t,t2,t3,...}. \{ 1, t, t^2, t^3, ... \}.

Under proper condition, e.g., if ff is infinitely differentiable, it can be indeed decomposed into a linear combination of polynomials, such as:

f=f(0)+f′(0)t+f′′(t)2!t2+... f = f(0) + f'(0) t + \frac{f''(t)}{2!} t^2 + ...

Problem

Here we study the problem of approximating ff with trigonometric functions:

T={1,sin⁡t,cos⁡t,sin⁡2t,cos⁡2t,....}. \mathfrak{T} = \{ 1, \sin t, \cos t, \sin 2t, \cos 2t, .... \}.

Although f:[−π,π]:→Rf: [-\pi, \pi]: \rightarrow \mathbb{R} is a function with output on R\mathbb{R}, we view it as a function [−π,π]:→C[-\pi, \pi]: \rightarrow \mathbb{C} to take advantage of complex exponential. Now, we approximate ff with a set of sinusoids:

Γ={1,exp⁡(it),exp⁡(−it),exp⁡(i2t),exp⁡(−i2t),exp⁡(i3t),exp⁡(−i3t)...}. \Gamma = \{ 1, \exp(it), \exp(-it), \exp(i2t), \exp(-i2t), \exp(i3t), \exp(-i3t)... \}.

Observe that Γ\Gamma generalizes T\mathfrak{T}, as for ∀k∈N\forall k \in \mathbb{N},

2cos⁡kt=exp⁡(ikt)+exp⁡(−ikt),2sin⁡kt=exp⁡(ikt)−exp⁡(−ikt). 2 \cos kt = \exp(ikt) + \exp(-ikt), \\ 2 \sin kt = \exp(ikt) - \exp(-ikt).

Define the span S(Γ)S(\Gamma) as the set of all possible linear combinations of functions in Γ\Gamma:

S(Γ)≐{∑k∈Zckexp⁡(ikt):∀k∈Z,ck∈C}. S(\Gamma) \doteq \left\{ \sum_{k \in \mathbb{Z} } c_k \exp(ikt) : \forall k \in \mathbb{Z}, c_k \in \mathbb{C} \right\}.

The goal is to find the closest function to ff in S(Γ)S(\Gamma).

The key issues with the approximation are

  1. How do we measure the closeness between two functions?

  2. Under what condition, can ff be rewrite as a linear combination of functions in Γ\Gamma?

  3. What is the approximation error, between ff and the linear combination?

Norm

Despite the goal stated above, the closeness between ff and a function in S(Γ)S(\Gamma) has not yet been defined. This raises the question of measuring the distance between two functions in [−π,π]→C[-\pi, \pi] \rightarrow \mathcal{C}.

In Rn\mathbb{R}^n, the Euclidean distance between two vectors u,vu, v is defined as

∣∣u−v∣∣=∑i=1n(ui−vi)2. || u - v || = \sqrt{\sum_{i = 1}^n (u_i - v_i)^2 }.

If we define w=u−vw = u - v, then the problem of measuring the distance between two vectors reduces to the one of measuring the length of a vector

∣∣u−v∣∣=∣∣w∣∣=∑i=1nwi2. || u - v || = || w || = \sqrt{\sum_{i = 1}^n w_i^2 }.

In a similar manner, if we view a function h:[−π,π]→Ch: [-\pi, \pi] \rightarrow \mathcal{C} as an (uncountable) infinite dimension vector, it is natural to defined its length

∣∣h∣∣≐∫[−π,π]∣∣h(t)∣∣2=∫[−π,π]h(t)‾⋅h(t). || h || \doteq \sqrt{ \int_{ [-\pi, \pi] } ||h(t) ||^2 } = \sqrt{ \int_{ [-\pi, \pi] } \overline{h(t) } \cdot h(t) }.

Remark:

  1. ∣∣h∣∣2|| h ||^2 needs to be integrable.
  2. Verify that ∣∣⋅∣∣|| \cdot || is a norm.

As f−gf - g is also a function in [−π,π]→C[-\pi, \pi] \rightarrow \mathcal{C}, the distance between two functions ff and gg is given by

∣∣f−g∣∣=∫[−π,π]∣∣f(t)−g(t)∣∣2=∫[−π,π](f(t)−g(t))‾⋅(f(t)−g(t))=∫[−π,π]f(t)‾⋅f(t)+∫[−π,π]g(t)‾⋅g(t)−∫[−π,π]f(t)‾⋅g(t)−∫[−π,π]g(t)‾⋅f(t) =∣∣f∣∣2+∣∣g∣∣2−∫[−π,π]f(t)‾⋅g(t)−∫[−π,π]g(t)‾⋅f(t) . \begin{aligned} ||f - g|| &= \sqrt{ \int_{ [-\pi, \pi] } ||f(t) - g(t)||^2 } \\ &= \sqrt{ \int_{ [-\pi, \pi] } \overline{ (f(t) - g(t) ) } \cdot (f(t) - g(t) ) } \\ &= \sqrt{ \int_{ [-\pi, \pi] } \overline{ f(t) } \cdot f(t) + \int_{ [-\pi, \pi] } \overline{ g(t) } \cdot g(t) - \int_{ [-\pi, \pi] } \overline{ f(t) } \cdot g(t) - \int_{ [-\pi, \pi] } \overline{ g(t) } \cdot f(t) \ } \\ &= \sqrt{ ||f||^2 + || g ||^2 - \int_{ [-\pi, \pi] } \overline{ f(t) } \cdot g(t) - \int_{ [-\pi, \pi] } \overline{ g(t) } \cdot f(t) \ }. \\ \end{aligned}

Remark:

  1. ∣∣f−g∣∣2|| f - g ||^2 needs to be integrable.
  2. The integration operation is required to be linear.

Hermitian Product

To simplify the expansion of ∣∣f−g∣∣||f - g||, we introduce another operation, termed Hermitian product, as follows:

<g,f>H≐∫[−π,π]g(t)‾⋅f(t). \left< g, f \right>_H \doteq \int_{ [-\pi, \pi] } \overline{ g(t) } \cdot f(t).

The operation is not symmetric. By definition,

<f,g>H≐∫[−π,π]f(t)‾⋅g(t). \left< f, g \right>_H \doteq \int_{ [-\pi, \pi] } \overline{ f(t) } \cdot g(t).

<g,f>H\left< g, f \right>_H is the complex conjugate of <f,g>H\left< f, g \right>_H:

<g,f>H=<f,g>H‾. \left< g, f \right>_H = \overline{ \left< f, g \right>_H }.

For any c∈Cc \in \mathbb{C}, it holds that

<c⋅g,f>H=cˉ⋅<g,f>H,<g,c⋅f>H=c⋅<g,f>H. \left< c \cdot g, f \right>_H = \bar c \cdot \left< g, f \right>_H, \\ \left< g, c \cdot f \right>_H = c \cdot \left< g, f \right>_H. \\

Now the expansion of ∣∣f−g∣∣||f - g|| is simplified as

∣∣f−g∣∣=∣∣f∣∣2+∣∣g∣∣2−(<g,f>H‾+<g,f>H)=∣∣f∣∣2+∣∣g∣∣2−2⋅Re(<g,f>H). \begin{aligned} ||f - g|| &= \sqrt{ ||f||^2 + ||g||^2 - ( \overline{ \left< g, f \right>_H } + \left< g, f \right>_H ) } \\ &= \sqrt{ ||f||^2 + ||g||^2 - 2 \cdot \mathbb{Re}( \left< g, f \right>_H ) }. \\ \end{aligned}
Geometric Interpretation

We have just introduced the notation of Hermitian product to simplify the expression. Its "geometric" interpretation is related to the idea of "projection". We start by reviewing the ideas of "Projection, Dot Product and Orthogonality" in R2\mathbb{R}^2.

Projection in R2\mathbb{R}^2. Given u,v∈R2u, v \in \mathbb{R}^2, the projection of uu to vv is the vector in the subspace

S(v)≐{c⋅v:c∈R} S(v) \doteq \{ c \cdot v : c \in \mathbb{R} \}

that is closest to uu.

Dot Product in R2\mathbb{R}^2. Given u,v∈R2u, v \in \mathbb{R}^2, their dot product is defined as

<u,v>=u1v1+u2v2. \left< u, v \right> = u_1 v_1 + u_2 v_2.

The projection of uu to vv (closest vector to uu in S(v)S(v)) is given by

1∣∣v∣∣2<u,v>⋅v=<u,v>∣∣v∣∣⋅v∣∣v∣∣. \frac{1}{ ||v||^2 } \left< u, v \right> \cdot v = \frac{ \left< u, v \right> }{ ||v|| } \cdot \frac{ v }{ ||v|| }.

The first term of the final product <u,v>∣∣v∣∣=∣∣u∣∣⋅∣∣v∣∣⋅cos⁡∠(u,v)∣∣v∣∣=∣∣u∣∣⋅cos⁡∠(u,v)\frac{ \left< u, v \right> }{ ||v|| } = \frac{ ||u|| \cdot ||v|| \cdot \cos \angle (u, v) }{ ||v|| } = ||u|| \cdot \cos \angle (u, v) gives the length of uu's projection to vv, and the second term v∣∣v∣∣\frac{ v }{ ||v|| } is a unit vector that shares the same direction as vv.

Orthogonality in R2\mathbb{R}^2. Given u,v∈R2u, v \in \mathbb{R}^2, they are orthogonal if the projection of uu to vv is 0⃗\vec 0. In this case,

<u,v>=0. \left< u, v \right> = 0.

We can extend these ideas to [−π,π]→C[-\pi, \pi] \rightarrow \mathbb{C}.

Projection

Given f,g:[−π,π]→Cf, g:[-\pi, \pi] \rightarrow \mathcal{C}, the projection of ff to gg is the function in the linear span of gg

S(g)≐{c⋅g:c∈C} S(g) \doteq \{ c \cdot g : c \in \mathbb{C} \}

that minimize ∣∣f−c⋅g∣∣,∀c∈C||f - c \cdot g||, \forall c \in \mathbb{C}.

Hermitian Product

Hermitian product is related to projection and arises naturally when we try to solve

min⁡c∈C∣∣f−c⋅g∣∣, \min_{c \in \mathbb{C} } ||f - c \cdot g||,

or equivalently,

min⁡c∈C∣∣f−c⋅g∣∣2. \min_{c \in \mathbb{C} } ||f - c \cdot g||^2.

Expanding ∣∣f−c⋅g∣∣2||f - c \cdot g||^2 and let c=x+iyc = x + iy, <g,f>H=a+ib\left< g, f \right>_H = a + i b, we get

∣∣f−c⋅g∣∣2=∣∣f∣∣2+∣∣c∣∣2⋅∣∣g∣∣2−2⋅Re(<c⋅g,f>H)=∣∣f∣∣2+∣∣c∣∣2⋅∣∣g∣∣2−2⋅Re(cˉ⋅<g,f>H)=∣∣f∣∣2+(x2+y2)⋅∣∣g∣∣2−2⋅Re((x−iy)⋅(a+ib))=∣∣f∣∣2+(x2+y2)⋅∣∣g∣∣2−2⋅(ax+by) \begin{aligned} ||f - c \cdot g||^2 &= ||f||^2 + ||c||^2 \cdot ||g||^2 - 2 \cdot \mathbb{Re}( \left< c \cdot g, f \right>_H ) \\ &= ||f||^2 + ||c||^2 \cdot ||g||^2 - 2 \cdot \mathbb{Re} ( \bar c \cdot \left< g, f \right>_H ) \\ &= ||f||^2 + (x^2 + y^2) \cdot ||g||^2 - 2 \cdot \mathbb{Re} ( ( x- i y) \cdot (a + i b) ) \\ &= ||f||^2 + (x^2 + y^2) \cdot ||g||^2 - 2 \cdot (a x + by) \\ \end{aligned}

Remark: The derivation above requires the integration operation to be linear.

Taking the derivate of RHS with respect to xx, setting it to zero and assuming that ∣∣g∣∣≠0||g|| \neq 0, we see

2x⋅∣∣g∣∣2−2a=0⇒x=a∣∣g∣∣2. 2x\cdot ||g||^2 - 2 a = 0 \Rightarrow x = \frac{ a }{ ||g||^2 }.

Similarly,

2y⋅∣∣g∣∣2−2b=0⇒y=b∣∣g∣∣2. 2y\cdot ||g||^2 - 2 b = 0 \Rightarrow y = \frac{ b }{ ||g||^2 }.

Combined, cc is given by

c=x+iy=<g,f>H∣∣g∣∣2=<g∣∣g∣∣,f>H⋅1∣∣g∣∣. c = x + iy = \frac{ \left< g, f \right>_H }{ ||g||^2 } = \left< \frac{g }{ ||g|| }, f \right>_H \cdot \frac{ 1 }{ ||g|| }.

This implies that

c⋅g=<g,f>H∣∣g∣∣2⋅g=<g∣∣g∣∣,f>H⋅g∣∣g∣∣. c \cdot g = \frac{ \left< g, f \right>_H }{ ||g||^2 } \cdot g = \left< \frac{g }{ ||g|| }, f \right>_H \cdot \frac{g }{ ||g|| }.

Now it is clear that the Hermitian product computes the coefficient for the projection of ff to gg, scaled by a factor of 1/∣∣g∣∣21/ ||g||^2. When ∣∣g∣∣|| g || has unit length,

c⋅g=<g,f>H⋅g. c \cdot g = \left< g, f \right>_H \cdot g.

The Hermitian product ∈C\in \mathbb{C} is the just the coefficient for the projection.

Orthogonality

Given f,g:[−π,π]→Cf, g:[-\pi, \pi] \rightarrow \mathcal{C}, ff is orthogonal to gg if the projection of ff to gg is the zero function, i.e., the closest function (measured by ∣∣⋅∣∣|| \cdot ||) to ff in the linear span S(g)S(g) is the constant function zero. It holds that, either ∣∣g∣∣2=0||g||^2 = 0 or

arg⁡min⁡c∈C∣∣f−c⋅g∣∣2=<g,f>H∣∣g∣∣2=0. \arg\min_{ c \in \mathbb{C} } \left| \left|f - c \cdot g \right| \right|^2 = \frac{ \left< g, f \right>_H }{ ||g||^2 } = 0.

In both cases,

<g,f>H‾=<f,g>H=0. \overline{ \left< g, f \right>_H } = \left< f, g \right>_H = 0.

Properties of Γ\Gamma

We are now ready to discuss the properties of Γ={1,exp⁡(it),exp⁡(−it),exp⁡(i2t),exp⁡(−i2t),...}\Gamma = \{ 1, \exp(it), \exp(-it), \exp(i2t), \exp(-i2t), ... \}.

  1. For k∈Zk \in \mathbb{Z},

    ∣∣exp⁡(ikt)∣∣=∫[−π,π]exp⁡(ikt)‾exp⁡(ikt) =2π. || \exp(ikt) || = \sqrt{ \int_{ [-\pi, \pi] } \overline{\exp(ikt) } \exp(ikt) \ } = \sqrt{2 \pi }.
  2. For k,l∈Zk, l \in \mathbb{Z}, k≠lk \neq l, exp⁡(ikt)\exp(ikt) and exp⁡(ilt)\exp(ilt) are orthogonal.

    <exp⁡(ikt),exp⁡(ilt)>H=∫[−π,π]exp⁡(−ikt)⋅exp⁡(ilt)=∫[−π,π]exp⁡(i(l−k)t)=1i(l−k)exp⁡(i(l−k)t)∣−ππ=0. \begin{aligned} \left< \exp(ikt), \exp(ilt) \right>_H &= \int_{ [ -\pi, \pi] } \exp(-ikt) \cdot \exp(ilt) \\ &= \int_{ [ -\pi, \pi] } \exp(i (l - k) t) \\ &= \frac{1}{ i(l - k) } \exp(i (l - k) t) \mid_{- \pi}^\pi \\ &= 0. \end{aligned}

If we normalize the function in Γ\Gamma by 1/2π1 / \sqrt{2 \pi}, then each function has norm 1. We call this family an orthonormal family, and rewrite it as

F={e0,e1,e2,e3,...,}, \mathfrak{F} = \{ e_0, e_1, e_2, e_3, ..., \},

where e0=1e_0 = 1, and for k∈Nk \in \mathbb{N},

  • e2k+1=exp⁡(ikt)/2πe_{2k + 1} = \exp(ikt) / \sqrt{2 \pi};

  • e2k+2=exp⁡(−ikt)/2πe_{2k + 2} = \exp(- ikt) / \sqrt{2 \pi}.

Approximating ff with F\mathfrak{F}

As discuss before, we have construct an orthogonal family of F\mathfrak{F}, such that

  1. ∣∣ei∣∣=1||e_i|| = 1 for ei∈Fe_i \in \mathfrak{F}.
  2. <ei,ej>H=0\left< e_i, e_j \right>_H = 0 for ei,ej∈F,ei≠eje_i, e_j \in \mathfrak{F}, e_i \neq e_j.

Definition. Define S(Fk)S(\mathfrak{F}_k) the span of the first k+1k + 1 elements in F\mathfrak{F}:

S(Fk)≐{∑i=0kci⋅ei:∀ 0≤i≤k,ci∈C}. S(\mathfrak{F}_k ) \doteq \left\{ \sum_{i = 0}^k c_i \cdot e_i : \forall \ 0 \le i \le k, c_i \in \mathbb{C} \right\}.

Theorem. The closest function to ff in S(Fk)S(\mathfrak{F}_k ), denoted as gkg_k, is given by

gk≐∑i=0kai⋅ei. g_k \doteq \sum_{i = 0 }^k a_i \cdot e_i.

where ai≐<ei,f>H,0≤i≤ka_i \doteq \left< e_i, f \right>_H, 0 \le i \le k.

Remark: implicitly, we assume that f2f^2, eˉif\bar e_i f is integrable.

Proof: For 0≤i≤k0 \le i \le k, it holds that

<ei,gk>H=∑j=0k<ei,aj⋅ej>H=ai=<ei,f>H. \left< e_i, g_k \right>_H = \sum_{j = 0 }^k \left< e_i, a_j \cdot e_j \right>_H = a_i = \left< e_i, f \right>_H.

Hence,

<ei,gk−f>H=<gk−f,ei>H‾=0. \left< e_i, g_k - f\right>_H = \overline{ \left< g_k - f, e_i \right>_H } = 0.

Let

fk=∑i=0kci⋅ei, f_k = \sum_{i = 0}^k c_i \cdot e_i,

be a function in S(Fk)S(\mathfrak{F}_k ). Then,

∣∣f−fk∣∣2=∣∣f−gk+gk−fk∣∣2=∣∣f−gk∣∣2+∣∣gk−fk∣∣2+<f−gk,gk−fk>H+<gk−fk,f−gk>H. \begin{aligned} || f - f_k||^2 &= ||f - g_k + g_k - f_k ||^2 \\ &= ||f - g_k||^2 + ||g_k - f_k||^2 + \left< f - g_k, g_k - f_k\right>_H + \left< g_k - f_k, f - g_k \right>_H. \end{aligned}

It holds that

<f−gk,gk−fk>H=∑i=0k(ai−ci)⋅<f−gk,ei>H=0. \left< f - g_k, g_k - f_k\right>_H = \sum_{i = 0}^k (a_i - c_i) \cdot \left< f - g_k, e_i \right>_H = 0.

Similarly, <gk−fk,f−gk>H=0\left< g_k - f_k, f - g_k \right>_H = 0. So,

∣∣f−fk∣∣2=∣∣f−gk∣∣2+∣∣gk−fk∣∣2, \begin{aligned} || f - f_k||^2 &= ||f - g_k||^2 + ||g_k - f_k||^2, \end{aligned}

which is minimized when fk=gkf_k = g_k.

□\square

Corollary. (Bessel Ineuqality).

∑i=0∞∣∣ai∣∣2≤∣∣f∣∣2. \sum_{i = 0}^\infty ||a_i||^2 \le ||f||^2.

Proof. We see that

∣∣f−gk∣∣2=<f−gk,f>H−<f−gk,gk>H=<f,f>H−<gk,f>H=∣∣f∣∣2−∑i=0k∣∣ai∣∣2≥0. \begin{aligned} || f - g_k ||^2 &= \left< f - g_k, f \right>_H - \left< f - g_k, g_k \right>_H \\ &= \left< f , f \right>_H - \left< g_k, f \right>_H \\ &= ||f||^2 - \sum_{i = 0}^k ||a_i||^2 \\ &\ge 0. \end{aligned}

Therefore,

∑i=0k∣∣ai∣∣2≤∣∣f∣∣2. \sum_{i = 0}^k ||a_i||^2 \le ||f||^2.

Taking the limit of kk we get the desired result.

□\square

The function series g1,g2,g3,...g_1, g_2, g_3, ... is called a Cauchy series, as ∀ϵ>0\forall \epsilon > 0, ∃N≥0\exists N \ge 0, ∀N≤i<j\forall N \le i < j, it holds that

∣∣gj−gi∣∣=∣∣∑t=i+1jat⋅et∣∣=∑t=i+1j∣∣at∣∣2≤ϵ. ||g_j - g_i|| = || \sum_{t = i + 1}^j a_t \cdot e_t || = \sqrt{ \sum_{t = i + 1}^j ||a_t||^2 } \le \epsilon.

Suppose that we are using some kind of integration and let I2([−π,π])I^2([-\pi, \pi]) be the set of square integrable functions. Further, assume that g1,g2,g3,...g_1, g_2, g_3, ... are also elements in I2([−π,π])I^2([-\pi, \pi]). We are interested in

Whether a Cauchy series in I2([−π,π])I^2([-\pi, \pi]) converges to a function in I2([−π,π])I^2([-\pi, \pi])?

Define

g=lim⁡k→∞gk=∑i=0∞ai⋅ei. g = \lim_{k \rightarrow \infty} g_k = \sum_{i = 0}^\infty a_i \cdot e_i.

It is important that g∈I2([−π,π])g \in I^2([-\pi, \pi]), as we need the length of ∣∣g∣∣|| g || to be well-defined. Further, f−gf - g should also be in I2([−π,π])I^2([-\pi, \pi]).

However, if we are using Riemann integration, the answer is no. Let r1,r2,....r_1, r_2, .... be the rational number in the interval of [0,1][0, 1] and define

hi(x)={1,if x∈∪t=1i{rt}0,otherwise h_i(x) = \begin{cases} \begin{aligned} &1, &\text{if } x \in \cup_{t = 1}^i \{ r_t \} \\ &0, &\text{otherwise} \end{aligned} \end{cases}

Then hi∈I2([−π,π])h_i \in I^2([-\pi, \pi]) but lim⁡i→∞hi\lim_{i \rightarrow \infty} h_i is not Riemann integrable, hence not in I2([−π,π])I^2([-\pi, \pi]).

If we are using Lebesgue integration, the answer is yes.

Fact. If we are using Lebesgue integration, then I2([−π,π])I^2([-\pi, \pi]) is complete, i.e., if g1,g2,...,∈I2([−π,π])g_1, g_2, ..., \in I^2([-\pi, \pi]) is Cauchy, then lim⁡kgk∈I2([−π,π])\lim_k g_k \in I^2([-\pi, \pi]).

Approximating Error

It is left to study the error of approximating ff with gg.

Lemma. Cauchy-Schwartz Inequality. Let h1,h2∈I2([−π,π])h_1, h_2 \in I^2([-\pi, \pi]), then

∣<h1,h2>H∣≤∣∣h1∣∣⋅∣∣h2∣∣ | \left< h_1, h_2 \right>_H | \le ||h_1|| \cdot ||h_2 ||

Proof. If ∣∣h2∣∣=0||h_2|| = 0, then h2=0h_2 = 0 almost everywhere and the case is trivial. Otherwise, ∀c∈C\forall c \in \mathbb{C}, we have

∣∣h1−c⋅h2∣∣2=∣∣h1∣∣2+∣∣c∣∣2∣∣h2∣∣2−<h1,c⋅h2>H−<c⋅h2,h1>H=∣∣h1∣∣2+∣∣c∣∣2∣∣h2∣∣2−c⋅<h1,h2>H−cˉ⋅<h2,h1>H \begin{aligned} || h_1 - c \cdot h_2 ||^2 &= || h_1||^2 + ||c||^2 ||h_2||^2 - \left< h_1, c \cdot h_2 \right>_H - \left< c \cdot h_2, h_1 \right>_H \\ &= || h_1||^2 + ||c||^2 ||h_2||^2 - c \cdot \left< h_1, h_2 \right>_H - \bar c \cdot \left< h_2, h_1 \right>_H \\ \end{aligned}

Let c=1∣∣h2∣∣2⋅<h2,h1>Hc = \frac{1}{ ||h_2||^2 } \cdot \left< h_2, h_1 \right>_H, then

∣∣h1−c⋅h2∣∣2=∣∣h1∣∣2−1∣∣h2∣∣2⋅∣<h2,h1>H∣2≥0. \begin{aligned} || h_1 - c \cdot h_2 ||^2 &= || h_1||^2 - \frac{1}{ ||h_2||^2 } \cdot \left| \left< h_2, h_1 \right>_H \right|^2 &\ge 0. \end{aligned}

□\square

Lemma. ∀i∈N\forall i \in \mathbb{N}, <ei,g>H=ai\left< e_i, g \right>_H =a_i.

Proof. By Cauchy-Schwartz inequality,

∣∣∫[−π,π]eˉi(gk−g)∣∣2≤(∫[−π,π]∣∣ei∣∣2)⋅(∫[−π,π]∣∣gk−g∣∣2)=∫[−π,π]∣∣gk−g∣∣2=∫[−π,π]lim⁡l∣∣gk−gl∣∣2 \begin{aligned} \left|\left| \int_{ [ -\pi, \pi] } \bar e_i (g_k - g) \right|\right|^2 &\le \left( \int_{ [ -\pi, \pi] } ||e_i||^2 \right) \cdot \left( \int_{ [ -\pi, \pi] } ||g_k - g||^2 \right) \\ &= \int_{ [ -\pi, \pi] } ||g_k - g||^2 \\ &= \int_{ [ -\pi, \pi] } \lim_l ||g_k - g_l ||^2 \end{aligned}

By Fatou's lemma,

∫[−π,π]lim⁡l∣∣gk−gl∣∣2≤lim inf⁡l∫[−π,π]∣∣gk−gl∣∣2 \int_{ [ -\pi, \pi] } \lim_l ||g_k - g_l ||^2 \le \liminf_l \int_{ [ -\pi, \pi] } ||g_k - g_l ||^2

Finally,

lim⁡k∣∣<ei,gk−g>H∣∣2=lim⁡k∣∣∫[−π,π]eˉi(gk−g)∣∣2≤lim⁡klim inf⁡l∫[−π,π]∣∣gk−gl∣∣2=0. \lim_k \left|\left| \left< e_i, g_k - g \right>_H \right|\right|^2 = \lim_k \left|\left| \int_{ [ -\pi, \pi] } \bar e_i (g_k - g) \right|\right|^2 \le \lim_k \liminf_l \int_{ [ -\pi, \pi] } ||g_k - g_l ||^2 = 0.

□\square

Remark: the above proof involves the operation of exchanging the order of two limiting operations, namely lim⁡\lim and ∫\int. Exchanging order like this is dangerous for Riemann integration, but we can do it safely under Lebesgue integration, under proper condition. Here we use Fatou's lemma.

By the above lemma, the function gg has an important property, such that ∀i∈N\forall i \in \mathbb{N},

<ei,f−g>H=0. \left< e_i, f - g \right>_H = 0.

Lemma. Let h∈I2([−π,π])h \in I^2([-\pi, \pi]). If ∀i∈N\forall i \in N,

<ei,h>H=0, \left< e_i, h \right>_H = 0,

then h=0h = 0 almost everywhere.

Proof. First, we assume that hh is a continuous function on [−π,π][-\pi, \pi]. If h≢0h \not\equiv 0, then ∣h(x)∣|h(x)| achieves maximum value at some point x∗∈[−π,π]x^* \in [-\pi, \pi]. Without lose of generality, we assume that

h(x∗)=M>0. h(x^*) = M > 0.

By continuity of hh, ∃δ∈(0,π)\exists \delta \in (0, \pi), such that h(x)>M/2h(x) > M / 2 in the interval

I≐(x∗−δ,x∗+δ)∩[−π,π]. I \doteq (x^* - \delta, x^* + \delta) \cap [-\pi, \pi].

We will capture the maximum value of ff, by taking Hermitian product of ff with a signal function that

  1. is a linear combination of functions in F\mathfrak{F};
  2. is ≥1\ge 1 in II;
  3. is <1< 1 in [−π,π]∖I[-\pi, \pi] \setminus I.

The signal function is given by

s(x)=1+cos⁡(12⋅(x−x∗))−cos⁡δ2. s(x) = 1 + \cos \left( \frac{1}{2} \cdot (x - x^*) \right) - \cos \frac{\delta}{2}.

Observe that ss

  1. achieves maximum value s(x∗)=2−cos⁡δ2s(x^*) = 2 - \cos \frac{\delta}{2};
  2. is ≥1\ge 1 for x∈Ix \in I;
  3. has period 4π4 \pi.

Hence, it increases on the interval [x∗−2π,x∗][x^* - 2\pi, x^*] and decreases on [x∗,x∗+2π][x^*, x^* + 2\pi]. So

  1. s(x)<1s(x) < 1 for x∈[−π,π]∖Ix \in [-\pi, \pi] \setminus I.

For n≥1n \ge 1, sn(x)s^n(x) is also a linear combination of functions in F\mathfrak{F}. It always holds that <sn(x),f>H∈R\left< s^n(x), f \right>_H \in \mathbb{R} and by assumption on ff, it holds that

<sn(x),f>H=0. \left< s^n(x), f \right>_H = 0.

But this is impossible. By monotonicity of integration,

∫[−π,π]∖If(x)sn(x) dx≥∫[−π,π]∖I(−M)⋅1 dx=−2⋅π⋅M. \int_{ [-\pi, \pi] \setminus I } f(x) s^n(x) \ dx \ge \int_{ [-\pi, \pi] \setminus I } (-M) \cdot 1 \ dx = - 2 \cdot \pi \cdot M.

Define

I′≐(x∗−δ/2,x∗+δ/2)∩[−π,π]. I' \doteq (x^* - \delta / 2, x^* + \delta / 2) \cap [-\pi, \pi].

Then ∣I′∣≥δ/2|I'| \ge \delta / 2 and m≐min⁡x∈I′s(x)>1m \doteq \min_{x \in I'} s(x) > 1.

∫If(x)sn(x) dx≥∫I′M2⋅mn dx≥M⋅mn⋅δ4. \int_{ I } f(x) s^n(x) \ dx \ge \int_{ I' } \frac{M}{2} \cdot m^n \ dx \ge \frac{M \cdot m^n \cdot \delta }{ 4 }.

This implies as n→∞n \rightarrow \infty,

<sn(x),f>H≥−2⋅π⋅M+M⋅mn⋅δ4→∞, \left< s^n(x), f \right>_H \ge - 2 \cdot \pi \cdot M + \frac{M \cdot m^n \cdot \delta }{ 4 } \rightarrow \infty,

which is a contradiction.

Next, we consider the general case of h∈I2([−π,π])h \in I^2([-\pi, \pi]). Define

w(x)=∫−πxh(t) dt. w(x) = \int_{-\pi}^x h(t) \ dt.

The function is absolutely continuous on [−π,π][-\pi, \pi]. Moreover, w(0)=0w(0) = 0 and by assumption, w(π)=<e0,h>H=0w(\pi) = \left< e_0, h \right>_H = 0. For k∈Nk \in \mathbb{N}, integrating by part gives

2⋅π⋅<e2k+1,w>H=∫[−π,π]exp⁡(−ikx)w(x) dx=1ikexp⁡(−ikx)w(x)∣−ππ−1ik∫[−π,π]exp⁡(−ikx)w′(x) dx=−1ik∫[−π,π]exp⁡(−ikx)h(x) dx=−1ik<e2k+1,h>H=0. \begin{aligned} \sqrt{2 \cdot \pi} \cdot \left< e_{2k + 1}, w \right>_H &= \int_{ [-\pi, \pi] } \exp(-ikx) w(x) \ dx \\ &= \frac{1}{ik} \exp(-ikx) w(x) \mid_{-\pi}^\pi - \frac{1}{ik} \int_{ [-\pi, \pi] } \exp(-ikx) w'(x) \ dx \\ &= - \frac{1}{ik} \int_{ [-\pi, \pi] } \exp(-ikx) h(x) \ dx \\ &= - \frac{1}{ik} \left< e_{2k + 1}, h\right>_H \\ &= 0. \end{aligned}

Similarly, we can prove that <e2k+2,w>H=0\left< e_{2k + 2}, w \right>_H = 0.

Hence, ∀k≥1\forall k \ge 1, <ek,w>H=0\left< e_k, w \right>_H = 0. But it is not guaranteed that <e0,w>H=0\left< e_0, w \right>_H = 0. To fix this, we construct another function

W(x)≐w(x)−B. W(x) \doteq w(x) - B.

where B=<e0,w>HB = \left< e_0, w \right>_H is a constant. It holds that

  1. ∀k≥1\forall k \ge 1, <ek,W>H=<ek,w>H−<ek,B>H=−B⋅<ek,e0>H=0\left< e_k, W \right>_H = \left< e_k, w \right>_H - \left< e_k, B \right>_H = - B \cdot \left< e_k, e_0 \right>_H = 0.
  2. <e0,W>H=<e0,w>H+<e0,B>H=B−B⋅<e0,e0>H=0\left< e_0, W \right>_H = \left< e_0, w \right>_H + \left< e_0, B \right>_H = B - B \cdot \left< e_0, e_0 \right>_H = 0.

By previous result, W(x)≡0W(x) \equiv 0 and w(x)≡Bw(x) \equiv B. This implies

w′(x)=h(x)=0,a.e. w'(x) = h(x) = 0, \quad a.e.

□\square