Skip to main content

Fourier series: x − x²

Short answer

The period-2 Fourier series for f(x)=x−x² on (−1,1) is f(x)=−1/3 + Σ_{n=1}^∞ [4(−1)^(n+1)/(n²π²) cos nπx + 2(−1)^(n+1)/(nπ) sin nπx]. Coefficients: a₀=−2/3, aₙ=−4(−1)ⁿ/(n²π²), bₙ=2(−1)ⁿ⁺¹/(nπ).

Obtain the Fourier series for f(x) = x − x², where −1 < x < 1, as a Fourier series of period 2.

A function of period 2 on (−1, 1) has the series f(x) = a₀/2 + Σ (aₙ cos nπx + bₙ sin nπx), where a₀ = ∫₋₁¹ f dx, aₙ = ∫₋₁¹ f cos nπx dx, bₙ = ∫₋₁¹ f sin nπx dx (half-period l = 1).

Coefficients for f(x) = x − x² (x is odd, x² is even):

a₀ = ∫₋₁¹ (x − x²) dx = −2∫₀¹ x² dx = −2/3

aₙ = −∫₋₁¹ x² cos nπx dx = −2∫₀¹ x² cos nπx dx
   = −2[ x² sin nπx/(nπ) + 2x cos nπx/(nπ)² − 2 sin nπx/(nπ)³ ]₀¹
   = −2·2(−1)ⁿ/(n²π²) = −4(−1)ⁿ/(n²π²)

bₙ = ∫₋₁¹ x sin nπx dx = 2∫₀¹ x sin nπx dx
   = 2[ −x cos nπx/(nπ) + sin nπx/(nπ)² ]₀¹
   = −2(−1)ⁿ/(nπ) = 2(−1)ⁿ⁺¹/(nπ)

Fourier series

x − x² = −1/3 + Σ (n=1 to ∞) [ 4(−1)ⁿ⁺¹ cos nπx / (n²π²) + 2(−1)ⁿ⁺¹ sin nπx / (nπ) ]

= −1/3 + (4/π²)(cos πx − cos 2πx/2² + cos 3πx/3² − …) + (2/π)(sin πx − sin 2πx/2 + sin 3πx/3 − …)

At x = 0 the function is continuous with f(0) = 0, which gives 1/1² − 1/2² + 1/3² − … = π²/12, a useful check.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Mathematics III chapter 4 questions →