estro
- 239
- 0
I'm trying to find Fourier series for the following function:
f(x) = \begin{cases}1, & \mbox{if x $\in (-\frac{\pi}{2}+2\pi n,\frac{\pi}{2}+2\pi n)$ } \\ <br /> -1, & \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?
f(x) = \begin{cases}1, & \mbox{if x $\in (-\frac{\pi}{2}+2\pi n,\frac{\pi}{2}+2\pi n)$ } \\ <br /> -1, & \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?