Proving that $\sum_{n=0}^{\infty} (-1)^n \frac{1}{2n+1} = \pi/4$ using Dirichlet

1.7k Views Asked by At

Consider the function $$ f: [- \pi, \pi) \to \mathbb{R} : x \mapsto \begin{cases} -1 & x \in [-\pi, 0) \\ 1 & x \in [0, \pi) \end{cases}. $$ This function can be made $2\pi$-periodic. The Fourier coefficients are $$ \hat{f} (n) = \begin{cases} \frac{1}{\pi i n} (1 - (-1)^n) & n \neq 0 \\ 0 & n = 0 \end{cases}. $$

Now, I need to use Dirichlet theorem, see here, to prove that $$\sum_{n=0}^{\infty} (-1)^n \frac{1}{2n+1} = \frac{\pi}{4} .$$

I have $$s_n(x) = \sum_{k=-n}^{n} \hat{f}(k) e^{ikx} = \sum_{k=-n}^{n} \frac{1}{\pi i k} (1 - (-1)^k) e^{ikx}. $$ This $n$th partial sum will be zero when $k$ is even. So we must assume $k$ is odd. So I let $k = 2m+1$, with $m$ an integer. Then $$s_n(x) = \frac{2}{\pi i} \sum_{2m+1 = -n}^{n} \frac{1}{2m+1} e^{i(2m+1)x}. $$ Now I plug in here $x = \pi/2$. Then the cosine is zero, and the sine will be $1$ or $-1$. So we get $$s_n(\pi/2 ) = \frac{2}{\pi} \sum_{2m+1=-n}^{n} \frac{1}{2m+1} (-1)^m. $$ The theorem of Dirichlet says the sum will converge to $f(\pi/2) = 1$ if I let $n \to \infty$. But how can I conclude from this that $$\sum_{n=0}^{\infty} (-1)^n \frac{1}{2n+1} = \frac{\pi}{4} $$ ? I think I need to manipulate the sum in my expression, to make it run from $0$ to $n$, but I'm not sure how.

Help is appreciated!

2

There are 2 best solutions below

1
On BEST ANSWER

Hint : For positive odd k, and negative odd k, the coefficients will differ by a negative sign. Use that along with exponential to cancel out cosine terms and get $2i.sin(kx)$. That way you could run the summation from $0$ to $n$ and get the missing value $2$

0
On

Since $f$ is odd, then it can be represented by the Fourier sine series

$$f(x)=\sum_{n=1}^\infty a_n\sin(nx)$$

where the coefficients $a_n$ are given by

$$\begin{align} a_n&=\frac{2}{2\pi}\int_{-\pi}^\pi f(x)\sin(nx)\,dx\\\\ &=\frac2\pi \int_0^\pi \sin(nx)\,dx\\\\ &=\frac{2}{\pi}\frac{1-(-1)^n}{n} \end{align}$$

At $x=\pi/2$, $f(x)=1$ and we have

$$\begin{align} 1&=\frac{2}{\pi}\sum_{n=1}^\infty \frac{1-(-1)^n}{n}\sin(n\pi/2)\\\\ &=\frac4\pi \sum_{n=1}^{\infty} \frac{\sin((2n-1)\pi/2)}{2n-1}\\\\ &=\frac4\pi \sum_{n=0}^\infty \frac{(-1)^n}{2n+1} \end{align}$$