# Riemann Sums in Summation Notation

Riemann sums allow us to calculate the area under the curve for any arbitrary function. These formulations help us define the definite integral. The basic idea behind these sums is to divide the area that is supposed to be calculated into small rectangles and calculate the sum of their areas. These areas are not accurate, but they help a lot in getting an idea about the actual area. The more the number of rectangles, the closer it takes us to the actual area. Let’s look at Riemann sums with sigma notations.

### Riemann Sums

Definite integrals are an important part of calculus. They are used to calculate the areas, volumes, etc of arbitrary shapes for which formulas are not defined. Analytically they are just indefinite integrals with limits on top of them, but graphically they represent the area under the curve. The limits denote the boundaries between which the area should be calculated. These concepts hold a lot of importance in the field of electrical engineering, robotics, etc. For defining integrals, Riemann sums are used in which we calculate the area under any curve using infinitesimally small rectangles. Let’s look at this interpretation of definite integrals in detail.

Now this area can be divided into a number of rectangles, assuming the area is divided into ‘n’ rectangles of equal width. Some of these rectangles go above the actual value of the function and some go below, which means that the area is overestimated and underestimated in certain parts. The height of these rectangles is determined by the value of the function in the middle of the interval.

In the definite integral notation, this area will be represented as,

This area can be approximated by dividing the area under the curve into n equally sized rectangles. So, the interval [a, b] is divided into n-subintervals defined by the points.

a = x_{0} < x_{1 }< x_{2 }< …. x_{n-2}< x_{n-1} < x_{n }= b

Then, the n intervals are,

[x_{0}, x_{1}], [x_{1}, x_{2}], …. [x_{n-1}, x_{n}]

So, for the i^{th} rectangle, the width will be, [x_{i-1}, x_{i}].

The area for i^{th} rectangle A_{i} = f()(x_{i —} x_{i-1})

So, the total area will be

This sum is called **Riemann sum**.

**Riemann Sums in Sigma Notation**

Assume that the goal is to calculate the area under the graph of the function f(x) = x^{2}, the area will be calculated between the limits x = 0.5 to x = 4.5.

Divide the interval into four equal parts, the intervals will be [0.5, 1.5], [1.5, 2.5], [2.5, 3.5] and [3.5, 4.5].

The riemann sum then, can be written as follows,

A(1) + A(2) + A(3) + A(4) =

Let the heights of the interval be the values of the function at the end of the rectangle. This is called the **right sum Riemann sum**. Let x_{i }denote the right endpoint of the i^{th} rectangle.

So, the formula for x_{i }= 0.5 + i. Now, the value of the function at these points becomes,

f(x_{i}) = (0.5 + i)^{2}

So, A(i) = (height)(width)

= (0.5 + i)^{2}

The Riemann sum becomes,

A(1) + A(2) + A(3) + A(4) =

⇒ A(1) + A(2) + A(3) + A(4) =

So, this way almost all the riemann sums can be represented in a sigma notation.

To summarize the whole process,

Step 1:Find out the width of each interval. Let’s denote the width of interval with

Step 2:Let x_{i}denote the right-endpoint of the rectangle x_{i }= a + x.i

Step 3:Define the area of each rectangle.

Step 4:Sum the areas

### Sample Problems

**Question 1: Consider a function f(x), its area is calculated from riemann sum from x = 4 to x = 10, the whole area is divided into 5 rectangles. Find the interval width. **

**Solution: **

The whole length is divided into 5 equal parts,

x

_{i = }4 and x_{l}= 10,Width of an interval is given by =

Where x

_{i }– initial point, and x_{l}– last point and n= number of partsn = 5

**Question 2: Consider a function f(x) = x, its area is calculated from riemann sum from x = 0 to x = 5, the whole area is divided into 5 rectangles. Find the riemann sum in sigma notation**

**Solution: **

Step (i):Calculate the widthThe whole length is divided into 5 equal parts,

x

_{i }= 0 and x_{l}= 5,Width of an interval is given by =

Where x

_{i }= initial point, and x_{l}– last point and n= number of partsn = 5

Step(ii):a = 0,

x

_{i}= 0 +⇒ x

_{i}= i

Step (iii)A

_{i}= Height x Width= f(x

_{i})= (i)

Total Area = A(1) + A(2) + A(3) + A(4) + A(5)

=

**Question 3: Consider a function f(x) = 5 – x, its area is calculated from riemann sum from x = 0 to x = 5, the whole area is divided into 5 rectangles. Find the riemann sum in sigma notation**

**Solution: **

Step (i):Calculate the widthThe whole length is divided into 5 equal parts,

x

_{i }= 0 and x_{l}= 5,Width of an interval is given by =

Where x

_{i }= initial point, and x_{l}– last point and n= number of partsn = 5

Step(ii):

a = 0,

x

_{i}= 0 +⇒ x

_{i}= iStep (iii)

A

_{i}= Height x Width= f(x

_{i})= (5 – i)(1)

= 5 – i

Total Area = A(1) + A(2) + A(3) + A(4) + A(5)

=

**Question 4: Consider a function f(x) = √x, its area is calculated from riemann sum from x = 0 to x = 4, the whole area is divided into 4 rectangles. Find the riemann sum in sigma notation**

**Solution:**

Step (i):Calculate the widthThe whole length is divided into 4 equal parts,

x

_{i }= 0 and x_{l}= 4,Width of an interval is given by =

Where x

_{i }= initial point, and x_{l}– last point and n= number of partsn = 4

Step(ii):a = 0,

x

_{i}= 0 +⇒ x

_{i}= iStep (iii)

A

_{i}= Height × Width= f(x

_{i})= (√i)(1)

= √i

Total Area = A(1) + A(2) + A(3) + A(4)

=

**Question 5: Consider a function f(x) = e ^{x} + 1, its area is calculated from riemann sum from x = 0 to x = 4, the whole area is divided into 4 rectangles. Find the riemann sum in sigma notation**

**Solution:**

Step (i):Calculate the widthThe whole length is divided into 4 equal parts,

x

_{i }= 0 and x_{l}= 4,Width of an interval is given by =

Where x

_{i }= initial point, and x_{l}– last point and n= number of partsn = 4

Step(ii):

a = 0,

x

_{i}= 0 +⇒ x

_{i}= iStep (iii)

A

_{i}= Height x Width= f(x

_{i})= (e

^{i}+ 1)(1)= e

^{i}+ 1Total Area = A(1) + A(2) + A(3) + A(4)

=

**Question 6: Consider a function f(x) = x ^{2} + x, its area is calculated from riemann sum from x = 0 to x = 6, the whole area is divided into 3 rectangles. Find the riemann sum in sigma notation**

**Solution:**

Step (i):Calculate the widthThe whole length is divided into 4 equal parts,

x

_{i }= 0 and x_{l}= 6,Width of an interval is given by =

Where x

_{i }= initial point, and x_{l}– last point and n= number of partsn = 3

Step(ii):a = 0,

x

_{i}= 0 +⇒ x

_{i}= 2iStep (iii)

A

_{i}= Height x Width= f(x

_{i})= (i

^{2}+ i)(2)Total Area = A(1) + A(2) + A(3) + A(4) + A(5) + A(6)

=

Attention reader! Don’t stop learning now. Participate in the **Scholorship Test for First-Step-to-DSA Course for Class 9 to 12 students**.