Artificial intelligent assistant

Non-negative improperly Riemann-integrable function is Lebesgue-integrable? If $f$ is non-negative and improperly integrable on $\mathbb{R}$, prove that $f$ is Lebesgue integrable. The way I thought about this is that if $f(x)$ is improperly integrable and non-negative then $ \int f \, dx = \int \lvert f \rvert \, dx$ which implies Lebesgue integrability. I feel like this isn't correct though. Also what is a definition of improper integrability on $[0, \infty)$? The only definition in my book looks at from $(a+ \epsilon, b]$ as $\epsilon \to 0$.

Assume that $f$ is non-negative and Riemann integrable over $[0,c]$ for all $c > 0$. The Riemann and Lebesgue integrals are equivalent on the bounded interval.

Hence, $$\int_{[0, \infty)} f = \lim_{c \to \infty} \int_{[0,\infty)} f \chi_{[0,c]} = \lim_{c \to \infty}\int_{[0,c]} f = \lim_{c \to \infty}\int_0^cf(x) \, dx = \int_0^\infty f(x) \, dx$$

where the left limit follows from the MCT for Lebesgue integrals and the right limit is a consequence of improper integrability of $f$.

The proof is similar for a Type I improper integral on a bounded interval.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 255003dc2bbac613f377c877bd49c55c