I came across a problem that asked if it is posible for a function to be Riemann integrable function in $[0,+\infty)$ but also $|f(x)|\geq 1$ for all $x\geq 0$.
At first I thought it was imposible, but I realized that only holds for continuous functions, because they would have to be either positive or negative, and then they would have to go to 0 at infinity.
I have an idea of what the function would have to be like, with alternating signs, but whose integral converges, but I haven't been able to find any, so I'm starting to think it is imposible.
I would like some help finding this function, or disproving it, as I don't know many tools for working with functions without a constant sign.
Let $a_0=0,$ $a_n = \sum_{k=1}^{n}1/k, n\ge 1.$ Then $0=a_0<a_1<a_2 < \cdots $ and $a_n\to \infty.$ Define
$$f=\sum_{n=1}^{\infty}(-1)^{n}\chi_{[a_{n-1},a_n)}.$$
Then $|f|=1$ everywhere and $\int_0^\infty f(x)\,dx = -1+1/2-1/3+1/4-\cdots,$ which converges by the alternating series test.