11.9  Bessel, Parseval, and Fourier Series

Section 3 measured a vector against a finite-dimensional subspace and produced the nearest point in it. Read that answer coefficient by coefficient and it becomes an inequality: the numbers ⟨v,ei⟩ collected against an orthonormal list can never carry more squared length than v itself has. That is Bessel’s inequality. It costs nothing in dimension, it holds in spaces far too large for Chapter 1’s machinery, and its equality case is Parseval’s identity. This section proves both, applies them to the sines and cosines, and then stops at the exact place where linear algebra stops and analysis begins.

Throughout, V is an inner product space over F=R or F=C, with inner product ⟨⋅,⋅⟩ (Definition 11.1.1) and induced norm ‖⋅‖ (Definition 11.1.3). We do not assume that V is finite-dimensional. What we assume each time is that the list we compute against is finite.

11.9.1. Coefficients against an orthonormal list

In Theorem 11.2.1 the list was an orthonormal basis, and the coefficients ⟨v,ei⟩ recovered v exactly. Suppose now the list is only a list: too short to be a basis, or sitting inside a space that has no finite basis at all, like the continuous functions on an interval. The numbers ⟨v,ei⟩ are still there. What can be said about them when they no longer determine v?

Against a shorter list you can only lose length, never gain it.

Definition 11.9.1 (Fourier Coefficients With Respect to an Orthonormal List)

Let (e1,…,ek) be an orthonormal list in an inner product space V and let v∈V. The scalars ⟨v,e1⟩, …, ⟨v,ek⟩∈F are the Fourier coefficients of v with respect to the list.

The name is borrowed from the classical case below, where the ei are sines and cosines; nothing in the definition mentions trigonometry. When the list happens to be a basis, these are exactly the coordinates of v, by Theorem 11.2.1 (a). When it is not, they are the coordinates of a shadow of v, and the next theorem measures that shadow.

Theorem 11.9.1 (Bessel’s Inequality)

Let V be an inner product space over F, not assumed finite-dimensional, and let (e1,…,ek) be an orthonormal list in V. Then for every v∈V, ∑i=1k|⟨v,ei⟩|2≤‖v‖2.

Idea. The left-hand side is not a quantity out of nowhere. Let U be the span of the list. By the projection formula, PUv is exactly ∑i⟨v,ei⟩ei, and its summands are pairwise orthogonal, so Pythagoras turns its squared length into precisely that sum. The inequality then says no more than “a shadow is no longer than what casts it”, which we already proved. The one point needing care is that V may be infinite-dimensional; it does not matter, because Section 3 only ever asked the subspace to be finite-dimensional.

Proof. Put U=span(e1,…,ek). The vectors ei are orthogonal and nonzero, so the list is linearly independent by Theorem 11.1.4; being a spanning list of U as well, it is an orthonormal basis of U, and dim⁡U=k is finite. Hence Theorem 11.3.3 applies to U even though V need not be finite-dimensional, and part (a) of it gives PUv=∑i=1k⟨v,ei⟩ei. The summands ⟨v,ei⟩ei are pairwise orthogonal, since ei⊥ej for i≠j and scalars come out of both slots. So Theorem 11.1.3 and Theorem 11.1.2 (b) give ‖PUv‖2=∑i=1k|⟨v,ei⟩|2‖ei‖2=∑i=1k|⟨v,ei⟩|2, using ‖ei‖=1. By Theorem 11.3.3 (c), ‖PUv‖≤‖v‖. Both sides are nonnegative, so squaring preserves the inequality, and this proves the theorem.

The proof gives more than the inequality, and the surplus is worth recording. The vector v−PUv lies in U⊥ by Theorem 11.3.2, so it is orthogonal to PUv∈U, and Theorem 11.1.3 turns v=PUv+(v−PUv) into ‖v‖2=‖PUv‖2+‖v−PUv‖2. Rearranging, and substituting ‖PUv‖2=∑i=1k|⟨v,ei⟩|2 from the proof above, (∗)‖v−PUv‖2=‖v‖2−∑i=1k|⟨v,ei⟩|2. In words: the deficit in Bessel’s inequality is the squared distance from v to the span of the list (Definition 11.3.3). An inequality with a known defect is much more useful than an inequality, and we will read (∗) from both sides.

