I found this inequality in an exercises here, on this site (see the inequality below). It applies to a decreasing function. I used this for my exercise and it worked. The problem is i cannot find from where this comes. Can someone explain it to me ? Evaluating $ \lim\limits_{n\to\infty} \sum_{k=1}^{n^2} \frac{n}{n^2+k^2} $ the inequality is in the first answear
Added
For any decreasing function $f:\mathbb{R}\to\mathbb{R}$ and any $N>1$ we have $$ \int\limits_1^{N+1}f(x)dx\leq \sum\limits_{k=1}^{N}f(k)\leq \int\limits_0^N f(x)dx. $$