$$ \int_{a}^{+\infty}|f(x)|dx < +\infty \Longrightarrow \int_{a}^{+\infty}f(x)dx \in \mathbb{R}$$
Show that the opposite ( $\Longleftarrow$ ) is not true.
Is there a "simple" function as counter-example? I discovered $$f(x) = \frac{\sin(x)}{x}$$ is a good example from 1 to $+\infty$, but how can I show it? I'm in a calculus course, and I don't know convergence/divergence theorems for integrals.
I also thought about a piecewise function that should have a certain positive "area" and a certain negative "area", so that when you integrate it you have a convergent integral (positive "areas" cancel negative "areas") but you have a divergent integral using $|f(x)|$