3

I have seen similar questions about specific cases (see here for $f(x) = \frac{1}{\sqrt{x}}$ and here for $f(x) = \frac{1}{x^a}$). I would like to find when $$\lim_{n \to \infty} \left(\sum_{k=1}^{n}f(k)-\int_{1}^{n+1}f\left(x\right)dx\right)$$

converges. I know that one possible way for this to converge is if $\int_1^{\infty}f(x)dx \leftrightarrow \sum_{k=1}^{\infty} f(k)$ converges. However, this is not the only way for it to converge such as with $f(x)= \frac{1}{x^a}, 0 \le a \le 1$. We can split the integral into parts so that the limit becomes $$\sum_{k=1}^{\infty}\left(f(k)-\int_k^{k+1} f(x)dx \right)$$

The summand must approach $0$ for the sum to converge. I believe this only happens if $f(x)$ is a function approaching $0$. However, this probably is not sufficient for the sum to converge. This brings me to my main question:

What conditions on $f(x)$ are necessary and sufficient for $\lim_{n \to \infty} \left(\sum_{k=1}^{n}f(k)-\int_{1}^{n+1}f\left(x\right)dx\right)$ to exist?

Edit: as jvc pointed in the comments, it is not necessary for $f(x)$ to approach zero, such as with $f(x)$ a constant. I now think it is necessary (perhaps even sufficient) for $f'(x)$ to approach $0$, not necessarily $f(x)$.

  • For f constant the limit is 0. – jvc May 12 '20 at 20:01
  • Yeah, that does work. I didn't notice that - thanks for pointing it out. – Varun Vejalla May 12 '20 at 20:04
  • $f'$ need not exist, and if it exists, it need not have a limit. A sufficient condition is that $f$ is a bounded monotonic function. (Of course it suffices if $f$ is eventually monotonic, as long as it's integrable over every compact interval.) – Daniel Fischer May 12 '20 at 20:07
  • If $f(x)$ is a bounded (eventually) monotonic function, doesn't that mean that $f'(x)$ approaches $0$? – Varun Vejalla May 12 '20 at 20:16
  • No, only "on average". Leaving aside the problem that $f'$ needn't exist everywhere. There are unbounded smooth positive functions that are integrable over $[0,+\infty)$. If $f$ is the integral of such a function, $f'(x)$ doesn't have a limit as $x \to \infty$. Of course if $\lim_{x \to \infty} f'(x)$ exists for a bounded eventually monotonic function, then the limit must be $0$. But it need not exist. – Daniel Fischer May 12 '20 at 20:30

2 Answers2

1

A sufficient condition is that $f$ is differentiable and $\int_1^\infty |f'(x) | \, dx < \infty$.

Integrating by parts we get

$$\int_k^{k+1} (x - k - 1)f'(x) \, dx = \left.(x- k- 1)f(x)\right|_k^{k+1} - \int_k^{k+1} f(x) \, dx = f(k) - \int_k^{k+1} f(x) \, dx$$

Thus,

$$\left|f(k) - \int_k^{k+1} f(x) \, dx\right| = \left|\int_k^{k+1} (x - k - 1)f'(x) \, dx \right|\leqslant \int_k^{k+1} |x - k - 1|\,|f'(x)|\, dx \\ \leqslant \int_k^{k+1} |f'(x)|\, dx , $$

and we have absolute convergence of the series

$$\sum_{k=1}^{\infty}\left|f(k)-\int_k^{k+1} f(x)dx \right|\leqslant \sum_{k=1}^{\infty}\int_k^{k+1} |f'(x)|\, dx = \int_1^\infty |f'(x)| \, dx,$$

which implies convergence of

$$\sum_{k=1}^{\infty}\left(f(k)-\int_k^{k+1} f(x)dx \right) = \lim_{n \to \infty}\left(\sum_{k=1}^{n}f(k)-\int_{1}^{n+1}f\left(x\right)dx\right)$$

RRL
  • 90,707
  • A necessary condition is that the series $\sum_{k=1}^\infty f(k)$ and integral $\int_1^\infty f(x) , dx$ both converge or diverge together. – RRL May 13 '20 at 02:07
-1

can we use the fact that: $$\int_1^{n+1}f(x)dx=\lim_{N\to\infty}\sum_{i=0}^Nf\left(1+\frac{in}{N}\right)\frac nN$$ and compare the two sums?

Henry Lee
  • 12,215
  • The sum in the question is essentially an approximation of the integral, but with the width of the corresponding rectangles equal to $1$. – Varun Vejalla Jun 04 '20 at 16:51