- #1

- 13

- 0

f(x)= { -1, -∞ ≤ x ≤ 0; +1, 0 ≤ x ≤ ∞

Expanding it in fourier series gives a function like,

f(x) = (4/π) * Ʃ

_{n=0}

^{∞}( (sin ((2n+1)x) / (2n+) )

Plotting a graph of the equation gives something like this, http://goo.gl/vFJhL

which obviously doesn't look like a square wave. Can anyone tell me where have I gone wrong? What am I missing?

P.S

Fourier co-efficients

a

_{n}=0

a

_{0}=0