Remark. For an infinite orthonormal list (e1,e2,e3,…), apply the theorem to the first k terms for each k. The partial sums ∑i≤k|⟨v,ei⟩|2 increase with k and are all bounded above by ‖v‖2, so they converge, and ∑i=1∞|⟨v,ei⟩|2≤‖v‖2. This is the only fact from analysis used in the present paragraph: a bounded increasing sequence of real numbers converges.

Now the equality case, which is where the word basis returns.

Theorem 11.9.2 (Parseval’s Identity)

Let (e1,…,ek) be an orthonormal list in an inner product space V and let v∈V. Then ∑i=1k|⟨v,ei⟩|2=‖v‖2if and only ifv∈span(e1,…,ek). In particular, if (e1,…,ek) is an orthonormal basis of V, the identity holds for every v∈V.

Proof. Keep the notation of the proof of Theorem 11.9.1, where we showed ∑i|⟨v,ei⟩|2=‖PUv‖2 with U=span(e1,…,ek). So the stated equality says ‖PUv‖=‖v‖, and by Theorem 11.3.3 (c) this holds if and only if v∈U. If the list is a basis of V, then U=V and every v∈V lies in U.

For an orthonormal basis of a finite-dimensional space this is Theorem 11.2.1 (c) again; what is new is the equality case, which identifies exactly the vectors for which no length is lost. Keep the two statements apart:

  • Bessel is about an orthonormal list, in any inner product space, and it is an inequality.
  • Parseval is the equality, and it holds exactly for the vectors the list already spans.

The whole difference is whether the list reaches v.

Warning. An orthonormal list is not an orthonormal basis, and the deficit in Bessel can be everything. In C[−π,π] below, the list (cos⁡x,sin⁡x) is orthonormal, and for the constant function f=1 both coefficients are 0, so the left-hand side of Bessel is 0 while ‖f‖2=2. Nothing at all is captured. A short orthonormal list is not a bad basis; it is not a basis.

Quick check. In R4 with the dot product, let e1=12(1,1,1,1) and e2=12(1,1,−1,−1), and let v=(1,2,3,4). Check that (e1,e2) is orthonormal, compute both sides of Bessel’s inequality, and say what the deficit equals.

Solution. Each has norm 124=1, and ⟨e1,e2⟩=14(1+1−1−1)=0, so the list is orthonormal. The coefficients are ⟨v,e1⟩=12(1+2+3+4)=5 and ⟨v,e2⟩=12(1+2−3−4)=−2, so the left-hand side is 25+4=29, while ‖v‖2=1+4+9+16=30. The inequality is strict, and by (∗) the deficit 1 is the squared distance from v to span(e1,e2). Indeed PUv=5e1−2e2=(32,32,72,72) and v−PUv=12(−1,1,−1,1), whose squared norm is 4⋅14=1.

11.9.2. The trigonometric system

The classical home of these two statements is a space of functions, and the first thing to fix is the inner product, constant included.

Let V=C[−π,π] be the space of continuous functions f:[−π,π]→R, a real vector space, and define ⟨f,g⟩=1π∫−ππf(t)g(t)dt. This is the continuous-function inner product of Definition 11.1.1 on a different interval and rescaled by the positive constant 1/π; rescaling by a positive constant preserves all three axioms, and positive definiteness is the argument given there. The constant is chosen for one reason only: it makes the sines and cosines unit vectors. With 1/(2π) in front they would have norm 1/2, and with no constant at all, norm π.

Warning. Always state the normalizing constant before computing. Formulas for Fourier coefficients differ between books by exactly such a factor, and a misplaced π or 2 changes every number below. In this section ⟨f,g⟩=1π∫−ππfg, and every coefficient, norm, and inequality is written for that choice.

Here are the facts we assume. From calculus: the integral of a finite sum is the sum of the integrals; ∫−ππdt=2π; ∫−ππsin⁡(mt)dt=0 for every integer m and ∫−ππcos⁡(mt)dt=0 for every nonzero integer m (for m≠0 evaluate the antiderivative −cos⁡(mt)/m, respectively sin⁡(mt)/m, each of which takes the same value at t=−π as at t=π; for m=0 the sine integrand is 0); integration by parts, and the substitution t↦−t, both of which we use later in the section when computing particular Fourier coefficients. From trigonometry: the product-to-sum identities. No theorem about convergence is used anywhere in this section; every integral we compute is the integral of a finite sum of sines and cosines.

