My calculus textbook (as well as wikipedia and other online sources) list three conditions to verify before one can establish: $\sum\limits_{n=a}^\infty f(n)$ converges $\iff \int\limits_{a}^\infty f(x)dx$ converges:
1) $f(x)$ ($\mathbb{R}\rightarrow \mathbb{R}$) must be continuous on $[a,\infty)$
2) $f(x)$ must be non-increasing for $x$ sufficiently large.
3) $f(x)$ must be non-negative for $x$ sufficiently large.
Couldn't one instead just verify either:
$f(x)$ is continuous and eventually monotone OR $f(x)$ is monotone to arrive at the same conclusion?
If $f(x)$ is continuous and eventually monotone then there exists an integer $b>a$ such that $f(x)$ is monotone and doesn't change sign on $[b,\infty)$. If $f(x)$ is positive and non-decreasing on $[b,\infty)$ then both clearly diverge. If not, then either $f(x)$ or $-f(x)$ will satisfy the conditions for the Integral Test and we conclude. Continuity is merely required to ensure that $f(x)$ has finite Riemann integral on $[a,b]$.
If $f(x)$ is monotone, its Riemann integral exists over any compact interval so the indefinite integral can be expressed as a limit in the usual way. Choose an integer $b>a$ such that $f(x)$ doesn't change sign on $[b,\infty)$. Now proceed as before (noting that the proof for Integral Test doesn't technically require continuity on the non-increasing region).
I can't see where my argument goes wrong but if it's right, why are the conditions listed for the test redundant?