Fourier Series: Rigorous Foundations
Can a vibrating string, a temperature distribution, or any reasonably well-behaved periodic signal be decomposed into pure sine and cosine waves? This question was first attacked seriously by Joseph Fourier while studying heat conduction. It forces us to confront a deep issue in analysis. Given a -periodic function , can we find coefficients so that
and in what sense does this series actually converge to ? The answer turns out to be subtle. The naive hope that every periodic function equals its Fourier series pointwise is false in general. Making the theory rigorous requires the full strength of the Riemann Integral. It also needs careful limit arguments from the theory of Uniform Convergence and Integration. This matters because of Fourier's idea. He proposed that "arbitrary" functions decompose into elementary oscillations. This became one of the most productive ideas in mathematics and physics. It underlies the analysis of heat, sound, light, and (much later) digital signal processing and quantum mechanics. The trigonometric system has a remarkable orthogonality structure on any interval of length . This is exactly the tool needed to extract the coefficients from by integration. This works regardless of whether the resulting series converges back to . The big picture is this: we first define the Fourier coefficients of any Riemann-integrable periodic function purely formally. This is done via explicit integral formulas, with no convergence assumed. We then form the partial sums of the resulting series. We study them as ordinary functions built from finitely many trigonometric terms. Only after this scaffolding is in place does the harder question make sense. Coefficients must be well-defined, partial sums well-defined, and orthogonality proven. Then we can ask when and how . This question belongs to the theory of convergence of Fourier series. It is treated separately. This article delivers the rigorous foundational layer. It gives the precise definition of Fourier coefficients for Riemann-integrable periodic functions. It covers the algebraic and integral structure of the trigonometric system. It also presents the Riemann–Lebesgue-type integrability facts needed to make sense of the coefficients. Finally, it gives a fully proved orthogonality theorem that underlies everything downstream. This includes Bessel's Inequality and the eventual convergence theorems.
- Fourier coefficients of a -periodic, Riemann-integrable are defined by explicit integral formulas — no convergence is assumed a priori.
- The trigonometric system is orthogonal on any interval of length , which is the algebraic engine behind the coefficient formulas.
- Partial sums are trigonometric polynomials of degree , always well-defined and continuous.
- Riemann integrability of guarantees the coefficients exist and are finite, via boundedness plus integrability of times bounded continuous functions.
- The orthogonality theorem is proved directly from elementary trigonometric product-to-sum identities and definite integrals — no circularity, no appeal to convergence results.
- Key idea: separate the algebra of extracting coefficients (rigorous, always works) from the analysis of whether the series reconstructs (subtle, treated afterward).
Where this lives today
Fourier's coefficient formulas and the orthogonality of the trigonometric system underlie an enormous range of modern mathematics and applied science. In pure analysis, they are the launching point for Bessel's Inequality and Parseval's theorem, which show the Fourier map is an isometry between periodic functions and square-summable coefficient sequences — a cornerstone of Hilbert space theory. In partial differential equations, separation of variables for the heat and wave equations on bounded domains produces exactly the trigonometric eigenfunctions Fourier used, making this the standard tool for solving boundary value problems. In signal processing and electrical engineering, the discrete and fast Fourier transforms (algorithmic descendants of the same coefficient formulas) underlie audio compression (MP3), image compression (JPEG's use of the related discrete cosine transform), and digital filtering. In cryptography and number theory, Fourier analysis on finite groups underlies primality testing algorithms and the Fast Fourier Transform speeds polynomial multiplication used in RSA and other cryptosystems. In statistics and time-series analysis, spectral density estimation decomposes a random process into frequency components using the same orthogonality principle. In quantum mechanics, Fourier series and transforms relate position and momentum representations of a wavefunction, a direct descendant of the position/frequency duality Fourier first isolated for heat.
:::faq[Why use instead of for the defining integrals?] Any interval of length gives the same coefficients, because , and hence and , are -periodic, and the integral of a periodic function over any interval of length equal to one full period is the same regardless of where that interval starts. This is a direct consequence of periodicity and additivity of the Riemann integral over adjacent subintervals. The interval is often chosen for convenience because it is symmetric about , which simplifies computations for even or odd functions (as seen in the worked examples), but or any shifted interval works equally well and yields identical numbers.
Ask the tutor: How does the best-approximation property proved here get upgraded into a full convergence theorem for Fourier series?
Let (or ) be periodic with period , and suppose is Riemann integrable on (equivalently on any interval of length , by periodicity). The Fourier coefficients of are the real numbers
The Fourier series of is the formal trigonometric series
and its -th partial sum is the trigonometric polynomial
We write to denote this formal association, deliberately using rather than , since at this stage no claim of convergence or equality is made. Equivalently, in complex form, defining for , we have , with , , for .
Intuition
Think of the trigonometric functions and as an infinite family of "pure tones," analogous to the way a musical chord decomposes into individual notes. The claim behind Fourier's construction is that these tones form a kind of coordinate system for periodic functions, and that the coefficients measure "how much" of the frequency- tone is present in . This is directly analogous to finding the components of a vector along orthogonal axes in : if is an orthonormal basis, the -th component of a vector is . The integral
plays the role of an inner product on the (infinite-dimensional) space of Riemann-integrable periodic functions, and the trigonometric system is orthogonal with respect to it — meaning distinct basis functions have inner product zero. The coefficient formulas for and are then nothing but "take the inner product of with the -th basis function, and divide by the squared length of that basis function" — exactly the Gram–Schmidt/orthogonal-projection formula from linear algebra, transplanted into an infinite-dimensional integral setting. The crucial subtlety, which the rest of the Fourier theory is built to resolve, is that in infinite dimensions "expressing in the basis" is not automatic: unlike in , a function need not equal the sum of its projections onto the basis vectors, even when there are infinitely many of them. That is precisely why this foundational article stops short of claiming ; it only builds the machinery — coefficients, orthogonality, well-defined partial sums — on which such convergence theorems can later rest.
For all integers and as appropriate, the following integrals over hold: 1. 2. (and both sides are if or , taking ) 3. for all integers . Consequently, if is Riemann integrable and -periodic with Fourier coefficients as above, then for every the partial sum
is precisely the unique trigonometric polynomial of degree minimizing the mean-square error
among all such trigonometric polynomials of degree .
Part 1: the orthogonality integrals. We use the product-to-sum identities, valid for all real and all integers :
These are elementary consequences of the angle-addition formulas and , added or subtracted appropriately; we take them as known. We also record two elementary integrals, for any integer :
the second because is an odd function of , and an odd, Riemann-integrable function has zero integral over any interval symmetric about (indeed, the substitution shows , forcing the integral to vanish); if the integrand is identically .
Proof of (1). If , both and , and , are integers, and by the product-to-sum identity,
Since , , so the first integral is by the computation above. If additionally (which holds automatically since and forces unless , excluded), the second integral is also . Hence the sum is . If : the identity gives , using . If : .
Proof of (2). Analogously, for ,
If : so the first term is ; and so the second term is also . Total: . If : first term is (since ); second term is (since ). Total: . If or , the corresponding "sine" factor is identically by convention, so the integral is trivially , consistent with the stated formula.
Proof of (3). For ,
Both integrands are sines of integer multiples of (note is a nonzero integer, and is some integer, possibly , in which case and the integral is trivially ). In every case each integral of the form vanishes, as shown above (either because giving an antiderivative that returns to , or because giving the zero function). Hence the whole expression is . This proves all three orthogonality relations.
Part 2: the minimization property. Fix and let be an arbitrary trigonometric polynomial of degree with real coefficients . Since is Riemann integrable and is continuous (hence Riemann integrable), is Riemann integrable, so is a well-defined finite real number (integrability of follows because products and squares of Riemann-integrable functions are Riemann integrable — a standard fact from the theory of the Riemann Integral). Expand:
We compute the cross term using linearity of the integral and the definitions of :
Since and , by definition, this becomes
Next, using the orthogonality relations from Part 1 (all cross terms between different trigonometric functions, and between and , vanish, and while for ):
Putting these together,
Group by each coefficient and complete the square. For the constant term:
For each :
Substituting back,
The first three terms on the right do not depend on the choice of at all — they depend only on and . The remaining sum of squares is manifestly , and equals if and only if and for all , i.e. if and only if . Therefore is minimized over all trigonometric polynomials of degree exactly when , and this minimizer is unique.
∎Worked examples
Example 1: the sawtooth-type function on , extended -periodically. Let be the -periodic extension of for . This is continuous (check: at , the left-hand value from the formula is ; periodicity forces , and indeed the formula gives too, so there is no jump), hence certainly Riemann integrable on , so its Fourier coefficients are well-defined. Since is even (), and is odd, the product is odd, so for all (using the odd-function-vanishing fact established in the proof above). Compute :
Compute for via integration by parts twice. Let , , so , :
The boundary term vanishes since and for integer . For the remaining integral, let , , , :
The remaining integral is (shown earlier, ). The boundary term:
using . Since , this equals . So , and therefore
Hence
So the Fourier series of this is
As a numerical check, the first coefficient is and ; note , matching the average value of over the interval, a sensible sanity check since is always the mean of over one period.
Example 2: an asymmetric, discontinuous function — a shifted, scaled step function. Let be -periodic with
This is bounded and has only one discontinuity per period (a jump at , and correspondingly at ), so it is Riemann integrable on by the standard criterion that a bounded function with finitely many discontinuities on a compact interval is Riemann integrable. Compute :
Compute , :
Since and for integer , every bracket evaluates to . So for all . Compute , :
Now ; let's be careful:
And
So
When is even, , giving . When is odd, , giving . So
As a check, , and the series so far reads
consistent with being the mean of (mean of on half the interval and on the other half is indeed ), a useful numerical sanity check on the computation.
The theorem's proof, and even the definition of Fourier coefficients, presupposes that is Riemann integrable on . Drop this hypothesis and the coefficients may fail to exist at all — not merely fail to converge back to . Let be the Dirichlet-type function
extended -periodically (note is indeed periodic since rationality of is equivalent to rationality of only if we are careful — instead, more simply, take directly as a function on defined by if and otherwise; this is not exactly -periodic in a literal sense unless we restrict attention to one period and repeat the pattern, which we do: define on by for , otherwise, and extend -periodically). This is bounded (values in ) but is famously not Riemann integrable on : for any partition, every subinterval contains both rational and irrational points (density of and ), so every upper Darboux sum is (using the value on each subinterval) while every lower Darboux sum is . Hence the upper and lower integrals differ (), so fails the Riemann criterion. Consequently the expression
is not merely hard to compute — the Riemann integral on the right side does not exist, so is undefined. The entire apparatus of Fourier coefficients collapses without the integrability hypothesis: there is no formal series to even write down, let alone ask whether it converges. This shows precisely why "Riemann integrable" is not a decorative hypothesis in the definition, but the load-bearing assumption that makes the coefficients well-defined numbers in the first place. (One remedy in more advanced treatments is to replace the Riemann integral with the Lebesgue integral, which does assign an integral to many non-Riemann-integrable bounded functions, though not to this particular pathological example in a way that helps — this function is Lebesgue integrable, with Lebesgue integral since has Lebesgue measure zero, illustrating that even the choice of integration theory is a hypothesis worth naming.)
Scope, edge cases & common traps
| Situation | What happens | Why |
|---|---|---|
| continuous and -periodic | Coefficients always well-defined; well-defined for every | Continuous Riemann integrable on compact intervals |
| bounded with finitely many jump discontinuities per period | Coefficients well-defined | Bounded + finitely many discontinuities Riemann integrable |
| unbounded (even if "integrable" in an improper sense) | Formulas for may not make sense as Riemann integrals | Riemann integration requires boundedness on a compact interval |
| bounded but wildly discontinuous (e.g. Dirichlet-type) | Coefficients may fail to exist | Riemann integrability can fail even for bounded functions |
| Asking whether pointwise | Not addressed by this theorem | Convergence requires separate hypotheses (e.g. piecewise smoothness) — a distinct theorem |
| Using as if automatic | A common error | Orthogonality only shows is the best degree- approximation in mean square, not that the limit recovers pointwise or uniformly |
The mathematician behind it
Origins · 1 minJean-Baptiste Joseph Fourier and how this was discovered
Fourier was a French mathematician and physicist whose 1822 treatise Théorie analytique de la chaleur ("The Analytic Theory of Heat") introduced the claim that arbitrary periodic functions could be represented as infinite sums of sines and cosines, in order to solve the heat equation on physical domains. His argument was not rigorous by modern standards — the notion of function, the concept of convergence, and the theory of the integral were all still being developed — but the mathematical content it forced into existence (orthogonality, convergence of infinite series of functions, the need for a precise theory of integration) reshaped 19th-century analysis. Fourier also served as a scientific advisor on Napoleon's Egyptian expedition and later as prefect of the Isère department, only returning fully to mathematical physics work in his final years.
Why do we require to be Riemann integrable rather than continuous?
Continuity is sufficient but far stronger than necessary. Many functions of genuine interest — square waves, sawtooth signals, piecewise-defined physical models — have jump discontinuities, yet remain perfectly well-behaved for integration purposes: bounded with finitely many discontinuities on any bounded interval. The Riemann integrability criterion (a bounded function is Riemann integrable iff its set of discontinuities has measure zero, or more simply, iff it has at most finitely many discontinuities on a compact interval in the elementary case) is exactly the right level of generality to make the coefficient integrals and well-defined, without requiring the unnecessary luxury of continuity. This is why the foundational definition uses Riemann integrability rather than continuity as its hypothesis.
Does this article prove that Fourier series converge to the original function?
No, and deliberately so. This article establishes only the foundational layer: that the Fourier coefficients are well-defined real numbers whenever is Riemann integrable and periodic, that the trigonometric system is orthogonal, and that the partial sum is the best mean-square approximation to among trigonometric polynomials of degree at most . Whether actually converges to — pointwise, uniformly, or in mean square — is a separate and considerably subtler question, requiring additional hypotheses (such as piecewise continuous differentiability for pointwise convergence, or general density/completeness arguments for mean-square convergence). That material belongs to the theory of convergence of Fourier series.
What is the geometric meaning of the orthogonality relations?
They say that distinct members of the trigonometric system have zero "inner product" with respect to the pairing , exactly as orthogonal vectors in Euclidean space have zero dot product. This makes the trigonometric system behave like an orthogonal basis for an infinite-dimensional inner product space of periodic functions. The Fourier coefficient formulas are then the exact analogue of computing components of a vector along orthogonal axes: divide the inner product with a basis vector by that basis vector's squared length. This geometric viewpoint is what makes the minimization theorem (best mean-square approximation) essentially a Pythagorean-theorem argument in disguise.
Are the coefficients unique given ?
Yes, trivially, because they are defined by an explicit formula (a specific Riemann integral) applied to ; there is no ambiguity or choice involved. Uniqueness of representation is a different and subtler question: could two different Riemann-integrable functions (differing on a "small" set) have exactly the same Fourier coefficients? The answer is yes in general for arbitrary Riemann-integrable functions differing on a measure-zero set (e.g. at finitely many points), since altering finitely many values does not change any of the defining integrals. However, if and are both continuous and have identical Fourier coefficients, then everywhere — this stronger uniqueness statement follows from later convergence theorems, not from the coefficient definitions alone.
What role does linearity of the integral play in defining Fourier coefficients?
Linearity of the Riemann integral is used constantly and silently throughout: it justifies splitting into a sum of simpler integrals against and in the proof of the minimization theorem, it justifies computing and term-by-term for piecewise-defined , and it underlies the very fact that the map sending to its sequence of Fourier coefficients is a linear map. Without linearity of integration — which itself rests on the additive and scaling properties proved when the Riemann integral is first constructed — none of the coefficient extraction machinery would be algebraically well-behaved.
How does this connect to Bessel's Inequality mentioned as a "leads to" topic?
The minimization theorem proved here shows once the completed-square computation in the proof is examined closely: since the "error" term after minimizing is , and this quantity must remain non-negative (it is a sum of squares, the minimum mean-square error), rearranging gives for every . Letting yields exactly Bessel's Inequality, showing the foundational orthogonality result proved in this article is the direct algebraic ancestor of that later theorem.