It's been a while since I've read about this, but I'll give it a try.

Note that the function , where .

You are correct to note that for an even function, you only need to solve for since is 0 for every .

Now, .

Finally, after solving the integral above (note that the term always is 0 and ) you'll get the fourier series given by .