# Odd function integrals

Hello I'd first like to state I know how to solve and I know the answer to this integral however when I first looked at the integral my initial thought was that it was equal to zero. I'd like to explain why I thought it was equal to 0 and hopefully someone can tell me where I went wrong.

I used two different theorems to come to my conclusion:

1. The definite integral with limits [-a,a] of a function f(x) will always be equal to zero if the function is odd.

$\int$$^{a}_{-a}$f(x)dx = 0

2. Suppose a function F(x) is T-periodic function then for any real number a we have:

$\int$$^{T}_{0}$f(x)dx = $\int$$^{T+a}_{a}$f(x)dx

I have a problem where I need to find the Fourier Series of the function f(x) = 2x2-1
on the interval 0$\leq$x$\prec$2L and it tells me that the function has a period of 2L

now when I use the equation to find the bn fourier coefficient I get:

bn=$\frac{1}{L}$$\int$$^{2L}_{0}$(2x2-1)sin($\frac{xnπ}{L}$)

When I multiply sine by the 2x2-1 you can easily see that I get two integrals of odd functions sin(xnπ/L)(2x2) and sin(xnπ/L)

If we plug in -x to both functions we see that we get the negative of the function therefore we know both are odd functions. Now because the problem tells us that the function is of period 2L and we're integrating from 2L I apply my second theorem and subtract L from the limits which now gives an integral that satisfy the first theorem and by which I then conclude that both integrals should be equal to 0. But after calculating the integral I see that it doesn't and I'm not sure where I'm making a false assumption.

Well, for an odd function, f(-x) = -f(x). So, if f and g are odd functions, and h(x) = f(x)g(x), is h an odd function?

That's not my question, I know that sine(xnpi/L)*((2x^2)-1) is an odd function. I'm wondering why the integral of this function from 0 to 2L is not equal to 0 based on the 2 theorems I've posted.

jbunniii