UNIHIVE

Study Hub UNIPORT MTH 440

MTH 440 · Partial Differential Equation

Fourier series

Periodic functions, Euler's formulas for the coefficients, odd and even functions, half-range series, and convergence.

Our notes

2 min read

The idea

A periodic function of period 2L can be written as a sum of sines and cosines:
f(x) = a₀/2 + Σ [aₙ cos(nπx/L) + bₙ sin(nπx/L)], with
aₙ = (1/L) ∫₋ₗᴸ f(x) cos(nπx/L) dx, bₙ = (1/L) ∫₋ₗᴸ f(x) sin(nπx/L) dx.
These come from the orthogonality of sines and cosines over a period.

Odd and even functions

  • Even f (f(−x) = f(x)): only cosines; aₙ = (2/L)∫₀ᴸ f cos(nπx/L) dx.
  • Odd f (f(−x) = −f(x)): only sines; bₙ = (2/L)∫₀ᴸ f sin(nπx/L) dx.

Worked example 1

f(x) = x on (−π, π), extended with period 2π. f is odd, L = π:
bₙ = (2/π) ∫₀^π x sin nx dx. Integrating by parts, ∫₀^π x sin nx dx = [−x cos nx / n]₀^π + (1/n)∫₀^π cos nx dx = −π cos(nπ)/n + 0 = π(−1)ⁿ⁺¹/n.
So bₙ = 2(−1)ⁿ⁺¹/n and x = 2[sin x − (sin 2x)/2 + (sin 3x)/3 − ...].
Putting x = π/2: π/2 = 2(1 − 1/3 + 1/5 − ...), which gives the famous result π/4 = 1 − 1/3 + 1/5 − ... (a good check).

Half-range series

A function given only on (0, L) can be extended as odd (giving a sine series) or even (giving a cosine series). Boundary-value problems decide which.
Worked example 2. f(x) = 1 on (0, L), sine series: bₙ = (2/L)∫₀ᴸ sin(nπx/L) dx = (2/nπ)(1 − cos nπ) = 4/(nπ) for odd n, 0 for even n. So 1 = (4/π)[sin(πx/L) + (1/3)sin(3πx/L) + ...] on (0, L).

Convergence (Dirichlet conditions)

If f is piecewise smooth on a period, its Fourier series converges to f(x) where f is continuous, and to the average of the left and right limits at a jump. Near a jump, partial sums overshoot by about 9% of the jump (the Gibbs phenomenon), however many terms are taken.

Parseval's identity

(1/L)∫₋ₗᴸ f² dx = a₀²/2 + Σ(aₙ² + bₙ²). Applied to f(x) = x on (−π, π): (1/π)(2π³/3) = Σ 4/n², so Σ 1/n² = π²/6.

Exams usually ask: find the Fourier series of a given function; use odd/even symmetry; find half-range sine or cosine series; state convergence at a discontinuity; use Parseval to sum a series.

Common mistake: forgetting the factor ½ on a₀. With aₙ defined as above, the constant term is a₀/2, which equals the mean value of f.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 440 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.