Example (The Trigonometric System Is Orthonormal)

Fix n≥1. Show that the list of 2n+1 functions 12, cos⁡x, sin⁡x, cos⁡2x, sin⁡2x, …, cos⁡nx, sin⁡nx is orthonormal in V=C[−π,π] with ⟨f,g⟩=1π∫−ππfg.

Solution. There are five kinds of pair. Write j,k for indices in {1,…,n}.

The constant with itself. ‖1/2‖2=1π∫−ππ12dt=1π⋅π=1.

Constant against cos⁡kx or sin⁡kx. These are 1π2∫−ππcos⁡(kt)dt=0 and 1π2∫−ππsin⁡(kt)dt=0, since k≠0.

Two cosines. By cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)], ⟨cos⁡jx,cos⁡kx⟩=12π∫−ππ[cos⁡((j−k)t)+cos⁡((j+k)t)]dt. If j≠k, both j−k and j+k are nonzero integers, so both integrals vanish and the value is 0. If j=k, the first integrand is the constant 1 and the second has nonzero frequency 2k, so the value is 12π(2π+0)=1.

Two sines. By sin⁡Asin⁡B=12[cos⁡(A−B)−cos⁡(A+B)], the same two integrals appear with a minus sign, giving 0 for j≠k and 12π(2π−0)=1 for j=k.

A sine against a cosine. By sin⁡Acos⁡B=12[sin⁡(A+B)+sin⁡(A−B)], ⟨sin⁡jx,cos⁡kx⟩=12π∫−ππ[sin⁡((j+k)t)+sin⁡((j−k)t)]dt=0, because every integral of a sine over [−π,π] vanishes, including the case j=k where the second integrand is sin⁡0=0.

So each of the 2n+1 functions is a unit vector and distinct ones are orthogonal, which is Definition 11.2.1.

Write Wn=span(1,cos⁡x,sin⁡x,…,cos⁡nx,sin⁡nx), the space of trigonometric polynomials of degree at most n. The list above is an orthonormal list, hence independent (Theorem 11.1.4), and it spans Wn, since 1=2⋅12. So it is an orthonormal basis of Wn and dim⁡Wn=2n+1.

For f∈V the classical Fourier coefficients of f are ak=1π∫−ππf(t)cos⁡(kt)dt,bk=1π∫−ππf(t)sin⁡(kt)dt, for k≥0 and k≥1 respectively. Comparing with the inner product, ak=⟨f,cos⁡kx⟩ and bk=⟨f,sin⁡kx⟩, while the coefficient against the constant of the orthonormal list is ⟨f,1/2⟩=a0/2. These are exactly the Fourier coefficients of Definition 11.9.1 for this list.

Theorem 11.9.3 (Fourier Partial Sums Are Best Approximations)

Let f∈C[−π,π], let n≥1, and let ak,bk be the Fourier coefficients of f. Put Snf=a02+∑k=1n(akcos⁡kx+bksin⁡kx). Then, with ⟨f,g⟩=1π∫−ππfg:

  • (a) Snf=PWnf;
  • (b) ‖f−Snf‖≤‖f−g‖ for every g∈Wn, with equality only for g=Snf;
  • (c) a022+∑k=1n(ak2+bk2)≤1π∫−ππf(t)2dt.

Idea. Nothing new happens here. The subspace Wn is finite-dimensional and we have an orthonormal basis of it, so Section 3 answers the approximation question and Theorem 11.9.1 answers the coefficient question; the work is only to match the classical notation to ours. The one thing to watch is the factor 12 in front of a0: it is not a convention pulled from the air, it is what ⟨f,1/2⟩⋅12 equals.

Proof.

  • (a) By Example (The Trigonometric System Is Orthonormal) the list (12,cos⁡x,sin⁡x,…,cos⁡nx,sin⁡nx) is an orthonormal basis of Wn. By Theorem 11.3.3 (a), PWnf=⟨f,12⟩12+∑k=1n(⟨f,cos⁡kx⟩cos⁡kx+⟨f,sin⁡kx⟩sin⁡kx). The first term is a02⋅12=a02, and the remaining terms are akcos⁡kx+bksin⁡kx. Hence PWnf=Snf.

  • (b) This is Theorem 11.3.5 applied to the subspace U=Wn, which is legitimate because dim⁡Wn=2n+1 is finite, together with (a).

  • (c) This is Theorem 11.9.1 for the same orthonormal list, since |⟨f,1/2⟩|2=a02/2 and ‖f‖2=1π∫−ππf2.

