In this answer, it is said that
If $\int_{1}^{\infty}\vert f'(x)\rvert \,\mathrm{d}x$ converges, then $\sum_{k=1}^{\infty}f(k)$ and $\int_{1}^{\infty}f(x)\,\mathrm{d}x$ converge or diverge together.
In the proof, it says that
$$\sum_{k=2}^{\infty}\left | f(k)-\int_{k-1}^{k}f(x)\,\mathrm{d}x \right |<\infty$$ implies the convergence of $$\sum_{k=2}^{\infty} f(k)-\int_{1}^{\infty}f(x)\,\mathrm{d}x$$
Why does this implication hold? If think some conditions of $f$ is missing here.
Also, this idea brings me another question: Let $(a_n)$ and $(b_n)$ be two sequences of numbers. Is it true in general that if $\sum_{n=1}^{\infty}|a_n+b_n|$ converges, then $\sum_{n=1}^{\infty}a_n$ and $\sum_{n=1}^{\infty}b_n$ converge? It is clear if those sequences were positive, but what if at least of them were negative?