Skip to main content

Fourier series: x + x²

Short answer

The Fourier coefficients are a0 = 2π²/3, a_n = 4(-1)^n/n², b_n = 2(-1)^(n+1)/n. The series is x + x² = π²/3 + ∑_{n=1}^∞ [4(-1)^n cos(nx)/n² + 2(-1)^(n+1) sin(nx)/n].

Obtain the Fourier series of f(x) = x + x² in −π ≤ x ≤ π.

f(x) = x + x² on (−π, π). Split into the odd part x and the even part x².

Coefficients

a₀ = (1/π) ∫_{−π}^{π} (x + x²) dx = (1/π)(2π³/3) = 2π²/3
aₙ = (1/π) ∫ (x + x²) cos nx dx = (1/π) ∫ x² cos nx dx = 4(−1)ⁿ/n²
bₙ = (1/π) ∫ (x + x²) sin nx dx = (1/π) ∫ x sin nx dx = 2(−1)ⁿ⁺¹/n

(x cos nx and x² sin nx are odd, so they integrate to zero.)

Series

x + x² = π²/3 + Σ_{n=1}^∞ [ 4(−1)ⁿ cos nx / n² + 2(−1)ⁿ⁺¹ sin nx / n ]
       = π²/3 − 4cos x + cos 2x − (4/9)cos 3x + ...
         + 2 sin x − sin 2x + (2/3) sin 3x − ...

✓ Answer checked by Claude Opus 5.5 (high effort)

All Mathematics III chapter 4 questions →