NivaarExam PrepOfficial exam papers ↗

04-BS-5 · May 2015

Question 2 of 7: Fourier series of $F(x)=x^2$ and the Basel-sum identity

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Exams — May 2015 — 04-BS-5 Advanced Mathematics. Three-hour, closed-book exam (one double-sided 8.5"×11" aid sheet permitted; approved Casio/Sharp calculator allowed). Format: seven questions of equal value (20 marks each, with internal splits as marked); any five constitute a complete paper and only the first five appearing in the answer book are marked. All seven are solved below for completeness.

Reference texts: Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — power-series solutions of ODEs about an ordinary point (Ch. 5), Fourier series and the Fourier transform (Ch. 11), least-squares curve fitting and Cramer’s rule (Ch. 7, 19.7), Romberg integration, bisection and Halley’s (second-order Newton) iteration (Ch. 19), Cholesky factorization of a symmetric positive-definite matrix (Ch. 20.4).

Question 2: Fourier series of $F(x)=x^2$ and the Basel-sum identity (a) 15 marks; (b) 5 marks

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. $F(x)=x^2$ on $0\lt x\lt2$, extended periodically with period $p=2$ (half-period $L=1$).

Find. (a) The Fourier series of $F$. (b) Use it to prove $\pi^2/6=\sum1/n^2$.

Approach. Compute $a_0,a_n,b_n$ by direct integration over one period, then evaluate the series at the jump point $x=0$, where it converges to the average of the left- and right-hand limits.

  1. Constant term. $$a_0=\dfrac1L\int_0^{2}x^2\,dx=\int_0^2x^2\,dx=\dfrac83\ \Rightarrow\ \dfrac{a_0}{2}=\dfrac43$$
  2. Cosine coefficients (integrate by parts twice). $$a_n=\int_0^2x^2\cos(n\pi x)\,dx=\dfrac{4}{n^2\pi^2}\qquad(n=1,2,3,\dots)$$
  3. Sine coefficients. $$b_n=\int_0^2x^2\sin(n\pi x)\,dx=-\dfrac{4}{n\pi}\qquad(n=1,2,3,\dots)$$ Assembling (a): $$\boxed{F(x)\sim\dfrac43+\sum_{n=1}^{\infty}\left[\dfrac{4}{n^2\pi^2}\cos(n\pi x)-\dfrac{4}{n\pi}\sin(n\pi x)\right]}$$
  4. Evaluate at the jump $x=0$ for part (b). The periodic extension has $F(0^+)=0$ and, by periodicity, $F(2^-)=4$; at a jump discontinuity the Fourier series converges to the midpoint $\tfrac12(0+4)=2$. Substituting $x=0$ into the series ($\cos0=1,\ \sin0=0$): $$2=\dfrac43+\sum_{n=1}^{\infty}\dfrac{4}{n^2\pi^2}\ \Longrightarrow\ \sum_{n=1}^{\infty}\dfrac1{n^2}=\left(2-\dfrac43\right)\dfrac{\pi^2}{4}=\dfrac23\cdot\dfrac{\pi^2}{4}$$ $$\boxed{\dfrac{\pi^2}{6}=\sum_{n=1}^{\infty}\dfrac1{n^2}}$$ (both sides $=1.644934\ldots$ to 4 decimal places).
Final results — Question 2
QuantityValue
$a_0/2$$4/3$
$a_n$$4/(n^2\pi^2)$
$b_n$$-4/(n\pi)$
Identity proved$\pi^2/6=\sum_{n=1}^{\infty}1/n^2$