# Riemann Sums and the Definite Integral

## Riemann Sums

Let f (x) be a continuous and non-negative function defined on the closed interval [a, b]. How to find the area of the region S bounded by the curve y = f (x), the x-axis, and the vertical lines x = a and x = b?

We can approximate this area by dividing the region into rectangles.

Suppose that the interval $$\left[ {a,b} \right]$$ is divided into $$n$$ subintervals defined by the points

$a = {x_0} \lt {x_1} \lt {x_2} \lt \cdots \lt {x_i} \lt \cdots \lt {x_n} = b.$

Then the $$n$$ subintervals are

$\left[ {{x_0},{x_1}} \right],\left[ {{x_1},{x_2}} \right], \ldots , \left[ {{x_{n - 1}},{x_n}} \right].$

This subdivision is called the partition of $$\left[ {a,b} \right]$$ and is denoted by $$P.$$

The width of the $$i$$th subinterval $$\left[ {{x_{i - 1}},{x_i}} \right]$$ is given by

$\Delta {x_i} = {x_i} - {x_{i - 1}},$

so the subintervals generally may have different widths.

The width of the largest subinterval is called the norm of the partition $$P$$ and is denoted $$\left\| P \right\|.$$ Thus

$\left\| P \right\| = \max \left\{ {\Delta {x_1},\Delta {x_2}, \ldots ,\Delta {x_n}} \right\}.$

We use the partition $$P$$ to divide the region $$S$$ into strips $${S_1},{S_2}, \ldots ,{S_n}.$$ We then approximate the strips $${S_i}$$ using rectangles $${R_i}$$ and choosing a sample point $${\xi _i}$$ in each subinterval $$\left[ {{x_{i - 1}},{x_i}} \right].$$

The point $${\xi _i}$$ can be anywhere in its subinterval.

The area of the $$i$$th rectangle $${R_i}$$ is given by

${A_i} = f\left( {{\xi _i}} \right)\Delta {x_i},$

so the area of the region $$S$$ is approximated by the sum of the areas of the rectangles $${R_i}:$$

$A \approx \sum\limits_{i = 1}^n {{A_i}} = \sum\limits_{i = 1}^n {f\left( {{\xi _i}} \right)\Delta {x_i}} = f\left( {{\xi _1}} \right)\Delta {x_1} + f\left( {{\xi _2}} \right)\Delta {x_2} + \cdots + f\left( {{\xi _n}} \right)\Delta {x_n}.$

The sum $$\sum\limits_{i = 1}^n {f\left( {{\xi _i}} \right)\Delta {x_i}}$$ is called the Riemann Sum, which was introduced by Bernhard Riemann $$\left( {1826 - 1866} \right),$$ a German mathematician.

There are several types of Riemann Sums. The Left Riemann Sum uses the left endpoints of the subintervals. The Right Riemann Sum uses the right endpoints, and the Midpoint Riemann Sum is calculated using the midpoints of the subintervals.

## The Definite Integral

If we take the limit of the Riemann Sum as the norm of the partition $$\left\| P \right\|$$ approaches zero, we get the exact value of the area $$A:$$

$A = \lim\limits_{\left| P \right| \to 0} \sum\limits_{i = 1}^n {f\left( {{\xi _i}} \right)\Delta {x_i}} .$

This limit is called the definite integral of the function $$f\left( x \right)$$ from $$a$$ to $$b$$ and is denoted by $$\int\limits_a^b {f\left( x \right)dx}.$$

The notation for the definite integral is very similar to the notation for an indefinite integral. The new elements $$a$$ and $$b$$ mean, respectively, the lower and the upper limit of integration.

## Properties of the Definite Integral

We assume below that $$f\left( x \right)$$ and $$g\left( x \right)$$ are continuous functions on the closed interval $$\left[ {a,b} \right].$$

$\int\limits_a^b {1dx} = b - a;$
$\int\limits_a^b {kf\left( x \right)dx} = k \int\limits_a^b {f\left( x \right)dx} ,\text{ where } k \text{ is a constant};$
$\int\limits_a^b {\left[ {f\left( x \right) + g\left( x \right)} \right]dx} = \int\limits_a^b {f\left( x \right)dx} + \int\limits_a^b {g\left( x \right)dx} ;$
$\int\limits_a^b {f\left( x \right)dx} = \int\limits_a^c {f\left( x \right)dx} + \int\limits_c^b {f\left( x \right)dx} , \text{ where } a \lt c \lt b;$
$\text{If } 0 \le f\left( x \right) \le g\left( x \right) \text{ for all } x \in \left[ {a,b} \right], \text{ then } 0 \le \int\limits_a^b {f\left( x \right)dx} \le \int\limits_a^b {g\left( x \right)dx} ;$
$\int\limits_a^a {f\left( x \right)dx} = 0;$
$\int\limits_a^b {f\left( x \right)dx} = - \int\limits_b^a {f\left( x \right)dx};$
$\text{If } f\left( x \right) \ge 0 \text{ in the interval } \left[ {a,b} \right], \text{ then } \int\limits_a^b {f\left( x \right)dx} \ge 0.$

