I think it is related to the integral convergence theorem, but not all conditions are satisfied. To use the theorem, maybe we have to integrate over something like [ε,pi]?

But I'm still not sure how we can solve this.

Any help would be much appreciated!