Dirichlet’s conditions and Euler’s formulas, the even/odd and half-range machinery, change of interval, Parseval’s identity, and the tabulation method of harmonic analysis — with every expansion worked through.
A function f(x) is periodic with period T if f(x + T) = f(x) for all x; sin x and cos x are periodic with period 2π, tan x with period π. The central observation of this unit is that sums of sines and cosines whose frequencies are integer multiples of a fundamental are also periodic, and conversely that an enormous class of periodic functions — including ones with jumps, like square waves and sawtooths — can be represented as such sums. A Fourier series decomposes a periodic function into these sinusoidal components:
The terms cos nx and sin nx are the harmonics: n = 1 is the fundamental, n = 2 the second harmonic, and so on. The coefficients an, bn measure how much of each harmonic the function contains, and are computed by the Euler formulas of Section 3. Unlike Taylor series, which need differentiability and only work locally, Fourier series handle discontinuous periodic data globally — which is precisely what boundary value problems in Unit 3 require.
Fourier’s representation is not valid for arbitrary functions; it is guaranteed by Dirichlet’s conditions. A function f(x) can be expanded in a convergent Fourier series on an interval of length 2π (or 2l in general) if, in any one period:
When these hold, the Fourier series converges to f(x) at every point of continuity, and to the average of the left and right limits, [f(x+) + f(x−)]/2, at each point of discontinuity. This is a statement about convergence, not just formal manipulation.
The coefficients of the series on the standard interval (−π, π) come from multiplying the series by cos nx or sin nx and integrating over a period, using the orthogonality relations ∫−ππ cos mx cos nx dx = 0 (m ≠ n), and likewise for the sine products and mixed products. All cross terms vanish, leaving exactly one survivor:
The same integrations justify the expansion once Dirichlet’s conditions hold: uniqueness means the coefficients found by Euler’s formulas are the only possible ones, so a function and its Fourier coefficients determine each other. In practice, evaluation reduces to repeated integration by parts — keep sin nx, cos nx evaluated at 0 and π handy: sin nπ = 0 and cos nπ = (−1)n.
Most data are not naturally periodic with period 2π. For a function of period 2l, defined on (c, c + 2l), substitute x′ = πx/l into the standard series: the harmonics become cos(nπx/l) and sin(nπx/l), and the Euler formulas rescale by 1/l:
The integration limits may be any window of length 2l — (0, 2l), (−l, l), (c, c + 2l) — because the integrand is periodic with period 2l. A useful consequence: if f has period 2l and we need its Fourier coefficients, we may integrate over the most convenient window, even one where the original formula for f does not literally apply but its periodic extension does.
Exploiting symmetry halves the work. An even function satisfies f(−x) = f(x) (graph symmetric about the y-axis: x2, cos x, |x|); an odd function satisfies f(−x) = −f(x) (graph symmetric about the origin: x, x3, sin x). On a symmetric interval (−l, l):
Products follow the parity rules: even × even and odd × odd are even; even × odd is odd. So an even f makes f(x)sin(nπx/l) odd and kills every bn; an odd f makes f(x)cos(nπx/l) odd and kills every an. Sums of cosines alone form an even (cosine) series; sums of sines alone form an odd (sine) series. This observation is the engine of the half-range expansions of the next two sections.
A function specified only on (0, l) — a “half range” — has no symmetry yet, but we are free to imagine extensions to (−l, 0). Extending oddly (f(−x) = −f(x)) produces a series containing only sines; extending evenly produces only cosines. Both are legitimate Fourier series for the same half-range data; which one to use is decided by the boundary conditions of the problem (Unit 3: sine for fixed ends at zero temperature or displacement, cosine for insulated or free ends).
The even extension of f on (0, l) gives the cosine series, whose coefficients use only the cosine integral. Because the even extension is continuous at x = 0 whenever f(0) is finite, the cosine series always converges to f(0) at the left endpoint — a point worth remembering when endpoints matter.
When a function on (−π, π) is neither even nor odd, split it into its even part and its odd part: fe = [f(x) + f(−x)]/2 and fo = [f(x) − f(−x)]/2. The Fourier series of f is the sum of the cosine series of fe and the sine series of fo. For f(x) = x + x2 the split is visible on sight: x is odd, x2 is even, so the coefficients can be written down from the two half-range results already derived.
To expand f(x) on an interval of length 2l, map it to the standard interval by the substitution s = πx/l, expand g(s) = f(ls/π) in the standard series on any window of length 2π, and substitute back. The direct formulas are those of Section 4 with l in place of π. Two recurring special cases: the interval (0, 2l) with the full (not half-range) series, and intervals of arbitrary length c − l ≤ x ≤ c + l where the same rescaling applies around the centre c.
Parseval’s identity relates the energy of the function to the sum of squares of its Fourier coefficients. It is proved by squaring the series and integrating term by term (justified under Dirichlet’s conditions); all cross terms die by orthogonality, leaving the squares:
Dividing by the interval length gives the root mean square (rms) value of f over the period in terms of the coefficients — the Fourier-series analogue of expressing power as the sum of powers of the harmonics. Parseval’s identity is also a machine for summing series of the form ∑1/n2k.
When f is known only through tabulated values — experimental data sampled at equally spaced points over one period — the Euler integrals cannot be evaluated analytically. Harmonic analysis replaces each integral by a numerical quadrature over the sample points, yielding the coefficients of the first few harmonics directly from the table. For N equally spaced ordinates y0, y1, …, yN−1 over a period 2π (spacing h = 2π/N), the trapezoidal-rule replacements are an ≈ (1/π)(2π/N) ∑ yj cos(nxj) and similarly for bn, which for N = 6 gives the closed forms used below.
Three consequences of Dirichlet’s theorem do most of the work in exam questions. First, at a jump the series equals the midpoint value: for the sawtooth of Section 9, x = π − 2∑sin nx/n, both sides must be read as the average 0 at x = π, which is useless — but choosing an interior point such as x = π/2 turns the series into a numerical identity, as the checks in Sections 6 and 9 show. Second, substituting special values (0, π, π/2) converts a trigonometric series into a numerical one, giving the classic sums π2/6, π2/12, π/4. Third, Parseval’s identity supplies sums of reciprocal squares and rms values without any new integration.
Near a jump the partial sums overshoot the function by about 9% of the jump on each side (the Gibbs phenomenon) — the overshoot shrinks in width but not in height as more terms are added, a reminder that convergence at a jump is only to the midpoint. In applications, remember the practical hierarchy: symmetry first (even/odd saves half the integrals), half-range expansions for functions given only on (0, l), and the l-scaling of Section 4 for arbitrary periods. Every series in these notes was obtained by the same four-step loop: choose the right form, compute coefficients by Euler’s formulas, state the convergence interval, and deduce a numerical series at a well-chosen point.