So the Fourier partial sum is not a guess at f that happens to work: it is the orthogonal projection of f onto the trigonometric polynomials of degree at most n, and by Theorem 11.3.5 it is the unique trigonometric polynomial of that degree closest to f in this norm. The mysterious a0/2 of the classical formula is an artifact of normalizing the constant function.

11.9.3. A worked computation

Example (The Fourier Coefficients of f(x)=x)

In C[−π,π] with ⟨f,g⟩=1π∫−ππfg, let f(x)=x. Find all ak and bk, write down Snf, and say what Theorem 11.9.3 (c) gives.

Solution. We use one further calculus fact: a continuous odd function integrates to 0 over [−π,π], and a continuous even one integrates to twice its integral over [0,π]. Both come from the substitution t↦−t.

The cosine coefficients. For every k≥0 the function tcos⁡(kt) is odd, so ak=0. In particular a0=0.

The sine coefficients. The function tsin⁡(kt) is even, so for k≥1, bk=1π∫−ππtsin⁡(kt)dt=2π∫0πtsin⁡(kt)dt. Integrating by parts, with d(−cos⁡(kt)/k)=sin⁡(kt)dt, ∫0πtsin⁡(kt)dt=[−tcos⁡(kt)k]0π+1k∫0πcos⁡(kt)dt=−πcos⁡(kπ)k, since the last integral is [sin⁡(kt)/k2]0π=0. As cos⁡(kπ)=(−1)k, this equals π(−1)k+1/k, and therefore bk=2(−1)k+1k.

The partial sums. Hence Snf=∑k=1n2(−1)k+1ksin⁡kx=2sin⁡x−sin⁡2x+23sin⁡3x−…, and by Theorem 11.9.3 (b) this is the closest trigonometric polynomial of degree at most n to the function x in this norm.

What Bessel’s inequality (Theorem 11.9.1) gives. First ‖f‖2=1π∫−ππt2dt=1π⋅2π33=2π23. Since ak=0 and bk2=4/k2, part (c) of Theorem 11.9.3 reads ∑k=1n4k2≤2π23,that is∑k=1n1k2≤π26 for every n. The partial sums on the left increase and are bounded above, so they converge, and ∑k=1∞1/k2≤π2/6.

That bound is sharp: the true value of the sum is π2/6. But sharpness is not something Bessel can deliver. By Theorem 11.9.2, equality for a fixed finite list holds only when f lies in the span of that list, and the function x lies in no Wn — it is not a trigonometric polynomial, since every element of Wn takes the same value at −π and at π. Getting the equality requires a statement about the infinite system, and that statement is an input from analysis; Exercise (C1: Parseval for the full trigonometric system) carries it out and flags it.

Quick check. Let g(x)=cos2⁡x in C[−π,π]. Using cos2⁡x=12+12cos⁡2x, write down all Fourier coefficients of g, find S1g, and compute the deficit in Bessel’s inequality for n=1.

Solution. The right-hand side 12+12cos⁡2x already lies in W2, and coefficients against an orthonormal basis are unique (Theorem 11.2.1 (a)), so, applying that result inside W2 and reading the coefficients off: a0=1, a2=12, and all other ak and all bk are 0. Hence S1g=a0/2=12, a constant. For the deficit, ‖g‖2=1π∫−ππcos4⁡tdt=1π⋅3π4=34, while the Bessel sum for n=1 is a02/2=12. The deficit is 14, and by (∗) it should be ‖g−S1g‖2=‖12cos⁡2x‖2=14⋅1=14. It is.

11.9.4. What best approximation does and does not say

It is worth being exact about the boundary here, because it is easy to read more into Theorem 11.9.3 than it contains.

Identity (∗) applied to U=Wn says ‖f−Snf‖2=‖f‖2−a022−∑k=1n(ak2+bk2). The subtracted sum never decreases as n grows, so the numbers ‖f−Snf‖2 never increase, and they are bounded below by 0. Hence they converge to some limit L≥0. Everything up to this sentence is linear algebra plus one fact about monotone bounded sequences.

