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
collected against an orthonormal list can never carry
more squared length than 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, is
an inner product space over or , with inner
product (Definition 11.1.1)
and induced norm (Definition 11.1.3).
We do not assume that is
finite-dimensional. What we assume each time is
that the list we compute against is finite.
Coefficients against an orthonormal list
In Theorem 11.2.1 the
list was an orthonormal basis, and the
coefficients
recovered
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
are still there. What can be said about them when they
no longer determine ?
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 be an orthonormal list in an inner
product space and
let .
The scalars are the Fourier coefficients
of with
respect to the list.
The name is borrowed from the classical case below,
where the are sines and
cosines; nothing in the definition mentions
trigonometry. When the list happens to be a basis, these
are exactly the coordinates of , by Theorem 11.2.1 (a).
When it is not, they are the coordinates of a
shadow of , and the next
theorem measures that shadow.
Theorem
11.9.1 (Bessel’s Inequality)
Let be an
inner product space over , not assumed
finite-dimensional, and let be an orthonormal list in . Then for
every ,
Idea. The left-hand side is not a
quantity out of nowhere. Let be the span of the
list. By the projection formula, is exactly
, 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 may be
infinite-dimensional; it does not matter, because
Section 3 only ever asked the subspace
to be finite-dimensional.
Proof. Put . The vectors are orthogonal
and nonzero, so the list is linearly independent by Theorem 11.1.4;
being a spanning list of as well, it is an
orthonormal basis of , and is finite.
Hence Theorem 11.3.3
applies to even
though need not
be finite-dimensional, and part (a) of it gives The summands
are pairwise orthogonal, since for and scalars come out of both slots. So Theorem 11.1.3 and
Theorem 11.1.2 (b)
give using . By
Theorem 11.3.3 (c),
. 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
lies in
by Theorem 11.3.2, so
it is orthogonal to , and Theorem 11.1.3
turns into . Rearranging, and substituting
from the proof above, In words: the deficit in Bessel’s
inequality is the squared distance from 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.
Now the equality case, which is where the word
basis returns.
Theorem
11.9.2 (Parseval’s Identity)
Let be an orthonormal list in an inner
product space and
let .
Then In particular, if is an orthonormal
basis of , the identity holds for
every .
Proof. Keep the notation of the
proof of Theorem 11.9.1,
where we showed with . So the stated equality says , and by Theorem 11.3.3 (c)
this holds if and only if . If the
list is a basis of , then and every lies in
.
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
.
Warning. An orthonormal
list is not an orthonormal basis, and the deficit in
Bessel can be everything. In below, the
list is orthonormal, and for the constant
function both
coefficients are ,
so the left-hand side of Bessel is while . Nothing
at all is captured. A short orthonormal list is not a
bad basis; it is not a basis.
Quick check. In with the dot
product, let and , and let .
Check that is orthonormal, compute both sides
of Bessel’s inequality, and say what the deficit
equals.
Solution. Each has norm , and
, so the list is
orthonormal. The coefficients are and , so the left-hand
side is , while . The inequality is strict, and by the deficit is the squared distance
from to
. Indeed and , whose squared norm is
.
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 be the space of continuous functions , a real vector space, and define This is the continuous-function inner product
of Definition 11.1.1
on a different interval and rescaled by the positive
constant ;
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 in front they
would have norm , 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 changes every number
below. In this section , 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;
; for every integer and for every nonzero integer
(for evaluate the
antiderivative , respectively
, each of
which takes the same value at as at ; for the sine integrand
is ); integration
by parts, and the substitution , 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 .
Show that the list of functions is orthonormal in with
.
Solution. There are five kinds of
pair. Write
for indices in .
The constant with itself. .
Constant against or . These are and , since .
Two cosines. By , If , both and are nonzero integers, so both integrals
vanish and the value is . If , the first
integrand is the constant and the second has
nonzero frequency , so the value is .
Two sines. By , the same two integrals
appear with a minus sign, giving for and for .
A sine against a cosine. By , because every integral of a sine over vanishes,
including the case where the second integrand is .
So each of the functions is a unit vector and distinct ones
are orthogonal, which is Definition 11.2.1.
Write , the space
of trigonometric polynomials of degree at most
. The
list above is an orthonormal list, hence independent (Theorem 11.1.4),
and it spans ,
since . So it is an orthonormal
basis of and
.
For the
classical Fourier coefficients of are for and respectively. Comparing with the inner
product, and ,
while the coefficient against the constant of the
orthonormal list is . 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 , let , and let be the Fourier coefficients of . Put Then, with :
- (a) ;
- (b) for every , with equality only for
;
- (c) .
Idea. Nothing new happens here. The
subspace 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 in front of
: it is not a
convention pulled from the air, it is what equals.
Proof.
(a) By Example (The Trigonometric System Is Orthonormal)
the list is an orthonormal basis of . By Theorem 11.3.3 (a),
The first term is , and the remaining terms are
. Hence .
(b) This is Theorem 11.3.5
applied to the subspace , which is legitimate because is
finite, together with (a).
(c) This is Theorem 11.9.1 for
the same orthonormal list, since and .
So the Fourier partial sum is not a guess at that happens to work:
it is the orthogonal projection of
onto the
trigonometric polynomials of degree at most , and by Theorem 11.3.5 it
is the unique trigonometric polynomial of that degree
closest to in
this norm. The mysterious of the classical
formula is an artifact of normalizing the constant
function.
A worked
computation
Example
(The Fourier Coefficients of )
In
with , let . Find all and , write down , and say what Theorem 11.9.3 (c)
gives.
Solution. We use one further
calculus fact: a continuous odd
function integrates to over , and a
continuous even one integrates to twice
its integral over . Both come from the substitution .
The cosine coefficients. For every the function
is odd,
so . In
particular .
The sine coefficients. The function is even, so for
, Integrating by parts, with , since the last integral is .
As , this equals , and
therefore
The partial sums. Hence and by Theorem 11.9.3 (b)
this is the closest trigonometric polynomial of degree
at most to the
function in this
norm.
What Bessel’s inequality (Theorem 11.9.1)
gives. First . Since and , part (c)
of Theorem 11.9.3
reads for every . The partial sums on
the left increase and are bounded above, so they
converge, and .
That bound is sharp: the true value of the sum is
. But
sharpness is not something Bessel can deliver. By Theorem 11.9.2,
equality for a fixed finite list holds only when lies in the span of
that list, and the function lies in no — it is not a
trigonometric polynomial, since every element of 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 in . Using , write down all Fourier coefficients of
, find , and compute the
deficit in Bessel’s inequality for .
Solution. The right-hand side already lies in , and coefficients
against an orthonormal basis are unique (Theorem 11.2.1
(a)), so, applying that result inside and reading the
coefficients off: , , and all other and all are . Hence ,
a constant. For the deficit, , while
the Bessel sum for is . The deficit is , and by it should be . It is.
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
says The subtracted sum never decreases as grows, so the numbers
never increase, and they are bounded below by . Hence they converge to
some limit .
Everything up to this sentence is linear algebra plus
one fact about monotone bounded sequences.
Whether 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
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
shows this at once: for every , while . The error
at the single point never shrinks at all.
Warning. Mean-square best
approximation is not pointwise approximation.
Theorem 11.9.3 says
that minimizes
over . It does not say that is close to for a given , and for at 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.
Legendre
and Chebyshev
Two families of orthogonal polynomials show the same
two theorems at work with a different weight.
Legendre. Example (Gram–Schmidt on )
ran Gram–Schmidt on in with , producing the orthogonal list
and, after normalizing, the orthonormal basis Inside this is a basis, so Theorem 11.9.2
gives
for every quadratic . Viewed inside the
larger space of continuous functions, the same three
vectors are only a list, and for an
outside Theorem 11.9.1 is
strict, the deficit being the squared distance from
to by . That deficit is
what Example (The best quadratic approximation to a cubic)
computed for . 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
through Corollary 11.3.4
and avoids the square roots entirely.
Chebyshev. Change the weight. On
define The integrand is unbounded at , so this is an
improper integral; it converges for polynomials, because
is
bounded on
and . The three axioms are
checked as in Definition 11.1.1,
positivity because on .
The Chebyshev polynomials are
defined by the requirement which does determine a polynomial of degree
, and determines
it uniquely, since runs over the
whole of
and two polynomials agreeing on an infinite set are
equal (Corollary 6.1.4). The
first few are , , (from ), and Exercise (C2: Chebyshev orthogonality by substitution)
handles the general case. They are orthogonal for :
For this can be checked by hand, using and (both come from ). The
pairs
and have
odd integrands on a symmetric interval, so those
integrals are by
the substitution . For the remaining pair,
Why should such a weight produce orthogonality?
Because it is the trigonometric system in disguise.
Substituting turns into , and on
the Chebyshev polynomials that integrand is
— 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
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 and the quadrature
rules they produce.
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 in this
section, including its normalizing constant, and say
what the constant is for.
- (e) State what Theorem 11.9.3
gives about ,
and name one thing it does not give.
- (f) True or false:
if is an orthonormal list and for one particular ,
then the list is an orthonormal basis of . Justify your
answer.
Solution.
(a) If is an orthonormal list in an inner
product space
over or , then for every (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
holds if and only if ; in particular it holds for
every when
the list is an orthonormal basis of (Theorem 11.9.2).
(c) False. Only
the span of the list has to be finite-dimensional, and
it automatically is, being spanned by vectors. The proof uses
Theorem 11.3.3,
whose hypothesis is that the subspace
projected onto is finite-dimensional. The application to
is
exactly a case where is not
finite-dimensional.
(d) . The
constant
makes and
unit
vectors for every ; without it their norms would be .
(e) It gives that
is the
orthogonal projection of onto , hence the unique
element of
minimizing , and it gives Bessel’s inequality for the
coefficients. It does not give that
at
any particular ,
nor even that .
(f) False.
Equality for one says only that
(Theorem 11.9.2). In
take the list
and
: equality holds, and the list is not
a basis.
B. Practice
Exercise
(B1: Fourier coefficients)
Work in with . Find all Fourier
coefficients
and of each of
the following, and in each case write down .
- (a) .
- (b) .
- (c) .
Solution.
(a)
is odd, so
for all . For the
cosines, is even, so . For this is . For , integrating by parts, since the bracket vanishes and . Hence and .
(b) is odd, so
. Also . For , integrating by
parts twice gives using from Example (The Fourier Coefficients of ). Hence , so , , and
(c) The function
already lies in . Coefficients against
an orthonormal basis are unique (Theorem 11.2.1
(a)), so, applying that result inside , we may read them
off: ,
that is ,
together with and ; every other coefficient is . Hence , which
is not : the term lies outside
and is
discarded by the projection. (From on, , as Theorem 11.3.3 (a)
predicts, since and a projection fixes its own
subspace.)
Exercise
(B2: Verifying Bessel for a truncation)
- (a) In with the dot
product let , and . Verify Theorem 11.9.1 for
and this
list, compute the deficit, and check against by computing directly, where .
- (b) For
and , 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 .
Solution.
(a) Both vectors
have norm and , so the list is
orthonormal. The coefficients are and , so the left-hand
side of Bessel is , while . The inequality holds, with deficit . By Theorem 11.3.3 (a),
, so and , matching .
(b) With and , and , the left-hand
side of (c) for is The right-hand side is . So the inequality reads that is , that is . Since and , the
inequality is true, and it is tight: the deficit is
, so the single cosine already captures
almost all of .
Exercise
(B3: The best approximation by )
In
with , let and
. Find
and . Hint: the
list is
orthogonal but not orthonormal.
Solution. The two functions are
orthogonal, since ,
and both are nonzero, with and
by Example (The Trigonometric System Is Orthonormal).
So is
an orthogonal basis of , and Corollary 11.3.4
gives By Exercise (B1: Fourier coefficients)
(b), and . Hence For the distance, normalize: is an
orthonormal basis of the same , with coefficients
and .
Now and the Bessel sum is , so gives It is positive, as it must be, since .
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 , meaning
that for every ,
- (a) Apply this to
and deduce
that .
- (b) Hence deduce
that .
- (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 ), for all and , so
; and
. The stated identity becomes so .
(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 Hence the odd part is , which is the
claim.
(c) The analysis
input is used exactly once, at the equality sign in (a).
This section proves only the inequality for each (Theorem 11.9.1),
and Theorem 11.9.2
turns that inequality into an equality only when lies in the span of the
finitely many functions used. The function lies in no , since every element
of takes equal
values at and
while . 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
applies the same identity to the square wave, the
function equal to on and on , whose
coefficients are for odd and otherwise. That
function is not continuous, so it does not live in the
space
of this section, and enlarging the space to all
integrable functions destroys positive definiteness, as
the third nonexample of Section 1 shows. Working with
keeps
everything inside a genuine inner product space.
Exercise
(C2: Chebyshev orthogonality by substitution)
Let
on , the
Chebyshev inner product of the text.
- (a) Prove that for
every there
is a polynomial
of degree with
for all , and find .
- (b) Prove that for all
polynomials .
- (c) Deduce that
for , and compute .
Hint for (a): the identity .
Solution.
(a) Induction on
. Take and , which satisfy
and , of degrees and . Suppose and exist, of degrees
and . Put . Then for every , by the stated identity. Its degree is , since the leading
term of has
degree and
has degree
. This
completes the induction, and the recurrence gives and .
(b) The integral
is improper at both endpoints, so it means the limit as
of
the integrals over . On each such interval the
integrand is continuous, and is a
continuously differentiable bijection from the
corresponding -interval, so the
change-of-variables rule applies there. With , running from down to , we have and , which is on . The two minus
signs cancel when the limits are reversed, and letting
,
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), . Using and for every
nonzero integer :
if , then
, and
because
the two indices differ, so both integrals vanish and the
value is ;
if ,
the value is ;
if ,
the integrand is
and the value is .
So the are
orthogonal for ,
with and for . Consequently
is an orthonormal list, and Theorem 11.9.1
applies to it verbatim.