## Solved Problems

Click or tap a problem to see the solution.

### Example 1

Estimate the area under $f\left( x \right) = {x^2}$ on the interval $$\left[ {0,10} \right]$$ using the midpoint Riemann Sum for $$n = 5.$$

### Example 2

Find the norm of the partition

$P = \left\{ {1,1.1,1.7,2.4,2.9,3.1,3.8,4} \right\}.$

### Example 3

Find the norm of the partition

$P = \left\{ {-5,-4.3,-3.2,-2.3,-1.8,-1} \right\}.$

### Example 4

Find the Riemann Sum for the function $f\left( x \right) = 5x - 2$ and the partition $$\left\{ {1,3,6,7} \right\}$$ using the sample points $${\xi _i} = \left\{ {2,5,7} \right\}.$$

### Example 5

Find the Riemann Sum for the function $f\left( x \right) = \frac{1}{{2x + 1}}$ and the partition $$\left\{ {0,2,5,8} \right\}$$ using the sample points $${\xi _i} = \left\{ {1,3,6} \right\}.$$

### Example 6

Use the Right Riemann Sum with $$n = 5$$ to approximate the integral $I = \int\limits_{-1}^4 {\left( {16 - {x^2}} \right)dx}.$

### Example 1.

Estimate the area under $f\left( x \right) = {x^2}$ on the interval $$\left[ {0,10} \right]$$ using the midpoint Riemann Sum for $$n = 5.$$

Solution.

We partition the interval $$\left[ {0,10} \right]$$ into $$5$$ equal subintervals with endpoints

${x_i} = \left\{ {0,2,4,6,8,10} \right\}.$

The midpoints $${\xi _i}$$ of the subintervals have the coordinates:

${\xi _i} = \left\{ {1,3,5,7,9} \right\}.$

Hence, the midpoint Riemann Sum is given by

${M_5} = \sum\limits_{i = 1}^5 {f\left( {{\xi _i}} \right)\Delta x} ,$

where $$\Delta x = 2$$ is the width of each subinterval.

Calculating the values of $${f\left( {{\xi _i}} \right)},$$ we find the approximate value of the area:

$A \approx {M_5} = \sum\limits_{i = 1}^5 {f\left( {{\xi _i}} \right)\Delta x} = \Delta x\sum\limits_{i = 1}^5 {f\left( {{\xi _i}} \right)} = \Delta x\left[ {f\left( {{\xi _1}} \right) + f\left( {{\xi _2}} \right) + \cdots + f\left( {{\xi _5}} \right)} \right] = 2\left( {{1^2} + {3^2} + {5^2} + {7^2} + {9^2}} \right) = 2\left( {1 + 9 + 25 + 49 + 81} \right) = 330.$

### Example 2.

Find the norm of the partition

$P = \left\{ {1,1.1,1.7,2.4,2.9,3.1,3.8,4} \right\}.$

Solution.

The set of partition points is

${x_0} = 1,\;{x_1} = 1.1,\;{x_2} = 1.7,\;{x_3} = 2.4,\;{x_4} = 2.9,\;{x_5} = 3.1,\;{x_6} = 3.8,\;{x_7} = 4.$

Calculate the width of each subinterval:

$\Delta {x_1} = {x_1} - {x_0} = 1.1 - 1 = 0.1$
$\Delta {x_2} = {x_2} - {x_1} = 1.7 - 1.1 = 0.6$
$\Delta {x_3} = {x_3} - {x_2} = 2.4 - 1.7 = 0.7$
$\Delta {x_4} = {x_4} - {x_3} = 2.9 - 2.4 = 0.5$
$\Delta {x_5} = {x_5} - {x_4} = 3.1 - 2.9 = 0.2$
$\Delta {x_6} = {x_6} - {x_5} = 3.8 - 3.1 = 0.7$
$\Delta {x_7} = {x_7} - {x_6} = 4 - 3.8 = 0.2$

Then the norm of the partition is given by

$\left\vert| P \right\vert| = \max \left\{ {0.1,0.6,0.7,0.5,0.2,0.7,0.2} \right\} = 0.7$

### Example 3.

Find the norm of the partition

$P = \left\{ {-5,-4.3,-3.2,-2.3,-1.8,-1} \right\}.$

Solution.

The partition contains the following points:

${x_0} = -5,\;{x_1} = -4.3,\;{x_2} = -3.2,\;{x_3} = -2.3,\;{x_4} = -1.8,\;{x_5} = -1.$

Determine the width of each subinterval:

$\Delta {x_1} = {x_1} - {x_0} = -4.3 - \left({-5}\right) = 0.7$
$\Delta {x_2} = {x_2} - {x_1} = -3.2 - \left({-4.3}\right) = 1.1$
$\Delta {x_3} = {x_3} - {x_2} = -2.3 - \left({-3.2}\right) = 0.9$
$\Delta {x_4} = {x_4} - {x_3} = -1.8 - \left({-2.3}\right) = 0.5$
$\Delta {x_5} = {x_5} - {x_4} = -1 - \left({-1.8}\right) = 0.8$