Whether L=0 is a different kind of question. It asks whether the trigonometric polynomials come arbitrarily close, in this norm, to every continuous function, and no argument in this book decides it. The statement is true, and it is the analytic content of the theory of Fourier series; it is what makes the infinite trigonometric system behave like an orthonormal basis even though it is not a basis in the sense of Chapter 1.

And even L=0 would not be a statement about individual points. Our norm averages the error over the whole interval, so it tolerates a large error on a short interval. The function f(x)=x shows this at once: Snf(π)=∑k=1n2(−1)k+1ksin⁡(kπ)=0 for every n, while f(π)=π. The error at the single point x=π never shrinks at all.

Warning. Mean-square best approximation is not pointwise approximation. Theorem 11.9.3 says that Snf minimizes ∫−ππ(f−g)2 over g∈Wn. It does not say that Snf(x) is close to f(x) for a given x, and for f(x)=x at x=π it is not. Whether a Fourier series converges at a point is a question in analysis with a delicate answer; it is not decided by anything in this chapter, and a projection theorem cannot decide it.

11.9.5. Legendre and Chebyshev

Two families of orthogonal polynomials show the same two theorems at work with a different weight.

Legendre. Example (Gram–Schmidt on 1,x,x2) ran Gram–Schmidt on (1,x,x2) in R[x]≤2 with ⟨p,q⟩=∫−11pq, producing the orthogonal list 1, x, x2−13 and, after normalizing, the orthonormal basis e1=12,e2=3/2x,e3=104(3x2−1). Inside R[x]≤2 this is a basis, so Theorem 11.9.2 gives ‖p‖2=∑i=13|⟨p,ei⟩|2 for every quadratic p. Viewed inside the larger space C[−1,1] of continuous functions, the same three vectors are only a list, and for an f outside R[x]≤2 Theorem 11.9.1 is strict, the deficit being the squared distance from f to R[x]≤2 by (∗). That deficit is what Example (The best quadratic approximation to a cubic) computed for f=x3. One list, two readings, and which reading applies depends on the ambient space, not on the list. In practice one projects with the orthogonal list 1, x, x2−13 through Corollary 11.3.4 and avoids the square roots entirely.

Chebyshev. Change the weight. On R[x] define ⟨p,q⟩w=∫−11p(t)q(t)1−t2dt. The integrand is unbounded at t=±1, so this is an improper integral; it converges for polynomials, because |pq| is bounded on [−1,1] and ∫−11dt/1−t2=π. The three axioms are checked as in Definition 11.1.1, positivity because 1/1−t2>0 on (−1,1).

