Integrals: functions and by parts

Limits of Riemann sums

The limit of the sum lim⁡n→∞1n∑k=1nf ⁣(kn)\lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}f\!\left(\frac{k}{n}\right) can be written as the definite integral ∫01f(x) dx\int_0^1 f(x)\,dx.

lim⁡n→∞1n∑k=1nf ⁣(kn)=∫01f(x) dx\begin{gathered} \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}f\!\left(\frac{k}{n}\right) \\[4pt] =\int_0^1 f(x)\,dx \end{gathered}

Dividing [0, 1][0,\ 1] into nn equal parts gives nn rectangles of width 1n\frac{1}{n} and height f ⁣(kn)f\!\left(\frac{k}{n}\right). If f(x)f(x) is continuous, the sum of their areas tends to the definite integral as n→∞n\to\infty.

lim⁡n→∞1n∑k=1nf ⁣(kn)=∫01f(x) dx\begin{gathered} \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}f\!\left(\frac{k}{n}\right) \\[4pt] =\int_0^1 f(x)\,dx \end{gathered}

To rewrite a sum, read kn\frac{k}{n} as xx and 1n\frac{1}{n} as dxdx. If the factor 1n\frac{1}{n} is not out in front, factor it out first so that the rest depends only on kn\frac{k}{n}.

Examples

  1. 01Write it as a definite integral.lim⁡n→∞1n∑k=1n(kn)2\displaystyle \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}\left(\frac{k}{n}\right)^{2}AnswerHide
    Answer∫01x2 dx\displaystyle \int_0^1 x^{2}\,dx

    Steps

    1. The 1n\frac{1}{n} is the strip width, i.e. dxdx, and kn\frac{k}{n} plays the role of xx
    2. As kk runs from 11 to nn, kn\frac{k}{n} runs from 00 to 11; so the interval is 00 to 11
    3. lim⁡n→∞1n∑k=1n(kn)2\displaystyle \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}\left(\frac{k}{n}\right)^{2}=∫01x2 dx\displaystyle = \int_0^1 x^{2}\,dx
  2. 02Write it as a definite integral.lim⁡n→∞1n∑k=1n(kn)3\displaystyle \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}\left(\frac{k}{n}\right)^{3}AnswerHide
    Answer∫01x3 dx\displaystyle \int_0^1 x^{3}\,dx

    Steps

    1. The 1n\frac{1}{n} is the strip width, i.e. dxdx, and kn\frac{k}{n} plays the role of xx
    2. As kk runs from 11 to nn, kn\frac{k}{n} runs from 00 to 11; so the interval is 00 to 11
    3. lim⁡n→∞1n∑k=1n(kn)3\displaystyle \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}\left(\frac{k}{n}\right)^{3}=∫01x3 dx\displaystyle = \int_0^1 x^{3}\,dx
  3. 03Write it as a definite integral.lim⁡n→∞1n∑k=1n(kn)1\displaystyle \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}\left(\frac{k}{n}\right)^{1}AnswerHide
    Answer∫01x dx\displaystyle \int_0^1 x\,dx
  4. 04Write it as a definite integral.lim⁡n→∞1n∑k=1n11+kn\displaystyle \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}\frac{1}{1+\frac{k}{n}}AnswerHide
    Answer∫0111+x dx\displaystyle \int_0^1 \frac{1}{1+x}\,dx
  5. 05Write it as a definite integral.lim⁡n→∞1n∑k=1nkn\displaystyle \lim_{n\to\infty}\frac{1}{n}\sum_{k=1}^{n}\sqrt{\frac{k}{n}}AnswerHide
    Answer∫01x dx\displaystyle \int_0^1 \sqrt{x}\,dx
  6. 06Write it as a definite integral.lim⁡n→∞∑k=1nnn2+k2\displaystyle \lim_{n\to\infty}\sum_{k=1}^{n}\frac{n}{n^{2}+k^{2}}AnswerHide
    Answer∫0111+x2 dx\displaystyle \int_0^1 \frac{1}{1+x^{2}}\,dx

FAQ

Q1What if there is no 1n\frac{1}{n} in the sum?AnswerHide
A
Factor it out. For example, ∑k=1nnn2+k2=1n∑k=1n11+(kn)2\sum_{k=1}^{n}\frac{n}{n^2+k^2}=\frac{1}{n}\sum_{k=1}^{n}\frac{1}{1+\left(\frac{k}{n}\right)^2}, so the limit is ∫0111+x2 dx\int_0^1\frac{1}{1+x^2}\,dx.
Q2Why are the limits of integration 0 and 1?AnswerHide
A
As kk runs from 11 to nn, kn\frac{k}{n} runs from 1n\frac{1}{n} to 11, and as n→∞n\to\infty these points fill the interval from 00 to 11. If kk runs from 11 to 2n2n instead, the interval becomes 00 to 22.

Published 2026-10-14 · Updated 2026-10-14