You have

I believe your intuition about by-parts is accurate. Let

and let

Then the integral becomes

For the boundary term (the first one on the RHS), the arctan function is bounded, and the denominator beats the numerator, so it should be zero at the upper end. The lower end presents no problems. As for the integral, I would do a u substitution to finish it off. What do you get?