# Calculus/Integration techniques/Infinite Sums

 ← Improper Integrals Calculus Integration techniques/Recognizing Derivatives and the Substitution Rule → Integration techniques/Infinite Sums

The most basic, and arguably the most difficult, type of evaluation is to use the formal definition of a Riemann integral.

## Exact Integrals as Limits of Sums

Using the definition of an integral, we can evaluate the limit as $n$ goes to infinity. This technique requires a fairly high degree of familiarity with summation identities. This technique is often referred to as evaluation "by definition," and can be used to find definite integrals, as long as the integrands are fairly simple. We start with definition of the integral:

 $\int_a^bf(x)\ dx$ $=\lim_{n\rightarrow\infty}\frac{b-a}{n}\sum_{i=1}^nf(x_i^*)$ Then picking $x_i^*$ to be $x_i=a+i\frac{b-a}{n}$ we get, $=\lim_{n\rightarrow\infty}\frac{b-a}{n}\sum_{i=1}^nf(a+i\frac{b-a}{n}).$

In some simple cases, this expression can be reduced to a real number, which can be interpreted as the area under the curve if f(x) is positive on [a,b].

### Example 1

Find $\int_0^2x^2\ dx$ by writing the integral as a limit of Riemann sums.

 $\int_0^2x^2\ dx$ $=\lim_{n\rightarrow\infty}\frac{b-a}{n}\sum_{i=1}^nf(x_i^*)$ $=\lim_{n\rightarrow\infty}\frac{2}{n}\sum_{i=1}^nf(\frac{2i}{n})$ $=\lim_{n\rightarrow\infty}\frac{2}{n}\sum_{i=1}^n\left(\frac{2i}{n}\right)^2$ $=\lim_{n\rightarrow\infty}\frac{2}{n}\sum_{i=1}^n\frac{4i^2}{n^2}$ $=\lim_{n\rightarrow\infty}\frac{8}{n^3}\sum_{i=1}^ni^2$ $=\lim_{n\rightarrow\infty}\frac{8}{n^3}\frac{n(n+1)(2n+1)}{6}$ $=\lim_{n\rightarrow\infty}\frac{4}{3}\frac{2n^2+3n+1}{n^2}$ $=\lim_{n\rightarrow\infty}\frac{8}{3}+\frac{4}{n}+\frac{4}{3n^2}$ $=\frac{8}{3}$

In other cases, it is even possible to evaluate indefinite integrals using the formal definition. We can define the indefinite integral as follows:

 $\int f(x)\ dx$ $=\int_0^x f(t)\ dt=\lim_{n\rightarrow\infty}\frac{x-0}{n}\sum_{i=1}^n f(t_i^{*})$ $=\lim_{n\rightarrow\infty}\frac{x}{n}\sum_{i=1}^n f\left(0+\frac{(x-0)\cdot i}{n}\right)$ $=\lim_{n\rightarrow\infty}\frac{x}{n}\sum_{i=1}^n f\left(\frac{x\cdot i}{n}\right)$

### Example 2

Suppose $f(x)=x^2$, then we can evaluate the indefinite integral as follows.

 $\int_0^xf(t)\ dt=$ $\lim_{n\rightarrow\infty}\frac{x}{n}\sum_{i=1}^n f\left(\frac{x\cdot i}{n}\right)$ $\lim_{n\rightarrow\infty}\frac{x}{n}\sum_{i=1}^n \left(\frac{x\cdot i}{n}\right)^2$ $\lim_{n\rightarrow\infty}\frac{x}{n}\sum_{i=1}^n \frac{x^2\cdot i^2}{n^2}$ $\lim_{n\rightarrow\infty}\frac{x^3}{n^3}\sum_{i=1}^n i^2$ $\lim_{n\rightarrow\infty}\frac{x^3}{n^3}\sum_{i=1}^n i^2$ $\lim_{n\rightarrow\infty}\frac{x^3}{n^3}\frac{n(n+1)(2n+1)}{6}$ $\lim_{n\rightarrow\infty}\frac{x^3}{n^3}\frac{n(n+1)(2n+1)}{6}$ $\lim_{n\rightarrow\infty}\frac{x^3}{n^3}\frac{2n^3+3n^2+n}{6}$ $x^3\lim_{n\rightarrow\infty}\left(\frac{2n^3}{6n^3}+\frac{3n^2}{6n^3}+\frac{n}{6n^3}\right)$ $x^3\lim_{n\rightarrow\infty}\left(\frac{1}{3}+\frac{1}{2n}+\frac{1}{6n^2}\right)$ $x^3\cdot\left(\frac{1}{3}\right)$ $\frac{x^3}{3}$
 ← Improper Integrals Calculus Integration techniques/Recognizing Derivatives and the Substitution Rule → Integration techniques/Infinite Sums