Actually, in this special case you can rewrite the numerator as (x^2 - 1) + 1. Since the first term has x - 1 as a factor, you are left with x + 1 after division and a left over fraction 1/(x - 1). I agree that long division is the ordinary,ordinary approach with these integrals.