Chapter 10 Exercises
Protter & Morrey, A First Course in Real Analysis (2nd ed.) §§10.1–10.3
How to use this file
- Textbook: Murray H. Protter & Charles B. Morrey, Jr., A First Course in Real Analysis, 2nd ed., Springer UTM, 1991.
- Range: all section PROBLEMS in Chapter 10 (§§10.1–10.3).
- Pages: printed pp. 268–269, 274–275, 283–284; PDF pp. 284–285, 290–291, 299–300 (body offset PDF = printed + 16).
- Principle: stems follow the scan; solutions are independent. Coefficients were recomputed. Odd-answer disagreements are recorded in the relevant solutions, not used to overwrite the calculation.
- Companion notes:
ch10-notes.qmd.
Numbering is §section.problem, matching the book.
Throughout, the Fourier coefficients on \([-\pi,\pi]\) are \[ a_n=\frac1\pi\int_{-\pi}^{\pi}f(t)\cos nt\,dt\quad(n\ge 0),\qquad b_n=\frac1\pi\int_{-\pi}^{\pi}f(t)\sin nt\,dt\quad(n\ge 1), \] and the series is written \[ f(x)\sim\frac{a_0}{2}+\sum_{n=1}^{\infty}(a_n\cos nx+b_n\sin nx). \] On \([-L,L]\) the frequencies \(n\pi x/L\) replace \(nx\), and the factor \(1/\pi\) is replaced by \(1/L\). Changing \(f\) at finitely many points does not change the coefficients. A piecewise continuous function is understood in the standardized sense \(f(x)=\frac12\bigl(f(x+)+f(x-)\bigr)\) when a sum is evaluated at a jump.
§10.1 Expansions of Periodic Functions
Printed pp. 268–269; PDF pp. 284–285. Problems 1–19.
Exercise §10.1.1
Fourier series of \(f=0\) on \(I_1=\{-\pi\le x<0\}\) and \(f=1\) on \(I_2=\{0\le x\le\pi\}\).
Then \(a_0=(1/\pi)\int_0^{\pi}1\,dt=1\), and for \(n\ge 1\) \[ a_n=\frac1\pi\int_0^{\pi}\cos nt\,dt=0,\qquad b_n=\frac1\pi\int_0^{\pi}\sin nt\,dt=\frac{1-(-1)^n}{n\pi}. \] Thus \(b_{2k}=0\) and \(b_{2k+1}=2/((2k+1)\pi)\), so \[ f(x)\sim\frac12+\frac2\pi\sum_{k=0}^{\infty}\frac{\sin(2k+1)x}{2k+1},\qquad -\pi\le x\le\pi \] (at \(x=0,\pm\pi\) the standardized value is \(1/2\)).
Exercise §10.1.2
Fourier series of \(f=0\) on \(I_1=\{-\pi\le x<\pi/2\}\) and \(f=1\) on \(I_2=\{\pi/2\le x\le\pi\}\).
\[ a_0=\frac1\pi\int_{\pi/2}^{\pi}dt=\frac12,\qquad a_n=\frac1\pi\int_{\pi/2}^{\pi}\cos nt\,dt=-\frac{\sin(n\pi/2)}{n\pi}, \] \[ b_n=\frac1\pi\int_{\pi/2}^{\pi}\sin nt\,dt=\frac{(-1)^{n+1}+\cos(n\pi/2)}{n\pi}. \] Hence \[ f(x)\sim\frac14+\sum_{n=1}^{\infty}\Biggl(-\frac{\sin(n\pi/2)}{n\pi}\cos nx+\frac{(-1)^{n+1}+\cos(n\pi/2)}{n\pi}\sin nx\Biggr). \] Equivalently, writing \(n=4k,4k+1,4k+2,4k+3\), \[ \begin{aligned} a_{4k}&=b_{4k}=0,\\ a_{4k+1}&=-\frac1{(4k+1)\pi},\quad b_{4k+1}=\frac1{(4k+1)\pi},\\ a_{4k+2}&=0,\quad b_{4k+2}=-\frac2{(4k+2)\pi},\\ a_{4k+3}&=\frac1{(4k+3)\pi},\quad b_{4k+3}=-\frac1{(4k+3)\pi}. \end{aligned} \]
Exercise §10.1.3
Fourier series of \(f(x)=x^2\) on \(I=\{-\pi\le x\le\pi\}\).
The integrand \(x^2\) is even, so \(b_n=0\) and \[ a_0=\frac2\pi\int_0^{\pi}x^2\,dx=\frac{2\pi^2}3. \] For \(n\ge 1\), two integrations by parts give \[ \int_0^{\pi}x^2\cos nx\,dx=\frac{2\pi(-1)^n}{n^2},\qquad a_n=\frac{4(-1)^n}{n^2}. \] Therefore \[ x^2\sim\frac{\pi^2}3+4\sum_{n=1}^{\infty}\frac{(-1)^n}{n^2}\cos nx,\qquad -\pi\le x\le\pi. \] (The series converges uniformly on \(\mathbb{R}^1\) after periodic extension, which is continuous.)
Exercise §10.1.4
Fourier series of \(f=0\) on \(I_1=\{-\pi\le x<0\}\) and \(f(x)=x\) on \(I_2=\{0\le x\le\pi\}\).
\[ a_0=\frac1\pi\int_0^{\pi}x\,dx=\frac\pi2. \] Integrating by parts, \[ \int_0^{\pi}x\cos nx\,dx=\frac{(-1)^n-1}{n^2},\qquad \int_0^{\pi}x\sin nx\,dx=\frac{\pi(-1)^{n+1}}{n}, \] so \[ a_n=\frac{(-1)^n-1}{n^2\pi},\qquad b_n=\frac{(-1)^{n+1}}{n}. \] Thus \(a_{2k}=0\), \(a_{2k+1}=-2/((2k+1)^2\pi)\), and \[ f(x)\sim\frac\pi4+\sum_{n=1}^{\infty}\Biggl(\frac{(-1)^n-1}{n^2\pi}\cos nx+\frac{(-1)^{n+1}}{n}\sin nx\Biggr). \]
Exercise §10.1.5
Fourier series of \(f(x)=\lvert\cos x\rvert\) on \(I=\{-\pi\le x\le\pi\}\).
The function is even and \(\pi\)-periodic, so \(b_n=0\) and only even cosine coefficients can survive. On \([0,\pi]\) one has \(\lvert\cos x\rvert=\cos x\) on \([0,\pi/2]\) and \(-\cos x\) on \([\pi/2,\pi]\), whence \[ a_0=\frac2\pi\int_0^{\pi}\lvert\cos x\rvert\,dx=\frac4\pi. \] For \(n\neq 1\), \[ a_n=\frac2\pi\Biggl(\int_0^{\pi/2}\cos x\cos nx\,dx-\int_{\pi/2}^{\pi}\cos x\cos nx\,dx\Biggr) =-\frac{4\cos(n\pi/2)}{\pi(n^2-1)}. \] The case \(n=1\) is \(a_1=(2/\pi)\bigl(\int_0^{\pi/2}\cos^2 x-\int_{\pi/2}^{\pi}\cos^2 x\bigr)=0\), which also matches the vanishing of \(\cos(n\pi/2)\) for odd \(n\). For \(n=2k\), \[ a_{2k}=\frac{4(-1)^{k+1}}{\pi(4k^2-1)}. \] Hence \[ \lvert\cos x\rvert\sim\frac2\pi+\frac4\pi\sum_{k=1}^{\infty}\frac{(-1)^{k+1}}{4k^2-1}\cos 2kx,\qquad -\pi\le x\le\pi. \]
Exercise §10.1.6
Fourier series of \(f(x)=x^3\) on \(I=\{-\pi\le x\le\pi\}\).
The function is odd, so \(a_n=0\). Three integrations by parts yield \[ \int_0^{\pi}x^3\sin nx\,dx=\pi(-1)^{n+1}\Bigl(\frac{\pi^2}n-\frac6{n^3}\Bigr), \] and therefore \[ b_n=\frac2\pi\int_0^{\pi}x^3\sin nx\,dx=2(-1)^{n+1}\frac{n^2\pi^2-6}{n^3}. \] \[ x^3\sim 2\sum_{n=1}^{\infty}(-1)^{n+1}\frac{n^2\pi^2-6}{n^3}\sin nx,\qquad -\pi<x<\pi. \] At \(x=\pm\pi\) the standardized periodic extension takes the value \(0\), which is also the sum of the sine series.
Exercise §10.1.7
Fourier series of \(f(x)=e^{2x}\) on \(I=\{-\pi\le x\le\pi\}\).
The standard primitives \[ \int e^{ax}\cos bx\,dx=\frac{e^{ax}(a\cos bx+b\sin bx)}{a^2+b^2},\qquad \int e^{ax}\sin bx\,dx=\frac{e^{ax}(a\sin bx-b\cos bx)}{a^2+b^2} \] with \(a=2\), \(b=n\) give, after evaluating from \(-\pi\) to \(\pi\), \[ a_n=\frac{2(-1)^n\bigl(e^{2\pi}-e^{-2\pi}\bigr)}{\pi(n^2+4)}\quad(n\ge 0),\qquad b_n=\frac{n(-1)^{n+1}\bigl(e^{2\pi}-e^{-2\pi}\bigr)}{\pi(n^2+4)}. \] (The formula for \(a_n\) at \(n=0\) reduces to \(a_0=(e^{2\pi}-e^{-2\pi})/(2\pi)\).) Therefore \[ e^{2x}\sim\frac{e^{2\pi}-e^{-2\pi}}{4\pi} +\frac{e^{2\pi}-e^{-2\pi}}{\pi}\sum_{n=1}^{\infty}\frac{(-1)^n}{n^2+4}\bigl(2\cos nx-n\sin nx\bigr), \] on \(-\pi<x<\pi\) (at \(\pm\pi\) the series sums to \(\cosh 2\pi\)).
Exercise §10.1.8
Fourier series of \(f=0\) on \(I_1=\{-\pi\le x<0\}\) and \(f(x)=\sin x\) on \(I_2=\{0\le x\le\pi\}\).
\[ a_0=\frac1\pi\int_0^{\pi}\sin x\,dx=\frac2\pi. \] For \(n\neq 1\), \[ a_n=\frac1\pi\int_0^{\pi}\sin x\cos nx\,dx=\frac{1-(-1)^{n+1}}{\pi(1-n^2)}, \] so \(a_n=0\) if \(n\) is odd and \(a_n=-2/(\pi(n^2-1))\) if \(n\) is even. Directly, \(a_1=(1/\pi)\int_0^{\pi}\sin x\cos x\,dx=0\). Next, \[ b_n=\frac1\pi\int_0^{\pi}\sin x\sin nx\,dx \] vanishes for \(n\neq 1\) by orthogonality of \(\{\sin nx\}\) on \([0,\pi]\), while \(b_1=(1/\pi)\int_0^{\pi}\sin^2 x\,dx=1/2\). Hence \[ f(x)\sim\frac1\pi+\frac12\sin x-\frac2\pi\sum_{k=1}^{\infty}\frac{\cos 2kx}{4k^2-1}. \]
Exercise §10.1.9
Fourier series of \(f(x)=\sin^2 x\) on \(I=\{-\pi\le x\le\pi\}\).
The trigonometric identity \(\sin^2 x=(1-\cos 2x)/2\) is already a trigonometric polynomial, hence is the Fourier series: \[ \sin^2 x=\frac12-\frac12\cos 2x. \] (Alternatively: \(a_0=1\), \(a_2=-1/2\), and all other coefficients vanish by orthogonality.)
Exercise §10.1.10
Fourier series of \(f(x)=x\sin x\) on \(I=\{-\pi\le x\le\pi\}\).
The product of two odd functions is even, so \(b_n=0\). Then \[ a_0=\frac2\pi\int_0^{\pi}x\sin x\,dx=2, \] and \(a_1=(2/\pi)\int_0^{\pi}x\sin x\cos x\,dx=(1/\pi)\int_0^{\pi}x\sin 2x\,dx=-1/2\). For \(n\ge 2\), \[ a_n=\frac1\pi\int_0^{\pi}x\bigl(\sin(1+n)x+\sin(1-n)x\bigr)\,dx=\frac{2(-1)^{n+1}}{n^2-1}, \] using \(\int_0^{\pi}x\sin mx\,dx=-\pi(-1)^m/m\) for integers \(m\neq 0\). Therefore \[ x\sin x\sim 1-\frac12\cos x+\sum_{n=2}^{\infty}\frac{2(-1)^{n+1}}{n^2-1}\cos nx. \] Check at \(x=\pi\): the right-hand side is \(3/2-2\sum_{n=2}^{\infty}1/(n^2-1)=3/2-2\cdot(3/4)=0=f(\pi)\).
Exercise §10.1.11
Fourier series of \(f=-1\) on \(I_1=\{-\pi\le x\le 0\}\) and \(f=1\) on \(I_2=\{0<x\le\pi\}\).
The function is odd, so \(a_n=0\) and \[ b_n=\frac2\pi\int_0^{\pi}\sin nx\,dx=\frac{2\bigl(1-(-1)^n\bigr)}{n\pi}. \] Thus \(b_{2k}=0\), \(b_{2k+1}=4/((2k+1)\pi)\), and \[ f(x)\sim\frac4\pi\sum_{n=1}^{\infty}\frac{\sin(2n-1)x}{2n-1},\qquad -\pi\le x\le\pi \] (standardized value \(0\) at \(x=0,\pm\pi\)).
Exercise §10.1.12
Fourier series of \(f(x)=x^3\) on \(I=\{-\pi\le x\le\pi\}\).
The printed stem is identical to Exercise §10.1.6. The series is \[ x^3\sim 2\sum_{n=1}^{\infty}(-1)^{n+1}\frac{n^2\pi^2-6}{n^3}\sin nx,\qquad -\pi<x<\pi. \]
Exercise §10.1.13
Fourier series of \(f(x)=\cos^3 x\) on \(I=\{-\pi<x<\pi\}\).
The identity \(\cos 3x=4\cos^3 x-3\cos x\) rearranges to \[ \cos^3 x=\frac34\cos x+\frac14\cos 3x, \] which is the Fourier series (a trigonometric polynomial).
Exercise §10.1.14
Fourier series of \(f(x)=\sin^2 2x\) on \(I=\{-\pi<x<\pi\}\).
\[ \sin^2 2x=\frac{1-\cos 4x}2=\frac12-\frac12\cos 4x. \]
Exercise §10.1.15
\(f=\cos x\) on \(I_1=\{-\pi<x\le 0\}\) and \(f=-\cos x\) on \(I_2=\{0<x<\pi\}\). Sketch the periodic extension \(\tilde f\) on \(I_3=\{-3\pi\le x\le 3\pi\}\).
On \((-\pi,0]\) the graph is the right-hand half of a cosine arch, running from \(\tilde f(-\pi+)=-1\) up to \(\tilde f(0-)=1\). On \((0,\pi)\) it is \(-\cos x\), running from \(\tilde f(0+)=-1\) up to \(\tilde f(\pi-)=1\). After standardization, \[ \tilde f(0)=\tilde f(\pm\pi)=\tilde f(\pm 2\pi)=\tilde f(\pm 3\pi)=0 \] (jumps of size \(2\)). The \(2\pi\)-periodic extension repeats this pattern on \((-3\pi,-\pi)\) and on \((\pi,3\pi)\): each interval \(\bigl((2k-1)\pi,(2k+1)\pi\bigr)\) contains a downward jump at \(2k\pi\) from \(1\) to \(-1\), and an upward jump at each odd multiple of \(\pi\) from \(1\) (left) to \(-1\) (right). Between jumps the graph is a shifted copy of \(\pm\cos x\).
Exercise §10.1.16
\(f(x)=x+\sin x\) on \(I=\{-\pi<x\le\pi\}\). Sketch \(\tilde f\) on \(I_1=\{-3\pi\le x<3\pi\}\).
On \((-\pi,\pi)\) the function is odd, continuous, and strictly increasing (since \(f'(x)=1+\cos x\ge 0\)), with \(f(x)=x+\sin x\) a sawtooth plus one full sine oscillation. At the endpoints, \(f(\pi-)=\pi\) and \(f(-\pi+)=-\pi\), so the \(2\pi\)-periodic extension has a jump of size \(2\pi\) at every odd multiple of \(\pi\). After standardization, \(\tilde f\bigl((2k+1)\pi\bigr)=0\). On \((-3\pi,-\pi)\) and \((\pi,3\pi)\) the graph is the same cubic-looking wiggle, translated by \(\pm 2\pi\) in \(x\) (not in \(y\)).
Exercise §10.1.17
Verify \[ \int_{-\pi}^{\pi}\cos mx\cos nx\,dx=\int_{-\pi}^{\pi}\sin mx\sin nx\,dx = \begin{cases} \pi,& m=n,\\ 0,& m\neq n. \end{cases} \]
Assume \(m,n\) are integers. The product-to-sum identities \[ \cos mx\cos nx=\frac12\bigl(\cos(m+n)x+\cos(m-n)x\bigr),\qquad \sin mx\sin nx=\frac12\bigl(\cos(m-n)x-\cos(m+n)x\bigr) \] reduce both integrals to linear combinations of \(\int_{-\pi}^{\pi}\cos kx\,dx\), which equals \(2\pi\) if \(k=0\) and \(0\) otherwise.
If \(m\neq n\) then \(m+n\neq 0\) and \(m-n\neq 0\) cannot both fail for the cosine product in a way that survives: \(m-n\neq 0\), so both integrals vanish.
If \(m=n\neq 0\) then \(\int\cos(m-n)x=2\pi\) and \(\int\cos(2m x)=0\), so each product integral equals \(\pi\).
If \(m=n=0\) the cosine integral is \(\int_{-\pi}^{\pi}1\,dx=2\pi\), while the sine integral is \(0\). The printed formula therefore holds for integers \(m,n\) with \(m=n\) understood to mean a positive integer (as in the orthogonality relations used to derive (10.4)–(10.5)).
Exercise §10.1.18
- Fourier series of \(f=-\pi/4\) on \(I_1=\{-\pi\le x<0\}\) and \(f=\pi/4\) on \(I_2=\{0\le x\le\pi\}\).
- Assuming convergence to the standardized \(f\), deduce
- \(\pi/4=1-1/3+1/5-1/7+\cdots\);
- \(\pi/3=1+1/5-1/7-1/11+1/13+1/17-\cdots\);
- \((\sqrt{3}/6)\pi=1-1/5+1/7-1/11+1/13-1/17+\cdots\).
(a) This is \((\pi/4)\) times the square wave of Exercise §10.1.11, so \[ f(x)\sim\sum_{k=0}^{\infty}\frac{\sin(2k+1)x}{2k+1}. \]
(b) On \((0,\pi)\) the standardized sum is \(\pi/4\).
At \(x=\pi/2\), \[ \frac\pi4=\sum_{k=0}^{\infty}\frac{(-1)^k}{2k+1}=1-\frac13+\frac15-\frac17+\cdots. \]
At \(x=\pi/6\), \[ \frac\pi4=\sum_{k=0}^{\infty}\frac{\sin\bigl((2k+1)\pi/6\bigr)}{2k+1}. \] The sines cycle through \(1/2,1,1/2,-1/2,-1,-1/2\). Splitting off the terms whose index is a multiple of \(3\) (where \(\lvert\sin\rvert=1\)) gives \[ \frac\pi4=\frac12 S+\Bigl(\frac13-\frac19+\frac1{15}-\cdots\Bigr)=\frac12 S+\frac13\cdot\frac\pi4, \] where \(S\) is the series in (ii). Thus \(\pi/4-\pi/12=\frac12 S\), so \(S=\pi/3\).
At \(x=\pi/3\) the sines of odd multiples of \(\pi/3\) are \(\sqrt{3}/2\), \(0\), or \(-\sqrt{3}/2\), and the vanishing terms are exactly the multiples of \(3\). The remaining coefficients produce \[ \frac\pi4=\frac{\sqrt3}2\Bigl(1-\frac15+\frac17-\frac1{11}+\frac1{13}-\frac1{17}+\cdots\Bigr), \] hence the series equals \(\pi/(2\sqrt{3})=(\sqrt{3}/6)\pi\).
Exercise §10.1.19
- Fourier series of \(f(x)=x+x^2\) on \(I=\{-\pi\le x\le\pi\}\).
- Assuming convergence to the standardized \(f\), show \(\pi^2/6=\sum_{n=1}^{\infty}1/n^2\).
(a) Superpose Example 1 of §10.1 with Exercise §10.1.3: \[ x\sim 2\sum_{n=1}^{\infty}(-1)^{n-1}\frac{\sin nx}{n},\qquad x^2\sim\frac{\pi^2}3+4\sum_{n=1}^{\infty}(-1)^n\frac{\cos nx}{n^2}. \] Adding, \[ x+x^2\sim\frac{\pi^2}3+\sum_{n=1}^{\infty}\Biggl(\frac{4(-1)^n}{n^2}\cos nx+\frac{2(-1)^{n-1}}{n}\sin nx\Biggr). \]
The odd-answer key prints the constant term as \(\pi^3/3\). That is a typographical error for \(\pi^2/3\): \(a_0=(1/\pi)\int_{-\pi}^{\pi}(x+x^2)\,dx=(1/\pi)\int_{-\pi}^{\pi}x^2\,dx=2\pi^2/3\), so \(a_0/2=\pi^2/3\).
(b) At \(x=\pi\) the standardized value is \(\frac12\bigl((\pi+\pi^2)+(-\pi+\pi^2)\bigr)=\pi^2\). The sine terms vanish and \(\cos n\pi=(-1)^n\), so \[ \pi^2=\frac{\pi^2}3+4\sum_{n=1}^{\infty}\frac1{n^2}\implies\sum_{n=1}^{\infty}\frac1{n^2}=\frac{\pi^2}6. \]
§10.2 Sine Series and Cosine Series; Change of Interval
Printed pp. 274–275; PDF pp. 290–291. Problems 1–14.
The cosine (resp. sine) series of a function given on \([0,\pi]\) is the Fourier series of its even (resp. odd) extension to \([-\pi,\pi]\). The standardized extension asked for in Problems 1–8 is that \(2\pi\)-periodic extension.
Exercise §10.2.1
Cosine series of \(f=1\) on \(I_1=\{0\le x<\pi/2\}\) and \(f=0\) on \(I_2=\{\pi/2\le x\le\pi\}\); sketch the standardized extension.
\[ a_0=\frac2\pi\int_0^{\pi/2}1\,dx=1,\qquad a_n=\frac2\pi\int_0^{\pi/2}\cos nx\,dx=\frac{2\sin(n\pi/2)}{n\pi}. \] Thus \(a_{2k}=0\) and \(a_{2k+1}=2(-1)^k/((2k+1)\pi)\), so \[ f(x)\sim\frac12+\frac2\pi\sum_{k=0}^{\infty}(-1)^k\frac{\cos(2k+1)x}{2k+1},\qquad 0\le x\le\pi. \] The even extension equals \(1\) on \((-\pi/2,\pi/2)\) and \(0\) on \([\pi/2,\pi]\cup[-\pi,-\pi/2]\). After \(2\pi\)-periodization and standardization, \(\tilde f(\pm\pi/2+2k\pi)=1/2\), and \(\tilde f\) is continuous and equal to \(0\) at odd multiples of \(\pi\).
Exercise §10.2.2
Cosine series of \(f(x)=\sin x\) on \(I=\{0\le x\le\pi\}\); sketch the standardized extension.
The even extension is \(\lvert\sin x\rvert\) on \([-\pi,\pi]\), already continuous and \(2\pi\)-periodic after identifying the endpoints. Coefficients: \[ a_0=\frac2\pi\int_0^{\pi}\sin x\,dx=\frac4\pi,\qquad a_1=\frac2\pi\int_0^{\pi}\sin x\cos x\,dx=0, \] and for \(n\ge 2\), \[ a_n=\frac2\pi\int_0^{\pi}\sin x\cos nx\,dx=\frac{2\bigl(1-(-1)^{n+1}\bigr)}{\pi(1-n^2)}. \] So \(a_n=0\) for odd \(n\) and \(a_{2k}=-4/(\pi(4k^2-1))\). Therefore \[ \sin x\sim\frac2\pi-\frac4\pi\sum_{k=1}^{\infty}\frac{\cos 2kx}{4k^2-1},\qquad 0\le x\le\pi. \] The standardized extension is the \(2\pi\)-periodic train of positive sine arches \(\lvert\sin x\rvert\).
Exercise §10.2.3
Cosine series of \(f(x)=x\) on \(I=\{0\le x\le\pi\}\); sketch the standardized extension.
The even extension is \(\lvert x\rvert\) on \([-\pi,\pi]\), which is Example 2 of §10.1: \[ x\sim\frac\pi2-\frac4\pi\sum_{k=0}^{\infty}\frac{\cos(2k+1)x}{(2k+1)^2},\qquad 0\le x\le\pi. \] The standardized extension is the continuous \(2\pi\)-periodic triangular wave of Figure 10.3.
Exercise §10.2.4
Cosine series of \(f(x)=x^3\) on \(I=\{0\le x\le\pi\}\); sketch the standardized extension.
\[ a_0=\frac2\pi\int_0^{\pi}x^3\,dx=\frac{\pi^3}2. \] The antiderivative \[ \int x^3\cos nx\,dx=\frac{x^3\sin nx}n+\frac{3x^2\cos nx}{n^2}-\frac{6x\sin nx}{n^3}-\frac{6\cos nx}{n^4} \] evaluated on \([0,\pi]\) yields \[ a_n=\frac{12}{\pi n^4}+(-1)^n\Biggl(\frac{6\pi}{n^2}-\frac{12}{\pi n^4}\Biggr),\qquad n\ge 1. \] Hence \[ x^3\sim\frac{\pi^3}4+\sum_{n=1}^{\infty}\Biggl(\frac{12}{\pi n^4}+(-1)^n\Bigl(\frac{6\pi}{n^2}-\frac{12}{\pi n^4}\Bigr)\Biggr)\cos nx \] on \([0,\pi]\). The even extension equals \(\lvert x\rvert^3\) on \([-\pi,\pi]\); the \(2\pi\)-periodic standardized extension is even about each multiple of \(\pi\), with a corner in the first derivative at \(x=2k\pi\) (where the left and right third-power branches meet) and a jump in the first derivative at odd multiples of \(\pi\) (where \(\lvert x\rvert^3\) has slope \(\pm 3\pi^2\)).
Exercise §10.2.5
Sine series of \(f=1\) on \(I_1=\{0\le x<\pi/2\}\) and \(f=-1\) on \(I_2=\{\pi/2\le x\le\pi\}\); sketch the standardized extension.
\[ b_n=\frac2\pi\Biggl(\int_0^{\pi/2}\sin nx\,dx-\int_{\pi/2}^{\pi}\sin nx\,dx\Biggr) =\frac{2}{n\pi}\bigl(1+(-1)^n-2\cos(n\pi/2)\bigr). \] This vanishes unless \(n\equiv 2\pmod 4\). For \(n=4k+2\), \[ b_{4k+2}=\frac{8}{(4k+2)\pi}=\frac{4}{(2k+1)\pi}. \] Therefore \[ f(x)\sim\frac4\pi\sum_{k=0}^{\infty}\frac{\sin\bigl((4k+2)x\bigr)}{2k+1} =\frac8\pi\sum_{k=0}^{\infty}\frac{\sin\bigl(2(2k+1)x\bigr)}{2(2k+1)},\qquad 0<x<\pi. \] (The odd-answer key writes \(\frac8\pi[\sin 2x/2+\sin 6x/2+\sin 10x/2+\cdots]\), putting the same denominator \(2\) in every term. The correct denominators are \(2,6,10,\ldots\).)
The odd extension equals \(+1\) on \((0,\pi/2)\), \(-1\) on \((\pi/2,\pi)\), \(+1\) on \((-\pi,-\pi/2)\), and \(-1\) on \((-\pi/2,0)\). After periodization one has a square wave of period \(\pi\) (not \(2\pi\)), standardized to \(0\) at multiples of \(\pi/2\).
Exercise §10.2.6
Sine series of \(f(x)=\cos x\) on \(I=\{0\le x\le\pi\}\); sketch the standardized extension.
\[ b_n=\frac2\pi\int_0^{\pi}\cos x\sin nx\,dx. \] For \(n\neq 1\) this equals \(2n\bigl(1-(-1)^{n+1}\bigr)/(\pi(n^2-1))\), hence \(b_n=0\) for odd \(n\) and \(b_{2k}=8k/(\pi(4k^2-1))\). Directly \(b_1=0\). So \[ \cos x\sim\frac8\pi\sum_{k=1}^{\infty}\frac{k}{4k^2-1}\sin 2kx,\qquad 0<x<\pi. \] The odd extension equals \(\cos x\) on \((0,\pi)\) and \(-\cos x\) on \((-\pi,0)\), with jumps of size \(2\) at every multiple of \(\pi\); standardized values there are \(0\). This is the function of Exercise §10.1.15.
Exercise §10.2.7
Sine series of \(f(x)=x\) on \(I=\{0\le x\le\pi\}\); sketch the standardized extension.
The odd extension is \(f(x)=x\) on \((-\pi,\pi)\), Example 1 of §10.1: \[ x\sim 2\sum_{n=1}^{\infty}(-1)^{n-1}\frac{\sin nx}{n},\qquad 0\le x<\pi. \] The standardized extension is the \(2\pi\)-periodic sawtooth (Figure 10.2), with value \(0\) at odd multiples of \(\pi\).
Exercise §10.2.8
Sine series of \(f(x)=x^3\) on \(I=\{0\le x\le\pi\}\); sketch the standardized extension.
The odd extension is \(x^3\) on \((-\pi,\pi)\), so the series is that of Exercise §10.1.6: \[ x^3\sim 2\sum_{n=1}^{\infty}(-1)^{n+1}\frac{n^2\pi^2-6}{n^3}\sin nx,\qquad 0\le x<\pi. \] The standardized \(2\pi\)-periodic extension is an odd cubic sawtooth: on each \(\bigl((2k-1)\pi,(2k+1)\pi\bigr)\) it equals \((x-2k\pi)^3\), with jumps from \(\pi^3\) to \(-\pi^3\) at odd multiples of \(\pi\) (standardized value \(0\)).
Exercise §10.2.9
Fourier series of \(f=1\) on \(I_1=\{-2\le x<0\}\) and \(f=-1\) on \(I_2=\{0\le x\le 2\}\), on the interval of length \(2L=4\).
Here \(L=2\). The function is odd, so \(a_n=0\) and \[ b_n=\frac1L\int_{-L}^{L}f(x)\sin\frac{n\pi x}L\,dx =\frac2{2}\int_0^{2}(-1)\sin\frac{n\pi x}2\,dx =\frac{2\bigl((-1)^n-1\bigr)}{n\pi}. \] Thus \(b_{2k}=0\), \(b_{2k+1}=-4/((2k+1)\pi)\), and \[ f(x)\sim-\frac4\pi\sum_{k=0}^{\infty}\frac1{2k+1}\sin\Bigl(\frac{(2k+1)\pi x}2\Bigr),\qquad -2\le x\le 2. \]
Exercise §10.2.10
Fourier series of \(f=0\) on \(I_1=\{-2\le x<0\}\) and \(f(x)=x\) on \(I_2=\{0\le x\le 2\}\).
With \(L=2\), \[ a_0=\frac12\int_0^{2}x\,dx=1, \] and for \(n\ge 1\), writing \(\omega=n\pi/2\), \[ \int_0^{2}x\cos(\omega x)\,dx=\frac{4\bigl((-1)^n-1\bigr)}{n^2\pi^2},\qquad \int_0^{2}x\sin(\omega x)\,dx=-\frac{4(-1)^n}{n\pi}. \] Hence \[ a_n=\frac{2\bigl((-1)^n-1\bigr)}{n^2\pi^2},\qquad b_n=\frac{2(-1)^{n+1}}{n\pi}, \] and \[ f(x)\sim\frac12+\sum_{n=1}^{\infty}\Biggl( \frac{2\bigl((-1)^n-1\bigr)}{n^2\pi^2}\cos\frac{n\pi x}2 +\frac{2(-1)^{n+1}}{n\pi}\sin\frac{n\pi x}2 \Biggr). \]
Exercise §10.2.11
Fourier series of \(f(x)=x^2\) on \(I=\{-1\le x\le 1\}\).
Here \(L=1\). The function is even, so \(b_n=0\), \[ a_0=2\int_0^{1}x^2\,dx=\frac23, \] and for \(n\ge 1\) \[ a_n=2\int_0^{1}x^2\cos(n\pi x)\,dx=\frac{4(-1)^n}{n^2\pi^2}. \] Therefore \[ x^2\sim\frac13+\frac4{\pi^2}\sum_{n=1}^{\infty}\frac{(-1)^n}{n^2}\cos(n\pi x),\qquad -1\le x\le 1. \] Check: at \(x=0\) the right-hand side is \(1/3-(4/\pi^2)\sum_{n=1}^{\infty}(-1)^{n+1}/n^2=1/3-(4/\pi^2)(\pi^2/12)=0\). At \(x=1\) it is \(1/3+(4/\pi^2)\zeta(2)=1/3+2/3=1\).
The odd-answer key prints the signs inside the sum as \(+\cos(\pi x)/1^2+\cos(2\pi x)/2^2-\cos(3\pi x)/3^2+\cdots\) and states the interval as \(0\le x\le\pi\). Both are incorrect: the coefficients alternate starting with a minus, and the interval is \([-1,1]\).
Exercise §10.2.12
Fourier series of \(f(x)=1-\lvert x\rvert\) on \(I=\{-1\le x\le 1\}\).
Even, \(L=1\), \(b_n=0\), and \[ a_0=2\int_0^{1}(1-x)\,dx=1,\qquad a_n=2\int_0^{1}(1-x)\cos(n\pi x)\,dx=\frac{2\bigl(1-(-1)^n\bigr)}{n^2\pi^2}. \] Thus \(a_{2k}=0\), \(a_{2k+1}=4/((2k+1)^2\pi^2)\), and \[ 1-\lvert x\rvert\sim\frac12+\frac4{\pi^2}\sum_{k=0}^{\infty}\frac{\cos\bigl((2k+1)\pi x\bigr)}{(2k+1)^2},\qquad -1\le x\le 1. \]
Exercise §10.2.13
Let \(f\) be odd on \(I=\{-L<x<L\}\) and satisfy \(f(L-x)=f(x)\) on \(I\). Prove \(b_n=0\) for all even \(n\).
Oddness gives \(b_n=(2/L)\int_0^L f(x)\sin(n\pi x/L)\,dx\). Split \([0,L]\) at \(L/2\) and substitute \(x=L-u\) on \([L/2,L]\): \[ \int_{L/2}^{L}f(x)\sin\frac{n\pi x}L\,dx =\int_0^{L/2}f(L-u)\sin\Bigl(n\pi-\frac{n\pi u}L\Bigr)\,du. \] The hypothesis \(f(L-u)=f(u)\) and the identity \(\sin(n\pi-\theta)=(-1)^{n+1}\sin\theta\) yield \[ \int_0^{L}f\sin\frac{n\pi x}L\,dx =\bigl(1+(-1)^{n+1}\bigr)\int_0^{L/2}f(u)\sin\frac{n\pi u}L\,du. \] If \(n\) is even then \((-1)^{n+1}=-1\), so the integral vanishes and \(b_n=0\).
Exercise §10.2.14
Let \(f\) be odd on \(I=\{-L<x<L\}\) and satisfy \(f(L-x)=-f(x)\) on \(I\). Prove \(b_n=0\) for all odd \(n\).
The same substitution as in Exercise §10.2.13, now using \(f(L-u)=-f(u)\), produces \[ \int_0^{L}f\sin\frac{n\pi x}L\,dx =\bigl(1-(-1)^{n+1}\bigr)\int_0^{L/2}f(u)\sin\frac{n\pi u}L\,du. \] If \(n\) is odd then \((-1)^{n+1}=1\), the prefactor vanishes, and \(b_n=0\).
§10.3 Convergence Theorems
Printed pp. 283–284; PDF pp. 299–300. Problems 1–12.
Exercise §10.3.1
Fourier expansion of \(f:x\mapsto\frac13(\pi^2 x-x^3)\) on \(I=\{-\pi\le x\le\pi\}\), and show \(\sum_{n=1}^{\infty}n^{-6}=\pi^6/945\).
The function is odd and \(C^1\) after \(2\pi\)-periodization (because \(f(\pi)=f(-\pi)=0\) and \(f'(\pi)=f'(-\pi)=-\frac{2\pi^2}3\)). Differentiating, \[ f'(x)=\frac{\pi^2}3-x^2. \] From the expansion of \(x^2\) in Exercise §10.1.3 (or the worked example in §10.3), \[ \frac{\pi^2}3-x^2=4\sum_{n=1}^{\infty}(-1)^{n+1}\frac{\cos nx}{n^2}. \] The mean of \(f'\) is \(0\), so Theorem 10.6 (integrated, or equivalently Theorem 10.7 applied to \(f'\)) gives \[ f(x)=4\sum_{n=1}^{\infty}(-1)^{n+1}\frac{\sin nx}{n^3},\qquad -\pi\le x\le\pi, \] the constant of integration vanishing because \(f\) is odd.
For the numerical series use Parseval’s identity, which follows from Bessel’s inequality (Theorem 10.2) together with \(L^2\) convergence of the partial sums for this piecewise smooth function (or by integrating the uniformly convergent series for \(f\) against itself): \[ \frac12 a_0^2+\sum_{n=1}^{\infty}(a_n^2+b_n^2)=\frac1\pi\int_{-\pi}^{\pi}f(x)^2\,dx. \] Here \(a_n=0\) and \(b_n=4(-1)^{n+1}/n^3\), so the left side is \(16\sum n^{-6}\). On the right, \[ \int_{-\pi}^{\pi}f^2=\frac29\int_0^{\pi}(\pi^2 x-x^3)^2\,dx =\frac{2\pi^7}9\Bigl(\frac13-\frac25+\frac17\Bigr) =\frac{2\pi^7}9\cdot\frac8{105} =\frac{16\pi^7}{945}. \] Dividing by \(\pi\) yields \(16\pi^6/945\), and therefore \(\sum_{n=1}^{\infty}n^{-6}=\pi^6/945\).
Exercise §10.3.2
Use Theorem 10.7 to find the Fourier expansion of \(f:x\mapsto\lvert x\rvert\) on \(I=\{-\pi\le x\le\pi\}\).
Let \(g\) be the standardized square wave of Exercise §10.1.11, so \(g=f'\) off \(\{0,\pm\pi\}\) and \(g\) has mean zero. Theorem 10.7 applies to \(g\). Set \[ F(x)=\int_{-\pi}^{x}g(t)\,dt= \begin{cases} -(x+\pi),& -\pi\le x\le 0,\\ x-\pi,& 0\le x\le\pi, \end{cases} \] i.e. \(F(x)=\lvert x\rvert-\pi\). The coefficients of \(g\) are \(a_n=0\) and \(b_n=4/(n\pi)\) for \(n\) odd (else \(0\)). Theorem 10.7 gives \(B_n=0\), \(A_n=-b_n/n=-4/(n^2\pi)\) for \(n\) odd, and \[ A_0=-\frac1\pi\int_{-\pi}^{\pi}x g(x)\,dx=-\frac2\pi\int_0^{\pi}x\,dx=-\pi. \] Thus \[ F(x)\sim-\frac\pi2-\frac4\pi\sum_{k=0}^{\infty}\frac{\cos(2k+1)x}{(2k+1)^2}, \] and adding \(\pi\) produces \[ \lvert x\rvert\sim\frac\pi2-\frac4\pi\sum_{k=0}^{\infty}\frac{\cos(2k+1)x}{(2k+1)^2},\qquad -\pi\le x\le\pi, \] in agreement with Example 2 of §10.1.
Exercise §10.3.3
Fourier expansion of \[ f(x)=\begin{cases} \frac12(x^2-\pi x),& 0\le x\le\pi,\\ -\frac12(x^2+\pi x),& -\pi\le x\le 0. \end{cases} \]
The function is odd (hence \(a_n=0\)) and continuous, with \(f(\pm\pi)=0\). Then \[ b_n=\frac1\pi\int_0^{\pi}(x^2-\pi x)\sin nx\,dx. \] Integrating by parts, \[ \int_0^{\pi}x^2\sin nx\,dx=-\frac{\pi^2(-1)^n}n+\frac{2\bigl((-1)^n-1\bigr)}{n^3},\qquad \int_0^{\pi}x\sin nx\,dx=\frac{\pi(-1)^{n+1}}n, \] so the combination \(x^2-\pi x\) has integral \(2\bigl((-1)^n-1\bigr)/n^3\). Therefore \(b_n=2\bigl((-1)^n-1\bigr)/(\pi n^3)\), i.e. \(b_{2k}=0\) and \(b_{2k+1}=-4/(\pi(2k+1)^3)\). Hence \[ f(x)\sim-\frac4\pi\sum_{k=0}^{\infty}\frac{\sin(2k+1)x}{(2k+1)^3},\qquad -\pi\le x\le\pi. \]
Exercise §10.3.4
Using Exercise §10.3.1, find the Fourier series of \(f:x\mapsto\frac1{12}(\pi^2-x^2)^2\) on \(I=\{-\pi\le x\le\pi\}\).
Let \(g(x)=\frac1{12}(\pi^2-x^2)^2\) and let \(h\) be the function of Exercise §10.3.1. Then \(g\) is even, \(g(\pm\pi)=0\), and \(g'=-h\). Integrating the sine series of \(h\) and using that \(g\) is even, \[ g(x)=K+4\sum_{n=1}^{\infty}(-1)^{n+1}\frac{\cos nx}{n^4}. \] Evaluating at \(x=0\), where \(g(0)=\pi^4/12\) and \(\sum_{n=1}^{\infty}(-1)^{n+1}n^{-4}=(7/8)\zeta(4)=7\pi^4/720\), \[ \frac{\pi^4}{12}=K+4\cdot\frac{7\pi^4}{720}=K+\frac{7\pi^4}{180}\implies K=\frac{2\pi^4}{45}. \] Thus \[ \frac1{12}(\pi^2-x^2)^2=\frac{2\pi^4}{45}+4\sum_{n=1}^{\infty}(-1)^{n+1}\frac{\cos nx}{n^4},\qquad -\pi\le x\le\pi. \] (Check at \(x=\pi\): \(2\pi^4/45-4\zeta(4)=2\pi^4/45-2\pi^4/45=0\).)
Exercise §10.3.5
Fourier series of \(f:x\mapsto\lvert\sin x\rvert\) on \([-\pi,\pi]\), and of \[ F(x)=\begin{cases} -1+\cos x-\frac2\pi x,& -\pi\le x\le 0,\\ 1-\cos x-\frac2\pi x,& 0\le x\le\pi. \end{cases} \]
The cosine series of \(\lvert\sin x\rvert\) was computed in Exercise §10.2.2: \[ \lvert\sin x\rvert\sim\frac2\pi-\frac4\pi\sum_{k=1}^{\infty}\frac{\cos 2kx}{4k^2-1},\qquad -\pi\le x\le\pi. \] (The odd-answer key inserts alternating signs inside the bracket, writing \(\cos 2x/(2^2-1)-\cos 4x/(4^2-1)+\cdots\). Every coefficient \(a_{2k}\) is in fact negative.)
Differentiating \(F\) off \(\{0,\pm\pi\}\) gives \(F'(x)=\lvert\sin x\rvert-2/\pi\), the mean-zero part of \(f\). Also \(F(\pm\pi)=0=F(0)\), so \(F\) is the \(2\pi\)-periodic integral of \(f-a_0/2\) vanishing at \(0\). Term-by-term integration (Theorem 10.7) produces \[ F(x)\sim-\frac4\pi\sum_{k=1}^{\infty}\frac{\sin 2kx}{2k(4k^2-1)},\qquad -\pi\le x\le\pi, \] which agrees with the key’s series for \(F\).
Exercise §10.3.6
Fourier series of \[ f(x)=\begin{cases} -(\pi+x),& -\pi\le x\le -\pi/2,\\ x,& -\pi/2\le x\le\pi/2,\\ \pi-x,& \pi/2\le x\le\pi. \end{cases} \]
The function is odd, continuous, and piecewise linear (a triangular wave), so \(a_n=0\). Then \[ \int_0^{\pi}f(x)\sin nx\,dx =\int_0^{\pi/2}x\sin nx\,dx+\int_{\pi/2}^{\pi}(\pi-x)\sin nx\,dx. \] The substitution \(x=\pi-u\) in the second integral shows that the sum equals \(\bigl(1+(-1)^{n+1}\bigr)\int_0^{\pi/2}x\sin nx\,dx\). Thus \(b_n=0\) for \(n\) even. For \(n=2k+1\), \[ \int_0^{\pi/2}x\sin(2k+1)x\,dx=\frac{(-1)^k}{(2k+1)^2}, \] because \(\cos((2k+1)\pi/2)=0\) and \(\sin((2k+1)\pi/2)=(-1)^k\). Therefore \[ b_{2k+1}=\frac4\pi\cdot\frac{(-1)^k}{(2k+1)^2}, \] and \[ f(x)\sim\frac4\pi\sum_{k=0}^{\infty}(-1)^k\frac{\sin(2k+1)x}{(2k+1)^2},\qquad -\pi\le x\le\pi. \] Check at \(x=\pi/2\): the right-hand side is \((4/\pi)\sum (2k+1)^{-2}=(4/\pi)(\pi^2/8)=\pi/2=f(\pi/2)\).
Exercise §10.3.7
If \(f\) is \(2\pi\)-periodic and has continuous derivatives of all orders on \(\mathbb{R}^1\), what can be said about \(a_n/n^k\) and \(b_n/n^k\) as \(n\to\infty\), for each positive integer \(k\)?
The corollary to Lemma 10.2, applied to every order \(p\), yields \(\lvert a_n\rvert+\lvert b_n\rvert\le C_p/n^p\) for every \(p\in\mathbb{N}\). Taking \(p=k+1\) gives \(a_n/n^k\to 0\) and \(b_n/n^k\to 0\). (In fact the coefficients decay faster than every polynomial: they are \(o(n^{-k})\) for every \(k\).)
Exercise §10.3.8
How many continuous derivatives does \(f:x\mapsto x\lvert x\rvert\) have on \(I=\{-\pi<x<\pi\}\)?
On \((0,\pi)\) one has \(f(x)=x^2\), and on \((-\pi,0)\) one has \(f(x)=-x^2\). Matching at \(0\): \(f(0\pm)=0\) and \(f'(0\pm)=0\), so \(f\) extends to a \(C^1\) function on \(I\), with \(f'(x)=2\lvert x\rvert\). The second derivative is \(f''(x)=2\operatorname{sgn}(x)\) off \(0\), which has a jump of size \(4\) at \(x=0\) and therefore is not continuous on \(I\). Thus \(f\) has exactly one continuous derivative on \(I\).
Exercise §10.3.9
Sketch the graph of the Dirichlet kernel \(D_n\) for \(n=4\) on \(I=\{-\pi<x<\pi\}\).
By definition \(D_4(x)=\sin\bigl(\frac92 x\bigr)/\bigl(2\sin\frac x2\bigr)\), equivalently \(D_4(x)=\frac12+\sum_{k=1}^{4}\cos kx\). The function is even, \(2\pi\)-periodic, and has a global maximum \(D_4(0)=9/2\) (removable singularity at the origin). The numerator vanishes when \(9x/2=m\pi\) with \(m\in\mathbb{Z}\setminus\{0\}\), i.e. at \(x=2m\pi/9\), provided the denominator does not also vanish. On \((-\pi,\pi)\) the zeros are therefore \[ x=\pm\frac{2\pi}9,\ \pm\frac{4\pi}9,\ \pm\frac{6\pi}9,\ \pm\frac{8\pi}9. \] Between consecutive zeros the graph consists of alternating positive and negative lobes, the central lobe on \((-2\pi/9,2\pi/9)\) being the tallest (height \(9/2\)), with successive side lobes decreasing in amplitude toward \(\pm\pi\), where \(D_4(\pm\pi)=1/2-1+1-1+1=1/2\).
Exercise §10.3.10
Find \(\lim_{n\to\infty}\int_0^{\pi/6}D_n(x)\,dx\).
The identities \(D_n\) even and \(\int_{-\pi}^{\pi}D_n=\pi\) give \(\int_0^{\pi}D_n(x)\,dx=\pi/2\) for every \(n\). On the compact interval \([\pi/6,\pi]\) the function \(x\mapsto 1/(2\sin(x/2))\) is continuously differentiable, so the Riemann–Lebesgue lemma (Theorem 10.4) yields \[ \int_{\pi/6}^{\pi}D_n(x)\,dx=\int_{\pi/6}^{\pi}\frac{\sin\bigl((n+\frac12)x\bigr)}{2\sin(x/2)}\,dx\to 0. \] Therefore \[ \lim_{n\to\infty}\int_0^{\pi/6}D_n(x)\,dx=\frac\pi2. \]
Exercise §10.3.11
Find the maximum value of \(D_n(x)\) for \(x\in I=\{-\pi<x<\pi\}\).
From \(D_n(x)=\frac12+\sum_{k=1}^{n}\cos kx\) and \(\cos kx\le 1\), \[ D_n(x)\le\frac12+n=n+\frac12, \] with equality if and only if \(\cos kx=1\) for every \(k=1,\ldots,n\), i.e. if and only if \(x\in 2\pi\mathbb{Z}\). The only such point in \((-\pi,\pi)\) is \(x=0\), where indeed \(D_n(0)=n+1/2\) (or by l’Hôpital on the closed form). Thus the maximum value is \(n+1/2\).
The odd-answer key prints \((n+1/2)/\pi\). That is the maximum of the normalized kernel \(D_n/\pi\) appearing in \(s_n(x)=(1/\pi)\int f(x-t)D_n(t)\,dt\), not of \(D_n\) as defined in the text.
Exercise §10.3.12
Let \(f=0\) on \(I_1=\{-\pi<x<0\}\) and \(f(x)=\sin x\) on \(I_2=\{0<x<\pi\}\). (a) Fourier series of \(f\). (b) By integrating (a), Fourier series of \(F=0\) on \(I_1\) and \(F(x)=1-\cos x\) on \(I_2\).
(a) This is Exercise §10.1.8: \[ f(x)\sim\frac1\pi+\frac12\sin x-\frac2\pi\sum_{k=1}^{\infty}\frac{\cos 2kx}{4k^2-1}. \]
(b) One has \(F(x)=\int_{-\pi}^{x}f\) (so \(F'=f\) off \(\{0\}\)), but \(a_0(f)=2/\pi\neq 0\), hence \(F\) is not \(2\pi\)-periodic: \(F(\pi)=2\neq 0=F(-\pi)\). Integrating the series from \(-\pi\) to \(x\) nevertheless produces the exact identity \[ F(x)=\frac12+\frac x\pi-\frac12\cos x-\sum_{k=1}^{\infty}\frac{\sin 2kx}{\pi k(4k^2-1)},\qquad -\pi\le x\le\pi. \] To obtain a trigonometric series, insert the sawtooth expansion \(x\sim 2\sum_{n=1}^{\infty}(-1)^{n-1}(\sin nx)/n\): \[ \frac x\pi\sim\frac2\pi\sum_{n=1}^{\infty}(-1)^{n-1}\frac{\sin nx}n. \] Collecting sine coefficients, \[ B_n=\frac2{n\pi}\quad\text{for $n$ odd},\qquad B_{2k}=-\frac{4k}{\pi(4k^2-1)}. \] (The cosine coefficients remain \(A_0=1\), \(A_1=-1/2\), and \(A_n=0\) for \(n\ge 2\).) Therefore \[ F(x)\sim\frac12-\frac12\cos x+\frac2\pi\sum_{k=0}^{\infty}\frac{\sin(2k+1)x}{2k+1} -\frac4\pi\sum_{k=1}^{\infty}\frac{k\sin 2kx}{4k^2-1}. \] Alternatively, the same coefficients follow by evaluating \(A_n=(1/\pi)\int_0^{\pi}(1-\cos x)\cos nx\,dx\) and \(B_n=(1/\pi)\int_0^{\pi}(1-\cos x)\sin nx\,dx\) directly.