Mathwords logoMathwords

Fourier Analysis — Definition, Formula & Example

Fourier analysis is the study of how to break a function or signal into simple waves (sines and cosines) of different frequencies, and how to rebuild it from them. It lets you swap a hard question about a shape in time or space for an easier question about its frequencies.

Fourier analysis studies the representation of functions as superpositions of complex exponentials einxe^{inx} or eiωxe^{i\omega x}. For a 2π2\pi-periodic integrable function this is the Fourier series. Its coefficients are inner products with the orthogonal system {1,cos⁡nx,sin⁡nx}\{1, \cos nx, \sin nx\} on [−π,π][-\pi, \pi]. For functions on R\mathbb{R} the analogue is the Fourier transform f^(ω)=∫−∞∞f(x) e−iωx dx\hat f(\omega) = \int_{-\infty}^{\infty} f(x)\, e^{-i\omega x}\, dx. The field also asks when, and in what sense (pointwise, uniformly, or in L2L^2), these representations converge to ff.

Key Formula

f(x)∼a02+∑n=1∞(ancos⁡nx+bnsin⁡nx),an=1π∫−ππf(x)cos⁡nx dx,bn=1π∫−ππf(x)sin⁡nx dxf(x) \sim \frac{a_0}{2} + \sum_{n=1}^{\infty}\big(a_n \cos nx + b_n \sin nx\big), \quad a_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\cos nx\,dx, \quad b_n = \frac{1}{\pi}\int_{-\pi}^{\pi} f(x)\sin nx\,dx
Where:
  • f(x)f(x) = A function with period 2π, the one being decomposed
  • ana_n = Cosine coefficient: how much of cos(nx) the function contains (n = 0, 1, 2, ...)
  • bnb_n = Sine coefficient: how much of sin(nx) the function contains (n = 1, 2, 3, ...)
  • nn = Frequency index; the term oscillates n times per period
  • ∼\sim = Means 'has Fourier series'; equality holds only where the series converges to f

Worked Example

Problem: Find the Fourier series of f(x)=x2f(x) = x^2 on [−π,π][-\pi, \pi], extended with period 2π2\pi. Then evaluate the series at x=πx = \pi to find the exact value of ∑n=1∞1n2\sum_{n=1}^{\infty} \frac{1}{n^2}.
Step 1: Find the constant term. Since x2x^2 is even, every bnb_n is 0, because x2sin⁡nxx^2 \sin nx is odd and integrates to 0 over a symmetric interval.
a0=1π∫−ππx2 dx=1π⋅2π33=2π23,a02=π23a_0 = \frac{1}{\pi}\int_{-\pi}^{\pi} x^2\,dx = \frac{1}{\pi}\cdot\frac{2\pi^3}{3} = \frac{2\pi^2}{3}, \qquad \frac{a_0}{2} = \frac{\pi^2}{3}
Step 2: Integrate by parts twice to get the cosine coefficients. Use cos⁡(nπ)=(−1)n\cos(n\pi) = (-1)^n. For example, a1=−4a_1 = -4.
an=1π∫−ππx2cos⁡nx dx=4(−1)nn2⟹x2=π23+∑n=1∞4(−1)nn2cos⁡nxa_n = \frac{1}{\pi}\int_{-\pi}^{\pi} x^2 \cos nx\,dx = \frac{4(-1)^n}{n^2} \quad\Longrightarrow\quad x^2 = \frac{\pi^2}{3} + \sum_{n=1}^{\infty} \frac{4(-1)^n}{n^2}\cos nx
Step 3: The periodic extension of x2x^2 is continuous and piecewise smooth. So the series equals ff at every point, including x=πx = \pi. There, cos⁡nπ=(−1)n\cos n\pi = (-1)^n, and the two factors of (−1)n(-1)^n multiply to 1.
π2=π23+4∑n=1∞1n2⟹∑n=1∞1n2=14(π2−π23)=π26\pi^2 = \frac{\pi^2}{3} + 4\sum_{n=1}^{\infty}\frac{1}{n^2} \quad\Longrightarrow\quad \sum_{n=1}^{\infty}\frac{1}{n^2} = \frac{1}{4}\left(\pi^2 - \frac{\pi^2}{3}\right) = \frac{\pi^2}{6}
Answer: The Fourier series is x2=π23+∑n=1∞4(−1)nn2cos⁡nxx^2 = \frac{\pi^2}{3} + \sum_{n=1}^{\infty} \frac{4(-1)^n}{n^2}\cos nx on [−π,π][-\pi, \pi]. Evaluating it at x=πx = \pi gives ∑n=1∞1n2=π26\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}.

Why It Matters

In a differential equations or PDE course, Fourier series are the standard tool for solving the heat and wave equations on an interval. In engineering, the Fourier transform turns convolution into multiplication. That fact underlies filter design, MRI image reconstruction, and audio compression, which uses the discrete cosine transform, a close Fourier relative.

Common Mistakes

Mistake: Using a0a_0 itself as the constant term of the series instead of a0/2a_0/2.
Correction: The formula for ana_n gives a0a_0 equal to twice the average value of ff. With this convention, the constant term must be a0/2a_0/2. Some textbooks instead define a0=12π∫f dxa_0 = \frac{1}{2\pi}\int f\,dx and drop the 1/2. Check which convention your source uses before you combine its formulas.

Related Terms