How do I know when to use integration by partial fractions?