How do you know when to use the integral test for an infinite series?