Sorry I did not follow your solution.

Anyway, Here is the solution:

For the integral substitute

since is an even function, the last equation can be writte as follows:

Integrate and evaluate, to get:

----

Use \pi to write pi`s symbol in LaTeX.