No, you should extend the domain of f to such that the extension of f is even function .
Here I got a question of Fourier series attached with this. Also I atemped some part of the question (that is attached here with) but I need to know is this answer is correct.. or not
and how I prove the part b) from the above result.