While studying series I came on the following proof. But I don't really understand it.
The theorem is the following:
Theorem: Suppose that f: $[a,+ \infty) \rightarrow R_{+}^{}$ is a continuous and non-increasing function. Suppose that $p \in N$ is greater or equal to a. Then converges the integral \begin{align} \int_{a}^{+\infty} f(t)dt \end{align} if and only if the serie
\begin{align} \sum\limits_{n=p}^{\infty}f(n) \end{align} Converges.
The proof starts as following:
For $p \leq n \leq t \leq n+1$ is $f(p) \geq f(n) \geq f(t) \geq f(n+1)$*
And so
$ f(n+1) =_{}^{**} \int_{n}^{n+1}f(n+1)dt \leq \int_{n}^{n+1}f(t)dt \leq \int_{n}^{n+1}f(n)dt=f(n) $
Suppose now that the integral converges. Then the partial sum is:
$s_{n}^{} = f(p)+f(p+1)+...+f(n) \leq f(p) + \int_{p}^{p+1}f(t)dt_{}^{***} +...+ \int_{n}^{n-1}f(t)dt = f(p) + \int_{p}^{n}f(t)dt \leq f(p)+ \int_{p}^{+\infty}f(t)dt $
And so we see that the serie of the partial sum is bounded and the serie converges.
Suppose now that the $ \sum\limits_{n=p}^{\infty}f(n) $ converges with sum s. Take x $ \geq $ p and n $ \in N > x.$ Then
$ \int_{a}^{x}f(t)dt \leq \int_{a}^{n}f(t)dt = \int_{a}^{p}f(t)dt + \int_{p}^{p+1}f(t)dt+...+\int_{n-1}^{n}f(t)dt \leq \int_{a}^{p} +f(p)+...+f(n-1) \leq \int_{a}^{p}f(t)dt +s_{}^{****} $
So we proved that $ \int_{a}^{x}f(t)dt $ is an increasing and bounded function of x. So the integral exists.
I put stars where I don't really understood the step so:
*: I see why $ f(n) \geq f(n+1) $ ( f is non-decreasing but what about p and t?
**: Why is $ f(n+1) $ equal to $\int_{n}^{n+1}f(n+1)dt$?
***: Why is $ f(p+1) $ equal to $ \int_{p}^{p+1}f(t)dt $?
****: Isn't s equal to f(p)+f(p+1)+...+f(n-1)+f(n)?
Thanks in advance!