# Definite Integral as the Limit of a Riemann Sum

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.

### Riemann Sums

Riemann’s sums and integrals were developed by German mathematician Bernhard Riemann who made significant contributions to the field of differential geometry, number theory, and its analysis. These sums calculate the area under any curve using infinite rectangles and summing up their area. Let’s understand these sums through an example, consider a function f(x), the objective is to calculate the area under this curve between x = a to x = b.

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**.

### Definite Integrals through Riemann Sums

Through Riemann sums, the area under the curve can be calculated for arbitrarily complex functions. So, definite integrals can be defined using the Riemann sums. Intuitively, as we increase the number of rectangles in the region, their width decreases and the area becomes close and close to the exact area under the curve.

Let P be the width of the largest interval.

This limit is the definite integral of the function f(x) between the limits a to b and is denoted by . Let n be the number of divisions we make in the limits and R(n) be the value of riemann sum with n-divisions as n ⇢ ∞, R(n) becomes closer and closer to the actual area. Let’s see some problems on these concepts.

### Sample Problems

**Question 1: Find the value of riemann sum for n = 3 for the function f(x) =** **5 between x = 0 to x = 6. **

**Solution: **

Dividing the interval into four equal parts that is n = 3. The width of each interval will be,

The value of the function in each interval will be the value of the function at the mid-point of the interval.

⇒A =

⇒A =

⇒A =

⇒A =

⇒A = (5 + 5 + 5)2

⇒A = 30

**Question 2: Find the value of riemann sum for n = 4 for the function f(x) =** ** between x = 0 to x = 4. **

**Solution: **

Dividing the interval into four equal parts that is n = 4. The width of each interval will be,

The value of the function in each interval will be the value of the function at the mid-point of the interval.

⇒A =

⇒A =

⇒A =

⇒A =

⇒A =

⇒A = 4.2

**Question 3: Find the value of riemann sum for n = 6 for the function f(x) =** **x between x = 0 to x = 6. **

**Solution: **

Dividing the interval into four equal parts that is n = 6. The width of each interval will be,

The value of the function in each interval will be the value of the function at the mid-point of the interval.

⇒A =

⇒A =

⇒A =

⇒A = +

⇒A =

⇒A = 18

**Question 4: Find the value of definite integral f(x) = **

**Solution: **

f(x) =

⇒f(x) =

⇒f(x) =

⇒f(x) = 1 – cos(5)

**Question 5: Find the value of definite integral f(x) = **

**Solution: **

f(x) =

⇒f(x) =

⇒f(x) =

⇒f(x) = tan(1) – tan(0) + sin(1) – sin(0)

⇒f(x) = tan(1) + sin(1)

**Question 6: Find the value of riemann sum for n = 3 for the function f(x) =** **log(x) between x = 1 to x = 4. **

**Solution: **

Dividing the interval into four equal parts that is n = 3. The width of each interval will be,

⇒A =

⇒A =

⇒A =

⇒A =

⇒A =

⇒A = (0.17 + 0.39 + 0.54)

⇒A = 0.56 + 0.54

⇒A = 1.1

**Question 7: Find the value of riemann sum for n = 2 for the function f(x) =** **e ^{x} between x = 0 to x = 4. **

**Solution: **

Dividing the interval into four equal parts that is n = 2. The width of each interval will be,

⇒A =

⇒A =

⇒A =

⇒A =

⇒A =

⇒A = (2.7 + 20)2

⇒A = (22.7)(2)

⇒A = 45.4

Attention reader! Don’t stop learning now. Join the **First-Step-to-DSA Course for Class 9 to 12 students ****, **specifically designed to introduce data structures and algorithms to the class 9 to 12 students