Suppose $f:[0,\infty)\rightarrow [0,\infty)$ is continuous and decreasing. I have shown that for any increasing sequence $\{x_n\}$ in $[0, \infty)$ that $$\int_0^\infty f(x) dx \geq \sum_{n=1}^\infty (x_{n+1}-x_n)f(x_{n+1}).$$ Now I want to use this to prove that if $f$ is integrable, then $$\lim_{x\rightarrow \infty} \frac{f(x)}{x}=0.$$
I understand intuitively that since $f$ is decreasing and its values lie on $[0, \infty)$, then $f$ is getting closer to zero. If we divide $f(x)$ by $x$ then surely $f(x)/x\rightarrow 0$. I just don't know how to use the inequality to show this is true formally.