The Chebyshev polynomials are defined by the requirement Tn(cos⁡θ)=cos⁡nθfor all θ, which does determine a polynomial of degree n, and determines it uniquely, since cos⁡θ runs over the whole of [−1,1] and two polynomials agreeing on an infinite set are equal (Corollary 6.1.4). The first few are T0=1, T1=x, T2=2x2−1 (from cos⁡2θ=2cos2⁡θ−1), and Exercise (C2: Chebyshev orthogonality by substitution) handles the general case. They are orthogonal for ⟨⋅,⋅⟩w: ⟨Tm,Tn⟩w=0(m≠n),⟨Tn,Tn⟩w={π,n=0,π/2,n≥1. For m,n≤2 this can be checked by hand, using ∫−11dt/1−t2=π and ∫−11t2dt/1−t2=π/2 (both come from t=cos⁡θ). The pairs (T0,T1) and (T1,T2) have odd integrands on a symmetric interval, so those integrals are 0 by the substitution t↦−t. For the remaining pair, ⟨T0,T2⟩w=∫−112t2−11−t2dt=2⋅π2−π=0.

Why should such a weight produce orthogonality? Because it is the trigonometric system in disguise. Substituting t=cos⁡θ turns ⟨p,q⟩w into ∫0πp(cos⁡θ)q(cos⁡θ)dθ, and on the Chebyshev polynomials that integrand is cos⁡mθcos⁡nθ — the very product whose integral we computed in Example (The Trigonometric System Is Orthonormal). Exercise (C2: Chebyshev orthogonality by substitution) asks for this in full.

Since the Tn are orthogonal but not normalized, projections onto their span are computed with Corollary 11.3.4 rather than Theorem 11.3.3. Section 10 of this chapter takes up orthogonal polynomials as a subject in their own right, including the recurrence that generates the Tn and the quadrature rules they produce.

11.9.6. Exercises

A. Check your understanding

Exercise (A1)
  • (a) State Bessel’s inequality, saying exactly what is assumed about the space and what is assumed about the list.
  • (b) State Parseval’s identity, including the condition under which equality holds for a given vector.
  • (c) True or false: Bessel’s inequality requires the ambient space to be finite-dimensional. Justify your answer.
  • (d) Write down the inner product used on C[−π,π] in this section, including its normalizing constant, and say what the constant is for.
  • (e) State what Theorem 11.9.3 gives about Snf, and name one thing it does not give.
  • (f) True or false: if (e1,…,ek) is an orthonormal list and ∑i|⟨v,ei⟩|2=‖v‖2 for one particular v≠0, then the list is an orthonormal basis of V. Justify your answer.

Solution.

  • (a) If (e1,…,ek) is an orthonormal list in an inner product space V over R or C, then ∑i=1k|⟨v,ei⟩|2≤‖v‖2 for every v∈V (Theorem 11.9.1). The list is assumed finite and orthonormal; the space is assumed only to be an inner product space, with no dimension hypothesis.

  • (b) Equality ∑i|⟨v,ei⟩|2=‖v‖2 holds if and only if v∈span(e1,…,ek); in particular it holds for every v when the list is an orthonormal basis of V (Theorem 11.9.2).

  • (c) False. Only the span of the list has to be finite-dimensional, and it automatically is, being spanned by k vectors. The proof uses Theorem 11.3.3, whose hypothesis is that the subspace projected onto is finite-dimensional. The application to C[−π,π] is exactly a case where V is not finite-dimensional.

  • (d) ⟨f,g⟩=1π∫−ππf(t)g(t)dt. The constant 1/π makes cos⁡kx and sin⁡kx unit vectors for every k≥1; without it their norms would be π.

  • (e) It gives that Snf is the orthogonal projection of f onto Wn, hence the unique element of Wn minimizing ‖f−g‖, and it gives Bessel’s inequality for the coefficients. It does not give that Snf(x)→f(x) at any particular x, nor even that ‖f−Snf‖→0.

  • (f) False. Equality for one v says only that v∈span(e1,…,ek) (Theorem 11.9.2). In R3 take the list (e1) and v=e1: equality holds, and the list is not a basis.

B. Practice

Exercise (B1: Fourier coefficients)

Work in C[−π,π] with ⟨f,g⟩=1π∫−ππfg. Find all Fourier coefficients ak and bk of each of the following, and in each case write down S2f.

  • (a) f(x)=|x|.
  • (b) f(x)=x2.
  • (c) f(x)=3−2sin⁡x+sin⁡3x.

Solution.

  • (a) |t|sin⁡(kt) is odd, so bk=0 for all k. For the cosines, |t|cos⁡(kt) is even, so ak=2π∫0πtcos⁡(kt)dt. For k=0 this is 2π⋅π22=π. For k≥1, integrating by parts, ∫0πtcos⁡(kt)dt=[tsin⁡(kt)k]0π−1k∫0πsin⁡(kt)dt=(−1)k−1k2, since the bracket vanishes and ∫0πsin⁡(kt)dt=(1−(−1)k)/k. Hence ak=2((−1)k−1)πk2={−4πk2,k odd,0,k even, and S2f=π2−4πcos⁡x.

  • (b) t2sin⁡(kt) is odd, so bk=0. Also a0=2π∫0πt2dt=2π23. For k≥1, integrating by parts twice gives ∫0πt2cos⁡(kt)dt=[t2sin⁡(kt)k]0π−2k∫0πtsin⁡(kt)dt=2π(−1)kk2, using ∫0πtsin⁡(kt)dt=π(−1)k+1/k from Example (The Fourier Coefficients of f(x)=x). Hence ak=2π⋅2π(−1)kk2=4(−1)kk2, so a1=−4, a2=1, and S2f=π23−4cos⁡x+cos⁡2x.

  • (c) The function already lies in W3. Coefficients against an orthonormal basis are unique (Theorem 11.2.1 (a)), so, applying that result inside W3, we may read them off: a0/2=3, that is a0=6, together with b1=−2 and b3=1; every other coefficient is 0. Hence S2f=3−2sin⁡x, which is not f: the term sin⁡3x lies outside W2 and is discarded by the projection. (From n=3 on, Snf=f, as Theorem 11.3.3 (a) predicts, since f∈W3 and a projection fixes its own subspace.)

Exercise (B2: Verifying Bessel for a truncation)
  • (a) In R4 with the dot product let e1=12(1,1,1,1), e2=12(1,−1,1,−1) and v=(2,0,0,2). Verify Theorem 11.9.1 for v and this list, compute the deficit, and check against (∗) by computing ‖v−PUv‖ directly, where U=span(e1,e2).
  • (b) For f(x)=|x| and n=1, write out both sides of Theorem 11.9.3 (c) using Exercise (B1: Fourier coefficients) (a), and show that the resulting inequality is equivalent to 96≤π4.

Solution.

  • (a) Both vectors have norm 124=1 and ⟨e1,e2⟩=14(1−1+1−1)=0, so the list is orthonormal. The coefficients are ⟨v,e1⟩=12(2+0+0+2)=2 and ⟨v,e2⟩=12(2−0+0−2)=0, so the left-hand side of Bessel is 4, while ‖v‖2=4+4=8. The inequality 4≤8 holds, with deficit 4. By Theorem 11.3.3 (a), PUv=2e1=(1,1,1,1), so v−PUv=(1,−1,−1,1) and ‖v−PUv‖2=4, matching (∗).

  • (b) With a0=π and a1=−4/π, and b1=0, the left-hand side of (c) for n=1 is a022+a12=π22+16π2. The right-hand side is ‖f‖2=1π∫−ππt2dt=2π23. So the inequality reads π22+16π2≤2π23, that is 16/π2≤2π2/3−π2/2=π2/6, that is 96≤π4. Since π>3.14 and 3.144>97, the inequality is true, and it is tight: the deficit is π2/6−16/π2≈0.024, so the single cosine cos⁡x already captures almost all of |x|.

Exercise (B3: The best approximation by span(1,cos⁡x))

In C[−π,π] with ⟨f,g⟩=1π∫−ππfg, let U=span(1,cos⁡x) and f(x)=x2. Find PUf and d(f,U)2. Hint: the list (1,cos⁡x) is orthogonal but not orthonormal.

Solution. The two functions are orthogonal, since ⟨1,cos⁡x⟩=1π∫−ππcos⁡tdt=0, and both are nonzero, with ⟨1,1⟩=2 and ⟨cos⁡x,cos⁡x⟩=1 by Example (The Trigonometric System Is Orthonormal). So (1,cos⁡x) is an orthogonal basis of U, and Corollary 11.3.4 gives PUf=⟨f,1⟩2⋅1+⟨f,cos⁡x⟩1⋅cos⁡x. By Exercise (B1: Fourier coefficients) (b), ⟨f,1⟩=a0=2π2/3 and ⟨f,cos⁡x⟩=a1=−4. Hence PUf=π23−4cos⁡x. For the distance, normalize: (1/2, cos⁡x) is an orthonormal basis of the same U, with coefficients ⟨f,1/2⟩=a0/2 and ⟨f,cos⁡x⟩=a1. Now ‖f‖2=1π∫−ππt4dt=1π⋅2π55=2π45 and the Bessel sum is a02/2+a12=2π4/9+16, so (∗) gives d(f,U)2=2π45−2π49−16=8π445−16≈1.32. It is positive, as it must be, since x2∉U.

C. Going deeper

Exercise (C1: Parseval for the full trigonometric system)

This exercise uses an input from analysis that this book does not prove: the trigonometric system is complete in C[−π,π], meaning that for every f∈C[−π,π], a022+∑k=1∞(ak2+bk2)=1π∫−ππf(t)2dt.

  • (a) Apply this to f(x)=x and deduce that ∑k=1∞1/k2=π2/6.
  • (b) Hence deduce that ∑k=1∞1/(2k−1)2=π2/8.
  • (c) Say precisely which step used the analysis input, and explain why no result of this section can supply it.

Solution.

  • (a) By Example (The Fourier Coefficients of f(x)=x), ak=0 for all k and bk=2(−1)k+1/k, so bk2=4/k2; and ‖f‖2=2π2/3. The stated identity becomes ∑k=1∞4k2=2π23, so ∑k=1∞1/k2=π2/6.

  • (b) All terms are positive and the series converges, so it may be split into its even-index and odd-index parts. The even part is ∑j=1∞1(2j)2=14∑j=1∞1j2=π224. Hence the odd part is π2/6−π2/24=(4π2−π2)/24=π2/8, which is the claim.

  • (c) The analysis input is used exactly once, at the equality sign in (a). This section proves only the inequality ∑k≤n4/k2≤2π2/3 for each n (Theorem 11.9.1), and Theorem 11.9.2 turns that inequality into an equality only when f lies in the span of the finitely many functions used. The function x lies in no Wn, since every element of Wn takes equal values at −π and π while f(−π)=−π≠π=f(π). Passing to the infinite system is a statement about a limit of functions, and nothing in this book proves such a statement.

Remark. The classical route to ∑1/(2k−1)2=π2/8 applies the same identity to the square wave, the function equal to −1 on [−π,0) and 1 on [0,π], whose coefficients are bk=4/(πk) for odd k and 0 otherwise. That function is not continuous, so it does not live in the space C[−π,π] of this section, and enlarging the space to all integrable functions destroys positive definiteness, as the third nonexample of Section 1 shows. Working with f(x)=x keeps everything inside a genuine inner product space.

Exercise (C2: Chebyshev orthogonality by substitution)

Let ⟨p,q⟩w=∫−11p(t)q(t)(1−t2)−1/2dt on R[x], the Chebyshev inner product of the text.

  • (a) Prove that for every n≥0 there is a polynomial Tn of degree n with Tn(cos⁡θ)=cos⁡nθ for all θ, and find T0,T1,T2,T3.
  • (b) Prove that ⟨p,q⟩w=∫0πp(cos⁡θ)q(cos⁡θ)dθ for all polynomials p,q.
  • (c) Deduce that ⟨Tm,Tn⟩w=0 for m≠n, and compute ⟨Tn,Tn⟩w.

Hint for (a): the identity cos⁡((n+1)θ)+cos⁡((n−1)θ)=2cos⁡θcos⁡nθ.

Solution.

  • (a) Induction on n. Take T0=1 and T1=x, which satisfy T0(cos⁡θ)=1=cos⁡0θ and T1(cos⁡θ)=cos⁡θ, of degrees 0 and 1. Suppose Tn−1 and Tn exist, of degrees n−1 and n. Put Tn+1=2xTn−Tn−1. Then for every θ, Tn+1(cos⁡θ)=2cos⁡θcos⁡nθ−cos⁡((n−1)θ)=cos⁡((n+1)θ) by the stated identity. Its degree is n+1, since the leading term of 2xTn has degree n+1 and Tn−1 has degree n−1. This completes the induction, and the recurrence gives T2=2x2−1 and T3=2x(2x2−1)−x=4x3−3x.

  • (b) The integral is improper at both endpoints, so it means the limit as δ→0+ of the integrals over [−1+δ, 1−δ]. On each such interval the integrand is continuous, and t=cos⁡θ is a continuously differentiable bijection from the corresponding θ-interval, so the change-of-variables rule applies there. With t=cos⁡θ, θ running from π down to 0, we have dt=−sin⁡θdθ and 1−t2=sin⁡θ, which is ≥0 on [0,π]. The two minus signs cancel when the limits are reversed, and letting δ→0+, ∫−11p(t)q(t)1−t2dt=∫0πp(cos⁡θ)q(cos⁡θ)dθ. The right-hand side is a proper integral of a continuous function, so both sides converge, and the limits agree.

  • (c) By (a) and (b), ⟨Tm,Tn⟩w=∫0πcos⁡mθcos⁡nθdθ. Using cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)] and ∫0πcos⁡(pθ)dθ=[sin⁡(pθ)/p]0π=0 for every nonzero integer p:

if m≠n, then m−n≠0, and m+n≥1 because the two indices differ, so both integrals vanish and the value is 0;

if m=n≥1, the value is 12(∫0π1dθ+0)=π/2;

if m=n=0, the integrand is 1 and the value is π.

So the Tn are orthogonal for ⟨⋅,⋅⟩w, with ⟨T0,T0⟩w=π and ⟨Tn,Tn⟩w=π/2 for n≥1. Consequently (T0/π, T12/π, …, Tn2/π) is an orthonormal list, and Theorem 11.9.1 applies to it verbatim.

Found a typo or a mistake? Report it, or read this page’s source

The text of this book is licensed under CC BY-NC-SA 4.0.