I assume that you are integrating with respect to . You mostly need the following identities
Then you find the limit as . It is 1/2 or -1/2 depending on whether or not. Suppose that . Then
The integral in the denominator is
Converting to trigonometric form, the top integral becomes
and the bottom integral becomes
The fraction of these simplifies to
The whole sum is now equal to
I'm not sure how one can proceed from here.