Skip to main content

Fourier series: x − x²

Short answer

f(x)=x-x^2 is neither even nor odd. a_0 = -2pi^2/3, a_n = 4(-1)^(n+1)/n^2, b_n = 2(-1)^(n+1)/n. The Fourier series is x-x^2 = -pi^2/3 + sum_{n=1}^infinity [4(-1)^(n+1)/n^2 cos(nx) + 2(-1)^(n+1)/n sin(nx)].

Find the Fourier series to represent f(x) = x − x² from −π to π.

f(x) = x − x² on (−π, π). Use ∫ x² cos nx dx and ∫ x sin nx dx over (−π, π), with cos nπ = (−1)ⁿ.

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 0; ∫{−π}^{π} x² cos nx dx = 4π(−1)ⁿ/n² and ∫{−π}^{π} x sin nx dx = 2π(−1)ⁿ⁺¹/n.)

Series

x − x² = −π²/3 + Σ_{n=1}^∞ [ 4(−1)ⁿ⁺¹/n² · cos nx + 2(−1)ⁿ⁺¹/n · sin nx ]
       = −π²/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 →