Finding the value of pi/4 using Fourier series

phosgene
Messages
145
Reaction score
1

Homework Statement



The function f(x) is defined by:

f(x) = -1 when \pi < x <0 and 0 when 0<x<\pi

Show that \sum^{∞}_{0}\frac{(-1)^n}{2n+1}=\frac{\pi}{4}

Homework Equations



Fourier series for a function of period 2\pi = a_{0} + \sum^{∞}_{1}a_{n}cos(nx) + b_{n}sin(nx)

a_{0}=\frac{1}{2\pi}\int_{-\pi}^{\pi}cos(nx)dx

a_{n}=\frac{1}{\pi}\int_{-\pi}^{\pi}f(x)cos(nx)dx

b_{n}=\frac{1}{\pi}\int_{-\pi}^{\pi}f(x)sin(nx)dx

The Attempt at a Solution



f(x)=0 between 0 and pi, so I can ignore that interval in all of the integrals and integrate from -pi to pi.

Doing this, I get a_{0}=-1/2 and a_{n}=0.

Then I do b_{n}=\frac{1}{\pi}\int_{-\pi}^{0}-sin(nx)dx=\frac{1}{\pi}[\frac{1-cos(n\pi)}{n}] since f(x)=-1 in the relevant interval.

\frac{1}{\pi}[\frac{1-cos(n\pi)}{n}]=\frac{1}{\pi}[\frac{1-(-1)^{n}}{n}]=\frac{2}{\pi(2n+1)}

I plug this value of b_{n} into the Fourier series, I get -1/2 + \sum_{0}^{∞}\frac{2}{\pi(2n+1)}sin(nx).

I can turn this into a series similar to the alternative harmonic series by letting x=3\pi/2, giving me -1/2 + \sum_{0}^{∞}\frac{2(-1)^{n}}{\pi(2n+1)}. Now the missing piece is showing that this is equal to 0, which I don't know how to do.
 
Physics news on Phys.org
phosgene said:
I can turn this into a series similar to the alternative harmonic series by letting x=3\pi/2

But your original function is not defined when x=3\pi/2.
 
Oh, sorry, I forgot to add that f(x+2\pi)=f(x)
 
Well then, what is f(3π/2)?
 
  • Like
Likes 1 person
Ah, right. 0. I got caught up thinking about what sin(nx) was doing instead of f(x). Embarrassing! Thanks though.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top