My textbook states that "For the integral test to apply, it is not necessary that f be always decreasing. What is important is that f be ultimately decreasing." I'm just curious what is meant by this statement. How do you define a function that is "ultimately decreasing"? It'd be great if you could find an example of a function that increases over a certain domain but ultimately decreases, in which the integral test applies.