I am trying to expand f(x) = x into a real fourier series on the interval 0<=x<=2pi. The only examples I can find are on the interval -pi to pi, and when i try using the same method on my interval i come up with the answer zero, which is obviously wrong.

any ideas...