Through the sequence \(\frac1i\) for \(i=1,…,n\) we interpolate the function \(\frac1x\).
This function is decreasing.
The area under this function (Riemann integral) on the interval
\(\langle i, i+1\rangle\)
ins included in the rectangle
\(\langle i, i+1\rangle \times\langle 0, f(i)\rangle\), of area
\(\frac{1}{i}\).
For the lower estimate, we estimate the sum of the series, i.e. the area of \( n \) consecutive rectangles by the Riemann integral of the function \( \frac{1}{x} \) on the interval \( \langle 1, n + 1 \rangle \):
\(H_n \ge \int_1^{n+1} \frac1x dx=\left[\ln x \right]_1^{n+1} = \ln (n+1)> \ln n\)
Analogously, the area under this function on the interval
\(\langle i-1, i\rangle\)
includes the rectangle
\(\langle i-1, i\rangle \times\langle 0, f(i)\rangle\), of area
\(\frac{1}{i}\).
For an upper bound we exclude the first element and estimete the sum of the rest of the series, i.e. the area of \(n-1\) consecutive rectangles by the Riemann integral of the function \(\frac{1}{x}\) on the interval \(\langle 1, n\rangle\):
\(H_n \le 1 + \int_1^{n} \frac1x dx= 1+\left[\ln x \right]_1^{n}= 1+ \ln n\)
Observe that this estimate is consistent with the estimate from the previous variant, as:
\(\frac{1}{2}\log_2 n=\log_4 n \le \ln n \le \log_2 n\).