If you need a quick reference for equations & examples, check out the link below for printable cheat sheet 👀: calculuswithre... I plan to upload more in the future to make your study easier! 🩷
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.