Fourier Series Expansions
Learning objectives
- Write the Fourier series of a -periodic function
- Compute and via integral formulas
- Use orthogonality of to derive the coefficient formulas
- Exploit even/odd symmetry to predict which coefficients vanish
If every reasonable -periodic function is a sum of sines and cosines, how do you find the coefficients? The answer is one of the most elegant constructions in mathematics: the trigonometric system is orthogonal in the integral inner product, so each coefficient is recovered by a single integration. The Fourier-coefficient formula is just the inner product of with the basis function, divided by the basis function's norm. Once you internalize that one idea, every special-symmetry rule (odd functions have no cosines, even functions have no sines) becomes obvious.
The Fourier series
Let be a -periodic function on [-\pi, \pi]. Its Fourier series is the formal sum
where the Fourier coefficients are computed by:
The factor of comes from the inner-product norm, and the constant term gets a factor of for tidiness. The symbol (instead of ) is a reminder that convergence of the right side to is a separate question, taken up in section 13.3.
Why the formula works: orthogonality
Equip the space of square-integrable functions on [-\pi, \pi] with the inner product . The system is orthogonal: any two distinct basis functions integrate to zero against each other. The product-to-sum identities give
\displaystyle\int_{-\pi}^{\pi} \cos(mx) \cos(nx) \, dx = \begin{cases} 0, & m \neq n \\ \pi, & m = n \geq 1 \\ 2\pi, & m = n = 0 \end{cases}
and analogous formulas for sine-sine and sine-cosine products. To find , multiply the Fourier series by and integrate term by term: all terms vanish except the -th cosine term, which contributes . Solving gives the formula .
The series summer lets you stack partial sums of a Fourier series. Try the square wave on [-\pi, \pi], the first few odd harmonics with coefficients already give a recognisable square shape. The amplitude of each new term decays as , so adding terms rapidly diminishes the visible error away from the jumps.
Even/odd shortcuts
The integrand is even if is even (even times even). Its integral over [-\pi, \pi] equals twice the integral over [0, \pi], you save half the work. The integrand is odd if is even (even times odd), so it integrates to zero: every for an even . Symmetrically, odd has every and only sine terms appear. Always check the symmetry of before computing any integral.
- MP3, AAC, Opus audio: Modern audio codecs apply a windowed Fourier-like transform (modified DCT) to short frames of a recording, quantise the coefficients aggressively, and store only the perceptually significant ones. The "frequency-domain compression" the standards talk about is exactly Fourier coefficient quantisation.
- JPEG image compression: JPEG splits an image into 8x8 pixel blocks and computes a 2D discrete cosine transform of each block. Cosine basis functions are chosen because images tend to be smooth (the highest-frequency cosine coefficient is usually tiny), and the few large coefficients suffice to reconstruct the block.
- Heat equation solutions: When you separate variables on the heat equation on [0, L] with zero boundary, the solution is a Fourier sine series in with time-dependent coefficients. Section 14.4 makes this explicit.
- Music synthesis: Additive synthesisers build a tone by summing sinusoids at integer multiples of the fundamental, each with its own amplitude envelope. This is literally constructing a sound from its Fourier coefficients in real time.
Pause and think: Suppose you compute for every . Does that force ? (Hint: think about what happens if is odd. Cosine coefficients vanish, but the function is non-zero.)
Try it
- Compute for on [-\pi, \pi]. Use the formula and the symmetry of .
- Before integrating: which Fourier coefficients of on [-\pi, \pi] vanish, and why?
- Verify directly: . (Use the product-to-sum identity \sin a \cos b = \tfrac{1}{2}[\sin(a+b) + \sin(a-b)].)
- On the series-summer widget, build for . Each partial sum is the Fourier series of the square wave truncated at terms. Sketch how the graph evolves.
- Find the Fourier coefficients of the constant function on [-\pi, \pi].
A trap to watch for
The constant term (not ) is the average value of over [-\pi, \pi]. Students routinely write the Fourier series as , dropping the factor of . That extra factor exists because the cosine of is the constant , and the inner-product norm of is rather than , without the , the formula for would double-count the constant. The convention is annoying but universal; always include the .
What you now know
You can compute Fourier coefficients of a -periodic function, use even/odd symmetry to predict which integrals vanish, and explain why the formulas come from inner-product projection onto an orthogonal basis. The next section asks the convergence question: does the Fourier series actually reconstruct , and in what sense?
Mark section complete →
References
- Garrity, T. (2002). All the Mathematics You Missed: But Need to Know for Graduate School. Cambridge University Press, ch. 13.
- Stein, E. M., Shakarchi, R. (2003). Fourier Analysis: An Introduction. Princeton University Press, ch. 2.
- Folland, G. B. (1992). Fourier Analysis and Its Applications. Wadsworth & Brooks/Cole, ch. 2.
- Bracewell, R. N. (1999). The Fourier Transform and Its Applications (3rd ed.). McGraw-Hill, ch. 2.
- Korner, T. W. (1989). Fourier Analysis. Cambridge University Press, ch. 2 (orthogonality and Fourier coefficients).