All articles
Mathematics
series

Mastering Fourier Series and Periodic Functions in University Maths

Unlock the power of Fourier series to decompose complex periodic functions into simple harmonics. This guide covers definitions, coefficient calculation, and worked examples.

Math Instructor AI 22 September 2026 8 min read

Mastering Fourier Series and Periodic Functions

In university mathematics, the ability to decompose complex signals into simpler components is a fundamental skill. Fourier series provide the mathematical framework to represent any periodic function as an infinite sum of sine and cosine waves. Whether you are studying engineering, physics, or pure mathematics, mastering this topic is essential for your exams and future research.

This article will guide you through the definition of periodic functions, the derivation of Fourier coefficients, and the practical application of these series. By the end, you will understand how to transform a non-sinusoidal wave into its constituent harmonics, a process known as Fourier analysis.

Understanding Periodic Functions

A function $f(x)$ is periodic if it repeats its values in regular intervals. Formally, $f(x)$ is periodic with period $T$ if $f(x + T) = f(x)$ for all $x$ [7, 8]. The smallest positive value of $T$ is called the fundamental period. In the context of Fourier series, we often work with functions defined on the interval $[-\pi, \pi]$, which corresponds to a period of $2\pi$ [4, 5].

The Fourier Series Representation

Any well-behaved periodic function $f(x)$ with period $2\pi$ can be expressed as a sum of sines and cosines [4, 5]:

$$f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty} (a_n \cos(nx) + b_n \sin(nx))$$

Here, the terms $\cos(nx)$ and $\sin(nx)$ represent the harmonics of the function [4]. The coefficients $a_n$ and $b_n$ determine the contribution of each harmonic to the overall shape of the function [4, 6].

Calculating Fourier Coefficients

To find the coefficients, we use the orthogonality properties of sine and cosine functions over the interval $[-\pi, \pi]$ [1]. The formulas are [1, 5]:

$$a_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \cos(nx) dx, \quad n \ge 0$$ $$b_n = \frac{1}{\pi} \int_{-\pi}^{\pi} f(x) \sin(nx) dx, \quad n \ge 1$$

Note that $a_0$ is twice the average value of the function over one period [1, 4].

Worked Example 1: The Sawtooth Wave

Consider the function $f(x) = x$ for $-\pi < x < \pi$, extended periodically [3].

  1. Check Symmetry: Since $f(x) = x$ is an odd function, $a_n = 0$ for all $n$ [2, 3].
  2. Calculate $b_n$: $$b_n = \frac{2}{\pi} \int_{0}^{\pi} x \sin(nx) dx$$ Using integration by parts, $\int x \sin(nx) dx = -\frac{x \cos(nx)}{n} + \frac{\sin(nx)}{n^2}$ [3]. Evaluating from $0$ to $\pi$: $$b_n = \frac{2}{\pi} \left[ -\frac{\pi \cos(n\pi)}{n} \right] = -\frac{2}{n} (-1)^n = \frac{2(-1)^{n+1}}{n}$$
  3. Result: $f(x) = \sum_{n=1}^{\infty} \frac{2(-1)^{n+1}}{n} \sin(nx)$ [3].

Worked Example 2: Even Function Symmetry

Consider $f(x) = |x|$ for $-\pi < x < \pi$ [2].

  1. Check Symmetry: $f(x)$ is even, so $b_n = 0$ [2].
  2. Calculate $a_0$: $$a_0 = \frac{2}{\pi} \int_{0}^{\pi} x dx = \frac{2}{\pi} \left[ \frac{x^2}{2} \right]_0^{\pi} = \pi$$
  3. Calculate $a_n$: $$a_n = \frac{2}{\pi} \int_{0}^{\pi} x \cos(nx) dx = \frac{2}{\pi} \left[ \frac{x \sin(nx)}{n} + \frac{\cos(nx)}{n^2} \right]_0^{\pi} = \frac{2}{\pi n^2} ((-1)^n - 1)$$
  4. Result: $f(x) = \frac{\pi}{2} + \sum_{n=1}^{\infty} \frac{2((-1)^n - 1)}{\pi n^2} \cos(nx)$ [2].

Common Mistakes

  • Ignoring Symmetry: Failing to identify if a function is even or odd can lead to unnecessary integration. Remember: even functions have $b_n = 0$, and odd functions have $a_n = 0$ [2, 3].
  • Period Mismatch: Always ensure your integration limits match the period of the function. If the period is $2L$ instead of $2\pi$, the coefficients must be scaled by $1/L$ [2, 4].
  • Coefficient $a_0$: Forgetting the $1/2$ factor in the constant term $\frac{a_0}{2}$ is a frequent error that leads to incorrect DC offsets [4, 5].

FAQ

  • What are Dirichlet conditions? These are sufficient conditions (periodicity, single-valuedness, and finite discontinuities) that guarantee the Fourier series converges to the function [9].
  • Why use harmonics? Harmonics allow us to break down complex waveforms into simple, manageable sine and cosine components, which is vital for signal processing.
  • Can any function be represented? Most physically relevant functions can, provided they satisfy the Dirichlet conditions [9].

Conclusion

Fourier series are a cornerstone of mathematical analysis, bridging the gap between time-domain signals and frequency-domain components. By practising the calculation of coefficients and identifying function symmetries, you will be well-prepared for your examinations. For a deeper, visual understanding, visit MathInstructor AI to generate a free animated lesson on this topic.

Topics

Fourier series
periodic function
university maths
series
harmonics
calculus
integration
trigonometry
signal analysis

Want this explained out loud?

Turn any question into a narrated, animated lesson in seconds.

Try the Studio free