Convergence Issues with Fourier Series for Piecewise Function?

estro
Messages
239
Reaction score
0
I'm trying to find Fourier series for the following function:
f(x) = \begin{cases}1, &amp; \mbox{if x $\in (-\frac{\pi}{2}+2\pi n,\frac{\pi}{2}+2\pi n)$ } \\ <br /> -1, &amp; \mbox{if x $\in [\frac{\pi}{2}+2\pi n,\frac{3\pi}{2} + 2\pi n]$} \end{cases}

This is how I calculated a_n and b_n:
[Please See 2.pdf and 3.pdf]

So I got the following series: \sum_{n=1}^{\infty} \cos{nx}\frac{4(-1)^{n+1}}{\pi(2n-1)}

But when I checked if it converges to f(x) at point \pi I get that it diverges, however all requirements of Fourier theorem are met.

What am I doing wrong?
 

Attachments

  • 2.pdf
    2.pdf
    125.5 KB · Views: 252
  • 3.pdf
    3.pdf
    119.6 KB · Views: 239
Physics news on Phys.org
estro said:
I'm trying to find Fourier series for the following function:
f(x) = \begin{cases}1, &amp; \mbox{if x $\in (-\frac{\pi}{2}+2\pi n,\frac{\pi}{2}+2\pi n)$ } \\ <br /> -1, &amp; \mbox{if x $\in [\frac{\pi}{2}+2\pi n,\frac{3\pi}{2} + 2\pi n]$} \end{cases}

This is how I calculated a_n and b_n:
[Please See 2.pdf and 3.pdf]

So I got the following series: \sum_{n=1}^{\infty} \cos{nx}\frac{4(-1)^{n+1}}{\pi(2n-1)}

But when I checked if it converges to f(x) at point \pi I get that it diverges, however all requirements of Fourier theorem are met.

What am I doing wrong?

The cos(nx) term in the sum should be cos((2n-1)x) since you only pick up the odd subscripts. Otherwise it is correct. You could have saved half the work by noting that since the function is period 2pi, you could have used the formula on (-pi,pi) and observed the function is even. That's why the bn are 0. And using the half range integral for an would have made less work there too.
 
Thanks, indeed it saved me a lot of work!
 
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...

Similar threads

Back
Top