Hence, the norm of the partition is equal to

$\left\vert| P \right\vert| = \max \left\{ {0.7,1.1,0.9,0.5,0.8} \right\} = 1.1$

### Example 4.

Find the Riemann Sum for the function $f\left( x \right) = 5x - 2$ and the partition $$\left\{ {1,3,6,7} \right\}$$ using the sample points $${\xi _i} = \left\{ {2,5,7} \right\}.$$

Solution.

The widths of the subintervals are

$\Delta {x_i} = \left\{ {2,3,1} \right\}.$

Calculate the function values at the sample points:

$f\left( {{\xi _1}} \right) = f\left( 2 \right) = 5 \cdot 2 - 2 = 8;$
$f\left( {{\xi _2}} \right) = f\left( 5 \right) = 5 \cdot 5 - 2 = 23;$
$f\left( {{\xi _3}} \right) = f\left( 7 \right) = 5 \cdot 7 - 2 = 33.$

Then the Riemann Sun is given by

$\sum\limits_{i = 1}^3 {f\left( {{\xi _i}} \right)\Delta {x_i}} = f\left( {{\xi _1}} \right)\Delta {x_1} + f\left( {{\xi _2}} \right)\Delta {x_2} + f\left( {{\xi _3}} \right)\Delta {x_3} = 8 \cdot 2 + 23 \cdot 3 + 33 \cdot 1 = 16 + 69 + 33 = 118.$

### Example 5.

Find the Riemann Sum for the function $f\left( x \right) = \frac{1}{{2x + 1}}$ and the partition $$\left\{ {0,2,5,8} \right\}$$ using the sample points $${\xi _i} = \left\{ {1,3,6} \right\}.$$

Solution.

Calculate the widths of the subintervals:

$\Delta {x_1} = 2 - 0 = 2;$
$\Delta {x_2} = 5 - 2 = 3;$
$\Delta {x_3} = 8 - 5 = 3.$

The function has the following values at the sample points:

$f\left( {{\xi _1}} \right) = f\left( 1 \right) = \frac{1}{{2 \cdot 1 + 1}} = \frac{1}{3};$
$f\left( {{\xi _2}} \right) = f\left( 3 \right) = \frac{1}{{2 \cdot 3 + 1}} = \frac{1}{7};$
$f\left( {{\xi _3}} \right) = f\left( 6 \right) = \frac{1}{{2 \cdot 6 + 1}} = \frac{1}{13}.$

Hence, the Riemann Sun is given by

$\sum\limits_{i = 1}^3 {f\left( {{\xi _i}} \right)\Delta {x_i}} = f\left( {{\xi _1}} \right)\Delta {x_1} + f\left( {{\xi _2}} \right)\Delta {x_2} + f\left( {{\xi _3}} \right)\Delta {x_3} = \frac{1}{3} \cdot 2 + \frac{1}{7} \cdot 3 + \frac{1}{{13}} \cdot 3 = \frac{2}{3} + \frac{3}{7} + \frac{3}{{13}} = \frac{{182 + 117 + 63}}{{273}} = \frac{{362}}{{273}}.$

### Example 6.

Use the Right Riemann Sum with $$n = 5$$ to approximate the integral $I = \int\limits_{-1}^4 {\left( {16 - {x^2}} \right)dx}.$

Solution.

The partition points are $$-1,$$ $$0,$$ $$1,$$ $$2,$$ $$3,$$ $$4,$$ so the right endpoints of the subintervals are

${\xi _i} = \left\{ {0,1,2,3,4} \right\}.$

The Right Riemann Sum is given by

${R_5} = \sum\limits_{i = 1}^5 {f\left( {{\xi _i}} \right)\Delta x} ,$

where $$\Delta x = 1.$$

Calculate the values of the function $${f\left( {{\xi _i}} \right)}$$ at the right endpoints:

$f\left( {{\xi _1}} \right) = f\left( 0 \right) = 16 - {0^2} = 16;$
$f\left( {{\xi _2}} \right) = f\left( 1 \right) = 16 - {1^2} = 15;$
$f\left( {{\xi _3}} \right) = f\left( 2 \right) = 16 - {2^2} = 12;$
$f\left( {{\xi _4}} \right) = f\left( 3 \right) = 16 - {3^2} = 7;$
$f\left( {{\xi _5}} \right) = f\left( 4 \right) = 16 - {4^2} = 0.$

Hence

$I = \int\limits_{ - 1}^4 {\left( {16 - {x^2}} \right)dx} \approx {R_5} = \sum\limits_{i = 1}^5 {f\left( {{\xi _i}} \right)\Delta x} = \Delta x\sum\limits_{i = 1}^5 {f\left( {{\xi _i}} \right)} = 1 \cdot \left( {16 + 15 + 12 + 7 + 0} \right) = 50.$

See more problems on Page 2.