I am confused about the following proof on a textbook I'm reading. Suppose $f:(0,b] \to \Bbb R$ is continuous, positive, and integrable on $(0,b]$. Suppose further that as $x \to 0$ from the right, $f(x)$ increases monotonically to $+\infty$. Prove that $\lim\limits_{x\to0} xf(x) = 0$.
It would be nice if I could write $\int_a^{a+x} f(t)dt \ge \int_a^{a+x} f(x)dt = f(x)x$. Then for all $\epsilon > 0$ there exists a $\delta$ such that $0<x<\delta$ implies $0<f(x)x \le \int_a^{a+x} f(t)dt <\epsilon$. But this is not true since $f$ increases monotonically as $x\to0$. Instead of writing $\int_a^{a+x} f(t)dt \ge \int_a^{a+x} f(x)dt = f(x)x$, I should probably write $\int_a^{a+x} f(t)dt \ge \int_a^{a+x} f(a+x)dt = f(a+x)x$. But that way my proof does not work. Can someone give me a hint as to how to proceed?
EDIT: Thanks for the comments and I realized that the monotonicity of $f$ should be one of the conditions.
In the following proof, we'll suppose that $ f $ is $\underline{\textbf{decreasing}}$ on $ \left(0,b\right] $. (Otherwise the statement is false)
Let $ \varepsilon >0 $.
Since $ f $ is positive and integrable on $ \left(0,b\right] $, then $ \lim\limits_{x\to 0^{+}}{\int_{x}^{b}{f\left(y\right)\mathrm{d}y}}=\ell\in\mathbb{R} $, which means there exists $ \eta\in\left(0,b\right) $, such that $ \left(\forall x\in\left(0,\eta\right)\right),\ \left|\int_{x}^{b}{f\left(y\right)\mathrm{d}y}-\ell\right|<\frac{\varepsilon}{4} $.
For any $ x\in\left(0,\eta\right] $, we have : \begin{aligned} \left|xf\left(x\right)\right|=\left|2\int_{\frac{x}{2}}^{x}{f\left(x\right)\mathrm{d}y}\right|\leq 2\left|\int_{\frac{x}{2}}^{x}{f\left(y\right)\mathrm{d}y}\right|&=2\left|\int_{\frac{x}{2}}^{b}{f\left(y\right)\mathrm{d}y}-\int_{x}^{b}{f\left(y\right)\mathrm{d}y}\right|\\ &\leq 2\left|\int_{\frac{x}{2}}^{b}{f\left(y\right)\mathrm{d}y}-\ell\right|+2\left|\int_{x}^{b}{f\left(y\right)\mathrm{d}y}-\ell\right|\\ &\leq\varepsilon \end{aligned}
Thus : $$ \lim_{x\to 0^{+}}{x f\left(x\right)}=0 $$