Course contentsShow
← Mathematics
Lesson 2459 of 3,12149. Partial Differential Equations (Intro)Free lesson

Computing Fourier Series for Simple Functions

Finding Fourier series representations for basic periodic functions like square waves and sawtooth waves.

Computing Fourier Series for Simple Functions

You'll learn: How to find explicit Fourier series representations for basic periodic functions like square waves and sawtooth waves using the coefficient formulas.

The Process in Plain English

Now that you know the Fourier coefficient formulas, it's time to apply them to real functions. The process is straightforward but requires careful integration:

  1. Identify your function and its period (usually 2π or 2L)
  2. Compute a₀ by integrating f(x) over one full period
  3. Compute aₙ by integrating f(x)cos(nx) over one period
  4. Compute bₙ by integrating f(x)sin(nx) over one period
  5. Assemble the series using these coefficients

Example: Square Wave

Consider a square wave that equals +1 on (-π, 0) and -1 on (0, π). When you compute:

  • a₀ = 0 (the average value is zero—equal amounts above and below the axis)
  • aₙ = 0 (the function has odd symmetry, so all cosine terms vanish)
  • bₙ = (4/nπ) for odd n, and 0 for even n

The resulting Fourier series is:

f(x) ≈ (4/π)[sin(x) + (1/3)sin(3x) + (1/5)sin(5x) + ...]

Example: Sawtooth Wave

A sawtooth f(x) = x on (-π, π) yields:

  • a₀ = 0 (again, odd symmetry)
  • aₙ = 0 (odd function × even function = odd, integrates to zero)
  • bₙ = (-1)ⁿ⁺¹(2/n)

This gives: f(x) ≈ 2[sin(x) - (1/2)sin(2x) + (1/3)sin(3x) - ...]

Key Takeaway: Computing Fourier series for simple periodic functions means systematically evaluating the coefficient integrals—symmetry properties often simplify the work dramatically, and the resulting series decomposes complex waveforms into pure sinusoidal components.