Wow that is a very nice solution. Better than this, but here is another way....
Consider the integral where is the unit circle
in the complex plane. Then by cauchy's integral formula or the residue theorem.
Parameterize the curve with for and then =
So we know that this equals setting immaginary parts equal we get
Since this is an even function we get (Finally)