Fourier Analysis: Introduction
Trigonometric functions and the superposition of waves (high-school level)
Overview
The introduction reviews the properties of the trigonometric functions that form the basis of Fourier analysis, and aims to give an intuitive understanding of the idea of representing a periodic function as a superposition of sinusoidal waves.
Learning goals
- Understand the basic properties of the trigonometric functions.
- Understand the concept of a periodic function.
- Understand the principle of superposition of waves.
- Understand the basic ideas of Fourier series.
- Be able to compute the Fourier expansion of simple functions.
Prerequisites
- Trigonometric ratios (properties of sin and cos).
- Differentiation and integration.
Highlights of this page
- What are we trying to do? — The goal of Fourier series
- The basic form of a Fourier series — Formulas and definitions
- Why does it matter? — Areas of application
Prologue: What is a Fourier series?
On this page, before studying each chapter of the main text, we develop an intuitive understanding of what a Fourier series is.
① What are we trying to do?
The aim of a Fourier series is to express a complicated function as a sum of simple $\sin$ and $\cos$ waves.
It is like thinking of a "C–E–G" chord as a combination of the notes "C", "E", and "G".
② Representing a periodic waveform as a sum of $\sin$ and $\cos$
Assume that the complicated waveform $f(x)$ has period $2\pi$.
$$f(x + 2\pi) = f(x)$$
When we hear "period $2\pi$", the high-school $\sin$ and $\cos$ come to mind.
Remarkably, (with a few exceptions) any complicated waveform can be expressed as a sum of $\sin$ and $\cos$ as follows.
$$f(x) = \dfrac{a_0}{2} + \sum_{n=1}^{\infty}\left\{ a_n \cos(nx) + b_n \sin(nx) \right\}$$
This is called the Fourier series expansion of $f(x)$, and the coefficients $a_n$ and $b_n$ are computed by the following definite integrals.
$$\begin{align*} a_0 &= \dfrac{1}{\pi} \int_{-\pi}^{\pi} f(x)\,dx \\ a_n &= \dfrac{1}{\pi} \int_{-\pi}^{\pi} f(x) \cos(nx)\,dx \\ b_n &= \dfrac{1}{\pi} \int_{-\pi}^{\pi} f(x) \sin(nx)\,dx \end{align*}$$
③ Why does it matter?
After entering university: It is an important subject taught in nearly every science and engineering department — physics, electrical engineering, mechanical engineering, information science, and so on. The Fourier series studied here serves as an important foundation for more general mathematical analysis and a wide range of applications.
④ Let us try: the Fourier series expansion of $f(x)=x$
Let us compute the Fourier series expansion of $f(x)=x$.
Since the integral of an odd function over $[-\pi, \pi]$ is $0$,
$$a_0 = \dfrac{1}{\pi} \int_{-\pi}^{\pi} x\,dx = 0.$$
That was easy.
The product $x \cos(nx)$ of the odd function $x$ and the even function $\cos(nx)$ is also an odd function, so its integral is $0$.
$$a_n = \dfrac{1}{\pi} \int_{-\pi}^{\pi} x \cos(nx)\,dx = 0.$$
That was easy too.
However, the product $x \sin(nx)$ of the odd functions $x$ and $\sin(nx)$ is an even function, so it does not vanish.
$$b_n\ =\ \dfrac{1}{\pi} \int_{-\pi}^{\pi} x \sin(nx)\,dx\ =\ ?$$
Applying the integration-by-parts formula taught in high school,
$$\int_a^b u(x)v'(x)\,dx = \left[ u(x)v(x) \right]_a^b - \int_a^b u'(x)v(x)\,dx,$$
with
$$\begin{align*} u(x) &= x, & v'(x) &= \sin(nx), \\ u'(x) &= 1, & v(x) &= -\dfrac{1}{n}\cos(nx), \end{align*}$$
we obtain the following.
\begin{equation} b_n = \frac{1}{\pi} \left[ -\frac{x}{n}\cos(nx) \right]_{-\pi}^{\pi} + \frac{1}{\pi n} \int_{-\pi}^{\pi} \cos(nx)\,dx \label{eq:bn_partial} \end{equation}
The first term of equation $\eqref{eq:bn_partial}$ becomes
$$\begin{align*} -\dfrac{1}{\cancel{\pi} n} \left[ \cancel{\pi} \cos(n\pi) - (-\cancel{\pi}) \cos(-n\pi) \right] &= -\dfrac{1}{n} \left[ \cos(n\pi) + \cos(-n\pi) \right] \\ &\quad \text{since } \cos(-n\pi) = \cos(n\pi), \\ &= -\dfrac{2\cos(n\pi)}{n} \\ &\quad \text{and since } \cos(n\pi) = (-1)^n, \\ &= \dfrac{2}{n}(-1)^{n+1}. \end{align*}$$
The second term of equation $\eqref{eq:bn_partial}$ is the integral of $\cos$ over one full period, so
$$ \dfrac{1}{\pi n} \int_{-\pi}^{\pi} \cos(nx)\,dx = 0. $$Therefore $b_n$ is
$$b_n = \dfrac{2}{n}(-1)^{n+1}.$$
Since $a_0 = a_n = 0$, the function $f(x) = x$ involves only $\sin(nx)$, and its Fourier series expansion is
$$ f(x) = 2\sum_{n=1}^{\infty} \dfrac{(-1)^{n+1}}{n} \sin(nx).$$
⑤ Partial sums and convergence
The sum of the first $N$ terms is called the $N$th partial sum. The partial sums for $N=1, 10, 100$ are shown below.
$$ f_N(x) = 2\sum_{n=1}^{N} \dfrac{(-1)^{n+1}}{n} \sin(nx)$$
A few things are worth noticing from the graph.
- As $N$ grows, the sum approaches the original function $f(x) = x$.
- Since it is a sum of $\sin$ terms, it is unavoidable that the sum equals $0$ at $x = \pm\pi$.
- Most visible in the $N=100$ curve, sharp overshoots ("horns") appear near $x = \pm\pi$, jutting up and down.
In particular, item 3 — discovered in 1898 — is known as the Gibbs phenomenon, and its discovery led to significant later developments in mathematics; that story is for another time.
⑥ Summary
- A Fourier series represents a periodic function as a sum of trigonometric functions.
- The coefficients can be computed mechanically by definite integrals.
- It is a foundational technique in physics, engineering, and information science.
Frequently Asked Questions
What does one study first when learning Fourier analysis?
One starts from the intuition of the superposition of waves (such as sound and light), then studies the connection between trigonometric functions and oscillations, the decomposition of simple periodic functions (for example, a square wave as a sum of odd-harmonic sine waves), and the concept of the discrete Fourier transform. The emphasis is on intuition and applications rather than mathematical rigour.
Why is Fourier analysis important?
The idea that any signal can be represented as a superposition of sinusoidal waves lies at the heart of modern science and technology: acoustics (timbre analysis, MP3 compression), communications (AM/FM modulation), image processing (JPEG, MRI), quantum mechanics (wave functions), and many more. It is also indispensable for solving PDEs such as the heat equation and the wave equation.
Who invented Fourier analysis?
The starting point is Joseph Fourier (1768–1830), who in his 1807 work on heat conduction claimed that an arbitrary function can be represented by a trigonometric series. The mathematical rigour was lacking at the time, but it was later made rigorous by Dirichlet, Riemann, Lebesgue, and others.