Skip to main content

Fourier series: 2x − x²

Short answer

A function f is periodic with period T>0 if f(x+T)=f(x) for all x. Using shift u=x-1, the Fourier series on (0,2) with period 2 is: 2x − x² = 2/3 − (4/π²) Σ_{n=1}∞ (cos nπx)/n².

Define periodic function. Find the Fourier series of the function f(x) = 2x − x² in the interval (0, 2).

Periodic function

A function f(x) is periodic with period T > 0 if f(x + T) = f(x) for all x. The smallest such T is the (fundamental) period. Example: sin x has period 2π.

Fourier series of f(x) = 2x − x² on (0, 2)

The interval has length 2l = 2, so l = 1 and the period is 2:

f(x) = a₀/2 + Σ [ aₙ cos nπx + bₙ sin nπx ]
a₀ = ∫₀² f dx,  aₙ = ∫₀² f cos nπx dx,  bₙ = ∫₀² f sin nπx dx

Put x = 1 + u. Then f = 1 − u² for u in (−1, 1), an even function of u, and cos nπx = (−1)ⁿ cos nπu, sin nπx = (−1)ⁿ sin nπu.

a₀ = ∫_{−1}^{1} (1 − u²) du = 4/3
aₙ = (−1)ⁿ ∫_{−1}^{1} (1 − u²) cos nπu du
   = (−1)ⁿ [ 0 − 4(−1)ⁿ/(nπ)² ] = −4/(n²π²)
bₙ = (−1)ⁿ ∫_{−1}^{1} (1 − u²) sin nπu du = 0   (odd integrand)

(using ∫_{−1}^{1} u² cos nπu du = 4(−1)ⁿ/(nπ)².)

Answer:

2x − x² = 2/3 − (4/π²) Σ_{n=1}^∞ (cos nπx)/n²
        = 2/3 − (4/π²) [ cos πx + (cos 2πx)/4 + (cos 3πx)/9 + ... ],   0 < x < 2

(Check at x = 1: f = 1; the series gives 2/3 + (4/π²)(π²/12) = 1 ✓.)

✓ Answer checked by Claude Opus 5.5 (high effort)

All Mathematics III chapter 4 questions →