Given that
$0<f(x)<\displaystyle\frac{1}{x}$ for $0<x<1$,
how do I know that $\int _0^1f(x)dx$ only diverges for some functions, and not for others? Is there a counter-example out there where this integral diverges, and if so is there a systematic way of finding such counter-examples?
diverges for $f(x) = \frac{1}{2x}.$ Converges for $f(x) = \frac{1}{2}.$