Well here's another proof that
We will start from the integral
Considering taylor expansion of we have :
Changing the order of integration and summation we have :
Integrating and putting limits we get :
We will be calculating the value of our summation.
Putting the value of in our integral we have :
Now since the integral is real hence imaginary part of our integral is hence :