Orthogonality and Bessel's Inequality
Why should decomposing a periodic function into sines and cosines produce a Pythagorean theorem? The answer lies in structure. The trigonometric system is not just a convenient collection of functions. It is an orthogonal system in a vector space equipped with an inner product. Fourier coefficients are nothing but coordinates in that geometry. Once this is seen clearly, deep facts about Fourier series change character. They stop looking like calculus tricks. Instead they start looking like linear algebra: projections, best approximation, and a Pythagorean identity that bounds coefficient size. This article develops that geometric viewpoint rigorously. We define the inner product structure on square-integrable functions on a circle. We prove that the trigonometric system is orthogonal. We show that the -th partial sum of the Fourier series is the unique best approximation to . This holds among trigonometric polynomials of degree , in the least-squares sense. From this optimality falls out Bessel's inequality. This is a bound controlling the size of Fourier coefficients. It holds for every function with finite energy. No continuity, no differentiability, no convergence assumption on the series itself is needed. As a corollary we obtain the Riemann–Lebesgue lemma: Fourier coefficients of an integrable function tend to zero. The big picture is that Fourier analysis is secretly a chapter of Hilbert space theory. It sits inside real analysis. The inner product turns the space of square-integrable functions into something new. It becomes an infinite-dimensional analogue of Euclidean space. The orthonormal trigonometric functions play the role of coordinate axes. Bessel's inequality is the statement that "the sum of squared coordinates cannot exceed the squared length of the vector." This is literally the Pythagorean theorem, run in infinitely many dimensions. It is proved with nothing more than integration and algebra. By the end of this article you will have several things. You will have a complete, self-contained proof that trigonometric partial sums minimize mean-square error. You will have a full derivation and proof of Bessel's inequality. Sharp attention is paid to what is and is not assumed about . You will have a proof of the Riemann–Lebesgue lemma as a clean corollary. You will also have worked examples computing genuine (asymmetric) Fourier coefficients. These examples check Bessel's inequality numerically. This sets the stage for a deeper question. When does the Fourier series actually converge back to ? That question is treated in Convergence of Fourier Series.
- The trigonometric functions form an orthogonal system on under the inner product .
- Fourier coefficients are exactly the coordinates of in this orthogonal basis, obtained by projection.
- The Fourier partial sum is the unique trigonometric polynomial of degree minimizing over all such .
- Bessel's inequality says for every , with no convergence assumed.
- Letting gives convergence of , and forces — the Riemann–Lebesgue lemma.
- Key idea: Fourier analysis is Euclidean geometry — orthogonal projection, Pythagoras, and best approximation — carried out in an infinite-dimensional space of functions.
Where this lives today
The projection/optimality argument underlying Bessel's inequality is the prototype for Hilbert space theory in functional analysis: the same three-line completed-square proof, verbatim, establishes that orthogonal projection onto any closed subspace of an inner product space minimizes distance, with Bessel's inequality as the general statement that for any orthonormal system , trigonometric or not (e.g. Legendre polynomials, Hermite functions, wavelets). In signal processing and engineering, this is exactly the statement that a signal's "energy" bounds the total power captured by any finite set of orthogonal frequency channels, underlying spectral analysis, the design of orthogonal transforms (DCT/DFT used in JPEG and MP3 compression), and the theory of orthogonal filter banks. In quantum mechanics, Bessel's inequality (and its equality form, Parseval/Plancherel) governs expansions of a wavefunction in an orthonormal basis of eigenstates, guaranteeing that probabilities computed from projection coefficients never exceed total probability after normalization. In statistics, the same least-squares argument is literally the derivation of ordinary least-squares regression: fitting a linear model by minimizing squared error is orthogonal projection onto the column space of the design matrix, and the "residual sum of squares decomposition" is Pythagoras in disguise. In numerical analysis and approximation theory, Bessel's inequality certifies a priori that truncated orthogonal expansions (Chebyshev, Legendre, spherical harmonics) cannot have unbounded coefficient growth, which underlies convergence and stability estimates for spectral methods used in solving partial differential equations. Finally, the Riemann–Lebesgue lemma derived here is a basic tool in the study of oscillatory integrals throughout harmonic analysis and PDE theory, and is the first ingredient needed to attack the pointwise convergence questions taken up next in Convergence of Fourier Series.
Ask the tutor: How does Bessel's inequality change if we use complex exponentials instead of , and why does the complex form make Parseval's identity look even cleaner?
Let be Riemann integrable. Define the inner product
and the associated seminorm . A sequence of Riemann integrable functions on is called an orthogonal system if
and each . It is orthonormal if in addition for all . The trigonometric system on is the family
For Riemann integrable on , the Fourier coefficients of are
and the -th Fourier partial sum is the trigonometric polynomial
Intuition
Think of Riemann integrable functions on as vectors, with playing the role of the dot product. Two functions are "perpendicular" exactly when this integral vanishes — and remarkably, and are perpendicular to each other, and to all other trigonometric functions of different frequency, for a completely elementary reason: products of sines and cosines at different integer frequencies oscillate and their oscillations cancel exactly over a full period. This is the same phenomenon as an orthogonal basis in : to find the coordinate of a vector along , you don't solve a system of equations, you just take the dot product . Fourier coefficients are exactly this projection formula applied to the "axes" . Once you see as coordinates, the partial sum is recognizable as the orthogonal projection of onto the finite-dimensional subspace spanned by frequencies through — and orthogonal projections are always the closest point in the subspace, which is precisely the least-squares optimality theorem below. Bessel's inequality is then just Pythagoras: the squared length of is at least the sum of the squared lengths of its projections onto mutually perpendicular axes.
Central results
For all integers ,
Technique: product-to-sum identities and direct antiderivatives. Recall the elementary identities, valid for all real :
These follow from the addition formulas and , added or subtracted appropriately.
Case , . Applying the identity with ,
For any nonzero integer , , since for integer . Here by assumption and : if then , excluded since ; so both integrals vanish, giving total .
Case . Then contributes , and contributes as above. Total: .
Case . Directly .
Sine–sine case is identical using the second identity: for both and integrate to over a full period (with the same exception check as above — if then is excluded by , or by the standing convention is not defined since ). For : . For , identically, giving the stated value .
Cosine–sine case. Using the third identity,
For any integer , : if this is since cosine is even; if the integrand is identically . Both terms vanish for every , so the cross integral is always .
∎Let be Riemann integrable on and let with as in the definition. Then is precisely the function obtained by expanding in the orthogonal system using the standard projection coefficients
consistent with () and from the Lemma.
Immediate from the definitions: , so , and similarly for using . The constant term: , and , so , matching the constant term in .
∎Let be Riemann integrable on , fix , and let
be the space of trigonometric polynomials of degree . Then among all , the quantity
is minimized uniquely by , the -th Fourier partial sum of . Moreover the minimum value equals
Technique: expand the square, use orthogonality to isolate cross terms, complete the square in each free coefficient. Write . Expand
We compute the last two integrals using the orthogonality relations of the preceding Lemma.
Cross term. By linearity of the integral,
By definition of the Fourier coefficients, , , . Hence
Quadratic term. Squaring produces a constant term, squares , and cross products , (), and (all ). By the Lemma, every cross product with distinct frequencies or mixed type integrates to ; only the diagonal terms survive:
(To see there are no missed cross terms: expanding as a finite sum of products of basis functions and integrating termwise is valid because the integral of a finite sum equals the sum of integrals — no limiting process, no need for uniform convergence, since is a finite linear combination.)
Assembling . Combining the three pieces,
Group by coefficient. The -terms form , a completed square, valid by direct algebraic expansion: , matching after rearranging. For each , the -terms form , and similarly the -terms form . Substituting all completed squares,
The first two terms do not depend on at all; call their sum . The remaining terms form a sum of squares, each multiplied by a strictly positive constant ( or ), hence
with equality if and only if and for every — i.e., if and only if . This proves both the minimality and the uniqueness of the minimizer, and identifies the minimum value as , exactly as claimed.
∎Let be Riemann integrable on with Fourier coefficients . Then for every integer ,
Consequently the series converges, and
Technique: nonnegativity of the minimal least-squares error (Pythagoras). By the preceding Theorem applied with itself (the minimizer), we found
The left side is an integral of a square of a real-valued Riemann integrable function (a difference of Riemann integrable functions is Riemann integrable, and a square of a Riemann integrable function is Riemann integrable), hence is . Therefore
which rearranges directly to
This holds for every , and the right side does not depend on . The partial sums of the nonnegative series therefore form a nondecreasing sequence (each added term ) bounded above by the fixed constant . By the monotone convergence of bounded monotone sequences, guaranteed by the completeness of via the supremum property, the sequence of partial sums converges, and its limit — the sum of the series — is at most that same bound, by taking in the displayed inequality (a limit of a sequence bounded above by is itself ). This proves both claims.
∎Let be Riemann integrable on . Then
Equivalently, and as .
By Bessel's Inequality, the series converges. A necessary condition for convergence of a series is that its terms tend to : if converges with partial sums , then . Applying this with , we get . Since and , the squeeze theorem gives and , hence and (as is continuous at ). Multiplying back by (a fixed constant) gives and similarly for the sine integral.
∎Worked examples
Example 1 — Bessel's inequality for an asymmetric sawtooth-type function. Let on , extended -periodically (the standard sawtooth). Since is odd, for all . Compute using integration by parts:
The second integral is for (shown in the Lemma). The boundary term:
Since , we get . So Now compute the right side of Bessel's inequality:
Check Bessel's inequality at : since ,
Indeed , consistent with the theorem. Taking , Bessel's inequality asserts , i.e. . Using the classical value (a fact provable independently, e.g. via Parseval's theorem — the equality case of Bessel, treated alongside Convergence of Fourier Series), we get exactly, matching the right side with equality — a preview of the fact that Bessel's inequality becomes an equality (Parseval's identity) for this particular .
Example 2 — a non-odd, non-even function: least-squares optimal quadratic trigonometric approximation. Let on shifted so that it is not symmetric about the natural comparison point — instead take
periodically extended. This function is neither even nor odd, so both and are generically nonzero, giving a genuinely asymmetric test case. Coefficients from (even part): a standard computation (integration by parts twice) gives, for ,
so the contribution to from is . Also so the contribution is , giving constant term . Coefficients from (odd part, computed in Example 1): contributes to every , and contributes . Since Fourier coefficients are linear in (immediate from linearity of the integral), the coefficients of are the sums:
Let us be careful and just state them directly: (unchanged, since contributes to as it is odd), and for ,
Take . Then ; . The degree- Fourier partial sum is
By the Least-Squares Optimality Theorem, this specific trigonometric polynomial, among all trigonometric polynomials , minimizes . No other choice of the five real parameters can do better — a claim that would be very hard to verify directly by calculus of five variables, but is immediate from the completed-square argument in the proof. Now check Bessel's inequality numerically. We need . Since is odd, its integral over vanishes. So
Numerically, , , . So and , total . Dividing by : . Left side of Bessel at :
Since , , divided by gives . Total left side . Indeed : Bessel's inequality holds, with a visible gap (the "energy" still uncaptured by frequencies is about , matching exactly by the exact formula in the Optimality Theorem).
Bessel's inequality requires to be Riemann integrable so that is a finite real number — this finiteness is used essentially in the proof, since the whole argument bounds a sum by this quantity. If we allow merely to be defined pointwise with computed by formal (divergent or undefined) integrals, the inequality's hypotheses are not even met and its conclusion can fail outright. Concretely, take
extended -periodically. This is an improper Riemann integral in the sense that converges (since ), so one can still define and as legitimate finite numbers via improper integration. But
which diverges to (). Here fails to be Riemann integrable in the sense required (it is not even bounded, so it is not Riemann integrable on at all — the finite quantity that Bessel's inequality bounds the coefficient-sum by simply does not exist as a Riemann integral). The proof of Bessel's Inequality breaks at the very first step: the Least-Squares Optimality Theorem computes , and if , this "identity" is vacuous — itself is for every (since ), so the inequality becomes the true-but-useless statement "(finite number) " — Bessel's inequality is not false here so much as vacuous, because its right-hand side, which is supposed to be a finite bound controlling the Fourier coefficients, no longer exists as a finite number. This is exactly why the hypothesis " Riemann integrable" (equivalently here, ) must be stated: without it there is nothing for Bessel's inequality to assert.
Scope, edge cases & common traps
| Situation | What holds | What can fail / must be checked |
|---|---|---|
| Riemann integrable on | Bessel's inequality holds for every ; series of squared coefficients converges | Nothing extra needed — this is the full hypothesis |
| merely defined pointwise, | may still be individually finite | Bessel's inequality's right side is : statement becomes vacuous (see counterexample) |
| continuous, or even | Bessel's inequality holds (continuous Riemann integrable); moreover for smooth coefficients decay faster than any power of | Faster decay is a stronger fact, not proved by Bessel's inequality alone — needs extra integration by parts arguments |
| Wanting equality in Bessel (Parseval) | Requires completeness of the trigonometric system in , a strictly stronger fact | Do not assume equality without separately proving completeness — this is a distinct theorem, previewed but not established here |
| Wanting pointwise or uniformly | Requires further hypotheses (e.g. Dirichlet-type conditions) | Bessel's inequality alone says nothing about convergence of to — only that its coefficients form a square-summable sequence |
The mathematician behind it
Origins · 1 minFriedrich Wilhelm Bessel and how this was discovered
Bessel was an astronomer and mathematician, first apprenticed in a mercantile house in Bremen before turning to celestial mechanics through his own study of Halley's comet observations. He became director of the Königsberg Observatory, where he achieved the first reliable measurement of stellar parallax (for the star 61 Cygni, 1838), placing real numerical distances on the scale of the galaxy for the first time. His mathematical work on planetary perturbation series led him to the differential equation and function family now called Bessel functions, and to the general inequality bearing his name, which arose from estimating the error in approximating functions by finite trigonometric (and later, more general orthogonal) series — precisely the object of this article.
Is Bessel's inequality only about the trigonometric system, or is it more general?
Bessel's inequality is a general fact about any orthogonal (or orthonormal) system in an inner-product space, not just sines and cosines. If is orthonormal and has finite "energy" , then the generalized coefficients satisfy , by exactly the same completed-square argument used here. The trigonometric case is the classical and most historically important instance, which is why it is treated first and in full detail, but the identical proof applies verbatim to Legendre polynomials, Hermite functions, or any orthonormal basis used in approximation theory or quantum mechanics.
Does Bessel's inequality tell us anything about whether the Fourier series converges to ?
No — and this is the most important scope caveat. Bessel's inequality only says the sequence of Fourier coefficients is square-summable; it says nothing about whether approaches as , either pointwise or uniformly. Convergence of Fourier series is a separate and considerably deeper question requiring additional hypotheses on (such as piecewise smoothness, bounded variation, or Hölder continuity), addressed in the study of Convergence of Fourier Series. Bessel's inequality is a necessary first step — it shows the coefficients don't blow up — but convergence needs much more machinery, such as Dirichlet kernels and localization principles.
What is the difference between Bessel's inequality and Parseval's identity?
Bessel's inequality is the statement proved here for any Riemann integrable , using only orthogonality and nonnegativity of . Parseval's identity is the equality , which holds precisely when as — that is, when trigonometric polynomials are dense enough to approximate arbitrarily well in mean square. Proving this density (completeness of the trigonometric system) is strictly harder than anything used to prove Bessel's inequality, and is not established in this article; Bessel's inequality alone never upgrades to equality without that extra completeness argument.
Why does the proof work using only finitely many terms, with no appeal to uniform convergence?
Because , the space of trigonometric polynomials up to frequency , is finite-dimensional for each fixed : any is a genuine finite linear combination of basis functions. Expanding and integrating term by term is then just linearity of the (finite) integral of a finite sum — no interchange of limit and integral, and hence no need for uniform convergence hypotheses, is required at this stage. Uniform convergence becomes relevant only when one lets and asks whether the infinite series itself converges to in a strong sense — a separate question from the finite- optimality and Bessel bound proved here.
Can Bessel's inequality be strict, or is it always an equality in practice?
It can genuinely be strict, and generically is, for any finite : the gap equals , and this is exactly zero only if coincides with its own -th Fourier partial sum, i.e. is itself already a trigonometric polynomial of degree (up to a set of measure zero not affecting the Riemann integral). For generic , such as the sawtooth or examples worked out above, the inequality is strict for every finite , and only becomes equality in the limit if the completeness (Parseval) property holds.
Does Bessel's inequality require to be periodic?
The trigonometric system is naturally periodic with period , so the theorem as stated is about functions on , implicitly extended periodically when convenient (as in both worked examples). If is defined only on without regard to periodicity, the integrals and inequality still make perfect sense verbatim — periodicity is a convenience for interpreting as approximating "everywhere on the circle," not a logical requirement for the inequality's proof, which only uses integrals over the fixed interval .